/* ── LANDING PAGE (Navigator Program) ───────────────────────
   Page-specific styles for src/landing.html. Extracted from the
   original inline <style> block. Shared tokens, resets, nav/footer
   base rules live in /assets/site.css — we only keep the overrides
   and page-unique behaviour here. */

/* ── BACK-HOME LOGO ────────────────────────────────── */
.landing-logo {
  position: fixed; top: 24px; left: 32px;
  z-index: 9999; display: flex; align-items: center;
  opacity: 0.8; transition: opacity 0.2s;
}
.landing-logo:hover { opacity: 1; }
.landing-logo img { display: block; height: 26px; width: auto; filter: brightness(0) invert(1); }

/* Landing-only tokens layered on top of site.css design tokens. */
:root {
  --silver: #A4A4A4;
  --blue-dim: rgba(28,51,255,0.12);
  --blue-border: rgba(28,51,255,0.35);
}

/* ── BODY (page-specific dark canvas + dotted grid) ─────── */
body {
  background: #000000;
  background-image: radial-gradient(rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #FFFFFF;
  line-height: 1.6;
  cursor: auto;
}

/* ── GRAIN ─────────────────────────────────────────── */
.grain {
  position: fixed; inset: -150%; width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%224%22%20stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22200%22%20height%3D%22200%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fsvg%3E");
  background-size: 160px 160px;
  opacity: 0.036;
  pointer-events: none;
  z-index: 997;
  animation: grain 0.55s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-3%,-4%); }
  20%  { transform: translate(4%, 2%); }
  30%  { transform: translate(-2%, 5%); }
  40%  { transform: translate(3%,-2%); }
  50%  { transform: translate(-4%, 1%); }
  60%  { transform: translate(1%,-3%); }
  70%  { transform: translate(-3%, 4%); }
  80%  { transform: translate(4%,-4%); }
  90%  { transform: translate(-1%, 3%); }
}

/* ── SCROLL PROGRESS ───────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 1.5px; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue) 0%, rgba(28,51,255,0.3) 100%);
  z-index: 999; pointer-events: none;
}


/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }



/* ── NAV (page-specific dark overrides) ─────────────
   Landing page has a dark aesthetic end-to-end — keep the bar dark at
   every scroll position (override site.css's scrolled/light variants). */
nav#mainNav,
nav#mainNav.scrolled,
nav#mainNav.light {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
nav#mainNav .nav-logo svg { height: 22px; width: auto; display: block; }
/* Keep hamburger white over the dark bar. */
nav#mainNav .nav-burger,
nav#mainNav.scrolled .nav-burger,
nav#mainNav.light    .nav-burger { color: #fff; }
nav#mainNav .nav-cta {
  font-size: 13px; font-weight: 500; padding: 8px 22px;
  border: 0.5px solid rgba(255,255,255,0.18); border-radius: 100px;
  color: var(--white); transition: background 0.2s, border-color 0.2s;
  background: transparent;
  white-space: nowrap;
}
nav#mainNav .nav-cta:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 8rem 2rem 5rem; position: relative; overflow: hidden;
}

.term-restart {
  margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.25);
  font-size: 11px; cursor: pointer; font-family: monospace; padding: 0 4px;
  transition: color 0.2s;
}
.term-restart:hover { color: rgba(255,255,255,0.6); }
.hero-blob {
  position: absolute; top: 50%; left: 50%;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28,51,255,0.1) 0%, rgba(28,51,255,0.04) 40%, transparent 68%);
  transform: translate(-50%,-50%);
  pointer-events: none;
  animation: blob-float 12s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
