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

:root {
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;

  --emerald-500: #10b981;
  --violet-500: #8b5cf6;
  --amber-500: #f59e0b;
  --rose-500: #e5484d;

  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Semantic tokens — light (default) */
  --page-bg: #f4f7fb;
  --page-fg: #18181b;
  --page-fg-strong: #09090b;
  --muted: #52525b;
  --subtle: #71717a;
  --faint: #a1a1aa;
  --header-bg: rgba(244, 247, 251, 0.82);
  --header-bg-scrolled: rgba(255, 255, 255, 0.92);
  --header-border: rgba(15, 23, 42, 0.08);
  --surface: rgba(15, 23, 42, 0.03);
  --surface-2: rgba(15, 23, 42, 0.04);
  --surface-hover: rgba(15, 23, 42, 0.05);
  --surface-strong: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.08);
  --border-2: rgba(15, 23, 42, 0.1);
  --border-3: rgba(15, 23, 42, 0.12);
  --border-4: rgba(15, 23, 42, 0.16);
  --section-alt: rgba(15, 23, 42, 0.03);
  --nav-menu-bg: rgba(255, 255, 255, 0.96);
  --toggle-bar: #3f3f46;
  --grid-line: rgba(2, 132, 199, 0.08);
  --glow-1: rgba(14, 165, 233, 0.16);
  --glow-2: rgba(2, 132, 199, 0.1);
  --stat-divider: #e4e4e7;
  --phone-frame-bg: #ffffff;
  --phone-frame-border: #d4d4d8;
  --phone-screen-bg: #e8f4fc;
  --phone-chrome-bg: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
  --phone-chrome-border: rgba(15, 23, 42, 0.1);
  --phone-ui-title: #18181b;
  --phone-ui-fg: #3f3f46;
  --phone-ui-muted: #71717a;
  --phone-switch-off: #d4d4d8;
  --phone-switch-knob: #fafafa;
  --map-search-bg: rgba(255, 255, 255, 0.92);
  --map-card-bg: rgba(255, 255, 255, 0.95);
  --map-tabs-bg: rgba(255, 255, 255, 0.96);
  --ghost-btn-bg: rgba(15, 23, 42, 0.04);
  --ghost-btn-border: rgba(15, 23, 42, 0.1);
  --ghost-btn-hover: rgba(15, 23, 42, 0.07);
  --download-card-bg: linear-gradient(160deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0.9));
  --guide-teaser-bg: linear-gradient(160deg, rgba(14, 165, 233, 0.1), rgba(255, 255, 255, 0.7));
  --plan-pro-bg: linear-gradient(160deg, rgba(14, 165, 233, 0.1), rgba(255, 255, 255, 0.6));
  --theme-color: #f4f7fb;
}

html[data-theme="dark"] {
  --page-bg: #09090b;
  --page-fg: #f4f4f5;
  --page-fg-strong: #fafafa;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --faint: #52525b;
  --header-bg: rgba(9, 9, 11, 0.72);
  --header-bg-scrolled: rgba(9, 9, 11, 0.92);
  --header-border: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.08);
  --border-3: rgba(255, 255, 255, 0.1);
  --border-4: rgba(255, 255, 255, 0.14);
  --section-alt: rgba(255, 255, 255, 0.02);
  --nav-menu-bg: rgba(9, 9, 11, 0.95);
  --toggle-bar: #e4e4e7;
  --grid-line: rgba(14, 165, 233, 0.03);
  --glow-1: rgba(14, 165, 233, 0.12);
  --glow-2: rgba(56, 189, 248, 0.08);
  --stat-divider: #27272a;
  --phone-frame-bg: #18181b;
  --phone-frame-border: #3f3f46;
  --phone-screen-bg: #0c1a2e;
  --phone-chrome-bg: linear-gradient(180deg, #12141a 0%, #0b0d12 100%);
  --phone-chrome-border: rgba(255, 255, 255, 0.1);
  --phone-row-bg: transparent;
  --phone-ui-title: #fafafa;
  --phone-ui-fg: #d4d4d8;
  --phone-ui-muted: #71717a;
  --phone-switch-off: #3f3f46;
  --phone-switch-knob: #d4d4d8;
  --map-search-bg: rgba(9, 9, 11, 0.85);
  --map-card-bg: rgba(9, 9, 11, 0.9);
  --map-tabs-bg: rgba(9, 9, 11, 0.95);
  --ghost-btn-bg: rgba(255, 255, 255, 0.05);
  --ghost-btn-border: rgba(255, 255, 255, 0.1);
  --ghost-btn-hover: rgba(255, 255, 255, 0.08);
  --download-card-bg: linear-gradient(160deg, rgba(14, 165, 233, 0.1), rgba(9, 9, 11, 0.8));
  --guide-teaser-bg: linear-gradient(160deg, rgba(14, 165, 233, 0.1), rgba(255, 255, 255, 0.02));
  --plan-pro-bg: linear-gradient(160deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
  --theme-color: #09090b;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
  background: var(--page-bg);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--page-fg);
  line-height: 1.6;
}

