/* OpsDNA landing concepts — shared base (Quiet Ledger, elevated) */
@import url("https://rsms.me/inter/inter.css");
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --canvas: #ffffff;
  --paper: #fcfcfa;
  --mist: #fafafa;
  --ink: #0a0a0a;
  --graphite: #4a4a4a;
  --slate: #8a8a8a;
  --azure: #0088ff;
  --azure-deep: #0066d6;
  --azure-wash: rgba(0, 136, 255, 0.08);
  --azure-line: rgba(0, 136, 255, 0.42);
  --border: rgba(0, 0, 0, 0.08);
  --hairline: rgba(0, 0, 0, 0.06);
  --wash: rgba(0, 0, 0, 0.04);
  --success: #15803d;
  --danger: #b91c1c;
  --warning: #b7791f;
  --font-sans: 'InterVariable', 'Inter', -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1, "zero" 1, "ss01" 1, "cv11" 1;
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  padding-bottom: 104px;
  overflow-x: hidden;
}

/* Paper grain overlay for tactile texture */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 60;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
body.dark::after { mix-blend-mode: screen; opacity: 0.045; }

::selection { background: var(--azure-wash); color: var(--ink); }
body.dark ::selection { background: rgba(0, 136, 255, 0.3); color: #fff; }

.num { font-variant-numeric: tabular-nums slashed-zero; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1; }

/* ---- Type Elements ---- */
.eyebrow {
  font-size: 11px; line-height: 1.4; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--azure); display: inline-block;
}
h1.display {
  font-family: var(--font-serif); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(38px, 6.4vw, 76px); margin: 0; color: var(--ink);
  text-wrap: balance;
}
h1.display em { font-style: italic; font-weight: 500; }
.sub {
  font-family: var(--font-serif); font-style: italic; color: var(--graphite);
  font-size: clamp(17px, 1.9vw, 22px); line-height: 1.5; margin: 0; max-width: 40ch;
}