@keyframes blob-float {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  25%      { transform: translate(-46%,-54%) scale(1.07); }
  50%      { transform: translate(-54%,-47%) scale(0.95); }
  75%      { transform: translate(-48%,-53%) scale(1.04); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); padding: 6px 16px;
  border: 0.5px solid var(--blue-border); border-radius: 100px; margin-bottom: 2rem;
  position: relative; z-index: 1;
  opacity: 0; animation: fade-up 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: pip-pulse 2s ease-in-out infinite;
}
@keyframes pip-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.03em; max-width: 760px; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  opacity: 0; animation: fade-up 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
h1 em { color: var(--blue); font-style: normal; }
.h1-cursor { color: var(--blue); animation: blink 1s steps(1) infinite; font-style: normal; }
.hero-sub {
  font-size: 1.05rem; color: var(--silver); max-width: 460px; margin-bottom: 3rem;
  line-height: 1.75; position: relative; z-index: 1;
  opacity: 0; animation: fade-up 0.8s 0.85s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
  opacity: 0; animation: fade-up 0.8s 1.1s cubic-bezier(0.16,1,0.3,1) forwards;
}
.app-counter {
  margin-top: 1.75rem; font-size: 12px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px;
  position: relative; z-index: 1;
  opacity: 0; animation: fade-up 0.8s 1.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
.app-counter-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #28c840;
  animation: pip-pulse 2s ease-in-out infinite;
}
.app-counter strong { color: rgba(255,255,255,0.7); font-weight: 500; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS (page-specific variants) ───────────────── */
.btn-primary {
  font-size: 14px; font-weight: 500; padding: 14px 32px; border-radius: 100px;
  background: var(--blue); color: var(--white); border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.2s, box-shadow 0.2s; will-change: transform;
}
.btn-primary:hover { opacity: 0.86; box-shadow: 0 0 48px rgba(28,51,255,0.38); }
.btn-secondary {
  font-size: 14px; font-weight: 500; padding: 14px 32px; border-radius: 100px;
  background: transparent; color: var(--silver);
  border: 0.5px solid rgba(255,255,255,0.18); transition: all 0.2s; will-change: transform;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.38); color: var(--white); }

/* ── STATS ─────────────────────────────────────────── */
.stats {
  display: flex; justify-content: center;
  border-top: 0.5px solid rgba(255,255,255,0.07);
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.stat { flex: 1; max-width: 220px; padding: 2.5rem 2rem; text-align: center; border-right: 0.5px solid rgba(255,255,255,0.07); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 500; letter-spacing: -0.03em; }
.stat-num em { color: var(--blue); font-style: normal; }
.stat-label { font-size: 12px; color: var(--silver); margin-top: 4px; }


/* ── SECTIONS ──────────────────────────────────────── */
section { padding: 4rem 2rem; max-width: 1000px; margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.25rem; }
.section-sub { font-size: 1rem; color: var(--silver); max-width: 580px; line-height: 1.75; }

/* ── PERKS ─────────────────────────────────────────── */
.perks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; margin-top: 3.5rem;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden;
}
.perk {
  padding: 2rem; background: var(--black);
  transform-style: preserve-3d; will-change: transform;
  transition: background 0.3s;
  cursor: default;
}
.perk:hover { background: #0a0a0a; }
.perk-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-dim); border: 0.5px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  transition: background 0.3s, border-color 0.3s;
}
.perk:hover .perk-icon { background: rgba(28,51,255,0.2); border-color: rgba(28,51,255,0.6); }
.perk-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.5; }
.perk h3 { font-size: 15px; font-weight: 500; margin-bottom: 0.5rem; }
.perk p {
  font-size: 13px; color: var(--silver); line-height: 1.65;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease, margin 0.3s;
  margin-top: 0;
}
.perk:hover p { max-height: 200px; opacity: 1; margin-top: 0.5rem; }

