/* ============ Tangerine — design tokens ============ */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #F9925A;
  --accent-hover: #FFA878;
  --accent-strong: #FF6B1F;
  --accent-ink: #2b1d00;
  --accent-wash: rgba(249, 146, 90, 0.14);
  --accent-2: #FFC531;
  --accent-2-ink: #2b1d00;
  --accent-2-wash: rgba(255, 197, 49, 0.20);
  --accent-grad: linear-gradient(135deg, #FB8A45 0%, #FFC048 100%);
  --shadow: 0 1px 2px rgba(11,11,11,.05), 0 8px 24px rgba(11,11,11,.06);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232322;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #FFA26B;
    --accent-hover: #FFB98F;
    --accent-strong: #FF8A4C;
    --accent-ink: #2b1d00;
    --accent-wash: rgba(255, 162, 107, 0.18);
    --accent-2: #FFD35A;
    --accent-2-ink: #2b1d00;
    --accent-2-wash: rgba(255, 211, 90, 0.20);
    --accent-grad: linear-gradient(135deg, #FF9B5E 0%, #FFD35A 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232322;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #FFA26B;
  --accent-hover: #FFB98F;
  --accent-strong: #FF8A4C;
  --accent-ink: #2b1d00;
  --accent-wash: rgba(255, 162, 107, 0.18);
  --accent-2: #FFD35A;
  --accent-2-ink: #2b1d00;
  --accent-2-wash: rgba(255, 211, 90, 0.20);
  --accent-grad: linear-gradient(135deg, #FF9B5E 0%, #FFD35A 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

:root { --sec-gap: clamp(2.75rem, 7vw, 4.375rem); } /* 44px mobile -> 70px desktop */

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
@media (max-width: 620px) {
  .nav-links { gap: 13px; }
  .nav-links a.wide-only { display: none; }
  .nav-cta { padding: 8px 13px; font-size: 13.5px; }
}
@media (max-width: 780px) {
  .nav-links a.nav-wide-only { display: none; }
}
@media (max-width: 460px) {
  .nav-links a.compact-hide { display: none; }
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: transparent; display: grid; place-items: center; }
.brand-mark svg { width: 17px; height: 17px; stroke: var(--accent-ink); }
.brand-mark svg .pupil { fill: var(--accent-ink); stroke: none; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a:not(.nav-cta) { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); text-decoration: none; }
.nav-cta { padding: 9px 16px; font-size: 14px; }
.theme-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
}
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; }

/* ============ Hero ============ */
.hero { padding-block: clamp(3.5rem, 9vw, 5.5rem) 0; text-align: center; }
.hero h1 { max-width: none; }
@media (max-width: 900px) { .br-lg { display: none; } .hero h1 { max-width: 17ch; } }
.hero h1, .hero .hero-sub { margin-inline: auto; }
.hero-ctas { justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-wash);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none !important; } }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 750; max-width: 17ch; }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 62ch; }
.hero-pilot-note { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--accent-strong); }
.hero-ctas { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-grad); color: var(--accent-ink); font-weight: 650; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .v { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.hero-stat .l { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ============ Sections ============ */
section { padding-block: var(--sec-gap) 0; }
#solution { padding-bottom: var(--sec-gap); }
.sec-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; }
h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.02em; line-height: 1.15; max-width: 26ch; }
.sec-sub { color: var(--ink-2); margin-top: 14px; max-width: 68ch; font-size: 16.5px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-wash); color: var(--accent-strong); font-weight: 700; margin-bottom: 14px; font-size: 15px;
}
.card-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: var(--accent-wash); }
.card-icon svg { width: 20px; height: 20px; stroke: var(--accent-strong); }

/* two-layer solution */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .layers { grid-template-columns: 1fr; } }
.layer { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.layer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent-strong); border-radius: 4px 0 0 4px; }
.layer .tag { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.layer h3 { font-size: 21px; margin: 8px 0 10px; letter-spacing: -0.015em; }
.layer p { color: var(--ink-2); font-size: 15px; }
.layer ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.layer li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.layer li::before { content: "→"; color: var(--accent-strong); font-weight: 700; flex-shrink: 0; }

/* why now */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }

/* ============ Product section (role grid + CTA to the platform) ============ */
.product-sec { background: var(--surface-2); border-block: 1px solid var(--border); padding-block: var(--sec-gap); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; }
.product-cta { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.product-note { color: var(--muted); font-size: 13.5px; }

/* ============ About ============ */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 800px) { .founders { grid-template-columns: 1fr; } }
.founder { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin-bottom: 18px;
  border: 1px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder h3 { font-size: 20px; letter-spacing: -0.015em; }
.founder .role { color: var(--accent-strong); font-weight: 600; font-size: 14px; margin: 2px 0 14px; }
.founder p { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }

/* ============ CTA / footer ============ */
.cta-band { text-align: center; padding-block: var(--sec-gap) 6rem; }
.cta-band h2 { margin: 0 auto; }
.cta-band .sec-sub { margin-inline: auto; }
.cta-band .btn { margin-top: 28px; }
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; }
.foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.foot .brand { font-size: 15px; }
.foot .right { margin-left: auto; display: flex; gap: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ============ Pilot signup ============ */
.pilot-sec { padding-block: var(--sec-gap) 6rem; }
.pilot-card {
  max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow); text-align: left;
}
.pilot-card h2 { max-width: none; }
.pilot-card .sec-sub { max-width: none; margin-top: 10px; }

.pilot-form { margin-top: 26px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--page);
  color: var(--ink); font: inherit; font-size: 15px; padding: 10px 14px; width: 100%;
}
.field select { appearance: auto; }
.field textarea { min-height: 44px; padding-block: 10px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: var(--accent-strong);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e5484d; }
.field-err { font-size: 13px; color: #e5484d; min-height: 1em; }

.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-err {
  display: none; font-size: 14px; color: #e5484d; background: rgba(229, 72, 77, .1);
  border: 1px solid rgba(229, 72, 77, .3); border-radius: 10px; padding: 10px 14px;
}
.form-err.visible { display: block; }

.pilot-submit { width: 100%; justify-content: center; min-height: 44px; }
.pilot-submit:disabled { opacity: .6; cursor: not-allowed; }
.pilot-fineprint { margin-top: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

.pilot-success h3 { font-size: 21px; letter-spacing: -0.015em; margin: 26px 0 10px; }
.pilot-success p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }

@media (max-width: 480px) {
  .pilot-card { padding: 22px; border-radius: 16px; }
}
