/* ==========================================================================
   CarSync 2.0 — ULTIMATE MASTER CINEMATIC DESIGN SYSTEM
   Brand: CarSync 2.0 · Tagline: Sync. Share. Ride.
   Designer & Engineer: Vijendra Pratap Singh
   ========================================================================== */

:root {
  --navy-950: #030810;
  --navy-900: #050e1a;
  --navy-850: #081525;
  --navy-800: #0c1d33;
  --navy-700: #122842;
  --navy-600: #1a3859;

  --cyan-400: #38bdf8;
  --cyan-500: #0ea5e9;
  --emerald-400: #4ce2a0;
  --emerald-300: #80f7c5;
  --teal-400: #2dd4bf;
  --purple-400: #c084fc;
  --blue-500: #2563eb;
  --amber-400: #fbbf24;
  --rose-400: #fb7185;

  --text-main: #f0f7fc;
  --text-muted: #9eb5c6;
  --text-dim: #6d869a;

  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-hover: rgba(76, 226, 160, 0.45);
  --glass-surface: rgba(10, 24, 42, 0.75);
  --glass-card: linear-gradient(150deg, rgba(16, 38, 64, 0.8), rgba(6, 18, 32, 0.9));

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  background-color: var(--navy-950);
  overflow-x: hidden;
}

section, header[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--navy-950);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Prevent background scroll when modal or welcome screen is active */
body.locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Typography & Badges */
h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.6rem);
  letter-spacing: -0.05em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.gradient {
  background: linear-gradient(110deg, #60c5ff 5%, #4ce2a0 55%, #c084fc 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-400);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 12px var(--emerald-400);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.verified-pill.green {
  background: rgba(76, 226, 160, 0.15);
  border: 1px solid rgba(76, 226, 160, 0.35);
  color: var(--emerald-300);
}

.verified-pill.blue {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--cyan-400);
}

.verified-pill.amber {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--amber-400);
}

.muted {
  color: var(--text-muted);
}

.section-head {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-head p {
  font-size: 1.05rem;
}

.note {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(14, 116, 144, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #b0d8ea;
  font-size: 0.88rem;
  margin-top: 24px;
  line-height: 1.6;
}

/* ==========================================================================
   PHASE 2: Cinematic Interactive Welcome Screen 2.0 — "The Connected Journey"
   ========================================================================== */
#welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: #020712;
  background-image: radial-gradient(circle at 50% 40%, rgba(14, 40, 72, 0.6) 0%, rgba(2, 7, 18, 0.98) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s ease;
  overflow: hidden;
  touch-action: manipulation;
  cursor: pointer;
}

#welcome-overlay.welcome-transitioning #welcomeCard {
  transform: scale(1.05);
  opacity: 0;
  filter: blur(4px);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease, filter 0.65s ease;
}

#welcome-overlay.welcome-transitioning .welcome-logo-shockwave {
  transform: scale(3.2);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out;
}

#welcome-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#welcome-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.welcome-backdrop-glow {
  position: absolute;
  width: min(720px, 95vw);
  height: min(720px, 95vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(76, 226, 160, 0.14) 42%, transparent 72%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 2;
  animation: welcomeAuraPulse 7s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes welcomeAuraPulse {
  0% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.06); opacity: 0.95; }
  100% { transform: scale(0.95); opacity: 0.75; }
}

.welcome-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 36px 36px;
  max-width: 580px;
  width: min(580px, calc(100vw - 36px));
  background: rgba(6, 17, 32, 0.76);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 36px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.82), 0 0 60px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  cursor: default;
}

.welcome-halo {
  position: absolute;
  top: 15px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 226, 160, 0.35) 0%, rgba(56, 189, 248, 0.2) 50%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
  animation: haloBreathe 5s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 0.9; }
}

.welcome-logo-wrap {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 35px rgba(76, 226, 160, 0.5);
  margin-bottom: 22px;
  position: relative;
  animation: logoFloat 4.5s ease-in-out infinite;
}