/* ── TIMELINE ──────────────────────────────────────── */
.timeline { margin-top: 3.5rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 0.5px;
  background: rgba(255,255,255,0.07);
  transform-origin: top; transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.timeline.line-in::before { transform: scaleY(1); }
.tl-item {
  display: flex; gap: 2rem; padding-bottom: 2.5rem;
  opacity: 0; transform: translateX(-14px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.tl-item.in { opacity: 1; transform: none; }
.tl-dot { transition: border-color 0.4s, box-shadow 0.4s; }
.tl-item.in .tl-dot {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(28,51,255,0.35);
}
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--black);
  border: 0.5px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1;
}
.tl-dot span { font-size: 11px; font-weight: 500; color: var(--blue); }
.tl-content { padding-top: 4px; }
.tl-date { font-size: 11px; color: var(--silver); letter-spacing: 0.06em; margin-bottom: 4px; text-transform: uppercase; }
.tl-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.tl-desc { font-size: 13px; color: var(--silver); line-height: 1.6; }

/* ── JURY ──────────────────────────────────────────── */
.jury-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 3rem;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden;
}
.jury-card {
  position: relative; overflow: hidden; background: var(--black);
  transition: background 0.3s;
}
.jury-card:hover { background: #080808; }
.jury-photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top;
  filter: grayscale(100%); opacity: 0.82; display: block;
  transition: filter 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.jury-card:hover .jury-photo { filter: grayscale(0%); opacity: 1; transform: scale(1.03); }
.jury-info { padding: 1.25rem 1.25rem 1.5rem; border-top: 0.5px solid rgba(255,255,255,0.06); }
.jury-institution {
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 5px;
}
.jury-name { font-size: 15px; font-weight: 500; line-height: 1.25; margin-bottom: 4px; }
.jury-role { font-size: 12px; color: var(--silver); line-height: 1.45; }
.jury-quote { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; margin-top: 10px; padding-top: 10px; border-top: 0.5px solid rgba(255,255,255,0.06); font-style: italic; }
.jury-photo-placeholder {
  width: 100%; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px,
    transparent 1px, transparent 8px
  );
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.jury-photo-placeholder svg { width: 45%; height: 45%; opacity: 0.4; }
@media (max-width: 640px) {
  .jury-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MARQUEE ───────────────────────────────────────── */
.marquee-strip {
  overflow: hidden; white-space: nowrap;
  border-top: 0.5px solid rgba(255,255,255,0.05);
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  padding: 0.9rem 0; background: #040404;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: running !important; }
.marquee-track span {
  font-size: 11px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(164,164,164,0.5); padding: 0 1.6rem;
}
.marquee-track span.acc { color: rgba(28,51,255,0.5); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── FIT GRID ──────────────────────────────────────── */
.fit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 3rem;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden;
}
.fit-card {
  padding: 1.75rem; background: var(--black);
  transition: background 0.2s;
}
.fit-card:hover { background: #080808; }
.fit-icon {
  width: 32px; height: 32px; margin-bottom: 1rem;
  color: var(--blue);
}
.fit-icon svg { width: 100%; height: 100%; }
.fit-card h4 { font-size: 14px; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.3; }
.fit-card p { font-size: 13px; color: var(--silver); line-height: 1.65; }
.flow-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 3rem 0 2rem;
}
.flow-divider::before, .flow-divider::after {
  content: ''; flex: 1; height: 0.5px; background: rgba(255,255,255,0.07);
}
.flow-divider span { font-size: 12px; color: var(--silver); letter-spacing: 0.06em; white-space: nowrap; }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } }

/* ── FLOWCHART ─────────────────────────────────────── */
.flowchart { margin-top: 3rem; }
.flow-step { display: none; animation: flow-in 0.35s cubic-bezier(0.16,1,0.3,1); }
.flow-step.active { display: block; }
@keyframes flow-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.flow-pips { display: flex; gap: 6px; margin-bottom: 1.75rem; }
.flow-pip { width: 22px; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,0.1); transition: background 0.3s; }
.flow-pip.done   { background: var(--blue); }
.flow-pip.active { background: rgba(28,51,255,0.45); }
.flow-question { font-size: 1.05rem; font-weight: 500; margin-bottom: 1.25rem; letter-spacing: -0.01em; line-height: 1.35; }
.flow-options { display: flex; gap: 10px; flex-wrap: wrap; }
.flow-btn {
  font-size: 13px; font-weight: 500; padding: 10px 24px; border-radius: 100px;
  border: 0.5px solid rgba(255,255,255,0.14); background: transparent;
  color: var(--white); font-family: inherit; transition: all 0.2s;
}
.flow-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.flow-result {
  display: none; padding: 1.5rem 1.75rem; border-radius: 12px; margin-top: 0.5rem;
  animation: flow-in 0.35s cubic-bezier(0.16,1,0.3,1);
}
.flow-result.eligible   { border: 0.5px solid var(--blue-border); background: var(--blue-dim); }
.flow-result.ineligible { border: 0.5px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.025); }
.flow-result-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.flow-result.eligible   .flow-result-label { color: var(--blue); }
.flow-result.ineligible .flow-result-label { color: var(--silver); }
.flow-result-title { font-size: 1rem; font-weight: 500; margin-bottom: 6px; }
.flow-result p { font-size: 13px; color: var(--silver); line-height: 1.6; }
.flow-result .flow-cta { margin-top: 1.25rem; }
.flow-reset {
  margin-top: 1.25rem; font-size: 11px; color: var(--silver); letter-spacing: 0.08em;
  text-transform: uppercase; background: none; border: none; font-family: inherit;
  padding: 4px 0; transition: color 0.2s; display: none;
}
.flow-reset:hover { color: var(--white); }

