/* ================================================
   CricScorer Landing Page — styles.css
   Design: Dark SaaS aesthetic with cricket green accent
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

/* ─── CSS Custom Properties ─────────────────────── */
:root {
  --bg-0: #050b12;
  --bg-1: #0a1520;
  --bg-2: #0f1f2e;
  --bg-3: #162535;
  --surface: rgba(15, 31, 46, 0.8);
  --surface-hover: rgba(22, 37, 53, 0.9);

  --green-primary: #00c853;
  --green-light: #69f0ae;
  --green-dark: #009624;
  --green-glow: rgba(0, 200, 83, 0.15);
  --green-glow-strong: rgba(0, 200, 83, 0.3);

  --gold: #ffd740;
  --gold-light: #ffe57f;

  --text-primary: #f0f4f8;
  --text-secondary: #8ea5bb;
  --text-muted: #4d6a7a;

  --border: rgba(0, 200, 83, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 200, 83, 0.2);
  --shadow-glow-lg: 0 0 80px rgba(0, 200, 83, 0.15);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
  --max-width: 1200px;
}

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

/* ─── Utility Classes ────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.text-green { color: var(--green-primary); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-secondary); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-green {
  background: var(--green-glow);
  border: 1px solid rgba(0, 200, 83, 0.25);
  color: var(--green-light);
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-primary);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Gradient Text ──────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 200, 83, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
}
.btn-outline-green:hover {
  background: var(--green-glow);
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn svg { flex-shrink: 0; }

/* ─── Glass Card ─────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ─── Noise Overlay ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── Navigation ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(5, 11, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-logo-dot {
  color: var(--green-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--surface); }
.nav-link.active { color: var(--green-primary); }

.nav-cta { margin-left: 8px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--surface); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(5, 11, 18, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 16px; }
.mobile-menu .btn { margin-top: 12px; width: 100%; }

/* ─── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 150, 200, 0.08) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
  animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 64, 0.06) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation: float-orb 12s ease-in-out infinite;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 83, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 83, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero-text { }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
}

.phone-frame {
  position: relative;
  width: 280px;
  background: linear-gradient(145deg, #1a2a3a, #0d1e2d);
  border-radius: 40px;
  padding: 14px;
  border: 1.5px solid rgba(0, 200, 83, 0.2);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,200,83,0.1);
  animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #050b12;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  background: #050b12;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19;
  position: relative;
}

.phone-app {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0a1520 0%, #050b12 100%);
  padding: 32px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 8px;
}

.app-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.app-match-card {
  background: linear-gradient(135deg, #0f3028, #0a1e14);
  border: 1px solid rgba(0,200,83,0.2);
  border-radius: 10px;
  padding: 10px;
}

.app-match-title {
  color: var(--green-primary);
  font-weight: 700;
  font-size: 7px;
  margin-bottom: 6px;
}

.app-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.app-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.app-team-name {
  font-size: 6px;
  color: var(--text-secondary);
  text-align: center;
}

.app-score {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.app-overs {
  font-size: 6px;
  color: var(--text-muted);
}

.app-vs {
  font-size: 7px;
  color: var(--text-muted);
  font-weight: 600;
}

.app-crr-bar {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.app-stat-pill {
  flex: 1;
  background: rgba(0,200,83,0.1);
  border-radius: 4px;
  padding: 3px 5px;
  text-align: center;
}

.app-stat-pill-label { font-size: 5px; color: var(--text-muted); }
.app-stat-pill-val { font-size: 8px; font-weight: 700; color: var(--green-light); }

.app-section-label {
  font-size: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0 2px;
}

.app-scorecard {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-batsman-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

.app-batsman-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-primary);
}

.app-batsman-name { flex: 1; font-size: 6px; color: var(--text-secondary); }
.app-batsman-runs { font-size: 7px; font-weight: 700; color: var(--text-primary); }
.app-batsman-meta { font-size: 5px; color: var(--text-muted); }

.phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(0,200,83,0.12) 0%, transparent 70%);
  border-radius: 60px;
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  animation: badge-float 5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge-1 {
  top: 15%;
  right: -20px;
  animation-delay: 0s;
  font-size: 0.75rem;
}
.floating-badge-2 {
  bottom: 25%;
  left: -30px;
  animation-delay: 2.5s;
  font-size: 0.75rem;
}

.fb-icon { font-size: 1rem; }
.fb-label { font-size: 0.65rem; color: var(--text-muted); }
.fb-value { font-size: 0.85rem; font-weight: 700; color: var(--green-primary); }

/* ─── Trusted/Stats Bar ──────────────────────────── */
.stats-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 0;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-bar-item {
  padding: 12px;
}

