/* ============================================================
   Apex FIRE Planner — Promotional Website Design System
   Premium dark fintech aesthetic with glassmorphism
   ============================================================ */

/* --- Google Fonts loaded via <link> in HTML --- */

/* === 1. CSS Custom Properties === */
:root {
  /* Brand Colors (from logo) */
  --color-teal: #1a535c;
  --color-teal-light: #2a7f8a;
  --color-teal-glow: rgba(26, 83, 92, 0.4);
  --color-gold: #f0b429;
  --color-gold-light: #f7c948;
  --color-gold-dim: #c4911e;
  --color-gold-glow: rgba(240, 180, 41, 0.25);

  /* Backgrounds */
  --bg-primary: #07070d;
  --bg-secondary: #0d0d15;
  --bg-tertiary: #12121e;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-hero-gradient: linear-gradient(160deg, #0a0e1a 0%, #07070d 40%, #0d0812 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur: 24px;

  /* Text */
  --text-primary: #eaeaf0;
  --text-secondary: #9898ac;
  --text-muted: #5c5c70;
  --text-inverse: #07070d;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #f0b429 0%, #e09100 100%);
  --gradient-teal: linear-gradient(135deg, #1a535c 0%, #2a7f8a 100%);
  --gradient-hero-text: linear-gradient(135deg, #ffffff 0%, #f0b429 50%, #f7c948 100%);
  --gradient-section-divider: linear-gradient(90deg, transparent 0%, rgba(240, 180, 41, 0.15) 50%, transparent 100%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
  --radius-circle: 50%;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow-gold: 0 0 60px rgba(240, 180, 41, 0.15);
  --shadow-glow-teal: 0 0 60px rgba(26, 83, 92, 0.2);
  --shadow-phone: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.08);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-nav: 1000;
  --z-dropdown: 1100;
  --z-overlay: 900;
}

/* CJK Font overrides */
html[lang="ja"] {
  --font-primary: 'Noto Sans JP', 'Inter', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}
html[lang="ko"] {
  --font-primary: 'Noto Sans KR', 'Inter', 'Malgun Gothic', sans-serif;
}
html[lang="zh-CN"] {
  --font-primary: 'Noto Sans SC', 'Inter', 'Microsoft YaHei', sans-serif;
}
html[lang="zh-TW"] {
  --font-primary: 'Noto Sans TC', 'Inter', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

/* === 2. Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-gold-light);
}

/* === 3. Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  max-width: 680px;
}

.text-gradient {
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === 4. Layout === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-divider {
  height: 1px;
  background: var(--gradient-section-divider);
  border: none;
  margin: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header p {
  margin: 16px auto 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid rgba(240, 180, 41, 0.2);
  color: var(--color-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* === 5. Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 16px 0;
  transition: background var(--transition-base), padding var(--transition-base),
              backdrop-filter var(--transition-base);
}
.nav.scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}
.nav-logo img {
  height: 36px;
  width: 36px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.nav-links a:hover {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: calc(var(--z-nav) + 1);
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === 6. Language Switcher === */
.lang-switcher {
  position: relative;
}
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}
.lang-switcher-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}
.lang-switcher-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.lang-switcher-btn .arrow {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}
.lang-switcher.open .lang-switcher-btn .arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  min-width: 160px;
  max-height: min(70vh, 390px);
  overflow-y: auto;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-primary);
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.lang-option.active {
  color: var(--color-gold);
  background: rgba(240, 180, 41, 0.08);
}

/* === 7. Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--text-inverse);
  box-shadow: 0 4px 24px rgba(240, 180, 41, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 180, 41, 0.35);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

/* === 8. Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-hero-gradient);
  padding-top: 80px;
  overflow: hidden;
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 20s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 83, 92, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.hero .container {
  display: block;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
}

.hero-hook {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-fire-number {
  display: block;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

/* === 9. Problem Section === */
.problem {
  background: var(--bg-secondary);
}

.problem-content {
  max-width: 760px;
  margin: 0 auto;
}

.problem-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.problem-highlight {
  margin-top: 40px;
  padding: 28px 32px;
  background: rgba(240, 180, 41, 0.05);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(240, 180, 41, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-gold);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}
