/* OpenRescueMap – Presentation Website */

/* ----- Font ----- */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBM_Plex_Sans/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBM_Plex_Sans/IBMPlexSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

/* ----- Reset ----- */

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

/* ----- Tokens ----- */

:root {
  --color-primary: #0A1B45;
  --color-primary-light: #DDE3F0;
  --color-accent: #CC2A40;
  --color-secondary: #3A8FB5;
  --color-secondary-dark: #1A5F7A;

  --color-text: #0D1421;
  --color-text-light: #5A6A8A;
  --color-bg: #FAFAFA;
  --color-bg-alt: #F1F3F9;
  --color-border: #D8DEED;
  --color-border-light: #EBEDF5;

  --color-success: #4CAF7D;
  --color-warning: #FFB547;
  --color-error: #D93025;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 960px;
  --max-width-wide: 1120px;
  --radius: 0.75rem;
  --radius-lg: 1rem;
}

[data-theme="dark"] {
  --color-primary: #DDE3F0;
  --color-primary-light: #111E3A;
  --color-accent: #FF6B6B;
  --color-secondary: #3A8FB5;
  --color-secondary-dark: #5BB8D9;

  --color-text: #F0F4FF;
  --color-text-light: #6B7FA3;
  --color-bg: #080C16;
  --color-bg-alt: #0E1525;
  --color-border: #1E2D45;
  --color-border-light: #162030;

  --color-error: #FF6B6B;
}

/* ----- Base ----- */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-secondary-dark);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="dark"] .site-header {
  background: rgba(8, 12, 22, 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header .logo img { border-radius: 6px; }

[data-theme="dark"] .site-header .logo img {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--color-text); text-decoration: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-light);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 3rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-secondary-dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 95, 122, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  animation: btn-shimmer 3.5s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0%   { left: -100%; }
  40%  { left: 140%; }
  100% { left: 140%; }
}

