:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --accent: #ff6b35;
  --accent-light: #ff8c42;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border: #2a2a3e;
  --success: #4caf50;
  --error: #f44336;
  --glow: rgba(255, 107, 53, 0.3);
  --glow-strong: rgba(255, 107, 53, 0.5);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

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

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.logo-flame { font-size: 1.6rem; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px var(--glow-strong);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(255, 107, 53, 0.08);
  color: var(--accent);
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(255, 107, 53, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(255, 140, 66, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #150a05 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: var(--accent-light);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Ember particles (CSS-only) */
.embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: rise linear infinite;
  opacity: 0;
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120vh) translateX(var(--drift)); opacity: 0; }
}

/* ── Features ── */
#features { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.12);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 107, 53, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── How it works ── */
#how-it-works { }

.section-label {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--text-secondary); max-width: 560px; margin-bottom: 3rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.step-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* ── Screenshots ── */
#screenshots { background: var(--surface); }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.screenshot-slot {
  aspect-ratio: 9/19.5;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.screenshot-slot:hover img { transform: scale(1.03); }

.screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

/* ── Pro tier ── */
#pro {
  position: relative;
  overflow: hidden;
}

.pro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255, 140, 66, 0.18) 0%, transparent 70%),
    var(--bg);
  z-index: 0;
}

.pro-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.pro-content {
  position: relative;
  z-index: 1;
}

.pro-card {
  background: var(--surface);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 0 60px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  max-width: 720px;
  margin: 0 auto;
}

.pro-price {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin: 1rem 0 0.3rem;
}

.pro-price-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.comparison-col h4 {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.comparison-col.free h4 { color: var(--text-muted); }
.comparison-col.pro h4 { color: var(--accent); }

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.comparison-col li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-col li::before {
  content: "○";
  color: var(--text-muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.comparison-col.pro li::before {
  content: "🔥";
  font-size: 0.8rem;
}

/* ── CTA ── */
#cta {
  text-align: center;
  padding: 6rem 0;
}

#cta h2 { margin-bottom: 1rem; }
#cta p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Play Store badge ── */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #000;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.2rem;
  color: #fff;
  font-weight: 600;
  transition: border-color 0.2s;
}

.play-badge:hover { border-color: rgba(255,255,255,0.35); color: #fff; }

.play-badge .badge-icon { font-size: 1.6rem; }

.play-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.play-badge-sub { font-size: 0.68rem; font-weight: 400; opacity: 0.7; }
.play-badge-label { font-size: 1rem; }

/* ── Section divider ── */
.flame-divider {
  text-align: center;
  font-size: 1.5rem;
  opacity: 0.4;
  margin: 1rem 0;
}

/* ── Legal pages ── */
.legal-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.legal-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.legal-header .updated { color: var(--text-muted); font-size: 0.88rem; }

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent-light);
}

.legal-body p { color: var(--text-secondary); margin-bottom: 1rem; }
.legal-body ul, .legal-body ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--text); }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .comparison { grid-template-columns: 1fr; }
  .pro-card { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
