/* ============================================================
   AppClone Landing Page
   ============================================================ */

/* --- Reset & Base --- */

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

:root {
  /* --- Base palette (change these to retheme) --- */
  --bg-rgb: 18, 24, 38;
  --accent-rgb: 245, 158, 11;
  --accent-light-rgb: 251, 191, 36;
  --trust-rgb: 16, 185, 129;
  --feature-1-rgb: var(--accent-rgb);
  --feature-2-rgb: 99, 102, 241;
  --feature-3-rgb: 16, 185, 129;
  --feature-4-rgb: 244, 63, 94;

  /* --- OKLCH gradient palette --- */
  --grad-warm: oklch(0.80 0.16 75);
  --grad-cool: oklch(0.72 0.14 280);
  --grad-warm-border: oklch(0.80 0.16 75 / 0.25);
  --grad-cool-border: oklch(0.72 0.14 280 / 0.25);
  --grad-warm-glow: oklch(0.80 0.16 75 / 0.06);
  --grad-cool-glow: oklch(0.72 0.14 280 / 0.06);

  /* --- Fonts --- */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* --- Derived tokens --- */
  --bg: rgb(var(--bg-rgb));
  --bg-elevated: oklch(0.17 0.02 250);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #edf0f7;
  --text-secondary: #94a0b8;
  --text-tertiary: #8891a4;
  --accent: rgb(var(--accent-rgb));
  --accent-hover: rgb(var(--accent-light-rgb));
  --accent-on: #1a1207;
  --accent-glow: rgba(var(--accent-rgb), 0.18);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

/* --- Light Theme Overrides --- */

[data-theme="light"] {
  --bg-rgb: 248, 249, 252;
  --accent-rgb: 217, 119, 6;
  --accent-light-rgb: 245, 158, 11;
  --trust-rgb: 5, 150, 105;
  --feature-1-rgb: var(--accent-rgb);
  --feature-2-rgb: 79, 70, 229;
  --feature-3-rgb: 5, 150, 105;
  --feature-4-rgb: 225, 29, 72;

  --grad-warm: oklch(0.65 0.16 75);
  --grad-cool: oklch(0.55 0.14 280);
  --grad-warm-border: oklch(0.65 0.16 75 / 0.3);
  --grad-cool-border: oklch(0.55 0.14 280 / 0.3);
  --grad-warm-glow: oklch(0.65 0.16 75 / 0.08);
  --grad-cool-glow: oklch(0.55 0.14 280 / 0.08);

  --bg: rgb(var(--bg-rgb));
  --bg-elevated: oklch(0.97 0.005 250);
  --surface: rgba(0, 0, 0, 0.04);
  --surface-hover: rgba(0, 0, 0, 0.07);
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.18);
  --text: #1a1f2e;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --accent: rgb(245, 158, 11);
  --accent-hover: rgb(251, 191, 36);
  --accent-on: #1a1f2e;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
}

/* --- Light theme: hardcoded overrides --- */

[data-theme="light"] body::before {
  background: radial-gradient(circle, oklch(0.85 0.12 75) 0%, transparent 55%);
  opacity: 0.3;
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, oklch(0.80 0.10 280) 0%, transparent 55%);
  opacity: 0.2;
}

[data-theme="light"] .aurora::before {
  background: radial-gradient(circle, oklch(0.80 0.10 160) 0%, transparent 55%);
  opacity: 0.15;
}

[data-theme="light"] .aurora::after {
  background: radial-gradient(ellipse at center, transparent 50%, rgba(var(--bg-rgb), 0.3) 100%);
}

[data-theme="light"] .grain {
  opacity: 0.02;
  mix-blend-mode: multiply;
}

[data-theme="light"] .hero-text h1::after {
  color: oklch(0.55 0.14 280 / 0.06);
}