.btn-primary:hover {
  background: #237a9a;
  box-shadow: 0 6px 28px rgba(26, 95, 122, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary .btn-icon {
  display: flex;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.btn-primary .btn-icon svg {
  width: 100%;
  height: 100%;
}

[data-theme="dark"] .btn-primary {
  background: #2a7a9a;
  box-shadow: 0 4px 20px rgba(42, 122, 154, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  background: #3a8fb5;
  box-shadow: 0 6px 28px rgba(42, 122, 154, 0.45);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background: #060E24;
  color: #fff;
  height: calc(100vh - 3.5rem);
  display: flex;
  align-items: center;
}

[data-theme="dark"] .hero {
  background: #030710;
}

/* Map background with fade */
.hero-map {
  position: absolute;
  inset: -20px;
  background: url("../images/background-hero.webp") center / cover no-repeat;
  opacity: 0.48;
  pointer-events: none;
  transform: scale(1.05);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.hero-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #060E24 0%, transparent 35%, transparent 65%, #060E24 100%),
    linear-gradient(to bottom, #060E24 0%, transparent 40%, transparent 60%, #060E24 100%);
}

[data-theme="dark"] .hero-map::after {
  background:
    linear-gradient(to right, #030710 0%, transparent 35%, transparent 65%, #030710 100%),
    linear-gradient(to bottom, #030710 0%, transparent 40%, transparent 60%, #030710 100%);
}

/* Coordinate labels */
.hero-coord {
  position: absolute;
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.08em;
  z-index: 1;
  pointer-events: none;
}

.hero-coord--tl {
  top: 2rem;
  left: 2rem;
}

.hero-coord--br {
  bottom: 2rem;
  right: 2rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-lg);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 0 40px rgba(6,14,36,0.8);
  min-height: 2.3em;
}

.typewriter::after {
  content: "|";
  font-weight: 300;
  opacity: 1;
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
}

.typewriter--done::after {
  animation: blink 0.7s step-end infinite;
}

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

/* Cursor speed override — keep it calm */
.typewriter::after {
  animation-duration: 1.2s;
}

.typewriter--done::after {
  animation-duration: 1.2s;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5), 0 0 30px rgba(6,14,36,0.7);
  margin-bottom: var(--space-2xl);
}

/* Hero CTA – Store buttons */
.hero-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63946;
  box-shadow: 0 0 6px #e63946, 0 0 12px #e63946;
  animation: soon-pulse 2s ease-in-out infinite;
}

@keyframes soon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-sm);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  background: #fff;
  color: var(--color-primary);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.store-btn:active {
  transform: translateY(0) scale(0.97);
}

.store-btn--soon {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
}

.store-btn-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.2;
  margin-bottom: 0.125rem;
}

.store-btn-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

[data-theme="dark"] .store-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .store-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-tags {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-device {
  flex-shrink: 0;
  position: relative;
}

/* Phone tilt with perspective */
.phone-tilt {
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* =========================================================
   PHONE FRAME
   ========================================================= */

.phone-frame {
  width: 252px;
  height: 524px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
  border-radius: 2.5rem;
  padding: 10px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 40px rgba(58, 143, 181, 0.12),
    0 32px 64px rgba(0,0,0,0.4),
    0 8px 20px rgba(0,0,0,0.2);
}

/* Metallic edge highlight */
.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2.5rem;
  border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), transparent 40%, transparent 60%, rgba(255,255,255,0.05)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #111827;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: var(--space-md);
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.phone-placeholder img { opacity: 0.3; }

.phone-placeholder svg {
  opacity: 0.25;
  stroke: rgba(255,255,255,0.5);
}

.phone-placeholder--emergency {
  background: linear-gradient(180deg, #1a0008 0%, #220810 100%);
  color: rgba(255, 107, 107, 0.6);
}

.phone-placeholder--emergency svg {
  opacity: 0.35;
  stroke: #ff6b6b;
}

/* Features section: light screen */
.features .phone-screen {
  background: var(--color-bg-alt);
}

.features .phone-placeholder {
  color: var(--color-text-light);
}

.features .phone-placeholder svg {
  stroke: var(--color-text-light);
  opacity: 0.2;
}

.features .phone-placeholder--emergency {
  background: linear-gradient(180deg, #1a0008 0%, #220810 100%);
  color: rgba(255, 107, 107, 0.6);
}

.features .phone-placeholder--emergency svg {
  stroke: #ff6b6b;
  opacity: 0.35;
}

.features .phone-frame {
  background: var(--color-primary);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.04);
}

.features .phone-frame::after {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}

[data-theme="dark"] .features .phone-frame {
  background: #1a2540;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 48px rgba(0,0,0,0.3);
}

[data-theme="dark"] .features .phone-frame::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

[data-theme="dark"] .features .phone-screen {
  background: #111827;
}

[data-theme="dark"] .features .phone-placeholder {
  color: rgba(255,255,255,0.35);
}

[data-theme="dark"] .features .phone-placeholder svg {
  stroke: rgba(255,255,255,0.4);
}

/* Float animation (used outside hero) */
.phone-float {
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Phone slide crossfade */
.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-slide.is-active {
  opacity: 1;
}

/* =========================================================
   STATS BAR
   ========================================================= */

.stats {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-xl) 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-2xl);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.125rem;
  letter-spacing: 0.01em;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--color-border);
  flex-shrink: 0;
}

/* =========================================================
   FEATURES – Sticky Phone
   ========================================================= */

/* ── Section Waves ── */
.section-wave {
  line-height: 0;
  background: var(--color-bg-alt);
  margin-top: -1px;
}

.section-wave svg {
  width: 100%;
  height: 40px;
  display: block;
}

.section-wave--alt {
  background: var(--color-bg);
}

.section-wave--flip {
  background: var(--color-bg-alt);
}

.features {
  position: relative;
  padding: var(--space-5xl) 1.5rem var(--space-2xl);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

/* ── Floating Deco Elements ── */
.features-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: clip;
}

.deco {
  position: absolute;
  border-radius: 50%;
}

.deco-circle {
  border: 1.5px solid var(--color-border);
  background: transparent;
}

.deco-dot {
  background: var(--color-border);
}

.deco-ring {
  border: 2px solid var(--color-border-light);
  background: transparent;
}

.deco-cross {
  width: 16px !important;
  height: 16px !important;
  border-radius: 0;
  background: transparent;
}

.deco-cross::before,
.deco-cross::after {
  content: "";
  position: absolute;
  background: var(--color-border);
}

.deco-cross::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
}

.deco-cross::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1.5px;
  margin-left: -0.75px;
}