.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* === 11. Privacy Section === */
.privacy-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.privacy-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26, 83, 92, 0.06) 0%, transparent 60%);
  border-radius: 50%;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.privacy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
}
.privacy-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.privacy-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: rgba(26, 83, 92, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-teal-light);
}
.privacy-icon svg {
  width: 22px;
  height: 22px;
}

.privacy-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.privacy-card p {
  font-size: 0.875rem;
}

/* === 12. Case Studies === */
.cases-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.case-tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}
.case-tab:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}
.case-tab.active {
  background: rgba(240, 180, 41, 0.1);
  border-color: rgba(240, 180, 41, 0.3);
  color: var(--color-gold);
}

.case-panel {
  display: none;
  animation: fadeInUp 0.4s var(--transition-base);
}
.case-panel.active {
  display: block;
}

.case-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.case-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  background: rgba(240, 180, 41, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.case-info h3 {
  font-size: 1.375rem;
  margin-bottom: 4px;
}
.case-info span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.case-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.case-label.problem-label { color: #e57373; }
.case-label.solution-label { color: var(--color-teal-light); }

.case-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.case-result {
  background: rgba(240, 180, 41, 0.05);
  border: 1px solid rgba(240, 180, 41, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 32px;
  align-items: center;
}

.case-result-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}

.case-result-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.case-result-metrics {
  grid-column: 1 / -1;
  display: flex;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(240, 180, 41, 0.1);
}

.case-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.case-metric svg {
  color: var(--color-gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === 13. How It Works === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 30px);
  right: calc(16.67% + 30px);
  height: 2px;
  background: var(--gradient-section-divider);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-circle);
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-inverse);
  position: relative;
  z-index: 1;
}

.step-card h3 {
  margin-bottom: 12px;
}
.step-card p {
  margin: 0 auto;
  font-size: 0.9375rem;
}

/* === 14. Comparison Table === */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 640px;
}