.welcome-logo-shockwave {
  position: absolute;
  inset: -6px;
  border-radius: 34px;
  border: 2px solid var(--emerald-400);
  opacity: 0.8;
  pointer-events: none;
  transform: scale(1);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.welcome-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

.welcome-brand-group {
  margin-bottom: 8px;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  color: #ffffff;
  line-height: 1.1;
}

.welcome-title span {
  color: var(--emerald-400);
}

.welcome-tagline {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 18px;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.welcome-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 460px;
}

.welcome-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.welcome-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 36px;
  min-height: 54px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  background: linear-gradient(130deg, #0ea5e9 0%, #38bdf8 45%, #4ce2a0 100%);
  color: #02120e;
  box-shadow: 0 12px 34px rgba(76, 226, 160, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  width: 100%;
  max-width: 330px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.welcome-enter-btn .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btnShineSweep 3.5s infinite;
}

@keyframes btnShineSweep {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

.welcome-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  filter: brightness(1.05);
}

.welcome-enter-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.welcome-enter-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.welcome-enter-btn:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 4px !important;
}

.welcome-meta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.welcome-hint {
  font-size: 0.84rem;
  color: var(--emerald-300);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pulseOpacity 2.4s infinite ease-in-out;
}

.welcome-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #ffffff;
}

.welcome-hint .hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.welcome-skip-btn {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.welcome-skip-btn:hover {
  color: var(--cyan-400);
  text-decoration: underline;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(4, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navinner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 2px 4px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.logo span span {
  color: var(--emerald-400);
}

.backend-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.backend-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  flex-shrink: 0;
  animation: pulseBadgeDot 2.5s infinite ease-in-out;
}

@keyframes pulseBadgeDot {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); }
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.15vw, 16px);
  font-size: 0.85rem;
  font-weight: 700;
  color: #bfd4e4;
  white-space: nowrap;
}

.navlinks a:not(.btn):hover {
  color: var(--emerald-400);
}

.navlinks a.btn.small {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 0.82rem;
  border-radius: 10px;
  margin-left: 6px;
  align-self: center;
}

.menu {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 1.1rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Common Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.90rem;
  border: 1px solid rgba(160, 251, 214, 0.5);
  background: linear-gradient(125deg, #38bdf8, #4ce2a0);
  color: #041a14;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgba(76, 226, 160, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.small {
  padding: 8px 15px;
  font-size: 0.80rem;
  border-radius: 9px;
}

/* ==========================================================================
   Hero Section with Smart City Scene
   ========================================================================== */
.hero {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy-950);
}

#city-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #030810 0%, rgba(3, 8, 16, 0.94) 36%, rgba(3, 8, 16, 0.6) 64%, transparent 88%);
  pointer-events: none;
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 660px;
}