[data-theme="light"] .section-title {
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 40%, oklch(0.55 0.16 75) 50%, var(--text) 60%, var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .clone-icon {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .clone-icon--original {
  background: linear-gradient(145deg, oklch(0.55 0.15 250), oklch(0.45 0.12 280));
}

[data-theme="light"] .clone-icon--original::before {
  background: linear-gradient(145deg, oklch(0.55 0.15 250), oklch(0.45 0.12 280));
}

[data-theme="light"] .clone-icon--copy {
  background: linear-gradient(145deg, oklch(0.65 0.16 75), oklch(0.55 0.14 50));
}

[data-theme="light"] .clone-demo::before {
  background: linear-gradient(90deg, oklch(0.55 0.14 280 / 0.4), oklch(0.65 0.16 75 / 0.4));
}

[data-theme="light"] .clone-demo::after {
  background: radial-gradient(circle, oklch(0.65 0.12 75 / 0.1) 0%, transparent 70%);
}


[data-theme="light"] .how-it-works {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .step-number {
  background: var(--accent);
}

[data-theme="light"] .trust-card {
  border-color: oklch(0.55 0.12 160 / 0.15);
}

[data-theme="light"] .trust-card::before {
  border-color: oklch(0.55 0.12 160 / 0.08);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, .nav-brand {
  font-family: var(--font-display);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 800px;
  height: 500px;
  top: -120px;
  left: 5%;
  background: radial-gradient(circle, oklch(0.50 0.18 75) 0%, transparent 55%);
  opacity: 0.45;
  animation: aurora-drift 12s ease-in-out infinite alternate;
}

body::after {
  width: 600px;
  height: 400px;
  top: 180px;
  right: -8%;
  background: radial-gradient(circle, oklch(0.45 0.16 280) 0%, transparent 55%);
  opacity: 0.35;
  animation: aurora-drift 14s ease-in-out infinite alternate-reverse;
}

/* --- Grain Overlay --- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* --- Aurora (third blob + vignette) --- */

.aurora::before {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.40 0.14 160) 0%, transparent 55%);
  opacity: 0.25;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

.aurora::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(var(--bg-rgb), 0.6) 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

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

code {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* --- Focus --- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Reduced Motion --- */

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

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

  .btn,
  .footer-content a {
    transition: none;
  }

  .hero::before,
  .hero::after {
    animation: none;
  }

  .hero-text h1,
  .hero-subtitle,
  .hero-actions,
  .hero-visual {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .clone-demo,
  .clone-icon--original,
  .clone-icon--copy,
  .clone-icon--original::before,
  .clone-demo::before,
  .clone-demo::after,
  .clone-badge,
  .clone-particles span {
    animation: none;
  }

  .clone-icon--original {
    transform: translate(-80%, -60%);
  }

  .clone-icon--copy {
    transform: translate(-20%, -40%);
    opacity: 1;
  }

  .clone-badge {
    transform: scale(1);
    opacity: 1;
  }

  .clone-demo::before {
    opacity: 1;
  }

  .step.visible .step-number {
    animation: none;
  }


  .theme-toggle__sun,
  .theme-toggle__moon {
    transition: none;
  }
}

/* --- Utilities --- */

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 40%, oklch(0.85 0.12 75) 50%, var(--text) 60%, var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 40px;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-coming-soon {
  opacity: 0.6;
  cursor: default;
}

/* --- Scroll Reveal --- */

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

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

/* --- Nav --- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(var(--bg-rgb), 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--glass-border);
}

.hero,
.features,
.how-it-works,
.trust,
.download,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Theme Toggle --- */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text);
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* --- Hero --- */

.hero {
  min-height: min(100vh, 750px);
  padding-top: 53px;
  display: flex;
  flex-direction: column;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.hero-text {
  flex: 1;
  max-width: 480px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-text h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: oklch(0.72 0.14 280 / 0.12);
  transform: translate(3px, 3px);
  z-index: -1;
  pointer-events: none;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-requirement {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.hero-visual {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* --- Clone Demo Animation --- */

.clone-demo {
  position: relative;
  width: 280px;
  height: 280px;
  animation: float 6s ease-in-out infinite;
}

.clone-icon {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.clone-icon__face {
  color: rgba(255, 255, 255, 0.9);
}

.clone-icon--original {
  background: linear-gradient(145deg, oklch(0.45 0.15 250), oklch(0.35 0.12 280));
  top: 50%;
  left: 50%;
  transform: translate(-80%, -60%);
  animation: clone-original 5s ease-in-out infinite;
  z-index: 2;
}

.clone-icon--original::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, oklch(0.45 0.15 250), oklch(0.35 0.12 280));
  opacity: 0.25;
  transform: translate(8px, 8px);
  z-index: -1;
  filter: blur(8px);
  animation: ghost-pulse 5s ease-in-out infinite;
}

.clone-icon--copy {
  background: linear-gradient(145deg, oklch(0.50 0.16 75), oklch(0.40 0.14 50));
  top: 50%;
  left: 50%;
  transform: translate(-20%, -40%);
  animation: clone-copy 5s ease-in-out infinite;
  z-index: 3;
}

.clone-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4);
  animation: badge-pop 5s ease-in-out infinite;
}

.clone-demo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, oklch(0.72 0.14 280 / 0.5), oklch(0.80 0.16 75 / 0.5));
  transform: translate(-50%, -50%) rotate(-10deg);
  animation: connector-pulse 5s ease-in-out infinite;
}

.clone-demo::after {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.50 0.12 75 / 0.15) 0%, transparent 70%);
  z-index: -1;
  animation: glow-breathe 5s ease-in-out infinite;
}

