/* ============================================
   MATCHGO - Futsal Matchmaking Platform
   Custom Styles (Bootstrap 5 Override)
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---------- CSS Variables: Dark (default) ---------- */
:root,
[data-theme="dark"] {

  /* =========================
     BRAND
  ========================= */

  --accent: #A3B14B;
  --accent-hover: #8f9c40;
  --accent-light: #d4e170;

  --accent-dim: rgba(163,177,75,0.12);
  --accent-dim-hover: rgba(163,177,75,0.20);

  /* =========================
     SURFACE
  ========================= */

  --surface-0: #0C0C0C;
  --surface-1: #111111;
  --surface-2: #161616;
  --surface-3: #1C1C1C;
  --surface-4: #242424;
  --surface-5: #2C2C2C;

  /* =========================
     BACKGROUND
  ========================= */

  --bg-primary: var(--surface-0);
  --bg-secondary: var(--surface-1);

  --bg-card: rgba(22,22,22,0.72);
  --bg-glass: rgba(28,28,28,0.60);

  --bg-navbar: rgba(12,12,12,0.82);
  --bg-navbar-scroll: rgba(12,12,12,0.94);

  --bg-mobile-menu: var(--surface-2);

  --bg-field-line: rgba(163,177,75,0.08);
  --bg-grid-line: rgba(163,177,75,0.035);
  --bg-radial: rgba(163,177,75,0.08);

  --bg-browser-screen:
    linear-gradient(
      180deg,
      #171717 0%,
      #111111 100%
    );

  --bg-browser-bar: #1F1F1F;
  --bg-browser-dots: #2B2B2B;

  --bg-info-row: rgba(255,255,255,0.045);

  /* =========================
     COLORS
  ========================= */

  --lime: var(--accent);
  --lime-dim: var(--accent-dim);
  --lime-glow: rgba(163,177,75,0.35);

  --cyan: #22d3ee;
  --cyan-dim: rgba(34,211,238,0.12);

  --purple: #a855f7;
  --purple-dim: rgba(168,85,247,0.12);

  --rose: #fb7185;
  --rose-dim: rgba(251,113,133,0.12);

  --amber: #fbbf24;
  --amber-dim: rgba(251,191,36,0.12);

  --emerald: #34d399;
  --emerald-dim: rgba(52,211,153,0.12);

  /* =========================
     TEXT
  ========================= */

  --text-primary: #F5F5F0;
  --text-secondary: #A8A29E;
  --text-muted: #78716C;
  --text-faint: #57534E;

  /* =========================
     BORDER
  ========================= */

  --border-color: rgba(255,255,255,0.08);

  /* =========================
     SHADOW
  ========================= */

  --shadow-card:
    0 20px 60px rgba(0,0,0,0.42);

  --shadow-navbar:
    0 4px 30px rgba(0,0,0,0.45);

  /* =========================
     TYPOGRAPHY
  ========================= */

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* =========================
     TOGGLER ICON
  ========================= */

  --toggler-icon:
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23A3B14B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- CSS Variables: Light ---------- */
[data-theme="light"] {

  /* =========================
     BRAND
  ========================= */

  --accent: #7A8C2E;
  --accent-hover: #69791f;
  --accent-light: #4D6010;

  --accent-dim: rgba(122,140,46,0.10);
  --accent-dim-hover: rgba(122,140,46,0.18);

  /* =========================
     SURFACE
  ========================= */

  --surface-0: #F8F8F4;
  --surface-1: #FFFFFF;
  --surface-2: #F4F4EF;
  --surface-3: #EEEEE8;
  --surface-4: #E6E6DF;
  --surface-5: #DDDDD5;

  /* =========================
     BACKGROUND
  ========================= */

  --bg-primary: var(--surface-0);
  --bg-secondary: var(--surface-2);

  --bg-card: rgba(255,255,255,0.82);
  --bg-glass: rgba(255,255,255,0.65);

  --bg-navbar: rgba(248,248,244,0.86);
  --bg-navbar-scroll: rgba(248,248,244,0.96);

  --bg-mobile-menu: var(--surface-1);

  --bg-field-line: rgba(122,140,46,0.08);
  --bg-grid-line: rgba(122,140,46,0.045);
  --bg-radial: rgba(122,140,46,0.08);

  --bg-browser-screen:
    linear-gradient(
      180deg,
      #FFFFFF 0%,
      #F4F4EF 100%
    );

  --bg-browser-bar: #ECECE5;
  --bg-browser-dots: #D8D8D0;

  --bg-info-row: rgba(0,0,0,0.03);

  /* =========================
     COLORS
  ========================= */

  --lime: var(--accent);
  --lime-dim: var(--accent-dim);
  --lime-glow: rgba(122,140,46,0.22);

  --cyan: #0891b2;
  --cyan-dim: rgba(8,145,178,0.10);

  --purple: #9333ea;
  --purple-dim: rgba(147,51,234,0.10);

  --rose: #e11d48;
  --rose-dim: rgba(225,29,72,0.10);

  --amber: #d97706;
  --amber-dim: rgba(217,119,6,0.10);

  --emerald: #059669;
  --emerald-dim: rgba(5,150,105,0.10);

  /* =========================
     TEXT
  ========================= */

  --text-primary: #1A1A17;
  --text-secondary: #4A4A42;
  --text-muted: #6E6E64;
  --text-faint: #9E9E93;

  /* =========================
     BORDER
  ========================= */

  --border-color: rgba(0,0,0,0.08);

  /* =========================
     SHADOW
  ========================= */

  --shadow-card:
    0 20px 60px rgba(0,0,0,0.08);

  --shadow-navbar:
    0 4px 30px rgba(0,0,0,0.08);

  /* =========================
     TOGGLER ICON
  ========================= */

  --toggler-icon:
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%237A8C2E' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

section {
  position: relative;
  padding: 100px 0;
}

::selection {
  background: var(--lime);
  color: var(--bg-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 3px; }

/* ---------- Background effects ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-radial-top {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--bg-radial) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Futsal field line decoration ---------- */
.field-line-divider {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.field-line-divider::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.field-line-divider .field-circle {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}

.field-line-divider .field-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

/* ---------- NAVBAR ---------- */
.navbar-matchgo {
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar-matchgo.scrolled {
  background: var(--bg-navbar-scroll);
  box-shadow: var(--shadow-navbar);
}

.navbar-brand-custom {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand-custom .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--lime);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 18px;
}

[data-theme="light"] .navbar-brand-custom .brand-icon {
  color: #fff;
}

.navbar-brand-custom .brand-accent {
  color: var(--lime);
}

.navbar-matchgo .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-matchgo .nav-link:hover,
.navbar-matchgo .nav-link.active {
  color: var(--lime) !important;
  background: var(--lime-dim);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: var(--lime-dim);
  color: var(--lime);
  border-color: var(--lime);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }

[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.btn-lime {
  background: var(--lime);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
  border-radius: 12px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .btn-lime {
  color: var(--bg-primary);
}

.btn-lime:hover {
  filter: brightness(1.15);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--lime-glow);
}

[data-theme="dark"] .btn-lime:hover {
  color: var(--bg-primary);
}

.btn-outline-lime {
  border: 1.5px solid var(--lime);
  color: var(--lime);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 24px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-lime:hover {
  background: var(--lime-dim);
  color: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: var(--toggler-icon) !important;
}

.navbar-collapse {
  background: var(--bg-mobile-menu);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--border-color);
}

@media(min-width: 992px) {
  .navbar-collapse {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0;
    border-radius: 0;
  }
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Futsal field lines in hero bg */
.hero-field-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-field-lines .center-circle {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border: 2px solid var(--bg-field-line);
  border-radius: 50%;
}

.hero-field-lines .center-dot {
  position: absolute;
  top: 50%;
  right: 118px;
  width: 10px;
  height: 10px;
  background: var(--bg-field-line);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-field-lines .penalty-arc {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  border: 2px solid var(--bg-field-line);
  border-radius: 200px 200px 0 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-dim);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.85rem;
  color: var(--lime);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat-item h3 {
  font-size: 1.8rem;
  color: var(--lime);
  margin-bottom: 2px;
}

.hero-stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Hero floating orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  animation: float-orb 6s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--lime-glow), transparent 70%);
  top: 10%; right: 10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  bottom: 20%; left: 5%;
  animation-delay: 2s;
}

.hero-orb-3 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.1), transparent 70%);
  top: 30%; left: 40%;
  animation-delay: 4s;
}

[data-theme="light"] .hero-orb-1 { background: radial-gradient(circle, rgba(101,163,13,0.15), transparent 70%); }
[data-theme="light"] .hero-orb-2 { background: radial-gradient(circle, rgba(8,145,178,0.1), transparent 70%); }
[data-theme="light"] .hero-orb-3 { background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 70%); }

