:root {
  --bg: #07080d;
  --bg-2: #0d0f17;
  --text: #f5f7fa;
  --muted: #9aa3b2;
  --faint: #6b7483;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.03);
  --indigo: #6d5ef9;
  --violet: #9b8cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, #9b8cff 0%, #6d9bff 50%, #22d3ee 100%);
  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { color: var(--muted); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-cta, .site-nav .nav-cta[aria-current="page"] { color: var(--bg); background: var(--text); padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.site-nav .nav-cta:hover { color: var(--bg); background: #fff; }

/* Shared type */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
h1 .grad.line { display: block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font: 500 13px/1 var(--mono); color: var(--violet); letter-spacing: 0.02em; margin-bottom: 18px; }
.section-lede { color: var(--muted); font-size: clamp(18px, 2vw, 20px); max-width: 36em; margin-top: 20px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 25%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 25%, #000 10%, transparent 75%);
}
.aurora {
  position: absolute; z-index: -1; top: -240px; right: -160px;
  width: 860px; height: 700px; pointer-events: none;
  background:
    radial-gradient(closest-side at 38% 42%, rgba(109, 94, 249, .55), transparent),
    radial-gradient(closest-side at 68% 58%, rgba(34, 211, 238, .28), transparent);
  filter: blur(40px);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-70px, 40px, 0) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: clamp(72px, 10vw, 128px); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h1 { font-size: clamp(46px, 7.2vw, 88px); letter-spacing: -0.045em; line-height: 0.98; }
.hero p.lede { color: var(--muted); font-size: clamp(18px, 2.1vw, 21px); max-width: 31em; margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Hero panel */
.panel {
  border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 80px -30px rgba(109, 94, 249, .7);
}
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 400 13px/1 var(--mono); color: var(--muted); }
.panel-bar b { display: flex; gap: 6px; }
.panel-bar b i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.stages { list-style: none; margin: 0; padding: 12px 20px 16px; }
.stages li { display: flex; align-items: center; gap: 14px; padding: 13px 0; font-size: 15px; }
.stages li + li { border-top: 1px solid var(--line); }
.stages .n { font: 400 12px/1 var(--mono); color: var(--faint); }
.stages .bar { margin-left: auto; width: 88px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.stages .bar::after { content: ""; display: block; height: 100%; border-radius: 4px; background: var(--grad); animation: fill 5s ease-in-out infinite alternate; transform-origin: left; }
.stages li:nth-child(2) .bar::after { animation-delay: -1s; }
.stages li:nth-child(3) .bar::after { animation-delay: -2s; }
.stages li:nth-child(4) .bar::after { animation-delay: -3s; }
.stages li:nth-child(5) .bar::after { animation-delay: -4s; }
@keyframes fill { from { transform: scaleX(.25); } to { transform: scaleX(1); } }

/* Capability strip */
.strip { border-block: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; color: var(--muted); font: 400 14px/1.4 var(--mono); }

/* Sections */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section + .section { border-top: 1px solid var(--line); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: rgba(255, 255, 255, .05); }
.card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109, 94, 249, .35), transparent);
  opacity: .6; pointer-events: none;
}
.card:nth-child(2)::after, .card:nth-child(3)::after { background: radial-gradient(closest-side, rgba(34, 211, 238, .25), transparent); }
.c-4 { grid-column: span 4; } .c-2 { grid-column: span 2; } .c-3 { grid-column: span 3; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); margin-bottom: 44px; color: var(--text); }
.icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); max-width: 32em; }

/* Approach */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.steps li::before { content: "0" counter(s); display: block; font: 400 13px/1 var(--mono); color: var(--violet); margin-bottom: 26px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Portfolio */
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.empty {
  margin-top: 48px; padding: clamp(40px, 7vw, 80px) 32px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(109, 94, 249, .16), transparent 70%);
}
.empty h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.empty p { color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 48px; }
.product { text-decoration: none; color: inherit; max-width: 560px; }
.product .tag { align-self: flex-start; font: 500 12px/1 var(--mono); color: var(--cyan); border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; padding: 7px 11px; margin-bottom: 36px; }
.product .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--text); font-weight: 500; }
.product .more svg { width: 14px; height: 14px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px);
  border: 1px solid var(--line-strong); border-radius: 28px;
  background: var(--bg-2);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 90% at 90% 10%, rgba(109, 94, 249, .55), transparent),
    radial-gradient(ellipse 50% 80% at 70% 110%, rgba(34, 211, 238, .28), transparent);
}
.cta p { color: var(--muted); font-size: clamp(18px, 2vw, 20px); margin-top: 18px; max-width: 30em; }

/* Inner pages */
.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .aurora { top: -420px; opacity: .8; }
.page-head .narrow, .page-head .wrap { padding-block: clamp(64px, 9vw, 112px) clamp(48px, 6vw, 72px); }
.page-head h1 { font-size: clamp(42px, 6.4vw, 72px); }
.page-head .lede { color: var(--muted); font-size: clamp(18px, 2.1vw, 21px); margin-top: 22px; max-width: 34em; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.facts div { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.facts dt { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: block; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.contact-card.primary { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(109, 94, 249, .2), rgba(34, 211, 238, .08)); border-color: var(--line-strong); }
.contact-card h2 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.contact-card p { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.contact-card span { font-size: 15px; overflow-wrap: anywhere; }
.address { margin-top: 40px; color: var(--muted); font-size: 15px; }

.prose h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: #c4cad4; margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.meta { color: var(--muted); font-size: 15px; margin-top: 16px; }
mark { background: rgba(250, 204, 21, .18); color: #fde68a; padding: 1px 5px; border-radius: 5px; }
.notice { background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .35); color: #fde68a !important; padding: 14px 18px; border-radius: 12px; font-size: 15px; margin-bottom: 36px !important; }
.notice strong { color: inherit !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Reveal on scroll, where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .c-4, .c-2, .c-3 { grid-column: span 3; }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 40px); }
  .site-header .wrap { height: 60px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
  .site-nav .nav-cta { padding: 7px 13px; }
  .bento, .steps, .facts, .contact-grid { grid-template-columns: 1fr; }
  .c-4, .c-2, .c-3 { grid-column: auto; }
  .card { padding: 26px; }
  .icon { margin-bottom: 30px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .aurora { width: 560px; height: 520px; right: -220px; top: -180px; }
  .strip ul { justify-content: flex-start; }
}

/* App pages */
.subnav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 22px; margin-bottom: 36px !important; border-bottom: 1px solid var(--line); font-size: 15px; }
.subnav a { text-decoration: none; }
.summary { border: 1px solid var(--line-strong); background: var(--card); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; color: #c4cad4; }
.summary strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.ar { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.ar ul { padding-left: 0; padding-right: 20px; }
.prose .ar-title { font-size: clamp(26px, 4vw, 34px); margin-top: 0; }
