:root {
  --ink: #0f172a;
  --ink-2: #14181f;
  --body-c: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --ghost: #cbd5e1;
  --line: #e2e8f0;
  --bg: #ffffff;
  --band: #f7f9fb;
  --row: #f8fafc;
  --navy: #0b1733;
  --footer: #0a0e1a;
  --accent: #2563eb;
  --green: #15803d;
  --green-bg: #f0fdf4;
  --green-line: #bbf7d0;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink-2); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* mono label system */
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.label.accent { color: var(--accent); }

/* Nav */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; flex: none; background: var(--ink); display: grid; place-items: center; }
.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 34px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 22px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s ease, border-color .15s ease; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #16244a; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--faint); }
.btn-lg { padding: 13px 25px; font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 128px; border-bottom: 1px solid var(--line); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .38;
  -webkit-mask-image: radial-gradient(1000px 640px at 82% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(1000px 640px at 82% 30%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 80px; align-items: center; }
.hero-grid.solo { grid-template-columns: 1fr; }
.hero-grid.solo h1 { max-width: 22ch; }
.hero-grid.solo .lede { max-width: 620px; }
.hero .label { display: inline-block; margin-bottom: 30px; }
.hero .label b { color: var(--ink); font-weight: 700; }
h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.028em; font-weight: 650; color: var(--ink); margin-bottom: 28px; max-width: 19ch; }
h1 .ghost { color: var(--ghost); display: block; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.hero .lede { font-size: 18.5px; color: var(--body-c); max-width: 540px; margin-bottom: 38px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Compare */
.compare-sec { padding: 108px 0; }
.sec-head { max-width: 720px; margin-bottom: 60px; }
.sec-head .label { display: block; margin-bottom: 20px; }
h2.s { font-size: 46px; line-height: 1.08; letter-spacing: -.024em; font-weight: 650; color: var(--ink); margin-bottom: 20px; }
.sec-head p { font-size: 18px; color: var(--muted); line-height: 1.7; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cmp { border-radius: 16px; padding: 38px; }
.cmp.them { background: var(--band); border: 1px solid var(--line); }
.cmp.us { background: var(--navy); color: #fff; }
.cmp .label { display: block; margin-bottom: 24px; }
.cmp.us .label { color: #7db2ff; }
.cmp ul { list-style: none; display: flex; flex-direction: column; gap: 15px; font-size: 15px; }
.cmp li { display: flex; gap: 12px; align-items: baseline; }
.cmp.them li { color: var(--muted); }
.cmp.us li { color: #dbe4ee; }
.mk { font-family: var(--mono); font-size: 12px; flex: none; }
.mk.x { color: var(--faint); }
.mk.c { color: #4ade80; }

/* Projects (hairline grid) */
.usecases { padding: 108px 0; }
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); gap: 1px; }
.uc { background: #fff; padding: 40px 36px 36px; }
.uc .label { display: block; margin-bottom: 16px; }
.uc h3 { font-size: 18.5px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.uc p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.uc-grid.four { grid-template-columns: repeat(4, 1fr); }
.usecases { scroll-margin-top: 68px; }

/* Contact */
.pilot-band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 108px 0; }
.contact-card { display: grid; grid-template-columns: 1fr 660px; gap: 40px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 38px 38px 8px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.contact-side .label { display: block; margin-bottom: 18px; font-weight: 400; line-height: inherit; }
.fillout { min-height: 560px; min-width: 0; width: 100%; max-width: 660px; }
.contact-alt { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.contact-alt a { color: var(--accent); }

/* Dark CTA */
.cta-wrap { padding: 0 0 108px; }
.cta-panel { position: relative; overflow: hidden; background: var(--navy); border-radius: 22px; padding: 92px 72px 68px; color: #fff; }
.cta-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.cta-panel > * { position: relative; }
.cta-panel .label { color: #7db2ff; margin-bottom: 28px; display: inline-block; }
.cta-panel h2 { font-size: 52px; line-height: 1.08; letter-spacing: -.025em; font-weight: 650; color: #fff; max-width: 800px; margin-bottom: 20px; }
.cta-panel .sub { color: #a9b6c4; font-size: 17.5px; max-width: 560px; margin-bottom: 52px; line-height: 1.7; }
.cta-div { height: 1px; background: rgba(148,163,184,.25); max-width: 680px; margin-bottom: 34px; }
.cta-badges { display: flex; gap: 38px; flex-wrap: wrap; }
.cta-badges span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .17em; text-transform: uppercase; color: rgba(148,163,184,.95); }

/* Footer */
footer { background: var(--footer); color: #cbd5e1; padding: 72px 0 42px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 46px; margin-bottom: 60px; }
.foot-brand .logo { color: #fff; margin-bottom: 16px; }
.foot-brand .logo .logo-mark { background: #fff; }
.foot-brand p { font-size: 14.5px; color: var(--faint); max-width: 320px; line-height: 1.65; }
.foot-grid > div { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.foot-grid .label { color: var(--faint); margin-bottom: 6px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(148,163,184,.2); padding-top: 28px; font-size: 13.5px; color: var(--faint); }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 46px; max-width: none; }
  h2.f, h2.s, .cta-panel h2 { font-size: 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .uc-grid.four { grid-template-columns: 1fr 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { padding: 64px 40px 48px; }
  .contact-card { grid-template-columns: 1fr; gap: 8px; }
  .fillout { max-width: none; }
  .nav-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 32px 20px; }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; }
  .nav-cta .btn { justify-content: center; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 38px; }
  h2.f, h2.s, .cta-panel h2 { font-size: 32px; }
  .hero { padding: 64px 0 72px; }
  .usecases, .pilot-band { padding: 80px 0; }
  .cta-wrap { padding: 0 0 80px; }
  .compare-sec { padding: 80px 0; }
  .uc-grid.four { grid-template-columns: 1fr; }
  .cta-panel { padding: 48px 24px 40px; }
  .cta-panel h2 { font-size: 28px; }
  .cta-badges { gap: 12px 22px; }
  .contact-card { grid-template-columns: 1fr; gap: 8px; padding: 32px 22px 4px; }
  .fillout { margin: 0 -22px; width: auto; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
