/* ==========================================================================
   Launchpad Technology — Core Styles
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #07111F;
  --bg-secondary: #0B1628;
  --bg-tertiary: #0E1B30;
  --card-bg: rgba(255,255,255,0.04);
  --card-bg-hover: rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text-primary: #F5F7FA;
  --text-secondary: #94A3B8;
  --text-muted: #5B6B84;

  --accent-green: #4CAF50;
  --accent-cyan: #22D3EE;
  --accent-violet: #8B5CF6;
  --brand-green: var(--accent-green);

  --gradient-accent: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  --gradient-text: linear-gradient(90deg, #F5F7FA, var(--accent-cyan) 55%, var(--accent-green));

  /* Typography */
  --font-heading: 'Sora', 'Manrope', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.5);
  --shadow-glow-green: 0 0 0 1px rgba(76,175,80,0.25), 0 0 40px -8px rgba(76,175,80,0.35);
  --shadow-glow-cyan: 0 0 0 1px rgba(34,211,238,0.25), 0 0 40px -8px rgba(34,211,238,0.35);

  /* Motion */
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.8s;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);

  --container-w: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--dur-fast) var(--ease-premium), box-shadow var(--dur-fast) var(--ease-premium), background var(--dur-fast) var(--ease-premium), border-color var(--dur-fast) var(--ease-premium);
  white-space: nowrap;
}
.btn-sm { padding: 0.65rem 1.35rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--gradient-accent);
  color: #071018;
  box-shadow: 0 8px 30px -8px rgba(76,175,80,0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(34,211,238,0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent-cyan);
  background: rgba(34,211,238,0.06);
  transform: translateY(-2px);
}

.arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-premium); }
.btn:hover .arrow, .card-link:hover .arrow { transform: translateX(4px); }

/* ---------- Section shared ---------- */
section { position: relative; padding: var(--space-2xl) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.section-head { max-width: 700px; margin-bottom: var(--space-lg); }
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
}

.glow-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: glowShift 6s ease-in-out infinite;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding var(--dur-base) var(--ease-premium), background var(--dur-base) var(--ease-premium), border-color var(--dur-base) var(--ease-premium), backdrop-filter var(--dur-base) var(--ease-premium);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  padding: 0.85rem 0;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo-mark {
  width: 28px; height: 28px;
  color: var(--brand-green);
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.logo-accent { color: var(--brand-green); }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  transition: color var(--dur-fast) ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent-cyan);
  transition: right var(--dur-base) var(--ease-premium);
}
.nav-link:hover, .nav-link.is-active { color: var(--text-primary); }
.nav-link:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

.nav-close { display: none; }
.nav-backdrop { display: none; }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(76,175,80,0.10), transparent 55%),
              radial-gradient(ellipse at 80% 70%, rgba(34,211,238,0.08), transparent 50%),
              var(--bg-primary);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  background: var(--bg-primary);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(7,17,31,0.92) 0%, rgba(7,17,31,0.8) 30%, rgba(7,17,31,0.52) 60%, rgba(7,17,31,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-primary) 92%);
  pointer-events: none;
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.trust-marks {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  opacity: 0.7;
}

.floating-tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ftag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent-cyan);
  opacity: 0;
  animation: tagFade 8s ease-in-out infinite;
  animation-delay: var(--d);
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: scrollCue 1.8s ease-in-out infinite;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; }

/* ==========================================================================
   SOLUTIONS CARDS
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solution-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: transform var(--dur-base) var(--ease-premium), border-color var(--dur-base) var(--ease-premium), background var(--dur-base) var(--ease-premium);
  overflow: hidden;
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,0.35);
  background: var(--card-bg-hover);
}
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,0%), rgba(34,211,238,0.18), transparent 70%);
  transition: opacity var(--dur-base) ease;
  pointer-events: none;
}
.solution-card:hover .card-glow { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(76,175,80,0.1);
  color: var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--dur-base) var(--ease-premium), background var(--dur-base) ease;
}
.card-icon svg { width: 24px; height: 24px; }
.solution-card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(34,211,238,0.16);
}

.solution-card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.solution-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.25rem; }
.card-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   PRODUCT SHOWCASE
   ========================================================================== */
