/* CricMint website — mobile-first, premium static site.
   Colours are the app's own theme (lib/theme/app_theme.dart):
   primary orange #EA580C, bright #F97316, dark #C2410C,
   pale #FED7AA, pale bg #FFE7D6, navy #263E88 (logo blue). */

:root {
  --orange: #EA580C;
  --orange-bright: #F97316;
  --orange-dark: #C2410C;
  --orange-light: #FB923C;
  --pale: #FED7AA;
  --pale-bg: #FFE7D6;
  --soft: #FFF7F0;
  --navy: #263E88;
  --navy-dark: #1B2E66;
  --ink: #16181D;
  --muted: #5B6470;
  --line: #EAE3D9;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(38, 62, 136, 0.12);
  --shadow-sm: 0 4px 14px rgba(38, 62, 136, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange-dark);
  background: var(--pale-bg);
  border: 1px solid var(--pale);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.nav-toggle {
  margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px;
}
.site-nav.open { display: block; }
.site-nav a {
  display: block; padding: 12px 4px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover { color: var(--orange-dark); }
.header-cta { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn[aria-disabled="true"] { opacity: 0.85; cursor: default; box-shadow: none; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(720px 420px at 85% -10%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(560px 380px at -10% 110%, rgba(38, 62, 136, 0.10), transparent 60%),
    var(--soft);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }
.hero-visual { display: flex; justify-content: center; }
.logo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
  text-align: center;
  width: 100%; max-width: 360px;
  position: relative;
}
.logo-card::before {
  content: "";
  position: absolute; inset: 14px;
  border-radius: 20px;
  background: radial-gradient(220px 220px at 50% 42%, rgba(249, 115, 22, 0.14), transparent 70%);
  pointer-events: none;
}
.logo-card img { width: 200px; margin: 0 auto 16px; position: relative; }
.logo-card .logo-word { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo-card .logo-tag { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.logo-card .live-dot {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--orange-dark);
  background: var(--pale-bg); border: 1px solid var(--pale);
  padding: 6px 12px; border-radius: 999px; position: relative;
}
.logo-card .live-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); display: inline-block;
}

/* ---------- Features ---------- */
.features-grid { display: grid; gap: 16px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--pale-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--orange-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 19px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Live ---------- */
.live-section { background: var(--navy); color: var(--white); }
.live-section .section-head h2 { color: var(--white); }
.live-section .section-head p { color: rgba(255, 255, 255, 0.75); }
.live-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.live-card .live-empty {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.live-card .live-empty svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-card h3 { font-size: 22px; color: var(--white); }
.live-card p { color: rgba(255, 255, 255, 0.75); max-width: 520px; margin: 0 auto 8px; }
.live-card .live-hint { font-size: 14px; color: rgba(255, 255, 255, 0.55); margin: 0; }

/* ---------- Download ---------- */
.download-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 55%, var(--orange-light) 100%);
  border-radius: 24px;
  padding: 40px 28px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.30);
}
.download-band h2 { font-size: 30px; color: var(--white); }
.download-band p { color: rgba(255, 255, 255, 0.88); max-width: 520px; margin: 0 auto 24px; }
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  border-radius: 14px; padding: 12px 20px;
  text-decoration: none; text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.play-badge svg { width: 28px; height: 28px; flex: none; }
.play-badge .pb-small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.play-badge .pb-big { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.download-note { font-size: 14px; color: rgba(255, 255, 255, 0.85); margin: 18px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.85); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-tile {
  background: var(--white); border-radius: 12px;
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
}
.footer-brand .brand-tile img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand .brand-name { color: var(--white); font-size: 22px; }
.site-footer p { font-size: 15px; color: rgba(255, 255, 255, 0.70); margin: 0 0 8px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin: 0 0 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.80); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 40px; padding-top: 20px;
  font-size: 14px; color: rgba(255, 255, 255, 0.55);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Privacy page ---------- */
.policy { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.policy .policy-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pale-bg); border: 1px solid var(--pale);
  color: var(--orange-dark); font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.policy .policy-badge img { width: 20px; height: auto; }
.policy h1 { font-size: 34px; }
.policy h2 { font-size: 21px; margin: 32px 0 8px; }
.policy p, .policy li { font-size: 16px; }
.policy .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- Tablet: 640px and up ---------- */
@media (min-width: 640px) {
  .section { padding: 80px 0; }
  .hero h1 { font-size: 54px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .download-band { padding: 48px 40px; }
}

/* ---------- Desktop: 1024px and up ---------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static;
    border: 0; padding: 0; margin-left: auto; gap: 4px;
  }
  .site-nav a { border: 0; padding: 8px 14px; font-size: 15px; }
  .header-cta { display: inline-flex; margin-left: 12px; padding: 10px 20px; font-size: 15px; }
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero h1 { font-size: 64px; }
  .hero-sub { font-size: 19px; }
  .features-grid { grid-template-columns: 1fr 1fr 1fr; }
  .section-head h2 { font-size: 36px; }
  .download-band h2 { font-size: 36px; }
}
