/* ==========================================================================
   VICENOX — Official Design System Stylesheet
   Matches Packages/VicenoxKit/Sources/VicenoxKit/DesignSystem/Colors.swift
   & Gradient.swift (#8D55AC → #F28CB8 → #FF9B54)
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #101321;
  --surface: #202039;
  --surface-elevated: #2C2A46;
  --accent-pink: #F28CB8;
  --accent-purple: #B18AD5;
  --accent-cyan: #55C9DA;
  --sunset-orange: #FF9B54;
  --text-primary: #FFFFFF;
  --text-secondary: #C3BDD3;
  --divider: #393650;
  --on-pink: #101321;
  --gradient-fg: #101321;
  --header-bg: rgba(16, 19, 33, 0.82);
  --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: #FAF7FC;
  --surface: #FFFFFF;
  --surface-elevated: #F0EAF5;
  --accent-pink: #B93775;
  --accent-purple: #70449B;
  --accent-cyan: #087E92;
  --sunset-orange: #B85425;
  --text-primary: #241B35;
  --text-secondary: #726A80;
  --divider: #E5DCEB;
  --on-pink: #FFFFFF;
  --gradient-fg: #101321;
  --header-bg: rgba(250, 247, 252, 0.85);
  --card-shadow: 0 14px 34px rgba(36, 27, 53, 0.08);
}

:root {
  --vx-gradient-signature: linear-gradient(135deg, #8D55AC 0%, #F28CB8 52%, #FF9B54 100%);
  --vx-gradient-horizontal: linear-gradient(90deg, #8D55AC 0%, #F28CB8 52%, #FF9B54 100%);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
}

.ambient-glow-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #F28CB8 0%, #8D55AC 70%, transparent 100%);
  top: -120px;
  left: -100px;
}

.ambient-glow-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #FF9B54 0%, #55C9DA 75%, transparent 100%);
  bottom: -140px;
  right: -100px;
}

/* Typography Helpers */
.text-gradient {
  background: var(--vx-gradient-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--divider);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.brand-icon {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(242, 140, 184, 0.3);
}

.brand-wordmark {
  background: var(--vx-gradient-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent-pink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent-pink);
  transform: translateY(-1px);
}

[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: none;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: 11px;
}

.btn-primary {
  background: var(--vx-gradient-horizontal);
  color: var(--gradient-fg);
  box-shadow: 0 8px 24px rgba(242, 140, 184, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 140, 184, 0.45);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--divider);
}

.btn-secondary:hover {
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 64px 0 80px;
}

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

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--divider);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 0 0 rgba(242, 140, 184, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 140, 184, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(242, 140, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 140, 184, 0); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.hero-title .text-gradient {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-secondary);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 580px;
}

/* Signature Countdown Card (Matches CountdownView.swift hero) */
.vx-countdown-hero {
  position: relative;
  background: var(--vx-gradient-signature);
  color: var(--gradient-fg);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 20px 50px rgba(242, 140, 184, 0.35);
}

.vx-countdown-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  opacity: 0.75;
  margin-bottom: 14px;
}

.vx-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vx-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vx-countdown-value {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.vx-countdown-unit-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-top: 4px;
  opacity: 0.85;
}

.vx-release-meta-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: var(--card-shadow);
}

.vx-meta-caption {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.vx-meta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0;
}

.vx-meta-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 13px;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.badge-small {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.85;
}

.badge-large {
  font-size: 1rem;
  font-weight: 800;
}

