:root {
  --bg: #0F0A1E;
  --bg-card: #1A1035;
  --bg-card-hover: #221448;
  --primary: #7C3AED;
  --primary-dark: #5B2D8E;
  --accent: #F59E0B;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --border: rgba(124, 58, 237, 0.25);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Navbar ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(15, 10, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 32px;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.5);
  display: block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #C4B5FD 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #000;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

.btn-appstore svg { width: 24px; height: 24px; }

.hero-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Section commons ── */
section { padding: 80px 20px; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── Features ── */
#features { background: rgba(124, 58, 237, 0.04); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s, transform 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

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

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

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

.screenshot-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.screenshot-placeholder .icon { font-size: 2.5rem; }

/* ── FAQ ── */
#faq { background: rgba(124, 58, 237, 0.04); }

.faq-list { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }

details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

details[open] { border-color: var(--primary); }

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

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] summary::after { transform: rotate(45deg); }

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

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ── Policy pages ── */
.policy-header {
  padding: 80px 20px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.policy-header p { color: var(--muted); }

.policy-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.policy-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 12px;
  color: #C4B5FD;
}

.policy-body h2:first-child { margin-top: 0; }

.policy-body p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.policy-body ul {
  color: var(--muted);
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.75;
}

.policy-body ul li { margin-bottom: 6px; }

.policy-body a { color: var(--primary); text-decoration: underline; }

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.policy-back:hover { color: var(--text); }

/* ── Lucide icons in feature/screenshot cards ── */
.feature-icon i,
.screenshot-placeholder .icon i,
.hero-badge i {
  font-size: 2rem;
  color: var(--primary);
  display: block;
}

.screenshot-placeholder .icon i { font-size: 2.5rem; }

.hero-badge i {
  font-size: 0.9rem;
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 20px; }
  .screenshots-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .hero { padding: 70px 20px 60px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
}

/* ── Hero V2 ── */
.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 16px auto 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s;
}

.btn-secondary:hover { background: var(--bg-card); }

.hero-badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Branch Demo mockup */
.hero-visual {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.branch-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 40px;
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.branch-choice-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-style: italic;
}

.branch-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.branch-opt {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}

.branch-opt--a { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.4); color: #a78bfa; }
.branch-opt--b { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.branch-opt--c { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }

/* ── How It Works ── */
.how-it-works { padding: 80px 20px; }

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 24px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.step-divider {
  font-size: 1.5rem;
  color: var(--border);
  padding: 0 8px;
  flex-shrink: 0;
}

@media (max-width: 600px) { .step-divider { display: none; } .steps-grid { flex-direction: column; } }

/* ── Genre Grid ── */
.genres { padding: 80px 20px; }

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.genre-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}

.genre-tile:hover { background: var(--bg-card-hover); transform: translateY(-2px); }

.genre-icon { font-size: 2rem; margin-bottom: 10px; }
.genre-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ── AI Transparency ── */
.ai-transparency { padding: 80px 20px; }

.transparency-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.ai-badge-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(124,58,237,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.transparency-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.transparency-header p { color: var(--muted); margin-bottom: 28px; }

.transparency-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.transparency-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.transparency-icon {
  width: 32px;
  height: 32px;
  background: rgba(124,58,237,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.transparency-law {
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* ── Pricing ── */
.pricing { padding: 80px 20px; text-align: center; }

.pricing-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  min-width: 160px;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-3px); }

.pricing-card--popular {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(124,58,237,0.15), var(--bg-card));
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-credits { font-size: 1.1rem; color: var(--accent); margin-bottom: 8px; }
.pricing-price { font-size: 1.4rem; font-weight: 800; }

.pricing-note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── FAQ V2 ── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

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

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

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

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

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

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-compliance {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  max-width: 280px;
}

.btn-appstore--small { padding: 8px 16px; font-size: 0.82rem; }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ── Mobile responsive V2 ── */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .pricing-grid { flex-direction: column; align-items: center; }
  .pricing-card { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
}
