:root {
  --blue-900: #073b84;
  --blue-800: #074fae;
  --blue-700: #0b5ed7;
  --blue-600: #1d6fe8;
  --blue-500: #3182f6;
  --blue-100: #e8f2ff;
  --blue-050: #f5f9ff;
  --ink-950: #08182b;
  --ink-900: #10233e;
  --ink-800: #1c3352;
  --ink-700: #334c6b;
  --ink-600: #526882;
  --ink-500: #6a7e96;
  --line: #dce5ef;
  --line-strong: #cbd8e7;
  --white: #ffffff;
  --surface: #f7faff;
  --shadow-sm: 0 10px 30px rgba(23, 51, 88, .08);
  --shadow-lg: 0 30px 80px rgba(6, 34, 72, .16);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-900);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.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; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; background: var(--ink-950); color: #fff; border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 104px 0; }
.section-white { background: var(--white); }

.site-header { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; transition: background .2s ease, box-shadow .2s ease, border-color .2s ease; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-color: rgba(220,229,239,.8); box-shadow: 0 8px 30px rgba(15,36,65,.05); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-950); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--blue-800), var(--blue-500)); color: #fff; font-size: 20px; box-shadow: 0 8px 18px rgba(11,94,215,.22); }
.brand-name { font-size: 21px; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > a { color: var(--ink-700); text-decoration: none; font-size: 14px; font-weight: 650; }
.primary-nav > a:hover { color: var(--blue-700); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink-900); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff !important; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); box-shadow: 0 12px 28px rgba(11,94,215,.22); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(11,94,215,.3); }
.button-secondary { color: var(--ink-900); background: rgba(255,255,255,.8); border-color: var(--line-strong); }
.button-light { background: #fff; color: var(--blue-800); }
.button-small { min-height: 40px; padding: 8px 15px; }
.button-large { min-height: 52px; padding: 13px 22px; }

.eyebrow { margin-bottom: 17px; color: var(--blue-700); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #a9d1ff; }
.section-heading { max-width: 610px; }
.section-heading.centered { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-heading.compact { margin-bottom: 44px; }
h1, h2, h3 { margin-top: 0; color: var(--ink-950); line-height: 1.08; letter-spacing: -.04em; }
h1 { margin-bottom: 26px; font-size: clamp(3rem, 6vw, 5.5rem); }
h1 span { color: var(--blue-700); }
h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { margin-bottom: 12px; font-size: 1.25rem; letter-spacing: -.025em; }
p { margin-top: 0; color: var(--ink-600); }

.hero { min-height: 790px; padding-top: 165px; overflow: hidden; background: linear-gradient(180deg, #fafdff 0%, #f5f9ff 72%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.01fr .99fr; align-items: center; gap: 62px; }
.hero-copy { position: relative; z-index: 2; }
.hero-lede { max-width: 680px; margin-bottom: 32px; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 27px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; color: var(--ink-500); font-size: 13px; font-weight: 650; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-orb-one { width: 560px; height: 560px; right: -210px; top: -120px; background: radial-gradient(circle, rgba(49,130,246,.14), rgba(49,130,246,0) 68%); }
.hero-orb-two { width: 400px; height: 400px; left: -180px; bottom: -140px; background: radial-gradient(circle, rgba(11,94,215,.08), rgba(11,94,215,0) 70%); }
.graph-card { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(188,205,225,.8); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-lg); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.graph-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 19px; border-bottom: 1px solid var(--line); }
.graph-title { font-weight: 750; }
.status-pill { padding: 5px 9px; border-radius: 999px; color: #14653c; background: #e6f7ed; font-size: 11px; font-weight: 800; }
.graph-canvas { padding: 18px 10px 2px; }
.graph-insight { display: flex; gap: 12px; margin: 0 16px 16px; padding: 15px 16px; border-radius: 14px; background: var(--blue-050); font-size: 13px; line-height: 1.5; }
.graph-insight strong { color: var(--ink-900); }
.graph-insight span { color: var(--ink-500); }
.insight-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700) !important; font-size: 18px; }

.trust-strip { border-top: 1px solid #edf2f7; border-bottom: 1px solid #e7edf5; background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 27px 22px; border-right: 1px solid #e7edf5; }
.trust-grid div:first-child { padding-left: 0; }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { margin-bottom: 3px; font-size: 14px; }
.trust-grid span { color: var(--ink-500); font-size: 12px; }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 31px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.icon-box { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); font-size: 23px; font-weight: 800; }
.feature-card p { margin-bottom: 0; }

.questions-section { background: linear-gradient(135deg, #f4f8fe 0%, #eef5fd 100%); }
.questions-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.text-link { color: var(--blue-700); font-weight: 750; text-decoration: none; }
.question-list { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }
.question { display: grid; grid-template-columns: 55px 1fr; gap: 19px; align-items: center; padding: 21px 25px; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; }
.question span { color: var(--blue-700); font-size: 12px; font-weight: 850; }
.question p { margin: 0; color: var(--ink-800); font-weight: 650; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.capability-card { min-height: 262px; padding: 32px; background: #fff; }
.capability-number { display: block; margin-bottom: 42px; color: var(--blue-700); font-size: 12px; font-weight: 850; }
.capability-card p { margin-bottom: 0; font-size: 14px; }

.product-section { overflow: hidden; background: radial-gradient(circle at 50% -10%, #154e93 0%, #0c2a50 52%, #081b33 100%); }
.product-section::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000 0%, transparent 82%); }
.product-heading { position: relative; z-index: 1; }
.product-heading h2, .product-heading p { color: #fff; }
.product-heading p { color: #bfd1e6; }
.product-heading code { color: #d9eaff; }
.screenshot-showcase { position: relative; z-index: 1; display: grid; grid-template-columns: 1.28fr .72fr; gap: 22px; align-items: start; }
.screenshot-stack { display: grid; gap: 22px; }
.screenshot-panel { overflow: hidden; margin: 0; border: 1px solid rgba(189,214,243,.23); border-radius: 18px; background: #f8fbff; box-shadow: 0 35px 90px rgba(0,0,0,.32); }
.browser-chrome { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border-bottom: 1px solid var(--line); background: #eef3f8; }
.browser-chrome span { width: 8px; height: 8px; border-radius: 50%; background: #b8c6d6; }
.browser-chrome strong { margin-left: 7px; color: var(--ink-600); font-size: 11px; }
.screenshot-placeholder { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: linear-gradient(135deg, #f9fbfe, #eef4fb); }
.screenshot-placeholder-small { min-height: 190px; }
.placeholder-kicker { margin-bottom: 7px; color: var(--blue-700); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.placeholder-title { margin-bottom: 8px; color: var(--ink-900); font-weight: 800; }
.placeholder-path { color: var(--ink-500); font-family: monospace; font-size: 11px; }
.screenshot-panel figcaption { padding: 15px 17px; color: var(--ink-600); background: #fff; font-size: 12px; }

.comparison-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.comparison-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.comparison-row { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row p { margin: 3px 0 0; font-size: 14px; }
.check { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--blue-700); background: var(--blue-100); font-weight: 900; }
.trademark-note { margin-top: 44px; color: var(--ink-500); font-size: 11px; text-align: center; }

.not-a-section { background: #f6f9fd; }
.not-a-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.not-a-grid > div { padding: 25px; border-top: 3px solid #cbd7e6; background: #fff; }
.not-a-grid > div > span { display: block; margin-bottom: 14px; color: #93a4b8; font-size: 28px; font-weight: 300; }
.not-a-grid strong { display: block; margin-bottom: 8px; }
.not-a-grid p { margin: 0; font-size: 13px; }

.deploy-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 76px; align-items: center; }
.deploy-terminal { overflow: hidden; border-radius: 18px; background: #0b1728; box-shadow: var(--shadow-lg); }
.terminal-top { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px; border-bottom: 1px solid #223248; background: #111f32; }
.terminal-top span { width: 8px; height: 8px; border-radius: 50%; background: #516277; }
.terminal-top strong { margin-left: 8px; color: #92a2b8; font-size: 11px; }
.deploy-terminal pre { margin: 0; padding: 32px; overflow-x: auto; color: #d7e4f3; font-size: 14px; line-height: 1.9; }
.prompt { color: #6cb1ff; font-weight: 800; }
.terminal-muted { color: #72839a; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.tech-pills span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-700); background: var(--surface); font-size: 12px; font-weight: 700; }

.open-source-section { background: linear-gradient(135deg, var(--blue-900), #0a4ca4); }
.open-source-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: center; }
.open-source-section h2, .open-source-section p { color: #fff; }
.open-source-copy p { color: #d5e4f5; font-size: 17px; }

.final-cta { background: #fff; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 52px 58px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fbfdff, #f2f7fd); box-shadow: var(--shadow-sm); }
.final-cta-inner h2 { margin-bottom: 10px; }
.final-cta-inner p { margin-bottom: 0; }
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; flex: 0 0 auto; }

.site-footer { padding: 62px 0 24px; background: #08192d; }
.brand-footer { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 44px; }
.footer-brand p { margin-top: 14px; color: #8296af; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { margin-bottom: 5px; color: #dbe7f4; font-size: 13px; }
.footer-links a { color: #8296af; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid #1d3048; color: #698098; font-size: 11px; }

.subpage { min-height: 100vh; background: linear-gradient(180deg, #fafdff, #f4f8fe); }
.subpage main { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 150px 0 80px; }
.subpage-card { width: min(720px, 100%); padding: 50px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.subpage-card p { max-width: 560px; margin: 0 auto 25px; }

@media (max-width: 1000px) {
  .section { padding: 82px 0; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid, .questions-grid, .comparison-grid, .deploy-grid, .open-source-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .graph-card { max-width: 690px; margin-inline: auto; transform: none; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-showcase { grid-template-columns: 1fr; }
  .screenshot-stack { grid-template-columns: 1fr 1fr; }
  .not-a-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
  .final-cta-actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 68px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-lg); }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: 11px 10px; }
  .primary-nav .button { margin-top: 5px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .trust-grid div:nth-child(-n+2) { border-bottom: 1px solid #e7edf5; }
  .principles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .hero { padding-top: 118px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  h2 { font-size: 2.2rem; }
  .hero-lede { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-meta { gap: 8px 12px; }
  .graph-canvas { margin-inline: -45px; }
  .trust-grid, .capability-grid, .screenshot-stack, .not-a-grid { grid-template-columns: 1fr; }
  .trust-grid div, .trust-grid div:first-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid #e7edf5; }
  .trust-grid div:last-child { border-bottom: 0; }
  .question { grid-template-columns: 37px 1fr; padding: 18px; }
  .capability-card { min-height: auto; }
  .capability-number { margin-bottom: 24px; }
  .screenshot-placeholder { min-height: 290px; }
  .screenshot-placeholder-small { min-height: 190px; }
  .deploy-terminal pre { padding: 23px; font-size: 12px; }
  .final-cta-inner { padding: 34px 25px; }
  .final-cta-actions, .final-cta-actions .button { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-bottom { flex-direction: column; }
  .subpage-card { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