/* Interactive iPhone Frame */
.hero-device-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phase-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.phase-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phase-btn.active {
  background: var(--surface-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.phase-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.phase-indicator.pink { background: var(--accent-pink); }
.phase-indicator.cyan { background: var(--accent-cyan); }

.iphone-frame {
  width: 340px;
  min-height: 650px;
  background: var(--bg);
  border: 10px solid #2A2942;
  border-radius: 48px;
  padding: 14px 14px 12px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.iphone-dynamic-island {
  background: #070810;
  color: #fff;
  border-radius: 999px;
  height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 800;
  margin: 0 auto 14px;
  width: 82%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.di-left {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
}

.di-left img {
  border-radius: 4px;
}

.di-right {
  color: #F28CB8;
  font-variant-numeric: tabular-nums;
}

.iphone-screen {
  display: none;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.iphone-screen.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ios-nav-title {
  font-size: 1.35rem;
  font-weight: 800;
  padding: 0 4px 4px;
}

.ios-hero-mini {
  background: var(--vx-gradient-signature);
  color: var(--gradient-fg);
  border-radius: 20px;
  padding: 16px 12px;
  text-align: center;
}

.ios-hero-caption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin-bottom: 6px;
}

.ios-hero-digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ios-hero-digits div {
  display: flex;
  flex-direction: column;
}

.ios-hero-digits strong {
  font-size: 1.45rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ios-hero-digits span {
  font-size: 0.58rem;
  font-weight: 800;
}

.ios-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid var(--divider);
}

.ios-card-caption {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.ios-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ios-card-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.ios-row-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ios-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ios-row-text {
  flex: 1;
}

.ios-toggle {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-pink);
  position: relative;
  flex-shrink: 0;
}

.ios-toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  right: 2px;
}

.ios-map-preview {
  height: 175px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--divider);
  position: relative;
}

.map-water-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1b4965 0%, #2C67A4 100%);
  position: relative;
}

.map-landmass {
  position: absolute;
  inset: 14% 18% 18% 22%;
  background: #2c3e35;
  border-radius: 42% 58% 45% 55% / 55% 42% 58% 45%;
  box-shadow: 0 0 0 6px rgba(101, 190, 209, 0.25);
}

.map-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}

.pin-mission { background: #F18DA8; color: #101321; }
.pin-property { background: #65BED1; color: #101321; }
.pin-opportunity { background: #F49A71; color: #101321; }
.pin-collectible { background: #F6BD83; color: #101321; }

.map-region-tag {
  position: absolute;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.ios-tracker-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tracker-ring-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ring-pct {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 900;
}

.tracker-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.bar-track {
  height: 5px;
  border-radius: 999px;
  background: var(--divider);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--vx-gradient-horizontal);
  border-radius: 999px;
}

.ios-tabbar {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-around;
}

.ios-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.65;
}

.ios-tab.active {
  color: var(--accent-pink);
  opacity: 1;
}

.ios-tab small {
  font-size: 0.58rem;
  font-weight: 700;
}

/* Stats Strip */
.stats-strip {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

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

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-pink);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.vx-feature-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vx-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-pink);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrap.pink { color: var(--accent-pink); }
.feature-icon-wrap.cyan { color: var(--accent-cyan); }
.feature-icon-wrap.orange { color: var(--sunset-orange); }
.feature-icon-wrap.purple { color: var(--accent-purple); }

.vx-feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.vx-feature-card p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 0.96rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-bullets li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-bullets li::before {
  content: "✦";
  color: var(--accent-pink);
}

/* iOS Widgets Showcase */
.widgets-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ios-widget {
  border-radius: 26px;
  padding: 20px;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.widget-gradient {
  background: var(--vx-gradient-signature);
  color: var(--gradient-fg);
}

.widget-surface {
  background: var(--bg);
  border: 1px solid var(--divider);
  color: var(--text-primary);
}

.widget-top-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.widget-big-num {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.widget-sub-label {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.widget-medium {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
}

.widget-med-left,
.widget-med-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget-med-right {
  text-align: right;
  align-items: flex-end;
}

.widget-cal-icon {
  font-size: 1.3rem;
}

.widget-rel-date {
  font-size: 1.05rem;
  font-weight: 900;
}

.widget-rel-time {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.75;
}

.widget-tracker-flex {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.widget-ring-box {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.widget-ring-text {
  position: absolute;
  font-size: 1.15rem;
  font-weight: 900;
}

.widget-chapters-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-chap-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.w-chap-bar {
  height: 6px;
  background: var(--divider);
  border-radius: 999px;
  overflow: hidden;
}

.w-chap-fill {
  height: 100%;
  background: var(--vx-gradient-horizontal);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.widget-next-layout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

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

.widget-top-pct {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.75;
}

.widget-next-title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
}

.widget-next-chap {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.widget-next-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.widget-done-btn {
  background: #101321;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.widget-done-btn:hover {
  transform: scale(1.05);
}

.widget-interactive-hint {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.8;
}

/* Wiki Section */
.wiki-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.wiki-tab {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wiki-tab.active {
  background: var(--vx-gradient-horizontal);
  color: var(--gradient-fg);
  border-color: transparent;
}

.wiki-panel {
  display: none;
}

.wiki-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

@media (max-width: 1024px) {
  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.char-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 22px;
  padding: 10px 10px 14px;
  display: block;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.char-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-pink);
}

.char-portrait-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-elevated);
  user-select: none;
  -webkit-user-select: none;
  margin-bottom: 10px;
}

.char-portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.35s ease;
}

.char-card:hover .char-portrait-img {
  transform: scale(1.04);
}

.char-protagonist-star {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 19, 33, 0.78);
  color: #FF9B54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}

.char-art-copyright {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(16, 19, 33, 0.75);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.char-card-body {
  padding: 2px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.char-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-elevated);
  color: var(--accent-pink);
  margin-bottom: 2px;
}

.char-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
}

.char-tap-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-pink);
  opacity: 0.85;
}

.artwork-copyright-banner {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--divider);
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-align: center;
}

.coming-soon-badge {
  cursor: default;
  opacity: 0.95;
}

/* Character Dossier Modal */
.char-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.char-modal.open {
  display: flex;
}

.char-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 22, 0.84);
  backdrop-filter: blur(10px);
}

