/* ============================================================
   WAYMATE — design tokens + base styles
   "Premium outdoor instrument" — cinematic + tactical
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #0a0c0a;   /* deepest base */
  --surface:   #0f1410;   /* sections */
  --surface-2: #141a15;   /* cards */
  --hairline:  rgba(237, 234, 227, 0.08);
  --hairline-strong: rgba(237, 234, 227, 0.18);

  /* Type colors */
  --fg:       #EDEAE3;    /* primary text */
  --fg-soft:  rgba(237, 234, 227, 0.72);
  --fg-mute:  rgba(237, 234, 227, 0.46);
  --fg-dim:   rgba(237, 234, 227, 0.28);

  /* Accents */
  --amber:    #F59E42;
  --amber-hot:#FFB46B;
  --amber-deep:#B8721E;
  --sky:      #8FB8DE;
  --pine:     #2F5D44;

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body { line-height: 1.5; }

::selection { background: var(--amber); color: #0a0c0a; }

/* ============================================================
   Reusable type roles
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   Top chrome — global coordinate strip
   ============================================================ */
.coord-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  background: linear-gradient(to bottom, rgba(10,12,10,0.92), rgba(10,12,10,0));
  pointer-events: none;
  text-transform: uppercase;
}
.coord-strip .left, .coord-strip .right { display: flex; gap: 22px; align-items: center; }
.coord-strip .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-transform: none;
  pointer-events: auto;
}
.coord-strip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================================
   Section frame — used inside every section
   ============================================================ */
.wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: #1a1208;
  box-shadow: 0 0 0 1px rgba(245, 158, 66, 0.4), 0 12px 40px -10px rgba(245, 158, 66, 0.55);
}
.btn-primary:hover {
  background: var(--amber-hot);
  box-shadow: 0 0 0 1px rgba(245, 158, 66, 0.6), 0 18px 50px -8px rgba(245, 158, 66, 0.7);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--fg-soft);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding-top: 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg .vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(245,158,66,0.18), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 30%, transparent 40%, rgba(10,12,10,0.65) 100%),
    linear-gradient(to bottom, rgba(10,12,10,0) 0%, rgba(10,12,10,0.4) 60%, rgba(10,12,10,1) 100%);
  z-index: 2;
}
.hero-bg image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg .silhouette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(237,234,227,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237,234,227,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 0 60px;
}

.hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0;
  text-transform: uppercase;
  position: relative;
}
.hero-title .stroke {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent;
}
.hero-title .accent { color: var(--amber); }

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg);
  max-width: 580px;
  margin-top: 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-transform: none;
  display: block;
  margin-bottom: 6px;
}

/* ticker */
.ticker {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 36px; }
.ticker-track .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Route line — global SVG that traces as you scroll
   ============================================================ */
.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.route-line path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(245, 158, 66, 0.5));
}
.route-line .ghost {
  stroke: rgba(237, 234, 227, 0.08);
  stroke-width: 1;
  filter: none;
  stroke-dasharray: 4 6;
}
.route-pin {
  fill: var(--amber);
  filter: drop-shadow(0 0 8px rgba(245, 158, 66, 0.7));
}

/* ============================================================
   WHAT IT IS — section 2
   ============================================================ */
.section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--hairline);
}

.whatitis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.whatitis-left .eyebrow { margin-bottom: 28px; display: block; }
.whatitis-lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
}
.whatitis-lede .mute { color: var(--fg-mute); }
.whatitis-lede .accent { color: var(--amber); }

.whatitis-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.whatitis-body {
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.55;
  max-width: 520px;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.spec-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-list li:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--hairline); }
.spec-list li:nth-child(even) { padding-left: 24px; }
.spec-list .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.spec-list .v {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ============================================================
   MAP FEATURE — section 3
   ============================================================ */
.feature {
  position: relative;
  background: var(--surface);
  padding: 140px 0 160px;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 20%, rgba(245,158,66,0.06), transparent 70%);
  pointer-events: none;
}

.archive-feature {
  background: var(--bg);
  position: relative;
}
.archive-feature::before {
  background: radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245,158,66,0.05), transparent 70%);
}
.archive-wall {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.feature-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.feature-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}
.feature-h2 .mute { color: var(--fg-dim); }
.feature-h2 .accent { color: var(--amber); }
.feature-sub {
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.55;
  max-width: 480px;
}

.feature-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-stage.reverse { grid-template-columns: 1fr 1.3fr; }
.feature-stage.reverse .phone-stage { order: -1; }

.feature-callouts {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.callout {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  transition: border-color 0.2s ease;
  cursor: default;
}
.callout:hover { border-top-color: var(--amber); }
.callout:hover .callout-num { color: var(--amber); }
.callout-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  padding-top: 4px;
  transition: color 0.2s ease;
}
.callout-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 8px;
}
.callout-b {
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-stage::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245,158,66,0.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   Phone — Waymate Map screen
   ============================================================ */
.wm-map-screen {
  height: 100%;
  background: #0a0d0c;
  color: #EDEAE3;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

/* notes panel */
.notes {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: rgba(15, 20, 16, 0.96);
  border: 1px solid var(--hairline-strong);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 16px 18px;
  max-width: 320px;
  font-size: 12px;
  color: var(--fg-soft);
  line-height: 1.55;
  display: none;
}
.notes.open { display: block; }
.notes h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}
.notes ol { margin: 0; padding-left: 18px; }
.notes li + li { margin-top: 8px; }
.notes-tab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99;
  background: rgba(15, 20, 16, 0.96);
  border: 1px solid var(--hairline-strong);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.notes-close {
  background: none;
  border: none;
  color: var(--fg-mute);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 0;
  margin-top: 12px;
}

/* responsive */
@media (max-width: 900px) {
  .whatitis, .feature-header, .feature-stage { grid-template-columns: 1fr; gap: 48px; }
  .hero-bottom-row { grid-template-columns: 1fr; gap: 20px; }
  .coord-strip { padding: 12px 18px; font-size: 10px; gap: 12px; }
  .coord-strip .right .hide-sm { display: none; }
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
}
