/* Inter (SIL OFL 1.1, fonts/Inter-OFL.txt) — self-hosted, no Google Fonts. */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/Inter-Bold.woff2') format('woff2'); }

/* ═══════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════ */
:root {
  /* "Court" palette — same brand as the app (lib/core/theme/app_theme.dart).
     Variable names kept so existing rules keep working: --teal is the brand
     court green, --orange is cork, --purple / --blue are muted slate. */
  --teal:       #1F8A63;
  --teal-dark:  #0F6B4F;
  --blue:       #0F6B4F;
  --blue-dark:  #0A523C;
  --coral:      #C8412F;
  --purple:     #6F7FA0;
  --green:      #1F8A63;
  --orange:     #A8824A;
  --cork:       #D4AE72;
  --ink:        #0E1411;

  /* One hue per gradient — no teal-to-blue sweeps. */
  --grad-primary: linear-gradient(135deg, #1F8A63 0%, #0F6B4F 100%);
  --grad-hero:    linear-gradient(160deg, #14432F 0%, #0B241A 100%);
  --grad-dark:    linear-gradient(135deg, #0F6B4F 0%, #0A3A2B 100%);

  --bg:         #F7F5EF;
  --bg-soft:    #EFEDE6;
  --bg-card:    #FFFFFF;
  --border:     #E1DED5;
  --text:       #141A16;
  --text-sub:   #5E665F;
  --text-faint: #8D948E;

  --radius:     14px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  /* Neutral, low shadows: separation comes from hairlines, not glow. */
  --shadow-sm:  0 1px 2px rgba(20,26,22,.06);
  --shadow-md:  0 4px 16px rgba(20,26,22,.08);
  --shadow-lg:  0 12px 32px rgba(20,26,22,.10);

  --nav-h: 68px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */
.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Scroll-reveal */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--delay, 0s);
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

.section { padding-block: 96px; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(31,138,99,.12), rgba(15,107,79,.12));
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(31,138,99,.25);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.section-desc {
  color: var(--text-sub);
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .06em;
}
.brand-name { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-flex; align-items: center; line-height: 1; }
.brand-shuttle { display: inline-block; width: 1.1em; height: 1.1em; max-width: 28px; max-height: 28px; flex-shrink: 0; object-fit: contain; vertical-align: middle; margin: 0 1px; }
.brand-tagline { font-size: .55rem; font-weight: 500; letter-spacing: .10em; color: #B23A2A; text-transform: uppercase; line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  padding: .5rem .85rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--teal-dark);
  background: rgba(31,138,99,.08);
}
.nav-cta { margin-left: .5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.visible { display: block; }

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
}

/* Shuttlecock / diamond pattern background */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.06) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(212,174,114,.08) 0%, transparent 50%);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='46' r='5' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cline x1='30' y1='41' x2='18' y2='20' stroke='rgba(255,255,255,0.06)' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='30' y1='41' x2='30' y2='16' stroke='rgba(255,255,255,0.06)' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='30' y1='41' x2='42' y2='20' stroke='rgba(255,255,255,0.06)' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #E8D3A8, #D4AE72);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -1.25rem 0 2rem;
}
.hero-pill {
  background: rgba(212,174,114,.14);
  color: #E8D3A8;
  border: 1px solid rgba(212,174,114,.35);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: .8rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.4rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  min-width: 160px;
}
.store-btn:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn span small { font-size: .68rem; opacity: .8; font-weight: 400; }
.store-btn span { font-size: .95rem; font-weight: 700; }

.store-btn.lg { padding: 1rem 1.75rem; font-size: 1rem; }
.store-btn.google-play.lg, .store-btn.app-store.lg {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}

/* ── Phone mockups (hero) ── */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 540px;
}

.phone-wrap { position: absolute; }
.phone-back  { right: 8%; bottom: 0; transform: rotate(6deg) translateX(20px); z-index: 1; }
.phone-front { right: 28%; bottom: 0; transform: rotate(-4deg); z-index: 2; }

