/* =====================================================================
   JĀGRITI TECHNOLOGIES — DESIGN TOKENS
===================================================================== */
:root {
  --bg: #F7F8FA;
  --bg-alt: #FFFFFF;
  --text: #080B14;
  --text-soft: #667085;
  --text-faint: #98A2B3;
  --blue: #2563EB;
  --indigo: #4338CA;
  --indigo-deep: #312E81;
  --white: #FFFFFF;
  --red: #DC2626;
  --amber: #D97706;

  --dark-bg: #080B14;
  --dark-bg-2: #0C1120;
  --dark-text: #F7F8FA;
  --dark-text-soft: rgba(247,248,250,0.62);
  --dark-line: rgba(247,248,250,0.12);
  --dark-line-soft: rgba(247,248,250,0.07);

  --line: rgba(8,11,20,0.10);
  --line-soft: rgba(8,11,20,0.06);

  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Site is intentionally light-first with dedicated dark sections;
       base tokens stay constant so light sections never invert. */
  }
}

/* =====================================================================
   RESET & BASE
===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--text);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-soft);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 2rem;
}

section { position: relative; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }

.h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.dark-zone .eyebrow { color: #8FB2FF; }

.lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 540px;
  margin-top: 1.2rem;
}

.lede.small { font-size: 0.92rem; margin-top: 0.7rem; }
.lede.center { margin-left: auto; margin-right: auto; }

.dark-zone .lede { color: var(--dark-text-soft); }
.dark-zone { background: var(--dark-bg); color: var(--dark-text); }

.section-head { max-width: 720px; }
.section-head.center { max-width: 640px; margin: 0 auto; text-align: center; }

main > section { padding: 7.5rem 0; }
.hero, .moment, .human, .scale, .final-cta, .transition { padding: 0; }

/* =====================================================================
   BUTTONS
===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s var(--ease-soft), color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.btn-lg { padding: 1rem 2rem; font-size: 0.98rem; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37,99,235,0.15);
}
.btn-primary:hover { background: var(--indigo); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,0.28); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.28);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.09); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text);
  font-weight: 500;
  padding: 0.7rem 0.4rem;
}
.btn-ghost:hover { color: var(--blue); }

/* =====================================================================
   NAVIGATION
===================================================================== */
.nav {
  position: fixed;
  top: 0.9rem;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  transition: top 0.3s var(--ease-soft);
}