/* ── COUNTDOWN ─────────────────────────────────────── */
.countdown-strip {
  display: flex; justify-content: center; align-items: center; gap: 0;
  padding: 2.5rem 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.05);
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  background: #030303;
}
.countdown-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver); margin-right: 3rem;
}
.countdown-units { display: flex; gap: 1px; }
.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem 1.5rem; background: rgba(255,255,255,0.025);
  border: 0.5px solid rgba(255,255,255,0.06);
  min-width: 80px;
}
.countdown-unit:first-child { border-radius: 8px 0 0 8px; }
.countdown-unit:last-child  { border-radius: 0 8px 8px 0; }
.countdown-num {
  font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; color: var(--white);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.countdown-unit-label { font-size: 10px; color: var(--silver); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }
@media (max-width: 640px) {
  .countdown-strip { flex-direction: column; gap: 1.5rem; }
  .countdown-label { margin-right: 0; }
  .countdown-unit { min-width: 64px; padding: 0.75rem 1rem; }
  .countdown-num { font-size: 1.5rem; }
}

/* ── PARTNERS ───────────────────────────────────────── */
.partners-strip {
  padding: 2.5rem 2rem; text-align: center;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
}
.partners-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(164,164,164,0.4); margin-bottom: 1.75rem;
}
.partners-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 3rem; flex-wrap: wrap;
}
.partner-logo {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(164,164,164,0.35); transition: color 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.partner-logo:hover { color: rgba(164,164,164,0.7); }
.partner-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ── HARDWARE PARTNERS ──────────────────────────────── */
.hardware-section {
  padding: 5rem 2rem; max-width: 1000px; margin: 0 auto;
}
.hardware-header { margin-bottom: 3rem; }
.hw-featured {
  display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden;
}
.hw-divider { background: rgba(255,255,255,0.05); }
.hw-cell {
  padding: 2.5rem 2.25rem; background: var(--black);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.hw-cell-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
/* Section divider — thin hairline on top, used between major sections. */
.section-divider { border-top: 0.5px solid rgba(255, 255, 255, 0.05); }

/* Marquee at the top of the hero, butted up against the hero block above. */
.marquee-strip.is-flush { margin-top: 0; }

/* Adds breathing room on top of an element following dense markup
   (e.g. faq-tabs above the apply form). */
.with-top-gap { margin-top: 2rem; }

/* Inside the terminal: spacer line. */
.term-line.is-spaced { margin-top: 0.5rem; }

.hw-cell-value.is-text { font-size: 1.1rem; color: rgba(255, 255, 255, 0.7); }
.hw-cell-value {
  font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
}
.hw-cell-sub {
  font-size: 12px; color: var(--silver); margin-top: 0.25rem; line-height: 1.6;
}
.hw-cell-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); padding: 5px 12px; margin-top: 0.5rem;
  border: 0.5px solid var(--blue-border); border-radius: 100px;
  background: var(--blue-dim); width: fit-content;
}
.hw-cell-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.hardware-note {
  margin-top: 1.5rem; font-size: 13px; color: var(--silver); line-height: 1.7;
}
@media (max-width: 640px) {
  .hw-featured { grid-template-columns: 1fr; }
  .hw-divider { display: none; }
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-tabs { display: flex; gap: 4px; margin-bottom: 2rem; }
.apply-section .faq-tabs { justify-content: center; }
.faq-tab {
  font-size: 12px; font-weight: 500; padding: 8px 18px; border-radius: 100px;
  border: 0.5px solid rgba(255,255,255,0.1); background: transparent;
  color: var(--silver); font-family: inherit; transition: all 0.2s;
}
.faq-tab.active { background: rgba(28,51,255,0.12); border-color: var(--blue-border); color: var(--white); }
.faq-tab:hover:not(.active) { border-color: rgba(255,255,255,0.25); color: var(--white); }
.faq-panel { display: none; }
.faq-panel.active { display: block; }
.faq-item {
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.faq-item:first-child { border-top: 0.5px solid rgba(255,255,255,0.06); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; background: none; border: none; font-family: inherit;
  font-size: 15px; font-weight: 500; color: var(--white); text-align: left;
  gap: 1rem; transition: color 0.2s;
}
.faq-q:hover { color: rgba(255,255,255,0.7); }
.faq-icon {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), background 0.2s;
}
.faq-icon svg { width: 8px; height: 8px; stroke: var(--silver); fill: none; stroke-width: 2.5; transition: stroke 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue-dim); border-color: var(--blue-border); }
.faq-item.open .faq-icon svg { stroke: var(--blue); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
  padding-bottom: 0;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.25rem; }