.showcase { background: var(--bg-secondary); }

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.showcase-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--dur-fast) ease;
}
.tab-index { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.showcase-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.showcase-tab.is-active {
  background: rgba(34,211,238,0.1);
  border-color: rgba(34,211,238,0.4);
  color: var(--text-primary);
}
.showcase-tab.is-active .tab-index { color: var(--accent-cyan); }

.showcase-panel {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  min-height: 560px;
  overflow: hidden;
}

.showcase-scene {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.showcase-scene.is-active { display: grid; }

.scene-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 0.9rem;
}
.scene-copy h3 { font-size: 1.85rem; margin-bottom: 1rem; }
.scene-copy p { color: var(--text-secondary); margin-bottom: 1.75rem; max-width: 420px; }

.scene-photo {
  max-width: 420px;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  perspective: 1400px;
  transition: box-shadow var(--dur-slow) ease;
}
.scene-photo:hover { box-shadow: 0 30px 60px -18px rgba(34,211,238,0.35), var(--shadow-soft); }
.scene-photo img { width: 100%; display: block; }

.scene-steps { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.scene-steps .step {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all var(--dur-fast) ease;
}
.scene-steps .step.is-active {
  color: var(--bg-primary);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
}

/* Device mock frame shared */
.device-mock { display: flex; justify-content: center; }

/* Phone mock (Product 1) */
.phone-mock .device-frame {
  width: 260px;
  height: 520px;
  border-radius: 34px;
  background: linear-gradient(160deg, #0d1b30, #0a1424);
  border: 1px solid var(--border-strong);
  padding: 14px;
  box-shadow: var(--shadow-soft), 0 0 60px -20px rgba(34,211,238,0.25);
}
.device-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 22px;
  background: var(--bg-primary);
  overflow: hidden;
  padding: 1.1rem 1rem;
}
.app-view {
  position: absolute;
  inset: 0;
  padding: 1.1rem 1rem;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity var(--dur-base) var(--ease-premium), transform var(--dur-base) var(--ease-premium);
  pointer-events: none;
}
.app-view.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }

.app-topbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.1rem;
}
.dot-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cyan); }