.stats-bar-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stats-bar-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── Features ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  padding: 32px 28px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, var(--green-glow), transparent);
}

.fi-green { background: rgba(0, 200, 83, 0.12); border: 1px solid rgba(0, 200, 83, 0.2); }
.fi-blue { background: rgba(0, 122, 255, 0.12); border: 1px solid rgba(0, 122, 255, 0.2); }
.fi-gold { background: rgba(255, 215, 64, 0.12); border: 1px solid rgba(255, 215, 64, 0.2); }
.fi-purple { background: rgba(180, 0, 255, 0.12); border: 1px solid rgba(180, 0, 255, 0.2); }
.fi-red { background: rgba(255, 59, 48, 0.12); border: 1px solid rgba(255, 59, 48, 0.2); }
.fi-teal { background: rgba(0, 199, 190, 0.12); border: 1px solid rgba(0, 199, 190, 0.2); }

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--green-glow);
  color: var(--green-light);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

/* ─── Highlights / Big Feature ───────────────────── */
.highlights {
  background: var(--bg-1);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.highlights-visual {
  position: relative;
}

.scorecard-preview {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.scorecard-header {
  background: linear-gradient(135deg, #0a2518, #061a10);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scorecard-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-light);
}

.scorecard-badge {
  padding: 4px 10px;
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-primary);
}

.scorecard-body {
  padding: 20px 24px;
}

.sc-team-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sc-team-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.sc-score {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-primary);
}

.sc-overs {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sc-table {
  margin-top: 16px;
  width: 100%;
}

.sc-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.8rem;
}

.sc-row-header {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sc-row-data .sc-player { color: var(--text-primary); font-weight: 500; }
.sc-row-data .sc-runs { color: var(--green-primary); font-weight: 700; }
.sc-row-data span { color: var(--text-secondary); }

.sc-result {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--green-glow);
  border: 1px solid rgba(0, 200, 83, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-light);
  text-align: center;
}

.highlights-text { }

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.highlight-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-glow);
  border: 1px solid rgba(0, 200, 83, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--green-primary);
}

.highlight-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.highlight-item-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Formats ─────────────────────────────────────── */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.format-card {
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.format-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
}

.format-emoji { font-size: 2.5rem; margin-bottom: 14px; }

.format-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.format-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Premium Section ────────────────────────────── */
.premium {
  background: linear-gradient(135deg, var(--bg-1) 0%, rgba(0, 80, 35, 0.15) 50%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
}

.premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.premium-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.premium-feature:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.pf-icon {
  font-size: 1.4rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.pf-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.pf-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pf-badge {
  margin-left: auto;
  padding: 3px 8px;
  background: rgba(255, 215, 64, 0.12);
  border: 1px solid rgba(255, 215, 64, 0.2);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

/* Premium visual */
.premium-badge-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.crown-icon {
  font-size: 5rem;
  animation: crown-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 64, 0.5));
}

@keyframes crown-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.premium-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.premium-mini-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}

.premium-mini-card:hover {
  border-color: rgba(255, 215, 64, 0.3);
  box-shadow: 0 4px 20px rgba(255, 215, 64, 0.1);
}

.pmc-icon { font-size: 1.5rem; margin-bottom: 8px; }
.pmc-label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; }

/* ─── Download Section ───────────────────────────── */
.download {
  text-align: center;
}

