/* Meteor Landing Page — global page styles
   Built on top of Fleet design system tokens (colors_and_type.css) */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--fleet-bg);
  color: var(--fleet-ink-1);
  font-family: var(--fleet-font-paragraph);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Page-level override: prefer Restart Hard for body paragraphs.
     Mono is reserved for eyebrows, readouts, codes (still via --fleet-font-mono). */
  --fleet-font-paragraph: 'Restart Hard', Arial, sans-serif;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Component radius scale — page-wide rounding ─────────────
   Used for sub-containers, cards, image frames. */
:root {
  --meteor-r-card: 18px;
  --meteor-r-card-sm: 12px;
  --meteor-r-image: 16px;
}

/* On dark sections, lift sub-containers a notch above pure black so the
   nested hierarchy reads clearly. Light tone keeps surface tokens as-is. */
section[data-section]:not(.tone-light) {
  --fleet-surface-1: #14181d;
  --fleet-surface-2: #1a1f25;
  --fleet-surface-3: #232931;
  --fleet-line-1: rgba(255,255,255,0.10);
}

/* ── Layout primitives ───────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 900px) {
  .container { padding: 0 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
}

/* Section scaffold — every section opens with eyebrow + headline.
   Apple-of-mining rhythm: very generous vertical space, large titles. */
section[data-section] {
  padding: 180px 0;
  position: relative;
  background: var(--fleet-bg);
  color: var(--fleet-ink-1);
}
section[data-section]:first-of-type { padding-top: 120px; }

@media (max-width: 900px) {
  section[data-section] { padding: 100px 0; }
}
@media (max-width: 600px) {
  section[data-section] { padding: 72px 0; }
}

/* ── Section tones — alternating moods through the page ──── */
/* Default tone (dark) is already set above. */

/* Light tone — inverted surface for editorial sections. */
section[data-section].tone-light {
  --fleet-bg: #FFFFFF;
  --fleet-ink-1: #0a0a0c;
  --fleet-ink-2: rgba(0,0,0,0.74);
  --fleet-ink-3: rgba(0,0,0,0.50);
  --fleet-ink-4: rgba(0,0,0,0.28);
  --fleet-line-1: rgba(0,0,0,0.10);
  --fleet-line-2: rgba(0,0,0,0.05);
  --fleet-surface-1: #F6F7F9;
  --fleet-surface-2: #ECEFF2;
  --fleet-surface-3: #DFE3E7;
  background: #FFFFFF;
  color: #0a0a0c;
}

/* Dim tone — a softer dark for grouping (used between bright moments). */
section[data-section].tone-dim {
  --fleet-bg: #0b0d10;
  background: #0b0d10;
}

/* Cinematic tone — pure black for impact moments. */
section[data-section].tone-cinematic {
  --fleet-bg: #000000;
  background: #000000;
}

.sec-eyebrow {
  font-family: var(--fleet-font-mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--fleet-primary);
  margin: 0 0 36px;
  display: flex; align-items: center; gap: 14px;
}

.sec-title {
  font-family: var(--fleet-font-display);
  font-weight: var(--fleet-w-light);
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1.0;
  letter-spacing: -1.6px;
  margin: 0;
  text-wrap: balance;
  max-width: 1200px;
}
.sec-title em {
  font-style: normal;
  color: var(--fleet-primary);
}
.sec-subtitle {
  font-family: var(--fleet-font-paragraph);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fleet-ink-2);
  max-width: 760px;
  margin: 32px 0 0;
  text-wrap: pretty;
}

/* Eyebrow / title intro container */
.sec-intro { margin-bottom: 96px; }
.sec-intro--narrow { max-width: 980px; }

@media (max-width: 900px) {
  .sec-intro { margin-bottom: 56px; }
  .sec-title { letter-spacing: -1px; }
}
@media (max-width: 600px) {
  .sec-intro { margin-bottom: 40px; }
}
html, body { overflow-x: hidden; }
#hs-interactives-modal-overlay { display: none !important; }

/* ── Buttons (extends Fleet system) ─────────────────────── */
.fleet-btn--primary {
  height: 52px;
  padding: 0 32px;
  border-radius: var(--fleet-r-pill);
  font-family: var(--fleet-font-mono);
  font-size: 12px;
  letter-spacing: 1.8px;
}
.fleet-btn--secondary {
  height: 52px;
  padding: 0 32px;
  font-family: var(--fleet-font-mono);
  font-size: 12px;
  letter-spacing: 1.8px;
}
.fleet-btn .arrow {
  transition: transform 0.18s ease;
}
.fleet-btn:hover .arrow {
  transform: translateX(4px);
}

/* Tone-aware secondary button \u2014 inverts on light backgrounds. */
.tone-light .fleet-btn--secondary {
  color: #000;
  border-color: #000;
}
.tone-light .fleet-btn--secondary:hover {
  background: rgba(0,0,0,0.05);
}

/* Client logos are provided as white-on-transparent. Invert on light tones. */
.tone-light img[src*="assets/clients/"] {
  filter: invert(1);
}
.tone-light .client-logo-img {
  filter: invert(1);
}

