/* Darsichi landing — space theme matching the app (violet / gold / cyan). */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn.woff2") format("woff2-variations"),
       url("/assets/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #120c33;
  --bg-2: #1b1446;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --border: rgba(201, 184, 255, 0.18);
  --text: #f4f1ff;
  --muted: #b9b0e0;
  --violet: #8b5cf6;
  --violet-2: #7c3aed;
  --purple: #a855f7;
  --gold: #ffc53d;
  --gold-2: #f5a623;
  --cyan: #22d3ee;
  --green: #22c55e;
  --orange: #ff7a18;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(8, 4, 30, 0.55);
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(168, 85, 247, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(124, 58, 237, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  background-attachment: fixed;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.4; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 850; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; color: var(--muted); }

.grad-text {
  background: linear-gradient(90deg, var(--gold), #ffdf8a 40%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }
.btn-gold {
  background: linear-gradient(180deg, #ffd666, var(--gold-2));
  color: #2a1800;
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.35);
}

.pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #dcd0ff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.pill-orange { background: rgba(255, 122, 24, 0.16); border-color: rgba(255, 122, 24, 0.5); color: #ffc79d; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.store-buttons-center { justify-content: center; }

.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 170px;
  padding: 10px 22px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #15a34a);
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn-alt {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.32);
}
.store-btn:hover { transform: translateY(-3px); }
.store-kicker { font-size: 0.8rem; opacity: 0.85; line-height: 1.4; }
.store-name { font-size: 1.3rem; font-weight: 900; line-height: 1.4; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 12, 51, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.35rem;
}
.brand img { border-radius: 12px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 34em; }

.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.92rem;
}
.hero-chips img { width: 28px; height: 28px; object-fit: contain; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 30px 0; }

.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #3a2f72, #120c33);
  box-shadow: var(--shadow), 0 0 0 2px rgba(201, 184, 255, 0.25), 0 0 80px rgba(139, 92, 246, 0.45);
  transform: rotate(-4deg);
  z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 80px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #0b0720;
  z-index: 3;
}

.orbit {
  position: absolute;
  border: 2px dashed rgba(201, 184, 255, 0.18);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}
.orbit-1 { width: 440px; height: 440px; animation: spin 60s linear infinite; }
.orbit-2 { width: 560px; height: 560px; animation: spin 90s linear infinite reverse; }

.float { position: absolute; z-index: 3; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); animation: bob 5s ease-in-out infinite; }
.f-rocket { width: 120px; top: 4%; right: 2%; animation-duration: 6s; }
.f-coin { width: 64px; bottom: 16%; right: 8%; animation-delay: -1s; }
.f-gem { width: 64px; top: 22%; left: 6%; animation-delay: -2.5s; }
.f-star { width: 44px; bottom: 8%; left: 14%; animation-delay: -3.5s; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-title { text-align: center; }
.section-sub { text-align: center; margin-top: -6px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: none;
}
.step {
  position: relative;
  text-align: center;
  padding: 34px 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 12px; }
.step-num {
  position: absolute;
  top: -18px;
  right: 50%;
  translate: 50% 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #2a1800;
  background: linear-gradient(180deg, #ffd666, var(--gold-2));
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}

.features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.25);
}
.card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 14px; }
.card p { margin: 0; font-size: 0.95rem; }

/* Duel spotlight */
.spotlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 32px;
  background:
    radial-gradient(500px 300px at 20% 30%, rgba(255, 122, 24, 0.2), transparent 70%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--border);
}
.spotlight-art img { width: min(360px, 100%); margin-inline: auto; animation: bob 6s ease-in-out infinite; }
.spotlight-copy p { color: #ddd6ff; }
.boosters { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.boosters li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(18, 12, 51, 0.45);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}
.boosters img { width: 56px; height: 56px; object-fit: contain; }

/* Subjects */
.subjects {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.subjects li {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  transition: transform 0.25s ease;
}
.subjects li:hover { transform: translateY(-6px) rotate(-2deg); }
.subjects img { width: 88px; height: 88px; object-fit: contain; }

/* Parents */
.parents { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding: 14px 52px 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.checks li::before {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: var(--green);
  line-height: 1;
}
.checks strong { color: var(--text); }
.parents-art img { width: min(360px, 100%); margin-inline: auto; }

/* Sponsors */
.sponsors { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sponsors a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.sponsors a:hover { transform: translateY(-4px); background: var(--surface-2); }
.sponsors img { width: 96px; height: 96px; object-fit: contain; border-radius: 50%; margin-bottom: 8px; }
.sponsors span { color: var(--muted); font-size: 0.9rem; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 30px; display: grid; gap: 12px; }
.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; }

/* CTA */
.cta {
  position: relative;
  text-align: center;
  padding: 56px 24px;
  border-radius: 36px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 197, 61, 0.25), transparent 70%),
    linear-gradient(135deg, #5b21b6, #7c3aed 50%, #4338ca);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta p { color: #e8e1ff; }
.cta-icon { width: 112px; height: 112px; border-radius: 28px; margin: 0 auto 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.cta-float { position: absolute; opacity: 0.9; animation: bob 6s ease-in-out infinite; }
.cta-crown { width: 90px; top: 24px; right: 6%; }
.cta-flame { width: 72px; bottom: 24px; left: 6%; animation-delay: -2s; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 30px 0; background: rgba(10, 6, 30, 0.5); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copy { margin: 0; font-size: 0.9rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: rgba(18, 12, 51, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; }

  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .store-buttons, .hero-chips { justify-content: center; }
  .hero-visual { order: -1; }
  .orbit-1 { width: 340px; height: 340px; }
  .orbit-2 { width: 420px; height: 420px; }
  .f-rocket { width: 84px; }

  .steps { grid-template-columns: 1fr; gap: 34px; }
  .spotlight-grid { grid-template-columns: 1fr; padding: 28px 18px; text-align: center; }
  .parents { grid-template-columns: 1fr; }
  .parents-art { order: -1; }
  .sponsors { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .boosters { grid-template-columns: repeat(2, 1fr); }
  .subjects li { width: calc(50% - 9px); }
  .store-btn { flex: 1 1 140px; min-width: 0; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .section { padding: 54px 0; }
  .orbit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Privacy / 404 pages ---------- */

.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; color: var(--gold); }
.doc p, .doc li { color: #d8d1f5; }
.doc ul { padding-inline-start: 1.4em; }
.doc .meta { color: var(--muted); font-size: 0.9rem; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.notfound img { width: 140px; margin: 0 auto 18px; animation: bob 5s ease-in-out infinite; }