.nav-inner {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  background: rgba(247,248,250,0.72);
  border: 1px solid rgba(8,11,20,0.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(8,11,20,0.05);
  transition: background 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}

.nav.scrolled .nav-inner {
  background: rgba(247,248,250,0.92);
  box-shadow: 0 10px 34px rgba(8,11,20,0.09);
}

.nav.nav-on-dark .nav-inner {
  background: rgba(8,11,20,0.55);
  border-color: rgba(247,248,250,0.12);
}
.nav.nav-on-dark .nav-mark-glyph,
.nav.nav-on-dark .nav-mark-title { color: var(--dark-text); }
.nav.nav-on-dark .nav-mark-sub { color: var(--dark-text-soft); }
.nav.nav-on-dark .nav-links a { color: rgba(247,248,250,0.75); }
.nav.nav-on-dark .nav-contact { color: var(--dark-text); }
.nav.nav-on-dark .nav-burger span { background: var(--dark-text); }

.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-mark-glyph { color: var(--indigo); display: flex; }

.nav-mark-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-mark-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-mark-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s var(--ease-soft);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-contact { display: inline-flex; }
.nav-explore { padding: 0.65rem 1.35rem; font-size: 0.86rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.nav-burger span { width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; margin: 0 auto; transition: transform 0.25s var(--ease-soft), opacity 0.25s var(--ease-soft); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8,11,20,0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), visibility 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav nav { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark-text);
}

/* =====================================================================
   HERO
===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% -10%, #141B33 0%, #0A0E1C 45%, #080B14 100%);
  overflow: hidden;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 55%, transparent 40%, rgba(8,11,20,0.55) 100%);
  pointer-events: none;
}

.hero-labels { position: absolute; inset: 0; pointer-events: none; }
.hero-label {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(143,178,255,0.55);
  opacity: 0;
  animation: hl-in 1s var(--ease) forwards;
}
.hl-1 { top: 20%; left: 9%; animation-delay: 1.1s; }
.hl-2 { top: 32%; right: 10%; animation-delay: 1.4s; }
.hl-3 { bottom: 30%; left: 6%; animation-delay: 1.7s; }
.hl-4 { top: 15%; right: 22%; animation-delay: 2s; }
.hl-5 { bottom: 22%; right: 8%; animation-delay: 2.3s; }
.hl-6 { bottom: 14%; left: 16%; animation-delay: 2.6s; }

@keyframes hl-in { to { opacity: 1; } }

@media (max-width: 780px) {
  .hero-labels { display: none; }
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8.4vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
}
.hero-headline .line {
  display: block;
  overflow: hidden;
}
.hero-headline .line > * { display: inline-block; }
.hero-headline em {
  font-style: normal;
  background: linear-gradient(90deg, #6E93FF, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-kicker {
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(247,248,250,0.55);
}

.hero-sub {
  margin: 1.3rem auto 0;
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(247,248,250,0.72);
  font-weight: 400;
}

.hero-ctas { margin-top: 2.4rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(247,248,250,0.4);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll i {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, rgba(247,248,250,0.6), transparent);
  animation: scroll-y 1.8s ease infinite;
}
@keyframes scroll-y {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.3; }
}

/* =====================================================================
   TRANSITION (kinetic typography)
===================================================================== */
.transition {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 6rem 1.5rem;
  background: var(--bg);
}
.transition-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5.6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.transition-line-dim { color: var(--text-faint); }

/* Reveal utility (used across sections) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

[data-split] .word { display: inline-block; opacity: 0; transform: translateY(0.5em); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-split].visible .word { opacity: 1; transform: translateY(0); }

/* =====================================================================
   SIGNAL LAYER
===================================================================== */
.signal-layer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.signal-board {
  margin-top: 4rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.signal-cell {
  background: var(--bg-alt);
  padding: 1.6rem 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.signal-canvas { width: 100%; height: 70px; }
.signal-name { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--text-soft); }

.signal-core {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0E1530, #161F45);
  padding: 2.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}
.signal-core-dot { width: 10px; height: 10px; border-radius: 50%; background: #6E93FF; box-shadow: 0 0 24px 6px rgba(110,147,255,0.6); }
.signal-core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(110,147,255,0.3);
  animation: core-pulse 3s ease-out infinite;
}
.signal-core-ring.r1 { width: 60px; height: 60px; }
.signal-core-ring.r2 { width: 60px; height: 60px; animation-delay: 1.5s; }
@keyframes core-pulse {
  0% { width: 30px; height: 30px; opacity: 0.8; }
  100% { width: 220px; height: 220px; opacity: 0; }
}
.signal-core-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 780px) {
  .signal-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .signal-board { grid-template-columns: 1fr; }
}

/* =====================================================================
   INTELLIGENCE ENGINE
===================================================================== */
.intelligence { background: var(--bg); }

.engine-diagram {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 1rem;
  position: relative;
  min-height: 340px;
}

.engine-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.engine-paths path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  opacity: 0.28;
}
.engine-paths .particle { fill: var(--blue); }

.engine-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.8rem; }
.engine-col-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; color: var(--text-faint); margin-bottom: 0.3rem; }
.engine-pipeline { align-items: center; }
.engine-output { justify-content: center; height: 100%; }

.engine-node, .engine-stage {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.engine-pipeline .engine-stage { width: 100%; letter-spacing: 0.06em; font-size: 0.78rem; }
.engine-node.is-active, .engine-stage.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  color: var(--blue);
}
.engine-node-output {
  background: var(--indigo-deep);
  color: #fff;
  border-color: var(--indigo-deep);
  position: relative;
}
.engine-node-output::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: calc(1rem + 4px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--indigo-deep));
}

@media (max-width: 860px) {
  .engine-diagram { grid-template-columns: 1fr; gap: 1.4rem; }
  .engine-svg { display: none; }
}

