/* ================================================================
   FantasyCricketApp.co.in — Dream77 — Main Stylesheet
   ================================================================ */

:root {
  --brand-red:    #e63946;
  --brand-orange: #f4720b;
  --brand-gold:   #f7c948;
  --brand-dark:   #0d0f1a;
  --brand-navy:   #111827;
  --brand-card:   #1a1f35;
  scroll-behavior: smooth;
}

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

body {
  background: var(--brand-dark);
  color: #f1f5f9;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
}

/* ── Gradient text ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #f7c948 0%, #f4720b 50%, #e63946 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA button ────────────────────────────────────────────────── */
.cta-btn {
  background: linear-gradient(135deg, #f4720b, #e63946);
  box-shadow: 0 0 24px rgba(244,114,11,0.5);
  transition: all 0.3s ease;
  animation: glow 2s ease-in-out infinite alternate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  border-radius: 1rem;
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 48px rgba(244,114,11,0.8), 0 8px 32px rgba(0,0,0,0.4);
  color: #fff;
}
.cta-btn:active { transform: translateY(0) scale(0.98); }

/* ── Glassmorphism card ────────────────────────────────────────── */
.glass-card {
  background: rgba(26,31,53,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── Navbar ────────────────────────────────────────────────────── */
.nav-scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(244,114,11,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(230,57,70,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0d0f1a 0%, #111827 100%);
}

/* ── Divider ───────────────────────────────────────────────────── */
.section-divider {
  background: linear-gradient(90deg, transparent, rgba(244,114,11,0.5), transparent);
  height: 1px;
  border: none;
}

/* ── Trust badge ───────────────────────────────────────────────── */
.trust-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.3s;
}
.trust-badge:hover { background: rgba(255,255,255,0.1); }

/* ── Feature card hover ────────────────────────────────────────── */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244,114,11,0.4) !important;
  box-shadow: 0 12px 40px rgba(244,114,11,0.15);
}

/* ── FAQ accordion ─────────────────────────────────────────────── */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform 0.3s ease; }
details[open] summary ~ * { animation: fadeInUp 0.3s ease-out; }

/* ── Scroll reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Sticky bottom CTA ─────────────────────────────────────────── */
#sticky-cta {
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(100px);
  opacity: 0;
}
#sticky-cta.show { transform: translateY(0); opacity: 1; }

/* ── Decorative dots ───────────────────────────────────────────── */
.dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(244,114,11,0.3);
  animation: float 4s ease-in-out infinite;
  pointer-events: none;
}

/* ── Star rating ───────────────────────────────────────────────── */
.star { color: #f7c948; }

/* ── Grid bg ───────────────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(244,114,11,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,114,11,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Page hero (inner pages) ───────────────────────────────────── */
.page-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(244,114,11,0.15) 0%, transparent 70%),
    linear-gradient(180deg, #0d0f1a 0%, #111827 100%);
  padding: 7rem 1rem 4rem;
  text-align: center;
}

/* ── Prose content (legal pages) ──────────────────────────────── */
.prose-dark { color: #9ca3af; line-height: 1.8; }
.prose-dark h2 { color: #fff; font-weight: 800; font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.prose-dark h3 { color: #e2e8f0; font-weight: 700; font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.prose-dark p  { margin-bottom: 1rem; }
.prose-dark ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-dark li { margin-bottom: 0.4rem; }
.prose-dark a  { color: #f4720b; text-decoration: underline; }
.prose-dark strong { color: #f1f5f9; }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d0f1a; }
::-webkit-scrollbar-thumb { background: #f4720b; border-radius: 3px; }

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes glow {
  0%   { box-shadow: 0 0 20px rgba(244,114,11,0.4); }
  100% { box-shadow: 0 0 40px rgba(244,114,11,0.9), 0 0 80px rgba(244,114,11,0.3); }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-12px); }
}
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ── Logo image ────────────────────────────────────────────────── */
.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand-logo-lg {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* ── App card logo ─────────────────────────────────────────────── */
.app-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  overflow: hidden;
  object-fit: cover;
}

/* ── Contact form ──────────────────────────────────────────────── */
.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f1f5f9;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-size: 0.95rem;
}
.form-input:focus {
  border-color: rgba(244,114,11,0.5);
  box-shadow: 0 0 0 3px rgba(244,114,11,0.1);
}
.form-input::placeholder { color: #6b7280; }

/* ── Back to top ───────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f4720b, #e63946);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(244,114,11,0.4);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: scale(0.8);
  border: none;
}
#back-to-top.show { opacity: 1; transform: scale(1); }
#back-to-top:hover { transform: scale(1.1); }
