/* ============================================================
   LAYCAN — operator's terminal skin, v2
   Dark canvas · amber signal · mono data readouts
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-panel: #10151d;
  --bg-panel-2: #151b25;
  --border: #232b38;
  --border-bright: #2e3949;
  --text: #e8ecf1;
  --text-dim: #9aa7b8;
  --text-faint: #5c6b80;
  --amber: #ffb020;
  --amber-bright: #ffc043;
  --amber-dim: #b8802a;
  --steel: #4a90a4;
  --danger: #ff6b5e;
  --mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 768px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-panel: 0 1px 0 rgba(255,255,255,0.03) inset, 0 16px 40px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255,176,32,0.25); color: #fff; }

a { color: var(--amber); }
a:hover { color: var(--amber-bright); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

/* ---- STICKY MINI-NAV (appears after scrolling past hero) ---- */
.mini-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,20,0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: flex-start;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease-out);
}
.mini-nav.visible {
  transform: translateY(0);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.6);
}
.mini-nav .brand { margin-bottom: 0; font-size: 13px; }

/* ---- HERO ---- */
.hero {
  padding-top: 120px; padding-bottom: 80px; text-align: center;
  position: relative; overflow: visible;
}
.hero::before {
  content: ''; position: absolute; top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 880px; max-width: 120vw; height: 560px; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at center, rgba(255,176,32,0.09) 0%, rgba(255,176,32,0) 70%),
    radial-gradient(ellipse 80% 60% at center, rgba(74,144,164,0.05) 0%, rgba(74,144,164,0) 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 15%; right: 15%;
  height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,176,32,0.35), transparent);
}
.hero > * { position: relative; }

.brand {
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.22em;
  font-size: 14px; color: var(--amber); text-transform: uppercase;
  margin-bottom: 36px; display: inline-flex; align-items: center; gap: 10px;
}
.brand::before {
  content: ''; width: 8px; height: 8px; background: var(--amber);
  box-shadow: 0 0 12px rgba(255,176,32,0.6);
}
.hero .brand { display: inline-flex; }

/* When .brand wraps the approved SVG lockup (nav, success, privacy), the logo
   already carries its own amber signal bar — drop the decorative dot + link
   underline so it reads as a clean mark. */
.brand:has(svg) { text-decoration: none; line-height: 0; }
.brand:has(svg)::before { display: none; }
.brand svg { display: block; }

h1 {
  font-size: clamp(32px, 6vw, 54px); font-weight: 700; line-height: 1.12;
  color: #fff; margin-bottom: 24px; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 2.4vw, 19px); color: var(--text-dim);
  line-height: 1.6; max-width: 580px; margin: 0 auto 40px;
  text-wrap: pretty;
}
.hero-note {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-faint);
  letter-spacing: 0.02em; margin-top: 28px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 15.5px; padding: 13px 28px; border-radius: 6px;
  text-decoration: none; line-height: 1.4;
  transition: transform 0.12s var(--ease-out), box-shadow 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out),
              filter 0.15s var(--ease-out);
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  color: #1a1408;
  box-shadow: 0 0 0 1px rgba(255,176,32,0.35),
              inset 0 1px 0 rgba(255,255,255,0.28),
              0 10px 28px -12px rgba(255,176,32,0.45);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(255,176,32,0.5),
              inset 0 1px 0 rgba(255,255,255,0.28),
              0 14px 32px -12px rgba(255,176,32,0.55);
}
.btn-ghost {
  background: rgba(255,255,255,0.02); color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover { border-color: var(--steel); background: rgba(74,144,164,0.06); }
.btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---- FEED CARD (the product preview — treated as a terminal readout) ---- */
.card {
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  border-radius: 6px;
  padding: 16px 20px 15px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  margin: 26px 0 4px;
  position: relative;
  box-shadow: var(--shadow-panel);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
              transform 0.2s var(--ease-out);
}
.card:hover {
  transform: translateY(-1px);
  border-color: var(--border-bright);
  border-left-color: var(--amber-bright);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 20px 48px -20px rgba(0,0,0,0.8),
              0 0 24px -12px rgba(255,176,32,0.25);
}
.card-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(35,43,56,0.8);
}
.card .name {
  color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
}
.card .tag {
  display: inline-block;
  background: rgba(255,176,32,0.10); color: var(--amber);
  border: 1px solid rgba(255,176,32,0.35);
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px;
  letter-spacing: 0.08em; margin-left: 8px; white-space: nowrap;
}
.card-head .tag { margin-left: 0; }
.card .line { display: block; margin-top: 5px; font-size: 13px; }
.card .line:first-of-type { margin-top: 0; }
.card .overdue {
  color: var(--danger); font-weight: 600; letter-spacing: 0.05em;
  text-shadow: 0 0 14px rgba(255,107,94,0.4);
}

/* ---- HEADINGS / BODY ---- */
h2 {
  font-size: clamp(24px, 4vw, 32px); font-weight: 700; color: #fff;
  line-height: 1.25; margin-bottom: 20px; letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 + p { margin-top: -4px; }
p { color: var(--text-dim); margin-bottom: 16px; font-size: 16px; text-wrap: pretty; }
p strong { color: var(--text); font-weight: 600; }
p em { color: var(--text); }

ul.plain { list-style: none; margin: 22px 0; }
ul.plain li {
  color: var(--text-dim); margin-bottom: 13px; padding-left: 24px;
  position: relative; font-size: 16px;
}
ul.plain li strong { color: var(--text); }
ul.plain li::before {
  content: '—'; position: absolute; left: 0; color: var(--amber-dim);
  font-family: var(--mono);
}

/* ---- FEATURES ---- */
.feature { margin-top: 52px; }
.feature:first-of-type { margin-top: 44px; }
.feature-label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--amber);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px;
  display: block;
}
.feature h3 {
  font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -0.01em;
  line-height: 1.35; margin-bottom: 10px;
}
.feature p { font-size: 15.5px; }