@keyframes float-orb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ---------- Browser mockup (replaces phone) ---------- */
.browser-mockup {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 60px var(--lime-dim);
  transition: transform 0.4s ease;
}

.browser-mockup:hover {
  transform: translateY(-6px);
}

.browser-bar {
  background: var(--bg-browser-bar);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #eab308; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
  flex: 1;
  background: var(--bg-info-row);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}

.browser-url .lock-icon { color: var(--lime); }

.browser-screen {
  background: var(--bg-browser-screen);
  padding: 24px 20px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.browser-screen-header {
  text-align: center;
  margin-bottom: 16px;
}

.browser-screen-header h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.browser-screen-header small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vs-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-shrink: 0;
}

.vs-team { text-align: center; }

.vs-team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 6px;
}

.vs-team-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.vs-badge {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lime);
  background: var(--lime-dim);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.match-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-info-row);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.match-info-row .label { color: var(--text-muted); }
.match-info-row .value { color: var(--text-primary); font-weight: 600; }

.browser-action-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--lime);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: center;
}

[data-theme="dark"] .browser-action-btn {
  color: var(--bg-primary);
}

/* ---------- Section Titles ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  margin-bottom: 14px;
}

.section-badge::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--lime);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* ---------- FEATURES ---------- */
#features {
  background: var(--bg-primary);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 28px;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(163, 230, 53, 0.2);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before { opacity: 1; }