.comparison-table th {
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-medium);
}
.comparison-table th:first-child {
  background: var(--bg-secondary);
  color: var(--text-muted);
}
.comparison-table th:nth-child(2) {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.comparison-table th:nth-child(3) {
  background: rgba(240, 180, 41, 0.08);
  color: var(--color-gold);
}

.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.01);
}
.comparison-table td:nth-child(2) {
  color: var(--text-muted);
}
.comparison-table td:nth-child(3) {
  color: var(--text-primary);
  background: rgba(240, 180, 41, 0.03);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.comparison-table tr:hover td:nth-child(3) {
  background: rgba(240, 180, 41, 0.06);
}

/* === 15. Pricing === */
.pricing-section {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border-color: rgba(240, 180, 41, 0.3);
  background: rgba(240, 180, 41, 0.04);
  position: relative;
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pricing-card.featured .pricing-name {
  color: var(--color-gold);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.pricing-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.pricing-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.pricing-option span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.pricing-option strong {
  color: var(--text-primary);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-variant-numeric: tabular-nums;
}

.pricing-option.featured-option {
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.07);
}

.pricing-option.featured-option span,
.pricing-option.featured-option strong {
  color: var(--color-gold);
}

.pricing-trial {
  font-size: 0.8125rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* === 16. FAQ === */
.faq-section {
  overflow: clip;
  background:
    radial-gradient(circle at 12% 18%, rgba(26, 83, 92, 0.16), transparent 34%),
    radial-gradient(circle at 88% 72%, rgba(240, 180, 41, 0.07), transparent 28%),
    var(--bg-secondary);
}

.faq-section::before {
  content: "FAQ";
  position: absolute;
  top: 30px;
  right: -22px;
  color: transparent;
  font-size: clamp(7rem, 19vw, 16rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.025);
  pointer-events: none;
  user-select: none;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.faq-guide {
  position: sticky;
  top: 112px;
  padding: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(26, 83, 92, 0.2), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(42, 127, 138, 0.26);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq-guide::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(240, 180, 41, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(240, 180, 41, 0.025), 0 0 0 44px rgba(240, 180, 41, 0.018);
  pointer-events: none;
}

.faq-guide-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--text-inverse);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 8px 28px var(--color-gold-glow);
}

.faq-guide-kicker,
.faq-guide-source-label {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-guide h3 {
  margin: 6px 0 14px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.faq-guide > p:not(.faq-guide-kicker):not(.faq-guide-source-label) {
  font-size: 0.9375rem;
}

.faq-guide-rule {
  width: 40px;
  height: 1px;
  margin: 28px 0 22px;
  background: var(--color-gold);
}

.faq-guide-source-label {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.faq-guide a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
}

.faq-guide a:hover {
  color: var(--color-gold-light);
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.faq-filter {
  padding: 9px 16px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font: 600 0.78rem/1 var(--font-primary);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.faq-filter:hover {
  color: var(--text-primary);
  border-color: rgba(240, 180, 41, 0.35);
  transform: translateY(-1px);
}

.faq-filter.active {
  border-color: rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.11);
  color: var(--color-gold-light);
}

.faq-filter:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.faq-list {
  border-top: 1px solid var(--border-medium);
}

.faq-item {
  border-bottom: 1px solid var(--border-medium);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.faq-item[hidden] {
  display: none;
}

.faq-item[open] {
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.045), transparent 74%);
  border-color: rgba(240, 180, 41, 0.18);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 25px 18px 25px 4px;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast), padding var(--transition-fast);
}

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

.faq-item summary:hover {
  color: var(--color-gold-light);
  padding-left: 10px;
}

.faq-number {
  color: var(--text-muted);
  font: 600 0.7rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.faq-toggle {
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--color-gold);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  padding: 0 54px 28px 60px;
}

.faq-answer p {
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-empty {
  margin: 28px 0;
  padding: 28px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  text-align: center;
}

/* === 17. Download CTA Section === */
.download-section {
  text-align: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(240, 180, 41, 0.06) 0%, transparent 60%);
}

.download-section .section-header {
  position: relative;
  z-index: 1;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all var(--transition-base);
  text-decoration: none;
}
.store-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.store-badge svg {
  width: 28px;
  height: 28px;
}
.store-badge-text {
  text-align: left;
}
.store-badge-text .label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}
.store-badge-text .store {
  font-size: 1.0625rem;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}

/* === 18. Footer === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}
.footer-logo span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--color-gold);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 100%;
  margin-bottom: 16px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === 19. Legal Pages (Privacy & Terms) === */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  max-width: 100%;
  line-height: 1.8;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.legal-content th,
.legal-content td {
  padding: 10px 16px;
  text-align: left;
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}
.legal-content th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-primary);
}
.legal-content td {
  color: var(--text-secondary);
}

.legal-effective-date {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}
.legal-back:hover {
  color: var(--color-gold);
}

/* === 20. Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* === 21. Responsive === */
@media (max-width: 1120px) and (min-width: 769px) {
  .nav-logo span {
    display: none;
  }
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-badge {
    justify-content: center;
  }
  .features-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before {
    display: none;
  }
  .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 7, 13, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: var(--z-overlay);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .features-grid,
  .privacy-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-guide {
    position: relative;
    top: auto;
  }

  .case-body {
    grid-template-columns: 1fr;
  }

  .case-card {
    padding: 28px;
  }

  .case-result {
    grid-template-columns: 1fr;
  }
  .case-result-metrics {
    flex-direction: column;
    gap: 12px;
  }

  .footer-top {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 64px 0;
  }

  .nav .container {
    padding: 0 16px;
  }
  .nav-logo span {
    display: none;
  }
  .nav-right {
    gap: 8px;
  }
  .nav-right .btn-sm {
    padding: 9px 15px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }

  .hero-fire-number {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .case-card {
    padding: 20px;
  }

  .pricing-card {
    padding: 28px;
  }

  .store-badge {
    padding: 12px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .faq-guide {
    padding: 26px;
  }
  .faq-filters {
    gap: 8px;
  }
  .faq-filter {
    padding: 9px 13px;
  }
  .faq-item summary {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 21px 4px;
  }
  .faq-item summary:hover {
    padding-left: 4px;
  }
  .faq-answer {
    padding: 0 4px 24px 40px;
  }
}

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