/* ── Cards / surfaces ───────────────────────────────────── */
.surface-1 {
  background: var(--fleet-surface-1);
  border: 1px solid var(--fleet-line-1);
  border-radius: var(--meteor-r-card);
}
.surface-2 {
  background: var(--fleet-surface-2);
  border: 1px solid var(--fleet-line-1);
  border-radius: var(--meteor-r-card);
}

/* ── Tag pills (for Regional Scale / District Scale, platforms) ── */
.tagpill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--fleet-line-1);
  border-radius: var(--fleet-r-pill);
  font-family: var(--fleet-font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fleet-ink-2);
  background: transparent;
}
.tagpill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fleet-primary);
}
.tagpill.is-secondary .dot { background: var(--fleet-plume-3); }

/* Blue variant — for hero tags. Bright blue dot + bright blue text. */
.tagpill.is-blue {
  color: var(--fleet-primary);
  border-color: rgba(70,187,237,0.45);
}
.tagpill.is-blue .dot { background: var(--fleet-primary); }

/* ── Numeric stat readout ───────────────────────────────── */
.statbig {
  font-family: var(--fleet-font-display);
  font-weight: var(--fleet-w-light);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -1.6px;
  color: var(--fleet-ink-1);
}
.statbig .unit {
  font-size: 0.5em;
  color: var(--fleet-ink-3);
  margin-left: 4px;
  letter-spacing: -0.8px;
}
.statlbl {
  font-family: var(--fleet-font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fleet-ink-3);
  margin-top: 14px;
}

/* ── Animated underline / micro-interactions ─────────────── */
@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--fleet-success);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulseDot 1.8s ease-in-out infinite;
}

/* Reusable section-divider line motif */
.kicker-rule {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--fleet-font-mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--fleet-ink-3);
  margin-bottom: 24px;
}
.kicker-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fleet-line-1);
}

/* ── Form controls (Assess Your Project) ───────────────── */
.input {
  height: 52px;
  background: transparent;
  border: 1px solid var(--fleet-line-1);
  border-bottom: 1px solid var(--fleet-ink-3);
  border-top: none; border-left: none; border-right: none;
  padding: 0 0 0 0;
  color: var(--fleet-ink-1);
  font-family: var(--fleet-font-paragraph);
  font-size: 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.18s;
}
.input:focus { border-bottom-color: var(--fleet-primary); }
.input::placeholder { color: var(--fleet-ink-4); }

.optcard {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background: var(--fleet-surface-1);
  border: 1px solid var(--fleet-line-1);
  border-radius: var(--meteor-r-card-sm);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
  text-align: left;
  width: 100%;
  color: var(--fleet-ink-1);
  font-family: var(--fleet-font-paragraph);
  font-size: 15px;
  line-height: 1.45;
}
.optcard:hover { border-color: rgba(70,187,237,0.4); background: var(--fleet-surface-2); }
.optcard.is-selected {
  border-color: var(--fleet-primary);
  background: rgba(70,187,237,0.06);
}
.optcard .radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--fleet-ink-3);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.18s;
}
.optcard.is-selected .radio {
  border-color: var(--fleet-primary);
  border-width: 5px;
}

/* ── Animated reveal ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.5s ease-out both; }

/* Tweaks panel chrome (the panel itself) */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  background: var(--fleet-surface-2);
  border: 1px solid var(--fleet-line-1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  padding: 20px 22px;
  z-index: 100;
  min-width: 260px;
  display: none;
  font-family: var(--fleet-font-paragraph);
}
.tweaks-panel.is-on { display: block; }
.tweaks-panel h4 {
  margin: 0 0 16px;
  font-family: var(--fleet-font-mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--fleet-ink-3);
  font-weight: 400;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel .closebtn {
  background: transparent;
  border: none;
  color: var(--fleet-ink-3);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 14px;
}
.tweaks-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--fleet-line-2);
}
.tweaks-row:first-of-type { border-top: none; }
.tweaks-row label {
  font-family: var(--fleet-font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fleet-ink-2);
}
.tweaks-row select,
.tweaks-row input[type="text"] {
  background: var(--fleet-surface-3);
  color: var(--fleet-ink-1);
  border: 1px solid var(--fleet-line-1);
  padding: 6px 10px;
  font-family: var(--fleet-font-mono);
  font-size: 12px;
}
.tweak-switch {
  appearance: none;
  width: 36px; height: 20px;
  background: var(--fleet-surface-3);
  position: relative; cursor: pointer; border: none;
}
.tweak-switch:checked { background: var(--fleet-primary); }
.tweak-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  transition: left 0.18s;
}
.tweak-switch:checked::after { left: 18px; }

/* ── Scrollbar polish ─────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05060a; }
::-webkit-scrollbar-thumb { background: var(--fleet-surface-3); border: 2px solid #05060a; }
::-webkit-scrollbar-thumb:hover { background: var(--fleet-ink-4); }
html { scrollbar-color: var(--fleet-surface-3) #05060a; }