/* Positions & sizes */
.deco-1 { width: 80px; height: 80px; top: 8%;  left: -20px; animation: deco-float 14s ease-in-out infinite; }
.deco-2 { width: 50px; height: 50px; top: 55%; right: 10px; animation: deco-float 18s 3s ease-in-out infinite; }
.deco-3 { width: 120px; height: 120px; bottom: 10%; left: 5%; animation: deco-float 20s 6s ease-in-out infinite; opacity: 0.5; }
.deco-4 { width: 6px;  height: 6px;  top: 15%; right: 15%; animation: deco-float 10s 1s ease-in-out infinite; }
.deco-5 { width: 4px;  height: 4px;  top: 40%; left: 8%;  animation: deco-float 12s 4s ease-in-out infinite; }
.deco-6 { width: 5px;  height: 5px;  bottom: 25%; right: 20%; animation: deco-float 11s 2s ease-in-out infinite; }
.deco-7 { width: 36px; height: 36px; top: 30%; right: 5%; animation: deco-float 16s 5s ease-in-out infinite; }
.deco-8 { top: 70%; left: 3%; animation: deco-float 13s 7s ease-in-out infinite; }

@keyframes deco-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(8deg); }
}

[data-theme="dark"] .deco-circle { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .deco-dot { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .deco-ring { border-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .deco-cross::before,
[data-theme="dark"] .deco-cross::after { background: rgba(255,255,255,0.06); }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-3xl);
  letter-spacing: -0.02em;
}

.features-scroll {
  display: flex;
  gap: var(--space-4xl);
  align-items: flex-start;
}

.features-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-block {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) 0;
  padding-left: var(--space-xl);
  border-left: 2px solid var(--color-border-light);
  opacity: 0.55;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

.feature-block.is-active {
  opacity: 1;
  border-left-color: var(--color-accent);
}

/* Icon */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  transition: background 0.3s, color 0.3s;
}

.feature-block.is-active .feature-icon {
  background: var(--color-accent);
  color: #fff;
}

[data-theme="dark"] .feature-icon {
  background: rgba(255,255,255,0.06);
  color: var(--color-text-light);
}

[data-theme="dark"] .feature-block.is-active .feature-icon {
  background: var(--color-accent);
  color: #fff;
}

.feature-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-xs);
}

[data-theme="dark"] .feature-number {
  color: var(--color-accent);
}

.feature-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.feature-block p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 420px;
}

/* Feature tags */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

[data-theme="dark"] .feature-tag {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* Inline phone per feature block (mobile only) */
.feature-phone-inline {
  display: none;
}

.features-phone {
  position: sticky;
  top: calc(50vh - 262px);
  flex-shrink: 0;
}

/* =========================================================
   TRUST
   ========================================================= */

.trust {
  padding: var(--space-5xl) 1.5rem;
  background: var(--color-bg-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  transform-style: preserve-3d;
  will-change: transform;
}

.trust-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

[data-theme="dark"] .trust-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .trust-icon {
  background: rgba(255,255,255,0.06);
}

.trust-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.trust-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq {
  padding: var(--space-5xl) 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-lg) 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.faq-item dt {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.faq-item dd {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-secondary-dark);
  background: transparent;
  border: 1px solid var(--color-secondary-dark);
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-share:hover {
  background: var(--color-secondary-dark);
  color: #fff;
}

.btn-share svg {
  flex-shrink: 0;
}

[data-theme="dark"] .btn-share {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

[data-theme="dark"] .btn-share:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* =========================================================
   CTA BOTTOM
   ========================================================= */

.cta-bottom {
  background: #060E24;
  color: #fff;
  padding: var(--space-5xl) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(58, 143, 181, 0.15), transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .cta-bottom {
  background: #030710;
}

.cta-bottom-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.cta-bottom h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: #fff;
}

/* Roadmap timeline */
.roadmap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.roadmap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  width: 5rem;
  flex-shrink: 0;
}

.roadmap-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.roadmap-dot svg {
  color: #fff;
}

.roadmap-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.25);
}

.roadmap-line {
  flex: 0 0 3.5rem;
  height: 2px;
  margin: 0 0.25rem;
  margin-bottom: 1.5rem;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.roadmap-line.is-done {
  background: var(--color-success);
}

/* Gradient line between done and active */
.roadmap-line.is-partial {
  background: rgba(255, 255, 255, 0.08);
}

.roadmap-line.is-partial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-success), var(--color-accent));
  border-radius: 1px;
}

/* Done state — green */
.roadmap-step.is-done .roadmap-dot {
  background: var(--color-success);
  border-color: var(--color-success);
}