.phone-mockup {
  width: 200px;
  border-radius: 38px;
  background: #0E1411;
  border: 8px solid #1D2621;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 20px;
  background: #0E1411;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}
/* 200px wide → 433px tall ≈ 19.5:9 phone ratio */
.phone-mockup.lg { width: 220px; }

.phone-screen {
  width: 100%;
  padding: 28px 0 0;
  min-height: 433px;   /* 200px * (19.5/9) */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-mockup.lg .phone-screen { min-height: 477px; } /* 220px * (19.5/9) */

/* Screen: stats */
.screen-stats { background: #0E1411; padding: 32px 14px 14px; gap: 10px; }
.screen-stats-lg { background: #0E1411; padding: 32px 14px 14px; gap: 10px; }

/* Screen: score */
.screen-score, .screen-score-lg {
  background: linear-gradient(160deg, #12402F 60%, #0A1F17);
  padding: 32px 14px 14px;
  gap: 10px;
}

/* Screen: login */
.screen-login { background: linear-gradient(160deg, #1F8A63, #0F6B4F); padding: 0; gap: 0; }
.mock-gradient-top {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 16px;
}
.mock-brand-name { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 6px; display: flex; align-items: center; justify-content: center; }
.mock-brand-shuttle { display: inline-block; width: 20px; height: 20px; max-width: 20px; max-height: 20px; flex-shrink: 0; object-fit: contain; margin: 0 1px; }
.mock-tagline     { font-size: 8px; color: rgba(255,255,255,.75); letter-spacing: 2px; }
.mock-card-bottom {
  flex: 1;
  background: #FFFFFF;
  border-radius: 22px 22px 0 0;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-card-title  { font-size: 12px; font-weight: 700; color: #141A16; margin-bottom: 4px; }
.mock-input       { height: 30px; background: #EFEDE6; border-radius: 8px; border: 1px solid #E1DED5; }
.mock-btn-full    { height: 32px; background: linear-gradient(90deg,#1F8A63,#0F6B4F); border-radius: 8px; margin-top: 4px; }

/* Screen: home */
.screen-home { background: #FFFFFF; padding: 32px 14px 14px; gap: 8px; }
.mock-home-header { display: flex; justify-content: space-between; align-items: center; }
.mock-greeting    { font-size: 9px; font-weight: 700; color: #141A16; }
.mock-sub         { font-size: 7px; color: #5E665F; }
.mock-home-cards  { display: flex; gap: 6px; margin: 4px 0; }
.mock-home-card   { flex: 1; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.mock-home-card span { font-size: 7px; opacity: .8; }
.mock-home-card b    { font-size: 18px; font-weight: 700; }
.teal-card { background: linear-gradient(135deg,#1F8A63,#0F6B4F); color: #fff; }
.coral-card { background: linear-gradient(135deg,#C8412F,#B23A2A); color: #fff; }
.mock-section-title { font-size: 8px; font-weight: 700; color: #141A16; margin-top: 4px; }
.mock-match-row { font-size: 7px; padding: 5px 6px; border-radius: 6px; color: #141A16; }
.mock-match-row.win  { background: rgba(31,138,99,.12); }
.mock-match-row.loss { background: rgba(200,65,47,.12); }

/* Screen: tournament */
.screen-tournament { background: #0E1411; padding: 32px 14px 14px; gap: 8px; }
.mock-tournament-sub { font-size: 8px; color: rgba(255,255,255,.5); text-align: center; }
.mock-bracket { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.bracket-match { display: flex; gap: 4px; }
.bracket-team  { flex: 1; padding: 5px 6px; background: rgba(255,255,255,.06); border-radius: 6px; font-size: 7px; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.08); }
.bracket-team.winner { background: rgba(31,138,99,.2); color: #5DBF95; border-color: rgba(31,138,99,.35); font-weight: 700; }

/* Common mock elements */
.mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  margin-bottom: 6px;
}
.mock-dot   { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.mock-title { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.9); flex: 1; }
.mock-live  { font-size: 7px; color: var(--coral); font-weight: 700; }
.mock-live-badge { font-size: 7px; color: var(--coral); font-weight: 700; flex: 1; }

.mock-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1F8A63, #0F6B4F);
  margin: 0 auto;
}
.mock-avatar.sm { width: 24px; height: 24px; flex-shrink: 0; }
.mock-avatar.md { width: 40px; height: 40px; }
.mock-avatar.teal  { background: linear-gradient(135deg,#1F8A63,#0F6B4F); }
.mock-avatar.coral { background: linear-gradient(135deg,#C8412F,#B23A2A); }

.mock-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.mock-team  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mock-team span { font-size: 7px; color: rgba(255,255,255,.7); }
.mock-vs    { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); }
.mock-score-box {
  background: linear-gradient(135deg,#1F8A63,#0F6B4F);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-score-box.alt { background: linear-gradient(135deg,#C8412F,#B23A2A); }
.mock-set-info { font-size: 7px; color: rgba(255,255,255,.4); text-align: center; }

.mock-controls {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.mock-btn {
  flex: 1;
  padding: 7px 4px;
  background: linear-gradient(135deg,#1F8A63,#0F6B4F);
  color: #fff;
  border-radius: 8px;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
}
.mock-btn.alt { background: linear-gradient(135deg,#C8412F,#B23A2A); }
.mock-controls.lg .mock-btn { font-size: 8px; padding: 9px 6px; }

.mock-scoreboard {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.mock-score-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mock-score-col p { font-size: 8px; color: rgba(255,255,255,.6); }
.big-score {
  font-size: 36px;
  font-weight: 700;
  color: #5DBF95;
  line-height: 1;
}
.big-score.alt { color: #D4AE72; }
.mock-score-divider { font-size: 18px; color: rgba(255,255,255,.25); font-weight: 400; }

.mock-stat-bars { display: flex; flex-direction: column; gap: 8px; padding: 2px 0; }
.mock-stat-bars.lg { gap: 10px; }
.mock-bar { display: flex; flex-direction: column; gap: 2px; }
.mock-bar span { font-size: 7px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; }
.mock-bar b { font-size: 7px; color: rgba(255,255,255,.9); }
.mock-bar::after {
  content: '';
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  position: relative;
}
/* Pseudo-element hack: use background on span */
.mock-bar { position: relative; }
.mock-bar span { display: flex; justify-content: space-between; }
.mock-bar > span::after {
  display: none; /* use manual bar divs instead */
}
/* Stat bar fill via custom prop */
.mock-bar {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 5px 8px;
}
.mock-bar span { font-size: 7px; color: rgba(255,255,255,.5); flex: 1; }
.mock-bar b    { font-size: 7px; color: rgba(255,255,255,.9); }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  padding: 6px 0 2px;
}
.mock-bar-v {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, #5DBF95, #0F6B4F);
  border-radius: 3px 3px 0 0;
  opacity: .8;
}

.mock-player-name {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-align: center;
  margin-bottom: 6px;
}
.mock-badges-row {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mock-badge-pill {
  background: rgba(31,138,99,.2);
  color: #5DBF95;
  font-size: 6.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 100px;
  border: 1px solid rgba(31,138,99,.3);
}

/* ═══════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════ */
.stats-bar {
  background: var(--grad-primary);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label { font-size: .85rem; opacity: .8; font-weight: 500; }

/* ═══════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════ */
.features { background: var(--bg-soft); }

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31,138,99,.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 22px; height: 22px; }

.icon-teal   { background: rgba(31,138,99,.12); color: var(--teal-dark); }
.icon-blue   { background: rgba(15,107,79,.12); color: var(--blue); }
.icon-purple { background: rgba(139,92,246,.12); color: var(--purple); }
.icon-coral  { background: rgba(200,65,47,.12); color: var(--coral); }
.icon-green  { background: rgba(34,197,94,.12); color: var(--green); }
.icon-orange { background: rgba(245,158,11,.12); color: var(--orange); }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { color: var(--text-sub); font-size: .93rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   SCREENSHOTS CAROUSEL
═══════════════════════════════════════════════════ */
.screenshots { background: var(--bg); }

.carousel-wrapper {
  position: relative;
  overflow: hidden;   /* must be on wrapper, NOT on carousel itself */
}

.carousel {
  display: flex;
  gap: 2rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 1.35rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
/* Highlight active slide with border glow instead of scale (scale causes top clip) */
.carousel-slide .phone-mockup {
  transition: border-color var(--transition), box-shadow var(--transition);
}
.carousel-slide.active .phone-mockup {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(31,138,99,.35);
}

.slide-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-sub);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.carousel-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--teal);
}

/* ═══════════════════════════════════════════════════
   WHY CHOOSE
═══════════════════════════════════════════════════ */
.why { background: var(--bg-soft); }

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

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.why-num {
  font-size: 3rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: .35;
}
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.why-card p  { color: var(--text-sub); font-size: .9rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════ */
.testimonials { background: var(--bg); }

/* Testimonials carousel — cards sized like screenshot carousel */
.t-carousel .testimonial-card {
  flex: 0 0 calc(33.333% - 1.35rem);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stars { color: #A8824A; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-text {
  color: var(--text-sub);
  font-size: .93rem;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-text::before { content: '\201C'; }
.testimonial-text::after  { content: '\201D'; }

.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.author-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.12);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  filter: contrast(1.08) saturate(1.1);
}
.testimonial-author strong { display: block; font-size: .92rem; }
.testimonial-author span   { font-size: .78rem; color: var(--text-sub); opacity: .75; }

/* ── Testimonial carousel outer — holds half-circle nav buttons ── */
.t-carousel-outer {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.t-carousel-outer .carousel-wrapper { flex: 1; min-width: 0; }

.t-nav-btn {
  flex-shrink: 0;
  width: 30px;
  height: 68px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.t-nav-btn.t-prev { border-radius: 0 50px 50px 0; border-left: none; }
.t-nav-btn.t-next { border-radius: 50px 0 0 50px; border-right: none; }
.t-nav-btn:hover  { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ═══════════════════════════════════════════════════
   DOWNLOAD
═══════════════════════════════════════════════════ */
.download {
  position: relative;
  background: var(--grad-dark);
  padding-block: 96px;
  overflow: hidden;
}
.download-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='46' r='5' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1.5'/%3E%3Cline x1='30' y1='41' x2='18' y2='20' stroke='rgba(255,255,255,0.05)' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='30' y1='41' x2='30' y2='16' stroke='rgba(255,255,255,0.05)' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='30' y1='41' x2='42' y2='20' stroke='rgba(255,255,255,0.05)' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.download-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.download-text { flex: 1; }
.download-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.download-text p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.download-note { font-size: .82rem; color: rgba(255,255,255,.55); }

/* QR cards */
.qr-cards {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.qr-frame {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.25);
  padding: 14px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qr-frame:hover {
  background: rgba(255,255,255,.18);
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

/* Frosted placeholder — replaces real QR until ready */
.qr-frosted {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,.15);
  cursor: default;
}
.qr-frosted:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255,255,255,.06);
}

.qr-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.qr-coming-soon span {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
  text-transform: uppercase;
}


.qr-store-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  font-weight: 600;
}

/* Remove old download column layout — download is now full-width text only */
.download-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 700px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer { background: #0B241A; }

.footer-inner {
  display: flex;
  gap: 3rem;
  padding: 64px 0 48px;
  flex-wrap: wrap;
}

.footer-brand { flex: 0 0 240px; }
.footer-brand .nav-brand { margin-bottom: .6rem; }
.footer-tagline { font-size: .48rem; font-weight: 500; letter-spacing: .16em; color: #1F8A63; text-transform: uppercase; line-height: 1; margin-bottom: 1.5rem; }

.social-links { display: flex; gap: .5rem; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-2px); }

.footer-links {
  flex: 1;
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 700; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a  { color: rgba(255,255,255,.45); font-size: .85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
}
.footer-credit { margin-top: .35rem; }
.footer-credit a { color: rgba(255,255,255,.55); font-weight: 600; transition: color var(--transition); }
.footer-credit a:hover { color: var(--teal); }

/* ═══════════════════════════════════════════════════
   STICKY MOBILE DOWNLOAD BAR
═══════════════════════════════════════════════════ */
.sticky-download {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 990;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.sticky-download.visible { transform: none; }
.sticky-btn { width: 100%; justify-content: center; font-size: 1rem; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

/* Tablet  (≤ 960px) */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc  { margin-inline: auto; }
  .hero-actions, .hero-pills { justify-content: center; }
  .hero-phones { height: 460px; }
  .phone-back  { right: 2%; }
  .phone-front { right: 28%; }

  .download-inner { align-items: center; text-align: center; }
  .qr-cards { justify-content: center; }

  .footer-links { gap: 2rem; }

  .carousel-slide { flex: 0 0 calc(50% - 1rem); }
  .t-carousel .testimonial-card { flex: 0 0 calc(50% - 1rem); }
}

/* Mobile  (≤ 640px) */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .section { padding-block: 64px; }

  /* Mobile nav */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
    gap: .25rem;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 32px rgba(0,0,0,.12);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-link { width: 100%; padding: .75rem 1rem; font-size: 1rem; border-radius: var(--radius); }
  .nav-cta  { width: 100%; justify-content: center; margin-top: .5rem; }

  /* On mobile show only the front phone, centered */
  .hero-phones { height: 400px; justify-content: center; }
  .phone-back  { display: none; }
  .phone-front {
    position: relative;
    right: auto;
    bottom: auto;
    transform: none;
  }
  .phone-mockup     { width: 180px; }
  .phone-mockup.lg  { width: 200px; }
  .phone-screen     { min-height: 390px; }
  .phone-mockup.lg .phone-screen { min-height: 433px; }

  .features-grid    { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-inner     { flex-direction: column; }
  .footer-links     { flex-direction: column; gap: 1.5rem; justify-content: flex-start; }

  .carousel-slide { flex: 0 0 calc(100% - 2rem); }
  .t-carousel .testimonial-card { flex: 0 0 calc(100% - 2rem); }
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }

  .hero-actions { flex-direction: column; align-items: center; }
  .store-btn    { width: 100%; max-width: 260px; justify-content: center; }

  /* Show sticky download bar */
  .sticky-download { display: flex; }
}

/* Very small (≤ 380px) */
@media (max-width: 380px) {
  .hero-title { font-size: 1.7rem; }
}