/* =====================================================================
   THE MOMENT
===================================================================== */
.moment { background: var(--dark-bg); color: var(--dark-text); }
.moment-spacer { height: 300vh; }
.moment-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}
.moment-eyebrow {
  position: absolute;
  top: 6.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8FB2FF;
}
.moment-scene {
  position: absolute;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
  max-width: 560px;
}
.moment-scene.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.moment-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(247,248,250,0.5);
  margin-bottom: 1rem;
}
.moment-tag-alert { color: #F5B942; }
.moment-tag-response { color: #6EE7B7; }

.moment-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}
.moment-copy { margin-top: 1rem; color: var(--dark-text-soft); font-size: 1.05rem; }

.moment-wave { width: min(90vw, 480px); height: 90px; margin: 2rem auto 0; }
.moment-wave canvas { width: 100%; height: 100%; }

.moment-context {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.moment-context span {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247,248,250,0.2);
  font-size: 0.82rem;
  font-weight: 600;
  animation: ctx-pop 0.5s var(--ease) both;
}
.moment-context span:nth-child(1) { animation-delay: 0.05s; }
.moment-context span:nth-child(2) { animation-delay: 0.2s; }
.moment-context span:nth-child(3) { animation-delay: 0.35s; }
@keyframes ctx-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

.moment-checklist { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }
.moment-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--dark-text);
}
.moment-checklist li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #6EE7B7;
  flex-shrink: 0;
}

.moment-progress {
  position: absolute;
  bottom: 2.2rem;
  display: flex;
  gap: 0.4rem;
}
.moment-progress span { width: 22px; height: 3px; border-radius: 2px; background: rgba(247,248,250,0.18); transition: background 0.3s; }
.moment-progress span.active { background: #6E93FF; }

/* =====================================================================
   PRODUCT
===================================================================== */
.product { background: var(--bg-alt); }

.product-showcase {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.phone {
  width: 300px;
  height: 620px;
  background: #0B0E1A;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px -20px rgba(8,11,20,0.35), 0 0 0 1px rgba(8,11,20,0.06);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0B0E1A;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0E1430, #080B14);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.pscreen { position: absolute; inset: 0; padding: 2.6rem 1.3rem 1.5rem; opacity: 0; transform: translateX(16px); transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft); display: flex; flex-direction: column; }
.pscreen.active { opacity: 1; transform: translateX(0); }
.pscreen-label { font-size: 0.62rem; letter-spacing: 0.14em; color: rgba(247,248,250,0.45); font-weight: 700; margin-bottom: 0.5rem; }
.pscreen-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 1.1rem; }
.pscreen-body { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.pscreen-card { background: rgba(247,248,250,0.06); border: 1px solid rgba(247,248,250,0.1); border-radius: 14px; padding: 0.85rem 1rem; font-size: 0.78rem; color: rgba(247,248,250,0.8); }
.pscreen-card strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; color: #fff; }
.pscreen-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #6EE7B7; display: inline-block; margin-right: 0.4rem; box-shadow: 0 0 10px 2px rgba(110,231,183,0.5); }

.product-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.product-tabs button {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.25s var(--ease-soft);
}
.product-tabs button[aria-selected="true"] { background: var(--text); color: var(--white); border-color: var(--text); }
.product-tabs button:hover:not([aria-selected="true"]) { border-color: var(--blue); color: var(--blue); }

/* =====================================================================
   AUTONOMOUS SAFETY
===================================================================== */
.autonomous { background: var(--bg); }
.wrap.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.wrap.split.reverse { grid-template-columns: 0.8fr 1.2fr; }

.sensor-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.sensor-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sensor-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--text-faint); }
.sensor-state { font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); background: rgba(37,99,235,0.1); color: var(--blue); transition: background 0.3s, color 0.3s; }
.sensor-state.alert { background: rgba(217,119,6,0.12); color: var(--amber); }
.sensor-canvas { width: 100%; height: 140px; }
.sensor-readout { display: flex; gap: 1.2rem; margin-top: 1rem; flex-wrap: wrap; }
.sensor-readout div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-soft); }
.sensor-readout i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }
.sensor-system-msg {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
  transition: color 0.3s;
}
.sensor-system-msg.alert { color: var(--amber); }

