:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --text: #162033;
  --muted: #667085;
  --line: #d9e1ea;
  --accent: #4f6bed;
  --accent-strong: #3751d6;
  --dark: #101828;
  --dark-soft: #1d2939;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
  --radius: 22px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 7rem 0;
}

.section-muted {
  background: var(--surface-soft);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 225, 234, 0.75);
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--dark);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:not(.nav-cta) {
  color: #475467;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  overflow: hidden;
  padding-top: 8rem;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 700;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 720px;
  margin: 2rem 0 0;
  color: #475467;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(79, 107, 237, 0.25);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.button-large {
  min-width: 230px;
  min-height: 56px;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow);
  color: #d0d5dd;
  overflow: hidden;
}

.code-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475467;
}

.code-content {
  padding: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}

.code-content p {
  margin: 0;
}

.code-muted {
  color: #667085;
}

.code-key {
  color: #84adff;
}

.code-string {
  color: #75e0a7;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--dark-soft);
  font-size: 0.85rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #32d583;
  box-shadow: 0 0 0 5px rgba(50, 213, 131, 0.12);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-glow-one {
  width: 430px;
  height: 430px;
  top: 3rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(79, 107, 237, 0.16), transparent 68%);
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  bottom: -8rem;
  left: -9rem;
  background: radial-gradient(circle, rgba(117, 224, 167, 0.12), transparent 68%);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 6rem;
  align-items: start;
}

.section h2 {
  max-width: 850px;
  font-size: clamp(2.3rem, 4.6vw, 4.5rem);
  font-weight: 700;
}

.prose {
  color: #475467;
  font-size: 1.08rem;
}

.prose p {
  margin: 0 0 1.4rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 3rem;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  min-height: 285px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #b8c5d6;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
}

.card-number {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.service-card h3,
.skill-group h3 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.section-dark .eyebrow {
  color: #84adff;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
  margin-top: 4rem;
}

.skill-group {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.skill-group h3 {
  color: #f2f4f7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tags span {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d0d5dd;
  font-size: 0.84rem;
}

.contact-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
}

.contact-panel h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.contact-panel p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 5rem 0;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero-grid,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-card {
    max-width: 620px;
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: 10px;
  }

  .nav-cta {
    margin-top: 0.35rem;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .contact-panel {
    padding: 2rem;
  }

  .button-large {
    width: 100%;
    min-width: 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}