.restaurant-card, .menu-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  margin-bottom: 0.65rem;
}
.thumb { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.thumb-a { background: linear-gradient(135deg, #4CAF50, #22D3EE); }
.thumb-b { background: linear-gradient(135deg, #8B5CF6, #4CAF50); }
.thumb-c { background: linear-gradient(135deg, #22D3EE, #8B5CF6); }
.r-info { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; }
.r-info small { color: var(--text-muted); }

.menu-item { justify-content: space-between; font-size: 0.85rem; font-weight: 500; }
.add-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(34,211,238,0.15); color: var(--accent-cyan);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.cart-bar {
  margin-top: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem; font-weight: 700;
}

.track-map { margin: 1rem 0; }
.route-svg { width: 100%; }
.eta { text-align: center; font-size: 0.9rem; color: var(--text-secondary); }
.eta b { color: var(--accent-cyan); }

.success-check { display: flex; justify-content: center; margin-top: 3rem; }
.check-circle { stroke: var(--accent-cyan); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.check-mark { stroke: var(--accent-cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.app-view[data-view="3"].is-active .check-circle { animation: drawCheck 0.6s var(--ease-premium) forwards; }
.app-view[data-view="3"].is-active .check-mark { animation: drawCheck 0.4s var(--ease-premium) 0.5s forwards; }
.success-text { text-align: center; margin-top: 1.25rem; font-weight: 700; color: var(--text-primary); }

/* Map mock (Product 2) */
.map-mock { width: 100%; }
.map-canvas {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}
.map-svg { width: 100%; height: auto; }
.map-grid { opacity: 0.5; }
.taxi-route { stroke-dasharray: 700; stroke-dashoffset: 700; animation: drawRoute 2.6s var(--ease-premium) forwards; animation-play-state: paused; }
.showcase-scene.is-active .taxi-route { animation-play-state: running; }

.fare-card {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: rgba(7,17,31,0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 0.4rem;
  min-width: 130px;
}
.fare-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--text-secondary); }
.fare-row b { color: var(--text-primary); }

/* Split mock (Product 3) */
.split-mock {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.split-left { display: flex; flex-direction: column; gap: 0.65rem; }
.opt-btn,
.opt-btn-tailor {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--dur-fast) ease;
}
.opt-btn:hover,
.opt-btn-tailor:hover { border-color: var(--border-strong); }
.opt-btn.is-selected,
.opt-btn-tailor.is-selected {
  background: rgba(34,211,238,0.1);
  border-color: rgba(34,211,238,0.4);
  color: var(--accent-cyan);
}
.split-right {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.summary-title { font-weight: 700; margin-bottom: 0.9rem; font-size: 0.95rem; }
.summary-list { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-height: 80px; }
.summary-list li {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-secondary);
  animation: itemIn 0.35s var(--ease-premium);
}
.summary-total {
  display: flex; justify-content: space-between;
  padding-top: 0.9rem; margin-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  font-weight: 700;
}
.summary-total b { color: var(--accent-cyan); }

/* Dashboard mock (Product 4) */
.dashboard-mock { width: 100%; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.dash-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.dash-wide { grid-column: span 4; }
.dash-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dash-num { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text-primary); }
.dash-card small { color: var(--text-secondary); font-size: 0.75rem; }
.dash-bars { display: flex; gap: 1.25rem; align-items: flex-end; height: 90px; margin-top: 0.5rem; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 1; height: 100%; justify-content: flex-end; }
.bar i {
  display: block; width: 100%; border-radius: 6px 6px 0 0;
  background: var(--gradient-accent);
  height: 0;
  transition: height 1.1s var(--ease-premium);
}
.showcase-scene.is-active .bar i { height: var(--h); }
.bar small { color: var(--text-muted); font-size: 0.7rem; }

/* Trading mock (Product 5) */
.trading-mock {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.trade-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.trade-top span { color: var(--text-muted); font-size: 0.8rem; }
.trade-price { font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent-cyan); }
.candle-svg { width: 100%; height: 140px; margin-bottom: 1.25rem; }
.trade-actions { display: flex; align-items: center; gap: 0.75rem; }
.trade-btn { padding: 0.65rem 1.4rem; border-radius: var(--radius-full); font-weight: 700; font-size: 0.82rem; transition: transform var(--dur-fast) ease; }
.trade-btn.buy { background: rgba(34,211,238,0.15); color: var(--accent-cyan); border: 1px solid rgba(34,211,238,0.35); }
.trade-btn.sell { background: rgba(139,92,246,0.12); color: var(--accent-violet); border: 1px solid rgba(139,92,246,0.3); }
.trade-btn:hover { transform: translateY(-2px); }
.portfolio-val { margin-left: auto; text-align: right; font-size: 0.78rem; color: var(--text-muted); }
.portfolio-val b { display: block; color: var(--text-primary); font-size: 1rem; }

/* ==========================================================================
   DEDICATED DEVELOPERS
   ========================================================================== */
.flow-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 1rem;
  margin-bottom: var(--space-lg);
  perspective: 1400px;
}
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.flow-node {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium), border-color var(--dur-base) ease;
}
.flow-node.is-visible { opacity: 1; transform: translateY(0); }
.flow-node.is-active { border-color: rgba(34,211,238,0.4); box-shadow: var(--shadow-glow-cyan); }
.flow-icon { font-size: 1.8rem; }

.tech-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
  margin-bottom: var(--space-lg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.tech-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.dedicated-cta { text-align: center; }

/* ==========================================================================
   BENTO (WHY CHOOSE US)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1.25rem;
}
.bento-card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color var(--dur-base) ease, transform var(--dur-base) var(--ease-premium);
}
.bento-lg { grid-column: span 2; grid-row: span 1; }
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.bento-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; position: relative; z-index: 1; }
.bento-card p { color: var(--text-secondary); font-size: 0.87rem; position: relative; z-index: 1; }
.bento-card .card-link { margin-top: 0.9rem; position: relative; z-index: 1; }

.bento-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.6; }
.bg-grid {
  background-image: linear-gradient(rgba(76,175,80,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(76,175,80,0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: gridDrift 18s linear infinite;
}
.bg-gradient {
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.25), transparent 60%);
  animation: gradientPulse 8s ease-in-out infinite;
}
.bg-particles {
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(34,211,238,0.6), transparent), radial-gradient(2px 2px at 70% 60%, rgba(34,211,238,0.4), transparent), radial-gradient(1.5px 1.5px at 40% 80%, rgba(76,175,80,0.5), transparent), radial-gradient(1.5px 1.5px at 85% 20%, rgba(139,92,246,0.5), transparent);
  animation: particleFloat 10s ease-in-out infinite;
}
.bg-line {
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.5), transparent);
  background-size: 200% 100%;
  height: 1px;
  top: 50%;
  animation: lineSweep 5s ease-in-out infinite;
}
.bg-code {
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding-top: 2rem;
}
.timeline-line {
  position: absolute;
  z-index: 0;
  top: 2rem;
  left: 0; right: 0;
  height: 2px;
  background: var(--border-subtle);
  transform: translateY(11px);
}
.timeline-line-fill {
  height: 100%;
  width: var(--fill-pct, 0%);
  background: var(--gradient-accent);
  transition: width 1s var(--ease-premium);
}
.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  perspective: 800px;
}
.tl-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bg-primary);
  transition: all var(--dur-base) ease;
}
.timeline-step.is-active .tl-num {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  color: var(--bg-primary);
}
.tl-icon-stage {
  display: inline-block;
  line-height: 1;
}
.tl-icon {
  display: inline-block;
  font-size: 1.6rem;
  filter: grayscale(1) opacity(0.5);
  transition: filter var(--dur-base) ease, transform var(--dur-base) var(--ease-premium);
}
.timeline-step.is-active .tl-icon { filter: grayscale(0) opacity(1); transform: scale(1.15); }
.tl-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.timeline-step.is-active .tl-label { color: var(--text-primary); }

/* ==========================================================================
   CASE STUDIES
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  transition: transform var(--dur-base) var(--ease-premium), border-color var(--dur-base) ease;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.case-card:focus-visible { outline-offset: 4px; }
.case-media {
  height: 220px;
  transition: transform var(--dur-slow) var(--ease-premium);
}
.case-media-a { background: linear-gradient(135deg, #142a4a, #0b3a4a 60%, #071925); }
.case-media-b { background: linear-gradient(135deg, #1a1440, #0b2450 60%, #071925); }
.case-media-c { background: linear-gradient(135deg, #0f2e3d, #123a2a 60%, #071925); }
.case-media-d { background: linear-gradient(135deg, #1a2f1f, #0b3a2e 60%, #071f1c); }
.case-media-e { background: linear-gradient(135deg, #2a1435, #3a0b3a 60%, #1f0720); }
.case-card:hover .case-media { transform: scale(1.06); }

.case-overlay {
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,17,31,0.55);
  opacity: 0;
  transition: opacity var(--dur-base) ease;
}
.case-card:hover .case-overlay { opacity: 1; }
.view-cs {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(8px);
  transition: transform var(--dur-base) var(--ease-premium);
}
.case-card:hover .view-cs { transform: translateY(0); }

.case-body { padding: 1.75rem; }
.case-industry {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}
.case-body h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.case-body p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1rem; }
.case-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.case-tags span {
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}
.case-result { font-size: 0.85rem; font-weight: 600; color: var(--accent-cyan); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--bg-secondary); }
.testimonial-wrap {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark { width: 40px; height: 32px; margin: 0 auto 1.5rem; color: var(--accent-green); opacity: 0.5; }

.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; animation: fadeSlide 0.5s var(--ease-premium); }

.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient-accent);
}
.testimonial-meta div { text-align: left; display: flex; flex-direction: column; }
.testimonial-meta b { font-size: 0.9rem; }
.testimonial-meta span { color: var(--text-secondary); font-size: 0.8rem; }
.t-tag {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.testimonial-nav { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2.25rem; }
.t-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
  transition: all var(--dur-fast) ease;
}
.t-dot.is-active { background: var(--accent-cyan); width: 22px; border-radius: var(--radius-full); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.section-head-center { max-width: 700px; margin: 0 auto var(--space-lg); text-align: center; }
.section-head-center .section-sub { margin-inline: auto; }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) ease;
}
.faq-item[open] { border-color: rgba(34,211,238,0.35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--accent-cyan);
  transition: transform var(--dur-base) var(--ease-premium), background var(--dur-base) ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: rgba(34,211,238,0.12); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-secondary); font-size: 0.95rem; max-width: 680px; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  position: relative;
  text-align: center;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(76,175,80,0.18), transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.cta-content p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2.25rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: var(--space-lg);
}
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 1rem; max-width: 260px; }
.footer-col h4 { font-size: 0.85rem; margin-bottom: 1.1rem; color: var(--text-primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.88rem; transition: color var(--dur-fast) ease; }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-address { font-style: normal; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; margin-top: 0.9rem; }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   CORNER-BRACKET CARD ACCENT
   Viewfinder-style corner marks, drawn as an independent ::before layer
   so they never fight a card's own background. Grows + brightens on hover.
   ========================================================================== */
.corner-card {
  position: relative;
  --corner-color: var(--accent-cyan);
  --corner-len: 12px;
}
.corner-card:hover { --corner-len: 18px; }
.corner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color)),
    linear-gradient(var(--corner-color), var(--corner-color));
  background-size:
    var(--corner-len) 2px, 2px var(--corner-len),
    var(--corner-len) 2px, 2px var(--corner-len),
    var(--corner-len) 2px, 2px var(--corner-len),
    var(--corner-len) 2px, 2px var(--corner-len);
  background-position:
    10px 10px, 10px 10px,
    right 10px top 10px, right 10px top 10px,
    left 10px bottom 10px, left 10px bottom 10px,
    right 10px bottom 10px, right 10px bottom 10px;
  transition: background-size var(--dur-base) var(--ease-premium), opacity var(--dur-base) ease;
}
.corner-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .corner-card::before { transition: none; }
}

/* ==========================================================================
   3D TILT TARGETS
   Pointer-reactive perspective tilt, reused across photos (case-study
   banners, showcase preview shots), process icons (.tl-icon-stage) and
   flow-diagram nodes (.flow-node). Paired with a `perspective` parent set
   per context and driven by initTilt3D() in main.js. No base `transform`
   is set here on purpose — hosts that already animate their own transform
   (reveal-up, entrance slides) keep full control until the user's pointer
   actually moves over them.
   ========================================================================== */
.tilt-target {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-premium);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .tilt-target { transition: none; }
}