.feature-card.accent-lime::before { background: var(--lime); }
.feature-card.accent-cyan::before { background: var(--cyan); }
.feature-card.accent-purple::before { background: var(--purple); }
.feature-card.accent-rose::before { background: var(--rose); }
.feature-card.accent-amber::before { background: var(--amber); }
.feature-card.accent-emerald::before { background: var(--emerald); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.bg-lime   { background: var(--lime-dim);    color: var(--lime); }
.feature-icon.bg-cyan   { background: var(--cyan-dim);    color: var(--cyan); }
.feature-icon.bg-purple { background: var(--purple-dim);  color: var(--purple); }
.feature-icon.bg-rose   { background: var(--rose-dim);    color: var(--rose); }
.feature-icon.bg-amber  { background: var(--amber-dim);   color: var(--amber); }
.feature-icon.bg-emerald{ background: var(--emerald-dim); color: var(--emerald); }

.feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* ---------- WEB PREVIEW (replaces app preview) ---------- */
#web-preview {
  background: var(--bg-secondary);
  overflow: hidden;
}

.preview-screens {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.preview-screen-item {
  width: 340px;
  flex-shrink: 0;
}

.preview-screen-item .browser-mockup {
  max-width: 100%;
  transform: scale(0.97);
  transition: transform 0.4s ease;
}

.preview-screen-item:hover .browser-mockup {
  transform: scale(1);
}

.preview-screen-item .screen-label {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Cost split items */
.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.cost-item:last-child { border: none; }
.cost-item .cost-label { color: var(--text-secondary); }
.cost-item .cost-value { color: var(--text-primary); font-weight: 600; }

.cost-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--lime-dim);
  border-radius: 12px;
  margin-top: 10px;
  font-size: 0.8rem;
}

.cost-total .cost-label { color: var(--lime); font-weight: 700; }
.cost-total .cost-value { color: var(--lime); font-weight: 700; }

/* Profile stats */
.profile-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 8px;
}

.profile-stats-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

.profile-stat {
  text-align: center;
  background: var(--bg-info-row);
  padding: 6px 12px;
  border-radius: 10px;
}

.profile-stat .stat-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lime);
}

.profile-stat .stat-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.winrate-bar {
  background: var(--bg-info-row);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.winrate-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--lime), var(--emerald));
  transition: width 1.5s ease;
}

/* ---------- HOW IT WORKS ---------- */
#how-it-works {
  background: var(--bg-primary);
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--lime-dim);
  border: 2px solid rgba(163, 230, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lime);
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  background: var(--lime);
  color: #fff;
  transform: rotate(-5deg) scale(1.1);
}

[data-theme="dark"] .step-card:hover .step-number {
  color: var(--bg-primary);
}

.step-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.step-connector {
  position: absolute;
  top: 60px;
  right: -30px;
  color: var(--text-muted);
  font-size: 1.2rem;
  display: none;
}

@media (min-width: 768px) {
  .step-connector { display: block; }
}

/* ---------- STATS ---------- */
#stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0;
}

.stat-box {
  text-align: center;
  padding: 32px 16px;
}

.stat-box h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 6px;
}

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

/* ---------- TESTIMONIALS ---------- */
#testimonials {
  background: var(--bg-primary);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  height: 100%;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  border-color: rgba(163, 230, 53, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  color: var(--amber);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-author-info h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-author-info small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
#cta {
  background: var(--bg-primary);
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--lime-dim), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(163, 230, 53, 0.15);
  border-radius: 32px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--lime-dim), transparent 60%);
  animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Futsal half-circle decoration in CTA */
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 80px;
  border: 2px solid var(--bg-field-line);
  border-radius: 160px 160px 0 0;
  border-bottom: none;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-box .btn { position: relative; z-index: 1; }

/* ---------- FOOTER ---------- */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-brand .brand-accent { color: var(--lime); }

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--lime);
  padding-left: 4px;
}

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

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-info-row);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--lime-dim);
  color: var(--lime);
  border-color: rgba(163, 230, 53, 0.3);
  transform: translateY(-3px);
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Utilities ---------- */
.text-lime { color: var(--lime) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-purple { color: var(--purple) !important; }

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 767px) {
  section { padding: 70px 0; }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .browser-mockup { margin-top: 48px; }

  .preview-screens { gap: 20px; }

  .preview-screen-item {
    width: 100%;
    max-width: 360px;
  }

  .cta-box { padding: 40px 24px; }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .hero-field-lines .center-circle {
    width: 250px;
    height: 250px;
    right: -100px;
  }
}