.faq-a p { font-size: 14px; color: var(--silver); line-height: 1.7; }

/* ── NEWSLETTER ─────────────────────────────────────── */
.newsletter-block {
  padding: 2rem 2.5rem; border-top: 0.5px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-copy { font-size: 13px; color: var(--silver); }
.newsletter-copy strong { color: var(--white); font-weight: 500; display: block; margin-bottom: 3px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  padding: 10px 14px; border-radius: 100px;
  border: 0.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: var(--white);
  font-size: 13px; font-family: inherit; outline: none; width: 220px;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--blue); }
.newsletter-form input::placeholder { color: var(--silver); }
.newsletter-btn {
  font-size: 12px; font-weight: 500; padding: 10px 20px; border-radius: 100px;
  background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.15);
  color: var(--white); font-family: inherit; transition: all 0.2s; white-space: nowrap;
}
.newsletter-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
@media (max-width: 640px) {
  .newsletter-block { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; }
}

/* ── TAGLINE ───────────────────────────────────────── */
.tagline-block {
  text-align: center; padding: 6rem 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.05);
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  background: #040404;
}
.tagline-block p {
  font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.82); max-width: 680px; margin: 0 auto 2.5rem; line-height: 1.5;
}
.tagline-block em { color: var(--blue); font-style: normal; }

/* ── APPLY / TERMINAL ──────────────────────────────── */
.apply-section { text-align: center; padding: 4rem 2rem; }
.apply-section h2 { margin-bottom: 1rem; }
.apply-section .section-sub { margin: 0 auto 2.5rem; }
.form-note { font-size: 12px; color: var(--silver); margin-top: 1rem; text-align: center; }