/* =====================================================================
   SAFE ROUTES
===================================================================== */
.routes { background: var(--bg-alt); }
.route-panel { margin-top: 3.5rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.route-map {
  width: 100%;
  background: linear-gradient(160deg, #F0F3F9, #E7ECF6);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.route-grid line { stroke: rgba(8,11,20,0.05); stroke-width: 1; }
.route-path { fill: none; stroke-linecap: round; }
.route-fast { stroke: var(--text-faint); stroke-width: 3; stroke-dasharray: 6 8; }
.route-safe { stroke: var(--blue); stroke-width: 4; stroke-dasharray: 500; stroke-dashoffset: 500; transition: stroke-dashoffset 1.4s var(--ease); }
.route-panel.safe-active .route-safe { stroke-dashoffset: 0; }
.route-point { fill: var(--text); }
.route-point.route-end { fill: var(--blue); }
.route-infra circle { fill: var(--indigo); opacity: 0.7; }

.route-cards { display: flex; flex-direction: column; gap: 1rem; }
.route-card {
  text-align: left;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.route-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.route-card-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; color: var(--blue); }
.route-card-stat { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.route-card-note { font-size: 0.82rem; color: var(--text-soft); }
.route-disclaimer { grid-column: 1 / -1; margin-top: 0.4rem; font-size: 0.78rem; color: var(--text-faint); max-width: 640px; }

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

/* =====================================================================
   EMERGENCY NETWORK
===================================================================== */
.network { background: var(--bg); }
.network-graph { margin-top: 4rem; position: relative; height: 220px; }
.network-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-lines line { stroke: var(--line); stroke-width: 1.5; transition: stroke 0.4s var(--ease-soft); }
.network-lines line.active { stroke: var(--blue); }

.network-nodes {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.network-node {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), background 0.3s var(--ease-soft), color 0.3s;
}
.network-node.active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,0.3); }

@media (max-width: 780px) {
  .network-graph { height: auto; }
  .network-graph svg { display: none; }
  .network-nodes { flex-wrap: wrap; gap: 1rem; justify-content: center; }
  .network-node { width: 84px; height: 84px; font-size: 0.75rem; }
}

/* =====================================================================
   OFFLINE RESILIENCE
===================================================================== */
.offline-flow { margin-top: 3.5rem; }
.offline-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247,248,250,0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 2.4rem;
}
.offline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); transition: background 0.3s; }
.offline-status.restored .offline-dot { background: #6EE7B7; }

.offline-chain { display: flex; gap: 1rem; flex-wrap: wrap; }
.offline-node {
  flex: 1;
  min-width: 150px;
  padding: 1.3rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(247,248,250,0.12);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(247,248,250,0.4);
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
  position: relative;
}
.offline-node.active { color: #fff; border-color: #6E93FF; background: rgba(110,147,255,0.1); }
.offline-node.done { color: #6EE7B7; border-color: rgba(110,231,183,0.4); }

@media (max-width: 780px) { .offline-chain { flex-direction: column; } }

/* =====================================================================
   INFRASTRUCTURE (city)
===================================================================== */
.infrastructure { background: var(--bg-alt); }
.vision-tags { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); }
.tag-current { background: rgba(37,99,235,0.1); color: var(--blue); }
.tag-vision { background: rgba(8,11,20,0.06); color: var(--text-soft); }

.city-canvas-wrap { margin-top: 3.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0C1120; }
.city-canvas-wrap canvas { width: 100%; height: auto; display: block; }

/* =====================================================================
   BEYOND THE PHONE
===================================================================== */
.beyond { background: var(--bg); }
.beyond-row { margin-top: 4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: relative; }
.beyond-node {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.beyond-node.beyond-active { border-style: solid; border-color: var(--blue); background: rgba(37,99,235,0.05); }
.beyond-node em { font-style: normal; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-faint); text-transform: uppercase; }
.beyond-node.beyond-active em { color: var(--blue); }
.beyond-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--indigo-deep); opacity: 0.85; }
.beyond-node.beyond-active .beyond-icon { background: var(--blue); }

/* =====================================================================
   ARCHITECTURE
===================================================================== */
.arch-stack { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.arch-layer {
  text-align: left;
  border: 1px solid rgba(247,248,250,0.12);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.25s, background 0.25s;
}
.arch-layer-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; }
.arch-layer-detail {
  font-size: 0.86rem;
  color: var(--dark-text-soft);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}
.arch-layer[aria-expanded="true"] { border-color: #6E93FF; background: rgba(110,147,255,0.06); }
.arch-layer[aria-expanded="true"] .arch-layer-detail { max-height: 100px; opacity: 1; }

/* =====================================================================
   PRIVACY
===================================================================== */
.privacy { background: var(--bg-alt); }
.privacy-viz { position: relative; height: 260px; display: flex; align-items: center; justify-content: center; }
.privacy-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.pr-1 { width: 90px; height: 90px; }
.pr-2 { width: 160px; height: 160px; border-color: rgba(37,99,235,0.18); }
.pr-3 { width: 230px; height: 230px; border-color: rgba(67,56,202,0.12); }
.privacy-core { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(37,99,235,0.12); }
.privacy-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.85rem; }
.privacy-list li { padding-left: 1.3rem; position: relative; color: var(--text-soft); font-size: 0.95rem; line-height: 1.5; }
.privacy-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