.char-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.char-modal-card .video-close-btn {
  top: 18px;
  right: 18px;
}

.dossier-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.dossier-portrait-box {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-elevated);
  box-shadow: 0 14px 36px rgba(242, 140, 184, 0.32);
}

.dossier-portrait-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  user-select: none;
}

.dossier-facts {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.dossier-fact-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 6px;
}

.dossier-fact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dossier-bio {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 20px;
}

.dossier-bio h4 {
  font-size: 0.95rem;
  color: var(--accent-pink);
  margin: 14px 0 6px;
}

.dossier-bio h4:first-child {
  margin-top: 0;
}

.dossier-bio p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .dossier-hero {
    grid-template-columns: 1fr;
  }
  .dossier-portrait-box {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* Vehicles Explorer */
.vehicle-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.vx-search-input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.vx-search-input:focus {
  border-color: var(--accent-pink);
}

.class-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.class-pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.class-pill.active,
.class-pill:hover {
  background: var(--surface-elevated);
  color: var(--accent-pink);
  border-color: var(--accent-pink);
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.v-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.v-manufacturer {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.v-class-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

.v-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 2px;
}

.v-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.v-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.v-spec-chip {
  background: var(--surface-elevated);
  padding: 3px 8px;
  border-radius: 6px;
}

.vehicles-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Compare Tool */
.compare-container {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.compare-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

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

.compare-select-group label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.vx-select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--divider);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
}

.compare-vs-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--vx-gradient-signature);
  color: var(--gradient-fg);
  font-weight: 900;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 22px;
}

.compare-stat-row {
  margin-top: 12px;
}

.compare-stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Trailers & News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-pink);
}

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-elevated);
  overflow: hidden;
  cursor: pointer;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 19, 33, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--vx-gradient-signature);
  color: var(--gradient-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.news-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-pink);
}

.news-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.news-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Download Banner */
.download-banner {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.download-banner-content {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.download-icon {
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(242, 140, 184, 0.35);
}

.download-banner h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 900;
}

.download-banner p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.download-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 22, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 1;
}

.video-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--divider);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}