.terminal {
  max-width: 580px; margin: 2rem auto 0;
  background: #0a0a0a; border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 80px rgba(28,51,255,0.08);
  text-align: left;
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #111;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }
.terminal-bar span { font-size: 11px; color: rgba(255,255,255,0.3); margin-left: 8px; font-family: monospace; }
.term-restart {
  margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.25);
  font-size: 11px; cursor: pointer; font-family: monospace; padding: 0 4px;
  transition: color 0.2s;
}
.term-restart:hover { color: rgba(255,255,255,0.6); }
.terminal-body { padding: 1.5rem; font-family: 'SF Mono','Fira Code','Consolas',monospace; font-size: 13px; line-height: 1.8; min-height: 320px; }
.term-line { display: flex; gap: 8px; margin-bottom: 1px; }
.term-prompt { color: var(--blue); user-select: none; flex-shrink: 0; }
.term-output { color: rgba(255,255,255,0.4); }
.term-answer { color: #fff; }
.term-question { color: rgba(255,255,255,0.65); margin: 0.6rem 0 0.2rem; }
.term-input-row { display: flex; gap: 8px; align-items: center; margin-top: 0.2rem; }
#term-input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-family: 'SF Mono','Fira Code','Consolas',monospace;
  font-size: 13px; line-height: 1.8; caret-color: var(--blue);
}
.term-cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--blue); vertical-align: middle;
  animation: blink 1s steps(1) infinite; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.term-success { color: #28c840; }
.term-err { color: #ff5f57; }

#form-refer form { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
#form-refer input {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 0.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035); color: var(--white);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color 0.2s; -webkit-appearance: none;
}
#form-refer input:focus { border-color: var(--blue); }
#form-refer input::placeholder { color: var(--silver); }

/* ── FOOTER (page-specific dark overrides) ────────── */
footer {
  border-top: 0.5px solid rgba(255,255,255,0.07);
  padding: 2rem 2.5rem; display: flex; justify-content: space-between;
  font-size: 11px; color: var(--silver); letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero-blob, .hero-badge::before, .marquee-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  h1, .hero-sub, .hero-actions, .hero-badge { opacity: 1 !important; animation: none !important; }
}

/* ── ROSBAG DROP ZONE ────────────────────────────────── */
.rosbag-section { text-align: center; padding: 5rem 2rem; max-width: 1000px; margin: 0 auto; }
.rosbag-section h2 { margin-bottom: 1rem; }
.rosbag-section .section-sub { margin: 0 auto 2.5rem; }

.rosbag-container { max-width: 620px; margin: 0 auto; }

.drop-zone {
  position: relative; padding: 3rem 2rem;
  border: 1.5px dashed rgba(28,51,255,0.3);
  border-radius: 16px; background: rgba(28,51,255,0.03);
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--blue); background: rgba(28,51,255,0.07);
  transform: scale(1.01);
}
.drop-zone-icon {
  width: 48px; height: 48px; margin: 0 auto 1.25rem;
  border-radius: 14px; background: var(--blue-dim);
  border: 0.5px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.drop-zone:hover .drop-zone-icon { background: rgba(28,51,255,0.2); }
.drop-zone-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.5; }
.drop-zone h3 { font-size: 16px; font-weight: 500; margin-bottom: 0.5rem; }
.drop-zone p { font-size: 13px; color: var(--silver); line-height: 1.6; }
.drop-zone-formats { font-size: 11px; color: rgba(164,164,164,0.5); margin-top: 0.75rem; letter-spacing: 0.04em; }
.drop-zone input[type="file"] { display: none; }