a { color: var(--sky-600); text-decoration: none; transition: color var(--transition); }
html[data-theme="dark"] a { color: var(--sky-400); }
a:hover { color: var(--sky-500); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 720px; }

/* ── Background Effects ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: var(--glow-1);
  animation: float 20s ease-in-out infinite;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: var(--glow-2);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--page-fg-strong);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo__icon {
  width: 32px;
  height: 32px;
  color: var(--sky-500);
}

.logo__icon--sm { width: 22px; height: 22px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--page-fg-strong); }

.nav__cta {
  background: var(--sky-500) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover {
  background: var(--sky-600) !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--toggle-bar);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  min-height: auto;
  padding-top: 24px;
  padding-bottom: 80px;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--sky-400);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600), #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  color: white;
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.3);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--ghost {
  background: var(--ghost-btn-bg);
  color: var(--page-fg);
  border: 1px solid var(--ghost-btn-border);
}

.btn--ghost:hover {
  background: var(--ghost-btn-hover);
  color: var(--page-fg-strong);
}

.btn--large {
  padding: 14px 32px;
  font-size: 1rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat__value {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--page-fg);
}

.stat__label {
  display: block;
  font-size: 0.78rem;
  color: var(--subtle);
  margin-top: 2px;
}

.stat__divider {
  width: 1px;
  height: 32px;
  background: var(--stat-divider);
}

/* ── Phone Mockup ── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  position: relative;
  z-index: 2;
}

.phone__frame {
  width: 280px;
  height: 580px;
  background: var(--phone-frame-bg);
  border-radius: 36px;
  border: 2px solid var(--phone-frame-border);
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 1px var(--surface-hover),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(14, 165, 233, 0.08);
}

.phone__notch {
  width: 100px;
  height: 24px;
  background: var(--page-bg);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
}

.phone__screen {
  border-radius: 24px;
  overflow: hidden;
  height: calc(100% - 32px);
  background: var(--phone-screen-bg);
}

.phone__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.15), transparent 70%);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.map-ui {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-ui__search {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--map-search-bg);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  font-size: 0.72rem;
  color: var(--subtle);
  border: 1px solid var(--border-2);
}

.map-ui__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-ui__roads {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(75deg, transparent 48%, rgba(14, 165, 233, 0.12) 49%, rgba(14, 165, 233, 0.12) 51%, transparent 52%),
    linear-gradient(15deg, transparent 58%, rgba(14, 165, 233, 0.08) 59%, rgba(14, 165, 233, 0.08) 61%, transparent 62%),
    linear-gradient(-30deg, transparent 38%, rgba(14, 165, 233, 0.1) 39%, rgba(14, 165, 233, 0.1) 41%, transparent 42%);
}

.map-ui__pin {
  position: absolute;
  z-index: 3;
}

.map-ui__pin svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.4));
}

.map-ui__pin--main {
  top: 42%;
  left: 50%;
  transform: translate(-50%, -100%);
  color: var(--sky-500);
  animation: pin-bounce 3s ease-in-out infinite;
}

.map-ui__pin--main svg { width: 36px; height: 36px; }

.pin__pulse {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.3);
  animation: pin-pulse 2s ease-out infinite;
}

@keyframes pin-bounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, calc(-100% - 6px)); }
}

@keyframes pin-pulse {
  0% { transform: translateX(-50%) scale(0.5); opacity: 1; }
  100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

.map-ui__pin--small { color: var(--subtle); opacity: 0.6; }
.map-ui__pin--small svg { width: 20px; height: 20px; }
.map-ui__pin--1 { top: 30%; left: 25%; }
.map-ui__pin--2 { top: 55%; right: 20%; }

.map-ui__card {
  position: absolute;
  bottom: 56px;
  left: 12px;
  right: 12px;
  z-index: 5;
  padding: 12px;
  background: var(--map-card-bg);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid var(--border-2);
}

.map-ui__card-title {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.map-ui__card-coords {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--page-fg);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.map-ui__card-actions {
  display: flex;
  gap: 8px;
}

.map-ui__card-btn {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.map-ui__card-btn--primary {
  background: var(--sky-500);
  color: white;
}

.map-ui__card-btn--ghost {
  color: var(--muted);
  background: var(--map-tabs-bg);
  border: 1px solid var(--border-3);
}

.map-ui__tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 14px;
  background: var(--map-tabs-bg);
  border-top: 1px solid var(--border);
  font-size: 0.62rem;
  color: var(--subtle);
}

.map-ui__tabs .active { color: var(--sky-400); font-weight: 600; }

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(14, 165, 233, 0.1);
  z-index: 1;
}

.orbit--1 {
  width: 380px;
  height: 380px;
  animation: orbit-spin 30s linear infinite;
}

.orbit--2 {
  width: 460px;
  height: 460px;
  animation: orbit-spin 45s linear infinite reverse;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--section-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sky-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card__icon--blue { background: rgba(14, 165, 233, 0.12); color: var(--sky-400); }
.feature-card__icon--cyan { background: rgba(56, 189, 248, 0.12); color: var(--sky-500); }
.feature-card__icon--emerald { background: rgba(16, 185, 129, 0.12); color: var(--emerald-500); }
.feature-card__icon--violet { background: rgba(139, 92, 246, 0.12); color: var(--violet-500); }
.feature-card__icon--amber { background: rgba(245, 158, 11, 0.12); color: var(--amber-500); }
.feature-card__icon--rose { background: rgba(229, 72, 77, 0.12); color: var(--rose-500); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Steps ── */
.steps {
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 48px;
}

