/* ============================================================================
   HOMEPAGE STYLES
============================================================================ */

/* ========== HERO CORE ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #020617;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
  padding: 7rem 0 6rem;
}

/* ========== COPY ========== */
.hero-copy {
  max-width: 520px;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1.4rem;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.hero h1 {
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
  color: #f1f5f9;
}

.hero h1 .accent {
  display: block;
  color: #93c5fd;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 440px;
  margin-bottom: 2.4rem;
}

/* ========== SOLID CTAs ========== */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 54px;
  padding: 0 1.7rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    0 8px 24px -6px rgba(37, 99, 235, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.25),
    0 16px 32px -8px rgba(37, 99, 235, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  border: 1px solid #334155;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: #475569;
  transform: translateY(-1px);
}

/* ========== TYPEWRITER ========== */
.hero-typewriter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  min-height: 1.5em;
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #60a5fa;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ========== CINEMATIC VISUAL STAGE ========== */
.hero-visual {
  position: relative;
}

.visual-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #0f172a;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.1),
    0 32px 64px -16px rgba(0, 0, 0, 0.65),
    0 0 80px -20px rgba(37, 99, 235, 0.25);
}

/* Scenes */
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

.scene.active {
  opacity: 1;
  z-index: 1;
}

.scene video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) contrast(1.12) saturate(0.85);
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.75) 0%,
    transparent 45%,
    rgba(2, 6, 23, 0.25) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.scene-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(10px);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  align-self: flex-end;
  background: rgba(15, 23, 42, 0.75);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(10px);
}

.live-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: live 1.8s ease-in-out infinite;
}

@keyframes live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

/* Command layer (always visible) */
.command-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.flow-line {
  stroke-dasharray: 14 10;
  animation: flow 5s linear infinite;
}

.flow-line.delay {
  animation-duration: 7s;
  animation-direction: reverse;
}

@keyframes flow {
  to { stroke-dashoffset: -48; }
}

/* Floating data chips */
.data-chip {
  position: absolute;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  backdrop-filter: blur(14px);
  min-width: 110px;
}

.chip-title {
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.chip-value {
  font-size: 1.15rem;
  font-weight: 650;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.chip-1 { top: 1.4rem; left: 1.4rem; }
.chip-2 { top: 1.4rem; right: 1.4rem; }
.chip-3 { bottom: 1.4rem; left: 1.4rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .visual-stage {
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ---------------------------- TRACKER --------------------------------- */
.tracker-section { padding-block: 0 clamp(64px, 8vw, 96px); }

.tracker-panel {
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.tracker-copy .section-kicker { margin-bottom: 10px; }
.tracker-copy h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.tracker-copy p { color: var(--text-low); font-size: 15px; }

.tracker-form {
  display: flex;
  gap: 12px;
  min-width: 340px;
}
.tracker-form .field { flex: 1; }

.tracker-error {
  grid-column: 1 / -1;
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(240, 86, 61, 0.08);
  border: 1px solid rgba(240, 86, 61, 0.3);
  margin-top: -6px;
}
.tracker-error.show { display: flex; }
.tracker-error svg { color: var(--attention-red); flex-shrink: 0; margin-top: 2px; }
.tracker-error strong { display: block; color: var(--text-hi); font-size: 14.5px; margin-bottom: 3px; }
.tracker-error span { font-size: 13.5px; color: var(--text-low); }

.tracker-hint {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: -8px;
}
.tracker-hint button {
  background: none; border: none; color: var(--checkpoint-cyan);
  font-family: var(--font-mono); font-size: 12.5px; text-decoration: underline;
  padding: 0;
}

@media (max-width: 720px) {
  .tracker-panel { grid-template-columns: 1fr; }
  .tracker-form { min-width: 0; flex-direction: column; }
}

/* ---------------------------- TRUST / PROCESS CARDS --------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  padding: 28px 26px;
}
.trust-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(61,127,255,.12);
  color: var(--route-blue);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.trust-card h3 { font-size: 17px; margin-bottom: 8px; }
.trust-card p { font-size: 14.5px; color: var(--text-low); }

@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------------------------- JOURNEY (numbered sequence — earned) ------ */
.journey-track {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.journey-track::-webkit-scrollbar { display: none; }

.journey-step {
  flex: 0 0 auto;
  width: 220px;
  padding-right: 28px;
  position: relative;
}
.journey-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 44px;
  right: -4px;
  height: 1px;
  background: var(--line);
}
.journey-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--void);
  background: var(--text-faint);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.journey-step.is-visible .journey-num { background: var(--route-blue); color: #fff; }
.journey-step h4 { font-size: 15.5px; color: var(--text-hi); margin-bottom: 6px; }
.journey-step p { font-size: 13.5px; color: var(--text-low); }

@media (max-width: 720px) {
  .journey-track { flex-direction: column; gap: 24px; }
  .journey-step { width: 100%; padding-right: 0; padding-left: 44px; }
  .journey-step:not(:last-child)::after { top: 44px; left: 16px; width: 1px; height: calc(100% - 12px); right: auto; }
  .journey-num { position: absolute; left: 0; top: 0; }
}

/* ---------------------------- SERVICES ---------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover { border-color: var(--route-blue-dim); transform: translateY(-4px); }
.service-card::before {
  content: '';
  position: absolute;
  top: -60%; right: -30%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(61,127,255,.16), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--checkpoint-cyan);
  margin-bottom: 22px;
}
.service-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-low); }

@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------------------------- GLOBAL NETWORK ----------------------------- */
.network-panel {
  padding: clamp(24px,4vw,40px);
  overflow: hidden;
  position: relative;
}
.network-map {
  width: 100%;
  aspect-ratio: 16/8.2;
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (max-width: 700px) { .network-map { aspect-ratio: 4/5; } }

/* ---------------------------- STATS -------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-cell {
  background: var(--panel);
  padding: 34px 28px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--text-hi);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.stat-value .suffix { font-size: .55em; color: var(--route-blue); }
.stat-label {
  font-size: 13.5px;
  color: var(--text-low);
  margin-top: 8px;
}
.stat-cell .tag-demo { margin-top: 12px; }

@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------- CONTACT ------------------------------------ */
.contact-panel {
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
.contact-copy h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.contact-copy p { color: var(--text-low); margin-bottom: 28px; max-width: 42ch; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-detail .contact-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(61,127,255,.1);
  color: var(--route-blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-detail strong { display: block; color: var(--text-hi); font-size: 14.5px; }
.contact-detail span { font-size: 13.5px; color: var(--text-low); font-family: var(--font-mono); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); letter-spacing: 0; }

@media (max-width: 800px) { .contact-panel { grid-template-columns: 1fr; } }


/* Desktop – hide the hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: inherit;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;               /* hidden by default on mobile */
    position: absolute;
    top: 100%;                   /* right under the header */
    left: 0;
    right: 0;
    background: #fff;            /* or your header background */
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  /* Optional – also show the CTA button in the mobile menu */
  .nav-cta {
    display: none;
  }
  .nav-cta.open {
    display: block;
    padding: 0.75rem 1rem;
  }

  /* Make sure the header is positioned relatively so the absolute menu works */
  .site-nav {
    position: relative;
  }

  /* Optional: animate the hamburger into an X */
  .nav-toggle.active svg path {
    /* you can add a simple transform or swap the SVG if you prefer */
  }
}