.rosbag-file-info {
  display: none; margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.03); border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 12px; text-align: left;
}
.rosbag-file-info.visible { display: block; animation: flow-in 0.35s cubic-bezier(0.16,1,0.3,1); }
.rosbag-file-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.rosbag-file-name .file-icon { color: var(--blue); font-size: 16px; }
.rosbag-file-size { font-size: 12px; color: var(--silver); }
.rosbag-file-remove {
  float: right; background: none; border: none; color: rgba(255,255,255,0.3);
  font-size: 11px; cursor: pointer; font-family: monospace; transition: color 0.2s;
}
.rosbag-file-remove:hover { color: #ff5f57; }

.rosbag-progress {
  display: none; margin-top: 1rem; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.rosbag-progress.visible { display: block; }
.rosbag-progress-bar {
  height: 100%; width: 0; background: var(--blue);
  border-radius: 2px; transition: width 0.3s ease;
}

.rosbag-email-row {
  display: none; margin-top: 1.5rem; gap: 8px; align-items: center;
}
.rosbag-email-row.visible { display: flex; animation: flow-in 0.35s cubic-bezier(0.16,1,0.3,1); }
.rosbag-email-row input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  border: 0.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035); color: var(--white);
  font-size: 14px; outline: none; font-family: inherit;
  transition: border-color 0.2s;
}
.rosbag-email-row input:focus { border-color: var(--blue); }
.rosbag-email-row input::placeholder { color: var(--silver); }
.rosbag-submit {
  padding: 12px 24px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: var(--blue); color: #fff; border: none; font-family: inherit;
  transition: opacity 0.2s, box-shadow 0.2s; white-space: nowrap; cursor: pointer;
}
.rosbag-submit:hover { opacity: 0.86; box-shadow: 0 0 32px rgba(28,51,255,0.3); }
.rosbag-submit:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.rosbag-success {
  display: none; margin-top: 1.5rem; padding: 1.5rem;
  border: 0.5px solid var(--blue-border); background: var(--blue-dim);
  border-radius: 12px; text-align: center;
}
.rosbag-success.visible { display: block; animation: flow-in 0.35s cubic-bezier(0.16,1,0.3,1); }
.rosbag-success h4 { font-size: 15px; font-weight: 500; margin-bottom: 0.5rem; }
.rosbag-success p { font-size: 13px; color: var(--silver); line-height: 1.6; }