.roadmap-step.is-done .roadmap-label {
  color: rgba(255, 255, 255, 0.5);
}

/* Active state — live red, slightly larger, pulse */
.roadmap-step.is-active .roadmap-dot {
  width: 1rem;
  height: 1rem;
  background: var(--color-accent);
  border-color: var(--color-accent);
  position: relative;
}

.roadmap-step.is-active .roadmap-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  animation: roadmap-pulse 2.4s ease-out infinite;
}

.roadmap-step.is-active .roadmap-label {
  color: var(--color-accent);
  font-weight: 700;
}

[data-theme="dark"] .roadmap-step.is-active .roadmap-label {
  color: var(--color-accent);
}

@keyframes roadmap-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.cta-soon {
  margin-top: var(--space-lg);
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

/* Dark variant of store buttons for CTA section */
.store-btn--dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.store-btn--dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.site-footer nav { margin-bottom: 0.75rem; }

.site-footer nav a {
  margin: 0 0.75rem;
  color: var(--color-text-light);
  font-size: 0.8125rem;
}

.site-footer nav a:hover { color: var(--color-secondary-dark); }

.footer-attribution {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--color-text-light);
}
.footer-attribution a { color: var(--color-text-light); }

/* =========================================================
   LEGAL PAGES
   ========================================================= */

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

.legal h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal h4 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.legal p { margin-bottom: 1rem; }
.legal p, .legal li { color: var(--color-text-light); }
.legal ul, .legal ol { margin-left: 1.5rem; margin-bottom: 1rem; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.trust-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.trust-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.faq-item.reveal:nth-child(2) { transition-delay: 0.05s; }
.faq-item.reveal:nth-child(3) { transition-delay: 0.1s; }
.faq-item.reveal:nth-child(4) { transition-delay: 0.15s; }
.faq-item.reveal:nth-child(5) { transition-delay: 0.2s; }
.faq-item.reveal:nth-child(6) { transition-delay: 0.25s; }
.faq-item.reveal:nth-child(7) { transition-delay: 0.3s; }
.faq-item.reveal:nth-child(8) { transition-delay: 0.35s; }

/* =========================================================
   PHONE HINT + LIGHTBOX (desktop only)
   ========================================================= */

/* Hint badge on hero phone */
.phone-hint {
  display: none;
}

@media (min-width: 861px) {
  .phone-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: hint-fade 1.5s 2s ease forwards;
    background: none;
    border: none;
    font-family: var(--font-sans);
    transition: color 0.15s;
  }

  .phone-hint:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  .phone-hint svg {
    opacity: 0.5;
  }

  #hero-phone {
    cursor: pointer;
  }

  #hero-phone:hover {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.1),
      0 0 0 1px rgba(255,255,255,0.08),
      0 0 50px rgba(58, 143, 181, 0.25),
      0 32px 64px rgba(0,0,0,0.4),
      0 8px 20px rgba(0,0,0,0.2);
  }

  #hero-phone:hover .phone-hint {
    color: rgba(255, 255, 255, 0.7);
  }
}

@keyframes hint-fade {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Lightbox overlay */
.phone-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.phone-lightbox.is-open {
  display: flex;
}

.phone-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.phone-lightbox.is-open .phone-lightbox-backdrop {
  opacity: 1;
}

.phone-lightbox-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.phone-lightbox.is-open .phone-lightbox-body {
  opacity: 1;
  transform: scale(1);
}

.phone-lightbox-frame {
  width: min(320px, 35dvh);
  height: min(666px, 70dvh);
  padding: clamp(8px, 1.5dvh, 14px);
}

.phone-lightbox-frame .phone-screen {
  position: relative;
}

.phone-lightbox-frame {
  overflow: visible;
}

.phone-lightbox-frame .phone-screenshot {
  border-radius: 2rem;
  clip-path: inset(0 round 2rem);
}

.phone-hotspots {
  overflow: visible;
}

.phone-lightbox-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.phone-lightbox-img--a {
  z-index: 1;
}

.phone-lightbox-img--b {
  z-index: 0;
}

/* Hotspots container */
.phone-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.phone-hotspot {
  position: absolute;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.2s;
}

/* Tap-hint: pulsing ring outline */
.phone-hotspot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  /* Default size, overridable via --ring-size on each hotspot */
  width: var(--ring-size, 42px);
  height: var(--ring-size, 42px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(10, 27, 69, 0.45);
  background: transparent;
  pointer-events: none;
  animation: ring-pulse 2.4s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9);  opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.1);  opacity: 1; }
}