/* Dotted citation links */
.cite-link {
  color: var(--azure);
  text-decoration: none;
  border-bottom: 1px dotted var(--azure-line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cite-link:hover {
  color: var(--azure-deep);
  border-bottom-style: solid;
  border-bottom-color: var(--azure);
}

/* ---- Layout Components ---- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); position: relative; z-index: 2; }
.hero { min-height: calc(100vh - 104px); display: flex; align-items: center; }
.stack > * + * { margin-top: 26px; }

/* ---- Orchestrated Reveals ---- */
@keyframes ccReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; animation: ccReveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { animation: none; opacity: 1; transform: none; }
}

/* ---- Navigation Header ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--hairline); }
.nav .inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px,5vw,56px); height: 66px;
  display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 46px; display: block; overflow: visible; }
.brand .wm { font-family: var(--font-serif); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand .wm small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 13px; color: var(--graphite); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

.nav .right { display: flex; align-items: center; gap: 22px; }
.nav .tag { font-size: 12.5px; color: var(--slate); }
.nav .cta { font-size: 13px; font-weight: 500; color: #fff; background: var(--ink); border-radius: 8px;
  padding: 9px 16px; text-decoration: none; transition: background .15s ease; }
.nav .cta:hover { background: #000; }
@media (max-width: 820px) { .nav-links, .nav .tag { display: none; } }

/* ---- Waitlist (Request Access Form) ---- */
.waitlist { display: flex; gap: 8px; max-width: 460px; width: 100%; }
.waitlist input {
  flex: 1; height: 48px; padding: 0 16px; font: inherit; font-size: 14px;
  color: var(--ink); background: var(--canvas);
  border: 1px solid var(--border); border-radius: 7px; outline: none;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.waitlist input::placeholder { color: var(--slate); }
.waitlist input:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px var(--azure-wash), 0 0 0 1px var(--azure);
}
.waitlist button {
  height: 48px; padding: 0 24px; font: inherit; font-size: 13px; font-weight: 500;
  color: #fff; background: var(--ink); border: none; border-radius: 8px;
  cursor: pointer; white-space: nowrap; transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
}
.waitlist button:hover { background: #000; box-shadow: 0 6px 22px rgba(10,10,10,.18); }
.waitlist button:active { transform: translateY(1px); }
.waitlist-note { font-size: 12px; color: var(--slate); margin: 14px 0 0; letter-spacing: 0; }
.waitlist-err { font-size: 12.5px; color: var(--danger); margin: 12px 0 0; letter-spacing: 0; }
body.dark .waitlist-err, .band-dark .waitlist-err { color: #ff8080; }
.waitlist.done { font-size: 14px; color: var(--graphite); min-height: 48px; display: flex; align-items: center; gap: 10px; }
.waitlist.done .tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px; background: var(--azure-wash);
  color: var(--azure); font-size: 12px; font-weight: 700; flex: none;
}

body.dark .waitlist input { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.16); color: #f3f4f6; }
body.dark .waitlist input::placeholder { color: #6b7280; }
body.dark .waitlist input:focus { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(0,136,255,0.18), 0 0 0 1px var(--azure); }
body.dark .waitlist button { background: var(--azure); color: #04101f; font-weight: 600; }
body.dark .waitlist button:hover { background: #2a9bff; box-shadow: 0 6px 26px rgba(0,136,255,.35); }
body.dark .waitlist-note { color: #6b7280; }
body.dark .waitlist.done { color: #9ca3af; }
body.dark .waitlist.done .tick { background: rgba(0,136,255,0.16); }

/* ---- Product Primitives Grid ---- */
.primitives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.primitive-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.primitive-card:hover {
  border-color: var(--azure-line);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}
.primitive-card .p-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--azure);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.primitive-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.primitive-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--graphite);
  margin: 0;
}

/* ---- Roadmap Timeline ---- */
.timeline-container {
  position: relative;
  margin-top: 50px;
  padding: 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.timeline-container::-webkit-scrollbar { display: none; }

.timeline-track {
  display: flex;
  gap: 32px;
  min-width: 800px;
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.timeline-node {
  flex: 1;
  position: relative;
  z-index: 2;
  padding-top: 36px;
}
.timeline-dot {
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--canvas);
  border: 2px solid var(--slate);
  transition: border-color 0.25s, transform 0.25s, background-color 0.25s;
}
.timeline-node.active .timeline-dot {
  border-color: var(--azure);
  background-color: var(--azure-wash);
  transform: scale(1.3);
}
.timeline-node:hover .timeline-dot {
  border-color: var(--azure);
  transform: scale(1.3);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-bottom: 6px;
  display: block;
}
.timeline-node.active .timeline-date {
  color: var(--azure);
  font-weight: 500;
}
.timeline-node h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.timeline-node p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--graphite);
  margin: 0;
}

/* ---- Floating Concept Switcher (Preview Chrome) ---- */
.cc-switcher {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 9999;
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px; background: rgba(10, 10, 10, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-sans); font-size: 12px; letter-spacing: -0.005em;
  max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
}
.cc-switcher::-webkit-scrollbar { display: none; }
.cc-switcher a {
  color: rgba(255, 255, 255, 0.6); text-decoration: none; padding: 6px 13px;
  border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  transition: background .14s ease, color .14s ease;
}
.cc-switcher a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.cc-switcher a.is-current { color: #fff; background: var(--azure); }
.cc-switcher .cc-n { font-variant-numeric: tabular-nums; opacity: .55; font-size: 11px; }
.cc-switcher .cc-home {
  color: rgba(255, 255, 255, 0.92); font-weight: 600; padding: 6px 15px 6px 11px;
  margin-right: 4px; border-right: 1px solid rgba(255, 255, 255, 0.13); border-radius: 0;
}
.cc-switcher .cc-home:hover { background: none; color: #fff; }

@media (max-width: 720px) { .cc-switcher .cc-label { display: none; } }