/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 860px) {
  /* Allow shared site.css hamburger pattern to wrap rows correctly. */
  nav#mainNav {
    flex-wrap: wrap; height: auto; min-height: 58px;
    padding: 0 1.25rem;
  }
  nav#mainNav .nav-logo { order: 1; height: 58px; display: flex; align-items: center; }
  nav#mainNav .nav-right {
    order: 3;
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    gap: 8px;
    max-height: 0; overflow: hidden;
    padding: 0;
    transition: max-height .25s ease, padding .25s ease;
  }
  nav#mainNav.open { background: rgba(0,0,0,0.95); border-bottom: 0.5px solid rgba(255,255,255,0.12); }
  nav#mainNav.open .nav-right { max-height: 260px; padding: 0 0 16px; }
  nav#mainNav .nav-cta {
    text-align: center; padding: 12px 18px; font-size: 14px;
    min-height: 44px; display: inline-flex; justify-content: center;
  }
}
@media (max-width: 900px) {
  section { padding: 4rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-blob { width: 600px; height: 600px; }
  .hero-sub { max-width: 100%; }
  .stat { padding: 2rem 1rem; }
  .stat-num { font-size: 1.8rem; }
  .perks,
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .jury-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-featured { grid-template-columns: 1fr; }
  .hw-divider { display: none; }
  .hw-cell { padding: 1.75rem 1.5rem; }
  .partners-logos { gap: 1.5rem 2rem; }
  .countdown-label { margin-right: 1.5rem; }
  .countdown-unit { min-width: 72px; padding: 0.9rem 1rem; }
  .tagline-block { padding: 4.5rem 1.5rem; }
  .newsletter-block { padding: 1.75rem 1.5rem; gap: 1.25rem; }
  footer { padding: 1.5rem; flex-wrap: wrap; gap: 8px; }
  /* Simplify decorative connector line on tablet */
  .flow-divider::before,
  .flow-divider::after { flex: 0.5; }
  .hardware-section { padding: 4rem 1.5rem; }
  .rosbag-section { padding: 4rem 1.5rem; }
}
@media (max-width: 640px) {
  nav#mainNav { padding: 0 1.25rem; }
  .stats { flex-wrap: wrap; }
  .stat {
    min-width: 50%; max-width: none; flex: 1 1 50%;
    padding: 1.75rem 0.75rem;
    border-right: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
  }
  .stat:nth-child(2n) { border-right: none; }
  h1 { font-size: 2.2rem; max-width: 100%; }
  .hero { padding: 6rem 1.25rem 3.5rem; min-height: auto; }
  .hero-blob { width: 420px; height: 420px; }
  .hero-badge { font-size: 10px; padding: 5px 12px; }
  .hero-sub { font-size: 0.98rem; margin-bottom: 2rem; }
  .hero-actions { gap: 10px; width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { justify-content: center; width: 100%; min-height: 44px; }
  .app-counter { text-align: center; justify-content: center; }
  section { padding: 3rem 1.25rem; }
  h2 { font-size: 1.7rem; }
  .section-sub { font-size: 0.95rem; }
  /* Cards reflow to single column */
  .perks,
  .fit-grid,
  .jury-grid { grid-template-columns: 1fr; }
  .perk { padding: 1.5rem; }
  .fit-card { padding: 1.5rem; }
  /* Timeline: shrink gap and dot */
  .tl-item { gap: 1.25rem; padding-bottom: 2rem; }
  .timeline::before { left: 11px; }
  .tl-dot { width: 22px; height: 22px; }
  .tl-dot span { font-size: 10px; }
  .tl-title { font-size: 14px; }
  .tl-desc { font-size: 12.5px; }
  /* Flow / quiz buttons wrap */
  .flow-options { flex-direction: column; align-items: stretch; }
  .flow-btn { width: 100%; padding: 12px 18px; min-height: 44px; }
  .flow-question { font-size: 1rem; }
  /* Countdown: stack label above, unit sizes */
  .countdown-strip { flex-direction: column; gap: 1.25rem; padding: 2rem 1rem; }
  .countdown-label { margin-right: 0; }
  .countdown-unit { min-width: 58px; padding: 0.75rem 0.75rem; }
  .countdown-num { font-size: 1.4rem; }
  /* Hardware */
  .hardware-section { padding: 3rem 1.25rem; }
  .hw-cell { padding: 1.5rem 1.25rem; }
  .hw-cell-value { font-size: 1.35rem; }
  /* FAQ tabs wrap */
  .faq-tabs { flex-wrap: wrap; }
  .faq-tab { min-height: 40px; }
  .faq-q { font-size: 14px; padding: 1rem 0; }
  .faq-a p { font-size: 13px; }
  /* Tagline */
  .tagline-block { padding: 3.5rem 1.25rem; }
  .tagline-block p { margin-bottom: 2rem; }
  /* Newsletter: already stacks (existing 640 rule) */
  .newsletter-block { padding: 1.5rem 1.25rem; }
  .newsletter-form input { width: 100%; min-width: 0; }
  .newsletter-btn { min-height: 40px; }
  /* Terminal */
  .terminal { margin: 1.5rem auto 0; max-width: 100%; }
  .terminal-body { padding: 1rem; font-size: 12px; min-height: 260px; }
  /* Apply section */
  .apply-section { padding: 3rem 1.25rem; }
  /* Footer */
  footer {
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 1.25rem;
  }
  /* Partners: tighten gap and centre */
  .partners-strip { padding: 2rem 1.25rem; }
  .partners-logos { gap: 1rem 1.5rem; }
  /* Buttons: ensure 40px touch target */
  .btn-primary, .btn-secondary { min-height: 44px; }
  .nav-burger { min-width: 44px; min-height: 44px; }
  /* Hide decorative connector lines on very narrow screens */
  .flow-divider::before,
  .flow-divider::after { display: none; }
  .flow-divider { justify-content: center; text-align: center; }
  /* Media safety — avoid overflow on images/video only (decorative SVGs
     keep their explicit dimensions for pixel-precise layout). */
  img, video { max-width: 100%; height: auto; }
  /* Rosbag drop zone */
  .rosbag-section { padding: 3rem 1.25rem; }
  .drop-zone { padding: 2rem 1.25rem; }
  .rosbag-email-row { flex-direction: column; align-items: stretch; }
  .rosbag-submit { width: 100%; min-height: 44px; }
}
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .stat { min-width: 100%; flex: 1 1 100%; }
  .countdown-units { flex-wrap: wrap; justify-content: center; gap: 1px; }
  .hero-blob { width: 320px; height: 320px; }
}
