/* دبرناباز landing — tokens from app_theme.dart */
:root {
  --primary-dark: #5c1a1b;
  --primary-red: #8b1c1c;
  --primary-light: #a83232;
  --accent: #d4a04a;
  --accent-light: #f5c36a;
  --gold: #e8b84e;
  --bg-dark: #2a0e0e;
  --bg-medium: #3d1515;
  --card-bg: #fffbf5;
  --text-on-dark: #fff4e0;
  --text-gold: #ffd77a;
  --purple: #7b2cbf;

  --font: "Vazirmatn", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --container: min(1120px, 100% - 2rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-on-dark);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #4a1818, var(--bg-dark) 55%, #1a0505);
  min-height: 100vh;
}

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

a {
  color: var(--text-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.container-narrow {
  width: min(640px, var(--container));
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  background: var(--card-bg);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(42, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 160, 74, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.1rem;
}

.brand-text small {
  font-size: 0.7rem;
  opacity: 0.65;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid rgba(255, 244, 224, 0.2);
  color: var(--text-on-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text-gold);
  border-radius: 2px;
  box-shadow: 0 5px 0 var(--text-gold), 0 -5px 0 var(--text-gold);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    background: rgba(26, 5, 5, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(212, 160, 74, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #d9402f, var(--primary-red) 40%, #4a0f0f);
  box-shadow: 0 8px 24px rgba(139, 28, 28, 0.45);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(139, 28, 28, 0.55);
}

.btn-gold {
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-gold:hover {
  color: var(--primary-dark);
}

.btn-ghost {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 244, 224, 0.25);
}

.btn-ghost:hover {
  color: var(--text-gold);
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-gold);
  background: rgba(212, 160, 74, 0.12);
  border: 1px solid rgba(212, 160, 74, 0.35);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  line-height: 1.25;
  font-weight: 800;
}

.text-gold {
  color: var(--text-gold);
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 36rem;
}

@media (max-width: 900px) {
  .lead {
    margin-inline: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .hero-stats li {
    align-items: center;
  }
}

.hero-stats strong {
  font-size: 1.35rem;
  color: var(--text-gold);
}

.hero-stats span {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Phone mock */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 184, 78, 0.25), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  width: min(280px, 75vw);
  aspect-ratio: 9 / 19;
  background: linear-gradient(145deg, #3d1515, #1a0505);
  border-radius: 2rem;
  padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(212, 160, 74, 0.35);
  z-index: 1;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1a0505;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #4a1818, #2a0a0a);
  padding: 2.5rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}

.pill {
  background: rgba(139, 28, 28, 0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.coins {
  color: var(--text-gold);
  font-weight: 600;
}

.bingo-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0.4rem;
  flex: 1;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.bingo-row.head {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  font-weight: 800;
  color: var(--primary-red);
  font-size: 0.65rem;
  margin-bottom: 0.25rem;
}

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

.bingo-grid span {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: #f5e6d3;
  border-radius: 4px;
  border: 1px solid rgba(139, 28, 28, 0.2);
}

.bingo-grid span.marked {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-dark);
}

.bingo-grid span.free {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--primary-dark);
  font-size: 0.45rem;
}

.last-ball {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  font-size: 0.75rem;
}

.last-ball strong {
  font-size: 1.25rem;
  color: var(--text-gold);
  min-width: 2ch;
  text-align: center;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-alt {
  background: rgba(0, 0, 0, 0.2);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin: 0;
  opacity: 0.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: rgba(255, 251, 245, 0.06);
  border: 1px solid rgba(212, 160, 74, 0.2);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(212, 160, 74, 0.45);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text-gold);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 251, 245, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-inline-start: 4px solid var(--accent);
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  color: var(--primary-dark);
  border-radius: 50%;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255, 251, 245, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: inline-end;
  color: var(--text-gold);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Download */
.download-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.25), rgba(139, 28, 28, 0.35));
  border: 1px solid rgba(212, 160, 74, 0.3);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 768px) {
  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.download h2 {
  margin-top: 0;
}

.download-note {
  font-size: 0.85rem;
  opacity: 0.85;
}

.download-note code {
  display: block;
  margin-top: 0.35rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  font-size: 0.75rem;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}

.download-card {
  background: var(--card-bg);
  color: var(--primary-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.download-card .version {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.download-card .fine-print {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-grid p {
  margin: 0.35rem 0 0;
}