@media (max-width: 860px) {
  .wrap.split, .wrap.split.reverse { grid-template-columns: 1fr; }
  .privacy-viz { order: 2; }
}

/* =====================================================================
   HUMAN LAYER
===================================================================== */
.human {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.4rem;
  padding: 6rem 1.5rem;
  background: var(--white);
}
.human-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-faint);
}
.human-line-2 { color: var(--text); }
.human-sub { max-width: 460px; color: var(--text-soft); font-size: 1.05rem; margin-top: 0.6rem; }

/* =====================================================================
   INDIA SCALE
===================================================================== */
.scale { min-height: 130vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }
.scale-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scale-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.scale-counter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 6rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.scale-caption { font-size: 0.8rem; color: var(--dark-text-soft); margin-bottom: 2.5rem; }
.scale-echo { margin-top: 1rem; }

/* =====================================================================
   TRACTION
===================================================================== */
.traction { background: var(--bg-alt); }
.traction-stats { margin-top: 3.5rem; display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { flex: 1; text-align: center; padding: 2.4rem 1.5rem; background: var(--bg-alt); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.03em; display: block; }
.stat-label { font-size: 0.82rem; color: var(--text-soft); font-weight: 500; margin-top: 0.3rem; display: block; }
.stat-note { font-size: 0.72rem; color: var(--text-faint); margin-top: 0.2rem; display: block; }

.iteration-row { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.iteration-step { padding: 1.4rem 1.2rem; border-top: 2px solid var(--line); }
.iteration-step span { font-family: var(--font-display); font-weight: 800; color: var(--text-faint); font-size: 0.85rem; }
.iteration-step p { margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-soft); line-height: 1.5; }

@media (max-width: 860px) {
  .traction-stats { flex-direction: column; }
  .iteration-row { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   COMPANY
===================================================================== */
.company { background: var(--bg); }
.company-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.company-card { padding: 1.8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-alt); }
.company-card p { margin-top: 0.5rem; color: var(--text-soft); font-size: 0.92rem; line-height: 1.6; }

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

/* =====================================================================
   FOUNDERS
===================================================================== */
.founders { background: var(--bg-alt); }
.founders-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 2.5rem;
}
.founder-card { text-align: center; }
.founder-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.founder-role {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

@media (max-width: 560px) {
  .founders-grid { grid-template-columns: minmax(0, 220px); }
}

/* =====================================================================
   VISION
===================================================================== */
.vision { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; gap: 1.6rem; }
.vision-line { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 7vw, 4.2rem); line-height: 1.14; letter-spacing: -0.03em; }
.vision-sub { color: var(--dark-text-soft); font-size: 1.1rem; }

/* =====================================================================
   FINAL CTA
===================================================================== */
.final-cta {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  background: radial-gradient(80% 80% at 50% 30%, #141B33 0%, #080B14 70%);
}
.final-cta-sub { margin-top: 1.2rem; font-size: 1.15rem; color: var(--dark-text-soft); line-height: 1.5; }
.final-cta .hero-ctas { margin-top: 2.4rem; }

/* =====================================================================
   FOOTER
===================================================================== */
.footer { padding: 4.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--dark-line-soft); }
.footer-mark .nav-mark-glyph { color: #8FB2FF; }
.footer-mark .nav-mark-title { color: var(--dark-text); }
.footer-mark .nav-mark-sub { color: var(--dark-text-soft); }
.footer-tagline { margin-top: 1rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--dark-text-soft); }
.footer-email { display: inline-block; margin-top: 0.8rem; font-size: 0.85rem; color: #8FB2FF; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.88rem; color: var(--dark-text-soft); transition: color 0.2s; }
.footer-links a:hover { color: var(--dark-text); }
.footer-social { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-social a, .footer-social-disabled {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--dark-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  color: var(--dark-text-soft);
}
.footer-social a:hover { border-color: #8FB2FF; color: var(--dark-text); }
.footer-social-disabled { opacity: 0.35; cursor: default; }
.footer-bottom { padding-top: 1.5rem; font-size: 0.78rem; color: var(--dark-text-soft); }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =====================================================================
   RESPONSIVE — GLOBAL
===================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-contact { display: none; }
  .nav-burger { display: flex; }
  main > section { padding: 5.5rem 0; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 1.25rem; }
  .wrap.split, .wrap.split.reverse { gap: 2.2rem; }
  .phone { width: 260px; height: 540px; }
  .hero-ctas, .final-cta .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn, .final-cta .btn { width: 100%; }
}