.step:last-child { padding-bottom: 0; }

.step__number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--sky-400);
}

.step__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 4px;
}

.step__content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.step__line {
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(14, 165, 233, 0.3), transparent);
}

.step:last-child .step__line { display: none; }

/* ── Guide teaser (homepage) ── */
.steps + .guide-teaser {
  margin-top: 48px;
}

.guide-teaser {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 24px;
  background: var(--guide-teaser-bg);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

.guide-teaser .section__desc {
  margin: 0 0 24px;
  text-align: left;
  max-width: none;
}

.guide-teaser__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-align: left;
}

.guide-teaser .section__tag {
  display: inline-block;
  margin-bottom: 12px;
}

.guide-teaser__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.guide-teaser__brands span {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.page-guide .guide-page {
  padding-top: 120px;
}

.page-guide .guide-phase__meta h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ── Device Guide ── */
.guide {
  max-width: 980px;
  margin: 0 auto;
}

.guide__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.guide__brand {
  appearance: none;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
}

.guide__brand:hover {
  color: var(--page-fg);
  border-color: var(--border-4);
  background: var(--border);
}

.guide__brand.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.28);
}

.guide__brand.is-active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
}

.guide__panel[hidden] { display: none; }

.guide__sys {
  text-align: center;
  color: var(--subtle);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.guide__phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-phase {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.guide-phase__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sky-400);
  background: rgba(14, 165, 233, 0.12);
  margin-bottom: 10px;
}

.guide-phase__badge--2 {
  color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.12);
}

.guide-phase__meta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.guide-phase__steps {
  list-style: none;
  counter-reset: guide-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-phase__steps li {
  counter-increment: guide-step;
  position: relative;
  padding-left: 32px;
  color: var(--phone-ui-fg);
  font-size: 0.9rem;
  line-height: 1.55;
}

.guide-phase__steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-phase__steps mark {
  background: rgba(14, 165, 233, 0.18);
  color: var(--sky-400);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.guide-phase__steps strong {
  color: var(--page-fg-strong);
}

/* Phone settings mock */
.phone-ui {
  margin-top: auto;
}

.phone-ui__chrome {
  border-radius: 18px;
  border: 1px solid var(--phone-chrome-border);
  background: var(--phone-chrome-bg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.phone-ui__status {
  height: 10px;
  background: var(--surface);
}

.phone-ui__title {
  padding: 14px 16px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--phone-ui-title);
  border-bottom: 1px solid var(--border);
}

.phone-ui__list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-ui__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--phone-ui-fg);
  font-size: 0.82rem;
}

.phone-ui__val {
  color: var(--phone-ui-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.phone-ui__val--accent {
  color: var(--sky-400);
  font-weight: 600;
}

.phone-ui__row--hl {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--phone-ui-title);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08), 0 8px 24px rgba(14, 165, 233, 0.12);
  animation: hl-pulse 2.4s ease-in-out infinite;
}

.phone-ui__tap {
  position: absolute;
  right: 10px;
  top: -10px;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--sky-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  animation: tap-bounce 1.6s ease-in-out infinite;
}

.phone-ui__row--hl .phone-ui__val {
  margin-right: 52px;
}

.phone-ui__switch {
  width: 34px;
  height: 20px;
  border-radius: 100px;
  background: var(--phone-switch-off);
  position: relative;
  flex-shrink: 0;
}

.phone-ui__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--zinc-300);
  transition: var(--transition);
}

.phone-ui__switch.is-on {
  background: rgba(14, 165, 233, 0.5);
}