.video-aspect {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: #000;
}

.video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 64px 0 40px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 0.94rem;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--accent-pink);
}

.vx-disclaimer-box {
  background: var(--surface-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-legal-links {
  display: flex;
  gap: 10px;
}

/* Legal / Subpage Styles (privacy.html & support.html) */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--divider);
}

.prose-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}

.prose-card h2 {
  font-size: 1.35rem;
  margin: 28px 0 10px;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.prose-card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid,
  .features-grid,
  .compare-cards-row {
    grid-template-columns: 1fr;
  }
  .compare-selectors {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
}

/* ===== Header menu + responsive refinements ===== */
.main-nav a,
.btn { white-space: nowrap; }

.nav-toggle { display: none; }
.nav-toggle path { transition: transform 0.2s ease, opacity 0.2s ease; transform-origin: center; }
.site-header.nav-open .nav-toggle .nt-top { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .nav-toggle .nt-mid { opacity: 0; }
.site-header.nav-open .nav-toggle .nt-bot { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1240px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 0.9rem; }
}

@media (max-width: 1100px) {
  .site-header .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav a {
    font-size: 1.05rem;
    padding: 14px 12px;
    border-radius: 12px;
    color: var(--text-primary);
  }
  .site-header.nav-open .main-nav a:hover,
  .site-header.nav-open .main-nav a:focus-visible { background: var(--divider); color: var(--accent-pink); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-container { height: 64px; gap: 10px; }
  .brand-logo { gap: 9px; font-size: 1.05rem; }
  .brand-icon { width: 34px; height: 34px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 8px 12px; font-size: 0.8rem; }
  .site-header.nav-open .main-nav { max-height: calc(100vh - 64px); }
  .prose-card { padding: 24px 18px; margin: 24px 0; }
  .page-hero { padding: 36px 0 24px; }
}

@media (max-width: 420px) {
  .nav-actions .btn-sm { display: none; }
}

/* ===== Hero phone: real app screenshots ===== */
.iphone-frame--real {
  width: min(340px, 100%);
  min-height: 0;
  padding: 0;
  border-width: 10px;
  border-radius: 54px;
  background: #000;
  display: block;
}
.iphone-frame--real .iphone-screen { display: none; }
.iphone-frame--real .iphone-screen.active { display: block; }
.app-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 44px;
}
.app-shot-light { display: none; }
:root[data-theme="light"] .app-shot-dark { display: none; }
:root[data-theme="light"] .app-shot-light { display: block; }
@media (max-width: 640px) {
  .iphone-frame--real { border-width: 8px; border-radius: 46px; }
  .app-shot { border-radius: 38px; }
  .phase-btn { padding: 8px 12px; }
}

/* Live countdown digits over the pre-launch screenshot (mirrors CountdownUnit: SF Pro Expanded, heavy) */
.iphone-frame--real .iphone-screen { position: relative; container-type: inline-size; }
.shot-countdown span {
  position: absolute;
  top: 29.48%;
  transform: translate(-50%, var(--cd-shift, -12.5%));
  font-family: "Archivo", -apple-system, system-ui, sans-serif;
  font-stretch: var(--cd-stretch, 112%);
  font-weight: 900;
  font-size: var(--cd-size, 10.42cqw);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #101321;
  white-space: nowrap;
  pointer-events: none;
}
.shot-countdown span:nth-child(1) { left: 16.92%; }
.shot-countdown span:nth-child(2) { left: 38.93%; }
.shot-countdown span:nth-child(3) { left: 60.95%; }
.shot-countdown span:nth-child(4) { left: 82.92%; }

/* Homepage links into the GTA 6 reference pages */
.inline-link { color: var(--accent-pink); text-decoration: underline; }
.vehicles-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.home-class-links ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-class-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--divider); color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.home-class-links a:hover { color: var(--accent-pink); border-color: var(--accent-pink); }
.v-name a { color: inherit; text-decoration: none; }
.v-name a:hover { color: var(--accent-pink); }
