*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --ink: #0b1024;
  --ink-soft: #25304d;
  --paper: #f5f3ed;
  --white: #ffffff;
  --mist: #e8e9e4;
  --line: rgba(11, 16, 36, 0.14);
  --muted: #5f687d;
  --blue: #2945ff;
  --blue-dark: #1830d4;
  --orange: #e75b24;
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1240px;
  --header-height: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--white); background: var(--blue); }

.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 500; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-height); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.header.scrolled { background: rgba(245, 243, 237, .92); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; }
.header-logo { width: 144px; text-decoration: none; }
.logo-svg { width: 144px; height: auto; }
.header-nav { display: flex; gap: 30px; align-items: center; }
.header-nav a, .footer-links a { position: relative; font-size: 14px; font-weight: 600; text-decoration: none; }
.header-nav a::after, .footer-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--blue); transition: right .25s var(--ease); }
.header-nav a:hover::after, .footer-links a:hover::after { right: 0; }
.header-download { padding: 10px 15px; color: var(--white); background: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.header-download:hover { background: var(--blue); transform: translateY(-2px); }
.header-download:active { transform: translateY(0) scale(.98); }
.header-menu-btn { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.header-menu-btn span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .25s var(--ease); }
.header-menu-btn.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.header-menu-btn.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; }

.hero { position: relative; min-height: 100dvh; padding: 150px 0 84px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; opacity: .56; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, black 10%, transparent 88%); }
.hero::before { content: ''; position: absolute; width: 42vw; height: 42vw; min-width: 440px; min-height: 440px; right: -14vw; top: -12vw; border: 1px solid rgba(41, 69, 255, .25); transform: rotate(18deg); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .72fr); gap: clamp(50px, 8vw, 116px); align-items: center; }
.eyebrow, .section-index, .platform-label { color: var(--blue); font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 760px; font-family: var(--font-display); font-size: clamp(60px, 7.4vw, 112px); font-weight: 700; letter-spacing: -.075em; line-height: .88; text-wrap: balance; }
.hero h1 span { color: var(--blue); }
.hero-subtitle { max-width: 620px; margin-top: 32px; color: var(--ink-soft); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border: 1px solid transparent; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .22s var(--ease), background .22s, box-shadow .22s; }
.btn-primary { color: var(--white); background: var(--blue); box-shadow: 10px 10px 0 var(--ink); }
.btn-primary:hover { background: var(--blue-dark); transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 7px 7px 0 var(--ink); }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 700; text-underline-offset: 5px; }
.text-link span { transition: transform .2s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }
.source-note { display: flex; gap: 9px; align-items: center; margin-top: 30px; color: var(--muted); font-size: 13px; }
.source-note span { width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }

.product-preview { position: relative; padding: 22px; border: 1px solid var(--ink); background: var(--white); box-shadow: 18px 18px 0 rgba(41, 69, 255, .14); transform: rotate(1.5deg); }
.product-preview::before { content: ''; position: absolute; inset: -8px 8px 8px -8px; z-index: -1; border: 1px solid var(--blue); }
.preview-topbar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.preview-status { color: var(--orange); }
.prompt-block, .response-block { padding: 24px 0; }
.response-block { border-top: 1px solid var(--line); }
.message-label { display: block; margin-bottom: 10px; color: var(--blue); font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.prompt-block p { font-size: 16px; font-weight: 600; line-height: 1.55; }
.response-block ul { display: grid; gap: 9px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 14px; }
.response-block li { position: relative; padding-left: 18px; }
.response-block li::before { content: '+'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.preview-link { display: block; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; }

.statement { padding: 112px 0 132px; background: var(--white); }
.statement-grid { display: grid; grid-template-columns: .32fr 1fr; gap: 60px; }
.statement h2, .section-heading h2, .use-case-intro h2, .boundaries h2, .download h2 { font-family: var(--font-display); font-size: clamp(42px, 5.6vw, 78px); letter-spacing: -.055em; line-height: 1; text-wrap: balance; }
.statement h2 { max-width: 860px; }
.statement-grid > div > p { max-width: 690px; margin: 30px 0 22px; color: var(--ink-soft); font-size: 19px; }
.statement-links { display: flex; flex-wrap: wrap; gap: 14px 28px; }

.capabilities { padding: 118px 0; border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .32fr 1fr; gap: 60px; align-items: start; margin-bottom: 72px; }
.capability-list { border-top: 1px solid var(--ink); }
.capability-row { display: grid; grid-template-columns: .12fr .48fr .4fr; gap: 30px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.capability-number { color: var(--orange); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.capability-row h3 { font-family: var(--font-display); font-size: clamp(23px, 2.4vw, 34px); letter-spacing: -.035em; line-height: 1.1; }
.capability-row p { max-width: 480px; color: var(--muted); font-size: 16px; }

.use-cases { padding: 126px 0; background: var(--white); }
.use-case-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 9vw, 140px); }
.use-case-intro { position: sticky; top: 120px; align-self: start; }
.use-case-intro h2 { margin-top: 18px; }
.use-case-intro > p:last-child { max-width: 420px; margin-top: 28px; color: var(--muted); font-size: 18px; }
.use-case-stack { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.use-case-stack article { padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.use-case-stack span { color: var(--orange); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.use-case-stack h3 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(25px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.use-case-stack p { max-width: 580px; margin-top: 12px; color: var(--muted); }

.boundaries { padding: 124px 0; color: var(--white); background: var(--ink); overflow: hidden; }
.boundaries-layout { display: grid; grid-template-columns: .32fr 1fr; gap: 60px; align-items: start; }
.boundary-mark { color: var(--orange); font-family: var(--font-display); font-size: clamp(90px, 13vw, 190px); font-weight: 700; letter-spacing: -.12em; line-height: .65; }
.boundaries .section-index { color: #8fa1ff; }
.boundaries h2 { margin-top: 18px; }
.boundaries p:not(.section-index) { max-width: 720px; margin: 30px 0 24px; color: #bfc5d5; font-size: 18px; }
.text-link.light { color: var(--white); }

.download { padding: 116px 0 130px; }
.download-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: end; }
.download h2 { margin-top: 16px; }
.download-layout > div:first-child > p:last-child { max-width: 620px; margin-top: 26px; color: var(--muted); font-size: 18px; }
.download-panel { padding: 30px; border: 1px solid var(--ink); background: var(--white); }
.download-panel .btn { width: 100%; margin: 18px 0; justify-content: space-between; }
.btn-cta { color: var(--white); background: var(--orange); }
.btn-cta:hover { background: #cb4615; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 16, 36, .16); }
.download-panel p { color: var(--muted); font-size: 13px; line-height: 1.55; }

.footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--mist); }
.footer-content { display: grid; grid-template-columns: 1fr auto auto; gap: 44px; align-items: end; }
.footer-brand a { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-decoration: none; }
.footer-brand p, .footer-copyright { margin-top: 4px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-animate].visible { opacity: 1; transform: none; }

/* Shared content pages */
.page-shell { min-height: 100dvh; padding: 145px 0 100px; }
.page-header { display: grid; grid-template-columns: .28fr 1fr; gap: 52px; padding-bottom: 64px; border-bottom: 1px solid var(--ink); }
.page-header h1 { max-width: 900px; font-family: var(--font-display); font-size: clamp(44px, 7vw, 88px); letter-spacing: -.06em; line-height: .95; text-wrap: balance; }
.page-header .page-deck { max-width: 720px; margin-top: 25px; color: var(--ink-soft); font-size: 19px; }
.article-layout { display: grid; grid-template-columns: .28fr minmax(0, 760px); gap: 52px; padding-top: 64px; }
.article-aside { color: var(--muted); font-size: 13px; }
.article-aside a { display: inline-block; margin-top: 16px; font-weight: 700; }
.prose { min-width: 0; }
.prose h2 { margin: 64px 0 20px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 42px 0 14px; font-family: var(--font-display); font-size: 25px; letter-spacing: -.025em; line-height: 1.2; }
.prose p, .prose li { color: var(--ink-soft); font-size: 17px; }
.prose p + p { margin-top: 18px; }
.prose ul, .prose ol { display: grid; gap: 10px; margin: 18px 0 24px; padding-left: 22px; }
.prose blockquote { margin: 24px 0; padding: 22px 24px; border-left: 4px solid var(--blue); background: var(--white); font-size: 17px; }
.prose .callout { margin-top: 48px; padding: 28px; color: var(--white); background: var(--ink); }
.prose .callout p { color: #cbd0dc; }
.prose .callout a { color: var(--white); font-weight: 700; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { padding: 30px 0; border-bottom: 1px solid var(--line); }
.faq-item h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); }
.contact-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.contact-card { padding: 26px; border: 1px solid var(--line); background: var(--white); }
.contact-card h2 { margin: 0 0 8px; font-size: 24px; }
.back-home { font-weight: 700; }
.not-found { display: grid; place-items: center; min-height: 100dvh; padding: 40px; text-align: center; }
.not-found strong { display: block; color: var(--blue); font-family: var(--font-display); font-size: clamp(100px, 24vw, 260px); letter-spacing: -.1em; line-height: .7; }
.not-found h1 { margin-top: 34px; font-family: var(--font-display); font-size: clamp(34px, 6vw, 62px); }
.not-found p { max-width: 520px; margin: 16px auto 26px; color: var(--muted); }

@media (max-width: 920px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav, .header-download { display: none; }
  .header-menu-btn { display: block; }
  .mobile-menu { position: fixed; inset: var(--header-height) 0 auto; z-index: 90; display: grid; gap: 0; padding: 16px 20px 26px; border-bottom: 1px solid var(--line); background: var(--paper); opacity: 0; transform: translateY(-20px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .mobile-menu.active { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 20px; font-weight: 600; text-decoration: none; }
  .hero-layout, .download-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 126px; }
  .hero-copy { max-width: 760px; }
  .product-preview { max-width: 620px; transform: none; }
  .use-case-layout { grid-template-columns: 1fr; }
  .use-case-intro { position: static; }
  .footer-content { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .header-logo, .logo-svg { width: 122px; }
  .hero { min-height: auto; padding: 116px 0 78px; }
  .hero::before { display: none; }
  .hero h1 { font-size: clamp(50px, 17vw, 76px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .btn-primary { width: 100%; }
  .product-preview { margin-top: 18px; padding: 18px; box-shadow: 10px 10px 0 rgba(41, 69, 255, .14); }
  .statement, .capabilities, .use-cases, .boundaries, .download { padding: 82px 0 92px; }
  .statement-grid, .section-heading, .boundaries-layout, .page-header, .article-layout { grid-template-columns: 1fr; gap: 22px; }
  .section-heading { margin-bottom: 44px; }
  .capability-row { grid-template-columns: 42px 1fr; gap: 14px; }
  .capability-row p { grid-column: 2; }
  .boundary-mark { font-size: 84px; }
  .download-panel { padding: 20px; }
  .footer-links { gap: 14px 20px; }
  .page-shell { padding: 112px 0 76px; }
  .page-header { padding-bottom: 42px; }
  .article-layout { padding-top: 42px; }
  .article-aside { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .contact-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
}