.phone-ui__switch.is-on::after {
  left: 16px;
  background: var(--sky-400);
}

@keyframes hl-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08), 0 8px 24px rgba(14, 165, 233, 0.12); }
  50% { box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2), 0 8px 28px rgba(14, 165, 233, 0.22); }
}

@keyframes tap-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.guide__tip {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.guide__tip strong {
  color: var(--amber-500);
}

/* ── Plans ── */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.plan-card:hover {
  border-color: var(--border-3);
}

.plan-card--pro {
  background: var(--plan-pro-bg);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 0 60px rgba(14, 165, 233, 0.08);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
}

.plan-card__header {
  margin-bottom: 24px;
}

.plan-card__header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-card__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sky-400);
}

.plan-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--page-fg);
}

.plan-card__features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--emerald-500);
}

.plan-card__feature--muted {
  color: var(--zinc-500) !important;
}

.plan-card__feature--muted svg { color: var(--faint); }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(14, 165, 233, 0.2);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--subtle);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--sky-400);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Download ── */
.download__card {
  position: relative;
  padding: 64px 48px;
  border-radius: 24px;
  background: var(--download-card-bg);
  border: 1px solid rgba(14, 165, 233, 0.15);
  text-align: center;
  overflow: hidden;
}

.download__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  pointer-events: none;
}

.download__content { position: relative; z-index: 1; }

.download__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.download__content > p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.download__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.download__hint {
  font-size: 0.85rem;
  color: var(--subtle);
}

.download__platforms {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
}

.platform--active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-500);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--phone-ui-fg);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.purpose-note {
  margin: 0 0 28px;
  max-width: 36rem;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--subtle);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

.compat-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 84px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--page-fg);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.compat-notice p {
  margin: 0;
}

.compat-notice strong {
  font-weight: 700;
}

.compat-notice__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--amber-500);
}

@media (max-width: 640px) {
  .compat-notice {
    margin: 76px 0 0;
    padding: 14px 16px;
  }
}

.faq-item[open] summary {
  font-weight: 600;
}

.footer__link {
  font-size: 0.82rem;
  color: var(--subtle);
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 24px;
    min-height: auto;
  }

  .hero__desc { margin-left: auto; margin-right: auto; }
  .purpose-note { margin-left: auto; margin-right: auto; text-align: left; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { margin-top: 20px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .guide__phases { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--nav-menu-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-border);
    padding: 16px 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .nav__cta { margin: 8px 24px 0 !important; text-align: center; display: block !important; }

  .hero__title { font-size: 2rem; }
  .hero__stats { flex-direction: column; gap: 12px; }
  .stat__divider { width: 40px; height: 1px; }

  .phone__frame { width: 240px; height: 500px; }

  .features-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .guide__phases { grid-template-columns: 1fr; }
  .guide-teaser {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .guide-teaser__brands { justify-content: flex-start; }

  .download__card { padding: 40px 24px; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .section { padding: 72px 0; }
}

/* In-app WebView: hide marketing chrome */
body.is-embed .header,
body.is-embed .footer,
body.is-embed .bg-grid,
body.is-embed .bg-glow {
  display: none;
}

body.is-embed .page-guide .guide-page,
body.is-embed.page-guide .guide-page {
  padding-top: 24px;
}


/* theme polish */
html[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-500), #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="light"] .phone__frame {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 24px 80px rgba(15, 23, 42, 0.12),
    0 0 60px rgba(14, 165, 233, 0.08);
}

html[data-theme="light"] .guide__brand:not(.is-active) {
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .map-ui__tabs .active {
  color: var(--sky-600);
}

html[data-theme="light"] .feature-card__icon--cyan {
  color: var(--sky-600);
}

/* WeChat in-app browser: guide users to open APK download in an external browser */
.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.wx-guide.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wx-guide__card {
  max-width: 380px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--nav-menu-bg);
  color: var(--page-fg);
  box-shadow: 0 24px 64px rgba(2, 132, 199, 0.25);
  text-align: center;
  transform: translateY(12px);
  transition: transform var(--transition);
}

.wx-guide.is-open .wx-guide__card { transform: translateY(0); }

.wx-guide__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--sky-500);
}

.wx-guide__card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--page-fg-strong);
}

.wx-guide__card > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.wx-guide__steps {
  counter-reset: item;
  list-style: none;
  padding: 0;
  margin: 0 auto 20px;
  max-width: 280px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wx-guide__steps li {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}

.wx-guide__steps li b { color: var(--page-fg-strong); font-weight: 600; }

.wx-guide__steps li::before {
  content: counter(item);
  counter-increment: item;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
}

.wx-guide__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wx-guide__actions .btn {
  width: 100%;
  justify-content: center;
}