.clone-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.clone-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  top: 50%;
  left: 50%;
}

.clone-particles span:nth-child(1) { --px: 40px;  --py: -30px; animation: particle 5s 0.0s ease-out infinite; }
.clone-particles span:nth-child(2) { --px: -35px; --py: -25px; animation: particle 5s 0.1s ease-out infinite; }
.clone-particles span:nth-child(3) { --px: 25px;  --py: 35px;  animation: particle 5s 0.2s ease-out infinite; }
.clone-particles span:nth-child(4) { --px: -40px; --py: 15px;  animation: particle 5s 0.15s ease-out infinite; }
.clone-particles span:nth-child(5) { --px: 45px;  --py: 10px;  animation: particle 5s 0.25s ease-out infinite; }
.clone-particles span:nth-child(6) { --px: -20px; --py: -40px; animation: particle 5s 0.05s ease-out infinite; }

@keyframes clone-original {
  0%, 15%  { transform: translate(-50%, -50%); }
  35%, 65% { transform: translate(-80%, -60%); }
  85%, 100%{ transform: translate(-50%, -50%); }
}

@keyframes clone-copy {
  0%, 15%  { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  25%      { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  35%, 65% { transform: translate(-20%, -40%) scale(1); opacity: 1; }
  85%      { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  100%     { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@keyframes badge-pop {
  0%, 25%  { transform: scale(0); opacity: 0; }
  32%      { transform: scale(1.3); opacity: 1; }
  38%, 65% { transform: scale(1); opacity: 1; }
  80%, 100%{ transform: scale(0); opacity: 0; }
}

@keyframes particle {
  0%, 18%  { opacity: 0; transform: translate(0, 0) scale(1); }
  22%      { opacity: 1; }
  40%      { opacity: 0; transform: translate(var(--px, 30px), var(--py, -20px)) scale(0); }
  100%     { opacity: 0; }
}

@keyframes ghost-pulse {
  0%, 35%  { opacity: 0.25; }
  50%      { opacity: 0.4; }
  65%, 100%{ opacity: 0.25; }
}

@keyframes connector-pulse {
  0%, 15%  { opacity: 0; }
  35%, 65% { opacity: 1; }
  85%, 100%{ opacity: 0; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.05); }
}

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

/* --- Features --- */

.features {
  padding: 72px 0;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.feature-card:nth-child(1) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 4px 24px;
  padding: 40px 48px;
}

.feature-card:nth-child(1) .feature-icon {
  grid-row: 1 / -1;
  align-self: center;
  margin-bottom: 0;
  width: 56px;
  height: 56px;
}

.feature-card:nth-child(1) h3 {
  font-size: 1.25rem;
}

/* Staggered reveal */
.feature-card:nth-child(1).reveal { transition-delay: 0ms; }
.feature-card:nth-child(2).reveal { transition-delay: 100ms; }
.feature-card:nth-child(3).reveal { transition-delay: 200ms; }
.feature-card:nth-child(4).reveal { transition-delay: 300ms; }
.feature-card.reveal.visible { transition-delay: 0ms; }


.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon {
  background: rgba(var(--feature-1-rgb), 0.15);
  color: rgb(var(--feature-1-rgb));
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(var(--feature-2-rgb), 0.15);
  color: rgb(var(--feature-2-rgb));
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(var(--feature-3-rgb), 0.15);
  color: rgb(var(--feature-3-rgb));
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(var(--feature-4-rgb), 0.15);
  color: rgb(var(--feature-4-rgb));
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- How It Works --- */

.how-it-works {
  padding: 72px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(in oklch 90deg, transparent, var(--grad-warm), var(--grad-cool), transparent);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(in oklch 135deg, var(--grad-warm), var(--grad-cool));
  color: var(--accent-on);
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.step-connector {
  width: 48px;
  height: 1px;
  background: linear-gradient(in oklch 90deg, var(--border), var(--grad-warm-border), var(--border));
  margin-top: 22px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@keyframes step-pulse {
  0%   { box-shadow: 0 0 24px var(--accent-glow), 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
  70%  { box-shadow: 0 0 24px var(--accent-glow), 0 0 0 16px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 24px var(--accent-glow), 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.step.visible .step-number {
  animation: step-pulse 1.2s ease-out 0.3s 1;
}

/* --- Trust --- */

.trust {
  padding: 72px 0;
}

.trust-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid oklch(0.65 0.12 160 / 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  position: relative;
}

.trust-card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid oklch(0.65 0.12 160 / 0.06);
  pointer-events: none;
}

.trust-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.trust-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.trust-point svg {
  color: rgb(var(--trust-rgb));
  flex-shrink: 0;
}

/* --- Download --- */

.download {
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

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

/* --- Footer --- */

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-content a {
  transition: color 0.2s ease;
}

.footer-content a:hover {
  color: var(--text-secondary);
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 24px 24px 60px;
  }

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

  .hero-actions {
    align-items: center;
  }

  .hero-visual {
    max-width: 100%;
    width: 100%;
    min-height: 260px;
  }

  .clone-demo {
    width: 220px;
    height: 220px;
  }

  .clone-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
  }

  .clone-icon__face svg {
    width: 30px;
    height: 30px;
  }

  .clone-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    top: -6px;
    right: -6px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(1) {
    grid-column: auto;
    display: block;
    padding: 32px;
  }

  .feature-card:nth-child(1) .feature-icon {
    margin-bottom: 20px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step-connector {
    width: 1px;
    height: 32px;
    margin-top: 0;
  }

  .step {
    padding: 16px 0;
  }

  .trust-card {
    padding: 32px 24px;
  }

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

@media (max-width: 480px) {
  .nav {
    padding: 16px;
  }

  .section-container {
    padding: 0 16px;
  }

  .feature-card {
    padding: 24px;
  }
}

/* ============================================================
   Content pages (pricing / terms / privacy / refund)
   ============================================================ */

.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.content-page .lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.content-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-page h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.content-page p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

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

.content-page ul,
.content-page ol {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

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

.content-page a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.content-page a:not(.btn):hover {
  border-bottom-color: var(--accent);
}

.content-page .updated-on {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pricing-card {
  margin: 32px 0 48px;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.pricing-card .price-meta {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-card .pricing-cta {
  margin-top: 24px;
}

.pricing-includes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-includes li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pricing-includes li:last-child {
  border-bottom: none;
}

.pricing-includes li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Footer nav (replaces simple footer-content) --- */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
}

.footer-copy a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--text);
}