.phone-hotspot:hover::before {
  animation: none;
  opacity: 0;
}

.phone-hotspot:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Hotspot tooltip — fixed so it's never clipped */
.phone-hotspot-label {
  position: fixed;
  z-index: 1100;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 27, 69, 0.92);
  padding: 0.3rem 0.625rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  transform: translateX(-50%);
}

/* Close button */
.phone-lightbox-close {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.phone-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Caption + hint */
.phone-lightbox-caption {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.phone-lightbox-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.01em;
  margin-top: -0.5rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 860px) {
  .hero {
    height: auto;
    min-height: calc(100vh - 3.5rem);
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-2xl) 1.5rem var(--space-3xl);
    gap: var(--space-xl);
  }

  .hero-content { max-width: 100%; }

  .hero h1 { font-size: 2.25rem; min-height: 2.6em; }

  .hero-sub { margin-bottom: var(--space-lg); }

  .hero-soon { font-size: 0.875rem; }

  .hero-tags { justify-content: center; }

  .hero-coord { display: none; }

  .phone-tilt {
    transform: perspective(1200px) rotateY(0) rotateX(0);
  }

  .cta-bottom { padding: var(--space-4xl) 1.5rem; }
  .cta-bottom h2 { font-size: 1.5rem; }
  .cta-soon { font-size: 1rem; }

  /* Stats: 2x2 grid */
  .stats-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .stat {
    width: 50%;
    padding: var(--space-md);
  }

  .stat-divider { display: none; }

  /* Features: stack */
  .features-scroll {
    flex-direction: column;
    align-items: center;
  }

  .features-phone {
    display: none;
  }

  .feature-phone-inline {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
  }

  .feature-block {
    min-height: auto;
    padding: var(--space-2xl) 0;
    padding-left: 0;
    text-align: center;
    border-left: none;
    opacity: 1;
  }

  .feature-block.is-active { border-left: none; }
  .feature-block p { max-width: 100%; }
  .feature-tags { justify-content: center; }
  .feature-icon { margin: 0 auto var(--space-md); }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Roadmap vertical on mobile */
  .roadmap {
    flex-direction: column;
    align-items: center;
  }

  .roadmap-step {
    width: auto;
    flex-direction: row;
    gap: 0.75rem;
  }

  .roadmap-line {
    flex: 0 0 1.5rem;
    width: 2px;
    height: 1.5rem;
    margin: 0.125rem 0;
    margin-bottom: 0;
  }

  .nav-desktop {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; min-height: 2.6em; }
  .hero-sub { font-size: 0.9375rem; }
  .hero-soon { font-size: 0.8125rem; padding: 0.5rem 1.1rem; }

  .section-title { font-size: 1.5rem; }

  .phone-frame {
    width: 212px;
    height: 440px;
    border-radius: 2rem;
    padding: 8px;
  }

  .phone-screen { border-radius: 1.5rem; }

  .feature-block h3 { font-size: 1.25rem; }

  .cta-bottom h2 { font-size: 1.25rem; }
  .cta-soon { font-size: 0.9375rem; }
  .cta-bottom { padding: var(--space-3xl) 1.5rem; }

  .site-nav { gap: 0.875rem; }
  .site-nav a { font-size: 0.8125rem; }

  .stat { padding: var(--space-sm) var(--space-md); }
  .stat-value { font-size: 1.5rem; }

  .faq-item dt { font-size: 0.9375rem; }
  .faq-item dd { font-size: 0.875rem; }
}

/* ----- Large screens ----- */

@media (min-width: 1400px) {
  .phone-frame {
    width: 296px;
    height: 616px;
  }

  .features-phone {
    top: calc(50vh - 308px);
  }

}

@media (min-width: 1800px) {
  .phone-frame {
    width: 340px;
    height: 708px;
    border-radius: 3rem;
    padding: 12px;
  }

  .phone-screen { border-radius: 2.25rem; }

  .features-phone {
    top: calc(50vh - 354px);
  }

}

/* ----- Reduced motion ----- */

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

  .btn, .theme-toggle, .phone-slide, .feature-block, .trust-card {
    transition: none;
  }

  .phone-float { animation: none; }

  .phone-tilt {
    transform: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
