/* KeyCover — Shared Design System */
:root {
  --bg-deep: #0B0E11;
  --bg-card: #14181E;
  --bg-surface: #1E2330;
  --bg-input: #0F1218;
  --text-primary: #F2EDE4;
  --text-secondary: #B0B3BA;
  --text-tertiary: #8A8D96;
  --accent: #D4A853;
  --accent-dim: #B8923E;
  --success: #4CAF7D;
  --warning: #E8A63A;
  --danger: #CF5C5C;
  --info: #5B8FD4;
  --accent-glow: rgba(212, 168, 83, 0.15);
  --accent-soft: rgba(212, 168, 83, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(212, 168, 83, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ==================== NAV ==================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.nav-wordmark span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-links .btn-primary {
  color: var(--bg-deep);
}
.nav-links .btn-primary:hover {
  color: var(--bg-deep);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: #e0b45e;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 15px;
}

/* ==================== HERO ==================== */
.hero {
  padding: 180px 40px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--text-primary);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==================== STORE BADGES ==================== */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  text-decoration: none;
  transition: all 0.3s;
}
.store-badge:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface);
}
.store-badge .store-icon { font-size: 28px; }
.store-badge .store-text {
  text-align: left;
  line-height: 1.3;
}
.store-badge .store-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.store-badge .store-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== SECTIONS ==================== */
section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.section-center {
  text-align: center;
}
.section-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==================== PILLARS ==================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s;
}
.pillar:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== STEPS ==================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== STORY COMPARISON ==================== */
.story-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.story-item:hover {
  border-color: var(--border-accent);
}

.story-pain {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.story-pain-icon {
  flex-shrink: 0;
  font-size: 24px;
  margin-top: 2px;
}

.story-pain-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--danger);
  margin-bottom: 6px;
  opacity: 0.9;
}

.story-pain-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
}

.story-solution {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.story-solution-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(76, 175, 125, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.story-solution-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  margin-bottom: 6px;
}

.story-solution-text {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
}

/* ==================== STATS ==================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.stat {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== FAQ ==================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq-question::after {
  content: '+';
  color: var(--accent);
  font-size: 28px;
  font-weight: 300;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1;
}

.faq-answer {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 14px;
  padding-right: 52px;
}

/* ==================== CTA ==================== */
.cta-section {
  text-align: center;
  padding: 100px 40px;
  background: linear-gradient(180deg, transparent, var(--accent-soft) 50%, transparent);
  border-radius: var(--radius-xl);
  margin: 0 40px;
  position: relative;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}
.cta-section h2 em {
  color: var(--accent);
  font-style: italic;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}
.footer-wordmark span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-size: 14px;
  color: var(--text-tertiary);
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* ==================== LEGAL PAGES ==================== */
.legal-page {
  padding: 140px 40px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.legal-page .legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-page h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-page p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul, .legal-page ol {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-page a:hover {
  color: #e0b45e;
}

.legal-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 120px 20px 60px; }
  section { padding: 80px 20px; }
  .cta-section { margin: 0 20px; padding: 60px 20px; }
  .store-badge { width: 100%; justify-content: center; }
  footer { padding: 32px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { gap: 20px; }
  .story-item { grid-template-columns: 1fr; gap: 16px; }
  .story-arrow { margin: 0 auto; transform: rotate(90deg); }
  .legal-page { padding: 110px 20px 60px; }
}