.hero-copy p {
  font-size: 1.1rem;
  color: #b7cbdb;
  max-width: 540px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(12, 28, 48, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #c9e6f8;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.scene-caption {
  position: absolute;
  right: 5%;
  bottom: 80px;
  z-index: 3;
  padding: 12px 18px;
  border: 1px solid rgba(76, 226, 160, 0.35);
  border-radius: var(--radius-md);
  background: rgba(6, 17, 28, 0.85);
  backdrop-filter: blur(16px);
  color: var(--emerald-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.motion-toggle {
  position: absolute;
  right: 5%;
  top: 100px;
  z-index: 4;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: #c2dbe9;
  background: rgba(12, 28, 48, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.motion-toggle:hover {
  background: rgba(18, 42, 70, 0.95);
  border-color: var(--emerald-400);
  color: #ffffff;
}

/* ==========================================================================
   Stats Ribbon
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: -44px;
  position: relative;
  z-index: 5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.stat {
  background: linear-gradient(160deg, #091726, #060e19);
  padding: 26px 24px;
  transition: background 0.3s ease;
}

.stat:hover {
  background: linear-gradient(160deg, #0e2238, #091726);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-display);
  color: var(--emerald-400);
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 01: Vision & Dummy Phone
   ========================================================================== */
#about {
  position: relative;
  padding: 120px 0;
  background: radial-gradient(ellipse 70% 60% at 20% 45%, rgba(14, 116, 144, 0.22), transparent 70%),
              radial-gradient(ellipse 55% 50% at 85% 65%, rgba(16, 185, 129, 0.16), transparent 70%),
              var(--navy-900);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.phone-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  min-height: 640px;
  width: 100%;
}

.phone-stage::before {
  content: '';
  position: absolute;
  width: min(440px, 95%);
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(76, 226, 160, 0.14) 40%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

.phone-disclaimer-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Realistic Android Smartphone Frame */
.phone-frame {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 610px;
  max-width: 100%;
  border: 9px solid #142a3b;
  border-radius: 44px;
  background: #091726;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 
              0 0 0 1px rgba(56, 189, 248, 0.35),
              inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  contain: paint;
}

.phone-frame:hover {
  transform: rotateY(0) rotateX(0) scale(1.02);
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.8), 0 0 40px rgba(76, 226, 160, 0.35);
}

/* Android Front Camera Hole Punch */
.phone-camera-hole {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #040910;
  border: 1.5px solid #173852;
  z-index: 20;
}

.phone-viewport {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #091828 0%, #06111e 100%);
  color: var(--text-main);
  overflow: hidden;
  position: relative;
}

/* Android System Status Bar */
.phone-system-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
  background: #071422;
  color: #a0bed0;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
}

/* Android App Top Header */
.phone-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(8, 22, 36, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  flex-shrink: 0;
}

.phone-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-emblem {
  height: 22px;
  width: auto;
  border-radius: 6px;
  background: #ffffff;
  padding: 1px 3px;
}

.phone-brand-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.phone-brand-text span {
  color: var(--emerald-400);
}

.phone-user-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #4ce2a0);
  color: #041a14;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Phone Scrollable Body */
.phone-scroll-area {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-scroll-area::-webkit-scrollbar {
  width: 3px;
}
.phone-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 3px;
}

.phone-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 4px;
}

.phone-subhead {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.phone-counter-pill {
  font-size: 0.60rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.16);
  color: var(--cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Ride Cards Inside Phone */
.phone-ride-card {
  background: rgba(13, 31, 50, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ride-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ride-status-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.ride-status-tag.confirmed {
  background: rgba(76, 226, 160, 0.18);
  color: var(--emerald-300);
  border: 1px solid rgba(76, 226, 160, 0.35);
}

.ride-status-tag.boarding {
  background: rgba(56, 189, 248, 0.18);
  color: var(--cyan-300);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.ride-price-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-400);
}

/* Route Timeline Rows */
.phone-route-block {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 14px;
  gap: 6px;
}

.route-connector-line {
  position: absolute;
  left: 3px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-400), var(--emerald-400));
}

.route-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}

.route-dot {
  position: absolute;
  left: -14px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.origin-dot {
  background: var(--cyan-400);
  box-shadow: 0 0 6px var(--cyan-400);
}

.dest-dot {
  background: var(--emerald-400);
  box-shadow: 0 0 6px var(--emerald-400);
}

.route-point-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.point-label {
  font-size: 0.52rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.point-address {
  font-size: 0.68rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* Compact Chips */
.phone-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-chip {
  font-size: 0.60rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(6, 16, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5dded;
}

.meta-chip.seats {
  background: rgba(76, 226, 160, 0.14);
  color: var(--emerald-300);
  border-color: rgba(76, 226, 160, 0.28);
  font-weight: 700;
}

/* Vehicle & Rating Row */
.phone-vehicle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.62rem;
  color: #a4c5dd;
}

.vehicle-info {
  font-weight: 600;
  color: #ffffff;
}

.driver-rating {
  font-weight: 700;
  color: #facc15;
}

.driver-rating small {
  color: var(--text-dim);
  font-size: 0.54rem;
}

/* Boarding OTP Card */
.phone-otp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 6px 9px;
  margin-top: 2px;
}

.otp-card-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.otp-title {
  font-size: 0.54rem;
  color: #bae6fd;
  text-transform: uppercase;
  font-weight: 700;
}

.otp-digits {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: #ffffff;
  background: rgba(6, 16, 28, 0.8);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.otp-subtext {
  font-size: 0.52rem;
  color: #92b8d0;
}

/* Android Bottom Dock Navigation */
.phone-nav-dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #06111e;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  padding: 6px 0 4px;
  flex-shrink: 0;
}

.phone-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-dim);
  font-size: 0.58rem;
  cursor: default;
}

.dock-icon {
  font-size: 0.82rem;
}

.phone-dock-item.active {
  color: var(--emerald-400);
  font-weight: 700;
}

.phone-dock-item.active .dock-icon {
  filter: drop-shadow(0 0 6px rgba(76, 226, 160, 0.5));
}

/* Android Gesture Home Handle */
.phone-gesture-bar {
  height: 14px;
  background: #06111e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-gesture-handle {
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   PHASE 3: Interactive Ride Simulator
   ========================================================================== */
#simulator {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 70% 60% at 75% 35%, rgba(56, 189, 248, 0.18), transparent 70%),
              radial-gradient(ellipse 60% 50% at 20% 70%, rgba(76, 226, 160, 0.16), transparent 70%),
              var(--navy-850);
}

.simulator-box {
  background: linear-gradient(150deg, rgba(14, 34, 56, 0.85), rgba(6, 18, 32, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 30px;
  padding: 44px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.55), 0 0 35px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(20px);
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

.sim-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.3fr) minmax(0, 1.15fr) auto;
  align-items: flex-end;
  gap: 12px;
  background: rgba(6, 16, 28, 0.75);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin-bottom: 32px;
  box-sizing: border-box;
  width: 100%;
}

.sim-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sim-input-wrap label {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sim-select {
  width: 100%;
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  background: #0a1c2e;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
  text-overflow: ellipsis;
}

.sim-select:focus {
  border-color: var(--emerald-400);
}

.sim-swap-wrap {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.sim-swap-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-400);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-top: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.sim-swap-btn:hover {
  transform: rotate(180deg);
  background: rgba(76, 226, 160, 0.25);
  color: var(--emerald-300);
  border-color: var(--emerald-400);
}

.sim-actions-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.sim-search-btn {
  height: 44px;
  min-height: 44px;
  margin-top: 0;
  padding: 0 20px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sim-reset-btn {
  height: 44px;
  min-height: 44px;
  margin-top: 0;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #bfd4e4;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.sim-reset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Simulated Map Corridor Graphic */
.sim-corridor-view {
  position: relative;
  height: 90px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #071524 0%, #0c263c 50%, #071524 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  margin-bottom: 28px;
  overflow: hidden;
}

.corridor-track-line {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-400), var(--emerald-400));
  box-shadow: 0 0 14px rgba(76, 226, 160, 0.5);
  z-index: 1;
}

.corridor-moving-car {
  position: absolute;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #38bdf8, 0 0 24px #4ce2a0;
  z-index: 2;
  animation: moveCorridorCar 4s linear infinite;
}

@keyframes moveCorridorCar {
  0% { left: 60px; }
  100% { left: calc(100% - 80px); }
}

.corridor-hub {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 20, 34, 0.88);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  font-weight: 700;
}

.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sim-ride-card {
  background: rgba(10, 24, 40, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-ride-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 226, 160, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(76, 226, 160, 0.15);
}

.sim-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-driver-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-driver-icon {
  font-size: 1.2rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.sim-driver-badge strong {
  display: block;
  font-size: 0.94rem;
}

.sim-driver-badge small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sim-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-400);
  font-family: var(--font-display);
}

.sim-route-info {
  background: rgba(6, 16, 28, 0.6);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #bfd4e4;
}

.sim-book-btn {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.2s ease;
}

.sim-book-btn:hover {
  background: linear-gradient(125deg, #38bdf8, #4ce2a0);
  color: #03140f;
  border-color: transparent;
}

/* Simulator Modal Notification */
.sim-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(3, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sim-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sim-modal {
  background: linear-gradient(150deg, #0e2238, #071524);
  border: 1px solid rgba(76, 226, 160, 0.4);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(76, 226, 160, 0.25);
  text-align: center;
}

.sim-otp-box {
  background: rgba(6, 16, 28, 0.85);
  border: 2px dashed var(--emerald-400);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.2em;
  color: var(--emerald-400);
  font-weight: 800;
}

/* ==========================================================================
   Section 02: Platform Capabilities (Features & Tabs)
   ========================================================================== */
#features {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 65% 55% at 85% 25%, rgba(76, 226, 160, 0.15), transparent 65%),
              radial-gradient(ellipse 55% 50% at 15% 75%, rgba(56, 189, 248, 0.18), transparent 65%),
              var(--navy-900);
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab {
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(14, 32, 54, 0.6);
  color: #bfd6e8;
  font-weight: 700;
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.tab:hover {
  color: #ffffff;
  border-color: rgba(76, 226, 160, 0.4);
  background: rgba(18, 42, 70, 0.8);
}

.tab[aria-selected="true"] {
  background: linear-gradient(125deg, #38bdf8, #4ce2a0);
  color: #041a14;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(76, 226, 160, 0.35);
}

.tab-panel[hidden] {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 24px rgba(76, 226, 160, 0.16);
}

.card .ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(76, 226, 160, 0.22));
  border: 1px solid rgba(76, 226, 160, 0.35);
  border-radius: var(--radius-md);
  font-size: 1.45rem;
  margin-bottom: 22px;
}

.card small {
  color: var(--emerald-400);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.70rem;
  display: block;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Section 03: The Experience (Journey Steps)
   ========================================================================== */
#journey {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 75% 55% at 50% 50%, rgba(18, 55, 86, 0.32), transparent 70%),
              var(--navy-950);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #4ce2a0 50%, #c084fc 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  z-index: 0;
  border-radius: 2px;
}

.step {
  position: relative;
  z-index: 1;
  padding: 30px 24px;
  background: linear-gradient(160deg, rgba(16, 38, 62, 0.85), rgba(8, 20, 36, 0.92));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.2);
}

.step b {
  display: inline-block;
  font-size: 2.1rem;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #38bdf8, #4ce2a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ==========================================================================
   PHASE 6: Interactive Safety Journey
   ========================================================================== */
#safety-journey {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 65% 55% at 20% 45%, rgba(16, 185, 129, 0.18), transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 65%, rgba(14, 116, 144, 0.22), transparent 70%),
              var(--navy-900);
}

.safety-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}

.safety-stage-card {
  background: linear-gradient(145deg, rgba(14, 32, 54, 0.8), rgba(6, 16, 28, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.safety-stage-card:hover, .safety-stage-card.active {
  border-color: rgba(76, 226, 160, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(76, 226, 160, 0.15);
  transform: translateX(6px);
}

.stage-number-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(76, 226, 160, 0.25));
  border: 1px solid rgba(76, 226, 160, 0.4);
  color: var(--emerald-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stage-main-info strong {
  display: block;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.stage-main-info p {
  font-size: 0.90rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.stage-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.stage-details-drawer {
  background: rgba(6, 16, 28, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 20px 30px;
  margin-top: -10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #c9e2f4;
  line-height: 1.6;
  display: none;
}

.safety-stage-card.active + .stage-details-drawer {
  display: block;
}

/* ==========================================================================
   PHASE 4: App Screenshot Gallery
   ========================================================================== */
#gallery {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(56, 189, 248, 0.18), transparent 70%),
              var(--navy-950);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  background: linear-gradient(150deg, #0e2238, #071524);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.2);
}

.gallery-frame {
  height: 280px;
  background: #06111e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.gallery-mockup-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.gallery-mockup-body {
  flex: 1;
  background: rgba(18, 42, 68, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.gallery-mockup-body .mock-icon {
  font-size: 2.2rem;
}

.gallery-caption {
  padding: 20px;
}

.gallery-caption strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(3, 8, 16, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  background: linear-gradient(150deg, #0d2238, #061422);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 28px;
  padding: 36px;
  max-width: 650px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.5rem;
  color: #a0bed0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   PHASE 5: Demo Video Section
   ========================================================================== */
#demo-video {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(99, 102, 241, 0.2), transparent 70%),
              var(--navy-900);
}

.video-player-container {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.video-player-card {
  background: #06111e;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
}

.concept-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  outline: none;
  object-fit: contain;
}

.video-caption-bar {
  padding: 18px 24px;
  background: rgba(9, 22, 36, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.video-tag-pill.alt {
  background: rgba(76, 226, 160, 0.18);
  border-color: rgba(76, 226, 160, 0.35);
  color: var(--emerald-300);
}

.video-guidance-note {
  font-size: 0.80rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.video-disclosure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: #bae6fd;
  line-height: 1.5;
  max-width: 720px;
}

.video-disclosure-pill .disclosure-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Section 04: Inside CarSync (Interactive System Architecture)
   ========================================================================== */
#technology {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 65% 55% at 20% 40%, rgba(99, 102, 241, 0.2), transparent 65%),
              radial-gradient(ellipse 60% 50% at 80% 60%, rgba(34, 211, 238, 0.2), transparent 65%),
              var(--navy-950);
}

.arch-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}

.arch-grid-nodes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.arch-node-card {
  background: linear-gradient(150deg, #10263c, #091829);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arch-node-card:hover, .arch-node-card.active {
  border-color: var(--cyan-400);
  background: linear-gradient(150deg, #163654, #0b1f34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.arch-node-card strong {
  display: block;
  color: #bbf7ec;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.arch-node-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.arch-inspector-panel {
  background: linear-gradient(150deg, rgba(16, 38, 62, 0.85), rgba(8, 20, 36, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  min-height: 380px;
}

.arch-inspector-panel h3 {
  color: #ffffff;
  margin-bottom: 12px;
}

.arch-detail-item {
  margin-bottom: 16px;
}

.arch-detail-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}

.arch-detail-val {
  font-size: 0.88rem;
  color: #d8edf8;
  line-height: 1.5;
}

/* ==========================================================================
   Section 05: Project Showcase (For Judges)
   ========================================================================== */
#judges {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 70% 50% at 75% 30%, rgba(37, 99, 235, 0.18), transparent 60%),
              radial-gradient(ellipse 55% 50% at 25% 70%, rgba(16, 185, 129, 0.15), transparent 60%),
              var(--navy-900);
}

/* ==========================================================================
/* ==========================================================================
   PHASE 8: Team Showcase ("Meet the CarSync Team")
   ========================================================================== */
#team, #developer {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(56, 189, 248, 0.16), transparent 70%),
              radial-gradient(circle at 80% 80%, rgba(76, 226, 160, 0.10), transparent 50%),
              var(--navy-950);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.team-card {
  background: linear-gradient(150deg, rgba(14, 34, 56, 0.82), rgba(6, 18, 32, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 26px;
  padding: 38px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 226, 160, 0.55);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.25);
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  position: relative;
}

.team-monogram {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease;
}

.team-card:hover .team-monogram {
  transform: scale(1.06);
}

.team-monogram.grad-vps {
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  border: 2px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
}

.team-monogram.grad-ts {
  background: linear-gradient(135deg, #059669 0%, #8b5cf6 100%);
  border: 2px solid rgba(76, 226, 160, 0.7);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.45);
}

.team-monogram.grad-jd,
.team-monogram.grad-js {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  border: 2px solid rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.team-role-badge {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--emerald-400);
  background: rgba(76, 226, 160, 0.12);
  border: 1px solid rgba(76, 226, 160, 0.32);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 16px;
  display: inline-block;
}

.team-role-badge.leader {
  color: #fde047;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.22);
}

.team-card.leader-card {
  border-color: rgba(251, 191, 36, 0.32);
}

.team-card.leader-card:hover {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), 0 0 35px rgba(251, 191, 36, 0.25);
}

.team-card.leader-card::before {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.75), transparent);
}

.team-bio {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.team-tags span {
  padding: 4px 11px;
  background: rgba(14, 34, 56, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  color: #bad3e6;
  font-weight: 600;
}

.team-disclosure-card {
  background: linear-gradient(150deg, rgba(8, 22, 40, 0.8), rgba(5, 14, 26, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 22px;
  padding: 28px 34px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.disclosure-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.team-disclosure-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.team-actions-row {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Enhanced Video Player Controls & Captions */
.video-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-ctrl-btn {
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--cyan-400);
}

.video-ctrl-btn[aria-pressed="true"] {
  background: rgba(76, 226, 160, 0.25);
  border-color: var(--emerald-400);
  color: var(--emerald-300);
}

.video-captions-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(3, 8, 16, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #f0fdf4;
  text-align: center;
  max-width: 85%;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.video-status-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--amber-400);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

/* Global Focus & Accessibility Repairs */
:focus-visible {
  outline: 2px solid var(--emerald-400) !important;
  outline-offset: 3px !important;
}

.btn, .btn.small, .welcome-enter-btn, .video-ctrl-btn {
  min-height: 44px;
  box-sizing: border-box;
}

.menu {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Section 06: Frequently Asked Questions
   ========================================================================== */
#faq {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 60% 60% at 50% 20%, rgba(14, 116, 144, 0.18), transparent 70%),
              var(--navy-900);
}

.faq details {
  padding: 22px 0;
  border-bottom: 1px solid var(--glass-border);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.12rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #eaf7ff;
  transition: color 0.2s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--emerald-400);
}

.faq summary::after {
  content: '+';
  color: var(--emerald-400);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 300;
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  color: var(--text-muted);
  max-width: 860px;
  margin: 14px 0 0;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ==========================================================================
   PHASE 10: Feedback & Bug Reporting System
   ========================================================================== */
#feedback {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(ellipse 65% 55% at 80% 30%, rgba(56, 189, 248, 0.18), transparent 70%),
              radial-gradient(ellipse 60% 50% at 20% 70%, rgba(76, 226, 160, 0.15), transparent 70%),
              var(--navy-950);
}

.feedback-card-wrap {
  background: linear-gradient(150deg, rgba(14, 34, 56, 0.85), rgba(6, 18, 32, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.6);
  max-width: 880px;
  margin: 0 auto;
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feedback-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.form-control {
  background: #091a2c;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.90rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--emerald-400);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Honeypot Field (Hidden from real users, tricks bots) */
.honeypot-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute;
  left: -9999px;
}

.feedback-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}

.feedback-status-box {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: none;
}

.feedback-status-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-400);
  color: #a7f3d0;
}

.feedback-status-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fecaca;
}

.feedback-status-box.warning {
  display: block;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--amber-400);
  color: #fef3c7;
}

/* ==========================================================================
   Section 07: Public Download & QR Code Experience
   ========================================================================== */
#get-app {
  padding: 130px 0 100px;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 35%, rgba(56, 189, 248, 0.22), transparent 70%),
              radial-gradient(ellipse 70% 50% at 85% 65%, rgba(76, 226, 160, 0.2), transparent 70%),
              var(--navy-900);
}

.download-showcase {
  position: relative;
  background: linear-gradient(150deg, rgba(16, 38, 62, 0.85), rgba(8, 20, 36, 0.95));
  border: 1px solid rgba(76, 226, 160, 0.35);
  border-radius: 32px;
  padding: 60px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(20px);
}

.download-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
}

.download-logo-wrap {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(76, 226, 160, 0.4);
  flex-shrink: 0;
}

.download-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(76, 226, 160, 0.15);
  border: 1px solid rgba(76, 226, 160, 0.4);
  color: var(--emerald-300);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.download-sub {
  color: #c0d8e8;
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  margin-top: 20px;
}

.download-card-main {
  background: rgba(10, 24, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.apk-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.spec-item {
  background: rgba(18, 42, 68, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.spec-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.download-btn-main {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.08rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 30px rgba(76, 226, 160, 0.35);
}

.download-btn-main small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.download-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(14, 116, 144, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  flex-shrink: 0;
}

.status-text {
  font-size: 0.84rem;
  color: #d0e7f7;
}

/* QR Code Container & Scannable Code */
.qr-container {
  background: rgba(10, 24, 40, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(56, 189, 248, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.qr-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-body-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(6, 16, 28, 0.6);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-graphic-wrap {
  width: 170px;
  height: 170px;
  background: #ffffff;
  padding: 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.35);
  border: 3px solid rgba(56, 189, 248, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-graphic-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.55);
}

.qr-code-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.qr-side-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(76, 226, 160, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.90rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.copy-link-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(76, 226, 160, 0.4));
  border-color: var(--cyan-400);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.copy-link-btn.copied {
  background: linear-gradient(135deg, rgba(76, 226, 160, 0.4), rgba(56, 189, 248, 0.3));
  border-color: var(--emerald-400);
  color: #a7f3d0;
  box-shadow: 0 0 22px rgba(76, 226, 160, 0.45);
}

.qr-direct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  padding: 8px 14px;
  width: 100%;
  text-align: center;
}

.qr-quick-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.qr-info strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.qr-info p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #b0cbe0;
  margin-bottom: 0;
}

.qr-info code {
  color: var(--cyan-300);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.qr-meta-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.qr-meta-item {
  background: rgba(18, 42, 68, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.qr-meta-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.qr-meta-val {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2f1fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .qr-body-layout {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .qr-meta-specs {
    grid-template-columns: 1fr;
  }
}


/* Advanced Security Details Collapsible */
.security-details-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.security-details-box summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--cyan-400);
  font-weight: 700;
  outline: none;
}

.security-details-content {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.security-details-content code {
  color: #bbf7ec;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.74rem;
  word-break: break-all;
}

/* Sideload Guide Card */
.download-guide-card {
  background: rgba(10, 24, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.download-guide-card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #eaf7ff;
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-step {
  display: flex;
  gap: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(76, 226, 160, 0.25));
  border: 1px solid rgba(76, 226, 160, 0.4);
  color: var(--emerald-400);
  font-weight: 800;
  font-size: 0.90rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.guide-step strong {
  display: block;
  font-size: 0.94rem;
  color: #ffffff;
  margin-bottom: 3px;
}

.guide-step p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 60px 0 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #02060c;
  color: #9eb5c6;
  font-size: 0.88rem;
}

.footer-inner, .footerinner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-brand, .footer-brand-col {
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand .tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald-400);
  letter-spacing: 0.05em;
  margin: 0;
}

.footer-brand .copy {
  color: #9eb5c6;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links .col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-links .col strong {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-links .col a {
  color: #9eb5c6;
  transition: color 0.2s ease;
}

.footer-links .col a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
  word-break: break-word;
}

.footer-bottom code {
  color: var(--cyan-300);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  word-break: break-all;
}

.scrolltop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, #1d9fa6, #146c72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.scrolltop:hover {
  transform: translateY(-3px);
}

/* Ripple micro-interaction */
.ripple {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  width: 20px;
  height: 20px;
  margin: -10px;
  animation: ripple 0.65s ease-out forwards;
  z-index: 10;
}

@keyframes ripple {
  to { transform: scale(24); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1220px) {
  /* Structural fix: 2-row orderly simulator grid on medium/tablet viewports */
  .sim-controls-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
  }

  .sim-input-wrap:nth-of-type(3) {
    grid-column: span 1;
  }

  .sim-actions-wrap {
    grid-column: span 2;
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .sim-actions-wrap .sim-search-btn,
  .sim-actions-wrap .sim-reset-btn {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 1040px) {
  .split, .arch-layout, .dev-card-wrap, .download-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-stage {
    min-height: 580px;
  }

  .phone-frame {
    transform: none !important;
    margin: 0 auto;
  }

  .grid, .steps, .gallery-grid, .sim-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  /* Show mobile menu and hide navlinks at 1040px where navlinks overflow */
  .navlinks {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #040c17f8;
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    align-items: stretch;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    gap: 16px;
    z-index: 100;
  }

  .navlinks.open {
    display: flex;
  }

  .menu {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  .wrap {
    width: min(100% - 32px, 1200px);
  }

  .navinner {
    height: 70px;
  }

  .navlinks {
    top: 70px;
  }

  .hero {
    min-height: 820px;
    align-items: flex-start;
    padding: 120px 0 280px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 9vw, 3.8rem);
  }

  .hero::after {
    background: linear-gradient(180deg, #030810 0%, rgba(3, 8, 16, 0.94) 50%, rgba(3, 8, 16, 0.4) 75%, transparent 100%);
  }

  .motion-toggle {
    top: auto;
    bottom: 20px;
    right: 16px;
    font-size: 0.70rem;
    padding: 6px 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
  }

  .simulator-box, .download-showcase, .feedback-card-wrap, .dev-card-wrap {
    padding: 32px 20px;
    border-radius: 24px;
  }

  /* Structural fix: single vertical column on mobile, all elements 100% inside container */
  .sim-controls-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .sim-swap-wrap {
    justify-content: center;
    align-items: center;
  }

  .sim-actions-wrap {
    grid-column: span 1;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .sim-actions-wrap .sim-search-btn,
  .sim-actions-wrap .sim-reset-btn {
    width: 100%;
    justify-content: center;
  }

  .sim-corridor-view {
    padding: 0 12px;
    gap: 8px;
  }

  .corridor-hub {
    padding: 6px 10px;
    font-size: 0.72rem;
    max-width: 46%;
    min-width: 0;
  }

  .corridor-hub strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .phone-frame {
    max-width: min(320px, 92vw);
    height: 590px;
    transform: none !important;
    margin: 0 auto;
  }

  .feedback-form-grid, .arch-grid-nodes {
    grid-template-columns: 1fr;
  }

  .feedback-full {
    grid-column: span 1;
  }

  .safety-stage-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stage-tags {
    align-items: flex-start;
  }

  .download-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .apk-specs {
    grid-template-columns: 1fr;
  }

  .lightbox-modal {
    padding: 12px;
  }

  .lightbox-container {
    padding: 24px 18px;
    max-width: 100%;
  }

  .footer-inner, .footerinner {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .backend-badge {
    padding: 5px 6px;
    gap: 0;
  }

  .backend-badge .badge-text {
    display: none;
  }
}

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

@media (max-width: 420px) {
  .phone-frame {
    width: 290px;
    height: 550px;
    border-width: 7px;
    border-radius: 36px;
  }

  .stats, .grid, .steps, .gallery-grid, .sim-results-grid {
    grid-template-columns: 1fr;
  }
}

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

  #welcome-overlay {
    transition: none !important;
  }

  .welcome-backdrop-glow, .welcome-logo-wrap, .welcome-hint {
    animation: none !important;
  }

  .phone {
    transform: none !important;
    transition: none !important;
  }

  .card:hover, .step:hover, .btn:hover, .sim-ride-card:hover {
    transform: none !important;
  }

  .ripple {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
