:root {
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-2: #eaf4f6;
  --text: #0b1828;
  --muted: #5f7082;
  --navy: #061626;
  --navy-2: #0b2035;
  --teal: #1fbfc1;
  --teal-2: #0c8f92;
  --amber: #f3b23c;
  --danger: #e76f6f;
  --success: #25b885;
  --border: #d8e4ea;
  --shadow: 0 24px 60px rgba(4, 22, 38, 0.12);
  --radius: 24px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 191, 193, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(243, 178, 60, 0.14), transparent 26rem),
    var(--bg);
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
pre { margin: 0; overflow: auto; }
code { font-family: var(--mono); }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 249, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 228, 234, 0.85);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal-2));
  box-shadow: 0 12px 32px rgba(31, 191, 193, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-menu a {
  text-decoration: none;
  transition: color .2s ease;
}

.nav-menu a:hover { color: var(--teal-2); }
.nav-toggle { display: none; }

.hero {
  padding: 92px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  color: var(--teal-2);
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .78rem;
}

h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.04em; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); max-width: 880px; }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.35rem; }

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions, .footer-inner, .trust-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions { margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary {
  background: linear-gradient(135deg, var(--navy), #12395a);
  color: white;
  box-shadow: 0 16px 36px rgba(4, 22, 38, .22);
}
.button.secondary {
  background: rgba(255,255,255,.72);
  border-color: var(--border);
  color: var(--navy);
}

.trust-strip {
  margin-top: 26px;
  color: var(--muted);
  font-size: .95rem;
}
.trust-strip span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  border-radius: 999px;
}

.hero-card, .studio-panel, .compare-card, .role-card, .roadmap-card, .usecase, .cta-card, .note {
  border: 1px solid rgba(216, 228, 234, 0.95);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  padding: 20px;
  transform: rotate(1deg);
}
.mini-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mini-pipeline span {
  text-align: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--navy);
  font-weight: 800;
  font-size: .78rem;
}
.hero-code {
  background: var(--navy);
  color: #d8feff;
  border-radius: 18px;
  padding: 22px;
  font-size: .92rem;
}

.section { padding: 86px 0; }
.section.dark {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(31,191,193,.18), transparent 22rem),
    radial-gradient(circle at 85% 80%, rgba(243,178,60,.12), transparent 20rem);
  pointer-events: none;
}
.section.dark .shell { position: relative; }
.section.dark p { color: #a8bac7; }
.section-heading { max-width: 860px; margin-bottom: 36px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.comparison-grid, .roadmap-grid, .image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.compare-card { padding: 28px; }
.compare-card ul, .role-card p, .roadmap-card p, .usecase p { color: var(--muted); }
.compare-card li { margin: 10px 0; }
.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .78rem;
  margin-bottom: 18px;
}
.tag.danger { background: rgba(231,111,111,.13); color: #b33636; }
.tag.success { background: rgba(37,184,133,.13); color: #0b7d57; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 40px 0 28px;
}
.pipeline span {
  padding: 16px 8px;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(31,191,193,.36);
  border-radius: 16px;
  color: #d8feff;
  font-weight: 900;
  font-size: .78rem;
}
.maxim {
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--amber);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  color: #ffe2a6;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}
.studio-panel { overflow: hidden; }
.panel-header {
  padding: 14px 18px;
  background: var(--navy);
  color: white;
  font-weight: 900;
}
.studio-panel p, .natural-text { padding: 20px; margin: 0; color: var(--muted); }
.code-panel pre {
  padding: 20px;
  background: #081827;
  color: #d8feff;
  min-height: 330px;
  font-size: .88rem;
}
.understanding { grid-column: 1 / -1; }
.note { margin-top: 20px; padding: 18px 20px; color: var(--muted); }
.note strong { color: var(--navy); }

.cards-grid.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.role-card { padding: 24px; }
.icon { font-size: 2rem; display: inline-block; margin-bottom: 18px; }

.usecase-list { display: grid; gap: 16px; }
.usecase {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
}
.usecase span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--navy);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(31,191,193,.22), rgba(243,178,60,.28));
}

.image-gallery { grid-template-columns: repeat(3, 1fr); }
.image-gallery figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.image-gallery img { aspect-ratio: 1 / 1; object-fit: cover; }
.image-gallery figcaption {
  padding: 14px 16px 18px;
  color: var(--muted);
  font-weight: 800;
}

.roadmap-grid { grid-template-columns: repeat(4, 1fr); }
.roadmap-card { padding: 24px; position: relative; overflow: hidden; }
.stage {
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 900;
  color: var(--teal-2);
}
.roadmap-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -54px;
  top: -54px;
  background: rgba(31,191,193,.12);
  border-radius: 50%;
}

.cta-section { padding-top: 20px; }
.cta-card {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #ffffff, #eefafa);
}
.cta-card p:not(.eyebrow) { color: var(--muted); max-width: 720px; }

.footer {
  background: var(--navy);
  color: #b9c8d2;
  padding: 28px 0;
}
.footer-inner { justify-content: space-between; }
.footer a { color: white; text-decoration: none; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero, .comparison-grid, .studio-grid { grid-template-columns: 1fr; }
  .cards-grid.four, .roadmap-grid, .image-gallery { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    background: white;
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 800;
  }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-menu.open { display: flex; }
  .hero { padding-top: 56px; }
  .hero-card { transform: none; }
  .mini-pipeline { grid-template-columns: 1fr; }
  .cards-grid.four, .roadmap-grid, .image-gallery { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .usecase { grid-template-columns: 1fr; }
  .cta-card { align-items: flex-start; flex-direction: column; }
}