/* ---- COMPARISON / QUOTE ---- */
.callout {
  font-size: clamp(20px, 3vw, 25px); font-weight: 600; color: #fff;
  letter-spacing: -0.015em; line-height: 1.4; margin: 32px 0;
  border-left: 2px solid var(--steel); padding: 4px 0 4px 22px;
}
.stat-line {
  font-family: var(--mono); color: var(--amber); font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---- FOUNDING COHORT ---- */
.cohort-box {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #171e29, var(--bg-panel));
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 48px 40px 44px;
  margin-top: 36px;
  text-align: center;
  box-shadow: var(--shadow-panel);
}
.cohort-box::before {
  content: ''; position: absolute; top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 320px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,176,32,0.08) 0%, rgba(255,176,32,0) 70%);
}
.cohort-box::after {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,176,32,0.55), transparent);
}
.cohort-box > * { position: relative; }
.cohort-cap {
  font-family: var(--mono); font-size: 52px; font-weight: 600;
  color: var(--amber); line-height: 1;
  text-shadow: 0 0 32px rgba(255,176,32,0.35);
  font-variant-numeric: tabular-nums;
}
.cohort-cap-label {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 10px; margin-bottom: 30px;
}
.price-row {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  margin: 6px 0 30px;
}
.price {
  font-size: 52px; font-weight: 700; color: #fff; letter-spacing: -0.03em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.price-period { font-size: 17px; color: var(--text-dim); }
.price-strike {
  font-family: var(--mono); color: var(--text-faint);
  text-decoration: line-through; text-decoration-color: rgba(255,107,94,0.6);
  font-size: 18px; margin-left: 12px;
}
.cohort-box ul.plain {
  text-align: left; max-width: 400px; margin: 0 auto 34px;
  border-top: 1px solid var(--border); padding-top: 26px;
}
.cohort-box ul.plain li { font-size: 15px; margin-bottom: 12px; }
.cohort-box ul.plain li:last-child { margin-bottom: 0; }

/* ---- SEAT COUNTER (dormant -- see js/main.js SEATS_CLAIMED. Hidden until
   a founder sets SEATS_CLAIMED > 0; never fake, per Manifesto SS7.5) ---- */
.seat-counter {
  display: none; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.04em; color: var(--amber);
  background: rgba(255,176,32,0.07); border: 1px solid rgba(255,176,32,0.3);
  border-radius: 4px; padding: 8px 16px; margin-bottom: 26px;
}
.seat-counter.active { display: inline-block; }

/* ---- PROOF STRIP (honest data-scale stats, no logos/testimonials yet) ---- */
.proof-strip {
  padding: 30px 0; text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px;
}
.proof-stat {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.proof-stat strong { color: var(--text); font-weight: 500; }

/* ---- FOUNDER NOTE ---- */
.founder-note {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-left: 2px solid var(--steel);
  border-radius: 6px; padding: 22px 24px; margin: 32px 0 0;
  box-shadow: var(--shadow-panel);
}
.founder-note p { margin-bottom: 0; font-size: 15px; }
.founder-note .sign {
  display: block; margin-top: 12px; color: var(--text-faint);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
}

/* ---- SCROLL REVEAL (restrained: fade + 14px rise, one pass, no re-trigger
   on scroll-up -- never full-page choreography). Respects reduced-motion. ---- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---- FORM ---- */
.form-fields { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin-top: 28px; }
.form-fields input {
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text); padding: 14px 16px; border-radius: 6px;
  font-size: 15px; font-family: var(--sans);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.form-fields input::placeholder { color: var(--text-faint); }
.form-fields input:focus {
  outline: none; border-color: var(--amber-dim);
  box-shadow: 0 0 0 3px rgba(255,176,32,0.12);
}
.form-fields .btn { margin-top: 8px; align-self: flex-start; }

/* ---- FAQ ---- */
.faq-item { padding: 24px 0; border-top: 1px solid var(--border); }
.faq-item:first-of-type { margin-top: 12px; }
.faq-item:last-child { padding-bottom: 0; }
.faq-item h4 {
  font-size: 16.5px; font-weight: 600; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.faq-item p { font-size: 15px; margin-bottom: 0; }

/* ---- SUCCESS PAGE ---- */
.success-wrap {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative;
}
.success-wrap::before {
  content: ''; position: absolute; top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 640px; max-width: 100vw; height: 400px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,176,32,0.07) 0%, rgba(255,176,32,0) 70%);
}
.success-wrap > * { position: relative; }
.success-icon {
  font-family: var(--mono); font-size: 30px; color: var(--amber);
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,176,32,0.35);
  background: rgba(255,176,32,0.06);
  box-shadow: 0 0 32px -8px rgba(255,176,32,0.35);
  margin-bottom: 28px;
}

/* ---- FOOTER ---- */
footer { padding: 48px 0 64px; text-align: center; border-top: 1px solid var(--border); }
footer p {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-faint); margin-bottom: 8px;
}
footer a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--text-dim); }

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .mini-nav, .form-fields input { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---- MOBILE (verified at 375px) ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding-top: 88px; padding-bottom: 60px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row { max-width: 320px; margin: 0 auto; }
  .btn { text-align: center; }
  .card { padding: 14px 16px 13px; font-size: 12.5px; }
  .card .line { font-size: 12.5px; }
  .card .name { font-size: 13px; }
  .cohort-box { padding: 36px 22px 36px; }
  .cohort-cap { font-size: 44px; }
  .price { font-size: 44px; }
  .form-fields .btn { align-self: stretch; }
  .proof-strip { gap: 8px 24px; }
}