.download-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  min-width: 180px;
}

.store-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.store-btn-icon { font-size: 2rem; }

.store-btn-text-sm { font-size: 0.72rem; color: var(--text-muted); }
.store-btn-text-lg { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 240px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--green-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--green-primary); }

/* ─── Inner Pages (Privacy, Terms, etc.) ─────────── */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,200,83,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.page-content {
  padding: 64px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.info-box {
  padding: 20px 24px;
  background: var(--green-glow);
  border: 1px solid rgba(0, 200, 83, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.info-box p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Delete Account page */
.delete-steps {
  counter-reset: step-counter;
}

.delete-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-glow);
  border: 1px solid rgba(0, 200, 83, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-primary);
  flex-shrink: 0;
}

.step-content-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.step-content-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.warning-box {
  padding: 20px 24px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.warning-box p { margin: 0; color: #ff6b6b; font-size: 0.9rem; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.contact-card {
  padding: 32px 28px;
  text-align: center;
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-method {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--green-primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline !important;
}

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 220px; }
  .phone-frame { width: 220px; }
  .floating-badge-1 { right: -10px; font-size: 0.65rem; }
  .floating-badge-2 { left: -10px; font-size: 0.65rem; }

  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); }

  .features-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr 1fr; }

  .highlights-grid { grid-template-columns: 1fr; gap: 48px; }
  .premium-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .download-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .formats-grid { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: 1fr 1fr; }
  .premium-cards { grid-template-columns: 1fr 1fr; }
}

/* ─── Local Rules Feature Pills ──────────────────── */
.lr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.lr-pill:hover {
  background: rgba(0, 200, 83, 0.14);
  border-color: rgba(0, 200, 83, 0.35);
  color: var(--text-primary);
}

/* ─── Local Rules Section ────────────────────────── */
.local-rules-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

.local-rules-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.lr-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
  top: -100px;
  left: -150px;
  animation: float-orb 9s ease-in-out infinite;
}

.lr-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 180, 100, 0.07) 0%, transparent 70%);
  bottom: -80px;
  right: -100px;
  animation: float-orb 11s ease-in-out infinite reverse;
}

.lr-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ─── Demo Panel (macOS-style window) ────────────── */
.lr-demo-panel {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 200, 83, 0.08);
}

.lr-demo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.lr-demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.8;
}

.lr-demo-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ─── Rule Groups ────────────────────────────────── */
.lr-rule-group {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.lr-rule-label {
  padding: 8px 14px;
  background: rgba(0, 200, 83, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-primary);
}

.lr-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.lr-rule-row:last-child { border-bottom: none; }

.lr-rule-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Toggle Group ───────────────────────────────── */
.lr-toggle-group {
  display: flex;
  gap: 4px;
}

.lr-toggle {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.lr-toggle.active {
  background: rgba(0, 200, 83, 0.15);
  border-color: rgba(0, 200, 83, 0.3);
  color: var(--green-primary);
}

/* ─── Switch ─────────────────────────────────────── */
.lr-switch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lr-switch {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.lr-switch.on {
  background: rgba(0, 200, 83, 0.35);
  border-color: rgba(0, 200, 83, 0.4);
}

.lr-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
  transition: transform var(--transition);
}

.lr-switch.on .lr-switch-thumb {
  transform: translateX(16px);
  opacity: 1;
  background: var(--green-primary);
}

.lr-switch-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ─── Save bar ───────────────────────────────────── */
.lr-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

/* ─── Right side feature list ────────────────────── */
.lr-unique-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 150, 60, 0.06));
  border: 1px solid rgba(0, 200, 83, 0.2);
  border-radius: var(--radius-md);
}

.lr-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lr-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.lr-fi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.lr-fi-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.lr-fi-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Local Rules Responsive ─────────────────────── */
@media (max-width: 900px) {
  .lr-main-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .lr-toggle-group { flex-wrap: wrap; }
  .lr-rule-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .local-rules-pills { display: none; }
}

