/* =============================================================
   tminhvu — Android Developer Site
   Football / pitch theme · golden-yellow dominant · light/dark · VI/EN
   ============================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:root {
  /* Brand — golden yellow + pitch green (football) */
  --brand: #f7b500;        /* golden yellow (primary) */
  --brand-2: #1aa64b;      /* pitch green */
  --brand-3: #ff7a18;      /* warm orange accent */
  --on-brand: #1f1700;     /* dark text on yellow surfaces */

  /* Light palette — sunny / fresh */
  --bg: #fefcf2;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbf4da;
  --surface-3: #f4ead0;
  --on-surface: #1c1a0f;
  --on-surface-muted: #6a6446;
  --outline: rgba(28, 26, 16, 0.12);
  --outline-strong: rgba(28, 26, 16, 0.22);
  --shadow-sm: 0 1px 2px rgba(120, 90, 0, 0.07), 0 1px 3px rgba(120, 90, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(120, 90, 0, 0.10), 0 2px 6px rgba(120, 90, 0, 0.05);
  --shadow-lg: 0 18px 48px rgba(120, 90, 0, 0.16), 0 6px 14px rgba(120, 90, 0, 0.08);

  --header-h: 64px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1180px;

  --grad: linear-gradient(135deg, #ffd60a 0%, #f7b500 50%, #1aa64b 100%);
}

html[data-theme="dark"] {
  /* Stadium-night green-black */
  --bg: #0c120d;
  --bg-elev: #111a13;
  --surface: #142017;
  --surface-2: #1b2a1e;
  --surface-3: #243527;
  --on-surface: #f1f4ea;
  --on-surface-muted: #aab7a3;
  --outline: rgba(255, 255, 255, 0.10);
  --outline-strong: rgba(255, 255, 255, 0.22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.55);
}

body {
  margin: 0;
  font-family: "Roboto", "Inter", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--on-surface);
  line-height: 1.55;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { opacity: 0.85; }

img { max-width: 100%; display: block; }

/* =============================================================
   Animated background
   ============================================================= */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-stage::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40rem 30rem at 10% 10%, rgba(247, 181, 0, 0.22), transparent 60%),
    radial-gradient(38rem 28rem at 90% 20%, rgba(255, 122, 24, 0.16), transparent 60%),
    radial-gradient(50rem 35rem at 50% 100%, rgba(26, 166, 75, 0.18), transparent 60%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}

html[data-theme="dark"] .bg-stage::before {
  background:
    radial-gradient(40rem 30rem at 10% 10%, rgba(247, 181, 0, 0.20), transparent 60%),
    radial-gradient(38rem 28rem at 90% 20%, rgba(255, 122, 24, 0.14), transparent 60%),
    radial-gradient(50rem 35rem at 50% 100%, rgba(26, 166, 75, 0.26), transparent 60%);
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -1%, 0) scale(1); }
}

/* Mown-pitch stripes — alternating diagonal grass bands */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      115deg,
      color-mix(in oklab, var(--brand-2) 9%, transparent) 0,
      color-mix(in oklab, var(--brand-2) 9%, transparent) 90px,
      transparent 90px,
      transparent 180px
    );
  mask-image: radial-gradient(75% 60% at 50% 35%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 35%, #000 30%, transparent 85%);
  opacity: 0.8;
}

html[data-theme="dark"] .grid-overlay {
  background-image:
    repeating-linear-gradient(
      115deg,
      color-mix(in oklab, var(--brand-2) 16%, transparent) 0,
      color-mix(in oklab, var(--brand-2) 16%, transparent) 90px,
      transparent 90px,
      transparent 180px
    );
}

/* =============================================================
   Top app bar
   ============================================================= */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 max(20px, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: var(--bg); /* fallback */
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.app-bar.scrolled {
  border-bottom-color: var(--outline);
  background: var(--bg);
  background: color-mix(in oklab, var(--bg) 96%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--on-surface);
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.brand-mark .logo-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.brand-name { color: var(--on-surface); }
.brand-name b { color: var(--brand); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  color: var(--on-surface-muted);
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover { background: var(--surface-2); color: var(--on-surface); opacity: 1; }
.nav-link.active { color: var(--brand); background: color-mix(in oklab, var(--brand) 12%, transparent); }

.nav-cta {
  background: var(--brand);
  color: var(--on-brand) !important;
  font-weight: 700;
  padding: 0 18px;
}
.nav-cta:hover { background: color-mix(in oklab, var(--brand) 85%, #fff); opacity: 1; }

.bar-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--on-surface);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.96); }

.lang-btn {
  width: auto;
  padding: 0 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}
.lang-btn .lang-flag { font-size: 14px; }

.theme-btn .fa-sun { display: none; }
.theme-btn .fa-moon { display: inline-block; }
html[data-theme="dark"] .theme-btn .fa-sun { display: inline-block; }
html[data-theme="dark"] .theme-btn .fa-moon { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 999px;
  cursor: pointer;
  color: var(--on-surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle i { font-size: 18px; }

/* =============================================================
   Generic
   ============================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--on-surface);
  font-weight: 700;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 18px; }

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

.muted { color: var(--on-surface-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: color-mix(in oklab, var(--brand) 86%, #fff); opacity: 1; }

.btn-tonal {
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  color: var(--brand);
}
.btn-tonal:hover { background: color-mix(in oklab, var(--brand) 22%, transparent); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--outline-strong);
}
.btn-outline:hover { background: var(--surface-2); opacity: 1; }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card.elevated { box-shadow: var(--shadow-md); }
.card.hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--outline-strong);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   Hero
   ============================================================= */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  color: var(--on-surface-muted);
  font-size: 13.5px;
  font-weight: 600;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 30%, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--brand) 0%, transparent); }
}

.hero-title {
  margin-top: 22px;
  letter-spacing: -1px;
}

.hero-desc {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--on-surface-muted);
  font-size: 17px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  padding: 22px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.stat-label {
  margin-top: 4px;
  color: var(--on-surface-muted);
  font-size: 13.5px;
}

/* =============================================================
   Features
   ============================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  color: var(--brand);
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-card:nth-child(2) .feature-icon {
  background: color-mix(in oklab, var(--brand-2) 14%, transparent);
  color: var(--brand-2);
}
.feature-card:nth-child(3) .feature-icon {
  background: color-mix(in oklab, var(--brand-3) 16%, transparent);
  color: var(--brand-3);
}

.feature-card p { color: var(--on-surface-muted); margin: 0; }

/* =============================================================
   Apps grid (Google Play style)
   ============================================================= */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --c1: var(--brand);
  --c2: var(--brand-2);
}

.app-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.app-head { flex: 1; min-width: 0; }
.app-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-muted);
  margin-bottom: 4px;
}
.app-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.app-tagline {
  margin: 0;
  color: var(--on-surface-muted);
  font-size: 13.5px;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--on-surface-muted);
}
.app-rating .stars {
  --p: 90%;
  position: relative;
  display: inline-block;
  font-size: 13px;
  color: #ddd;
  letter-spacing: 1px;
}
html[data-theme="dark"] .app-rating .stars { color: #2c3a36; }
.app-rating .stars::before {
  content: "★★★★★";
}
.app-rating .stars::after {
  content: "★★★★★";
  position: absolute;
  left: 0; top: 0;
  width: var(--p);
  overflow: hidden;
  color: #ffb400;
}

.app-desc {
  flex: 1;
  color: var(--on-surface-muted);
  font-size: 14px;
  margin: 0 0 14px;
}

.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--on-surface-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.app-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s, box-shadow 0.2s;
}
.play-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); opacity: 1; }
.play-btn i { font-size: 22px; color: var(--brand); }
.play-btn .pb-text { display: flex; flex-direction: column; line-height: 1.1; }
.play-btn .pb-text small { font-size: 10px; opacity: 0.8; letter-spacing: 0.5px; }
.play-btn .pb-text span { font-size: 15px; font-weight: 700; }

html[data-theme="dark"] .play-btn {
  background: #fff;
  color: #000;
}
html[data-theme="dark"] .play-btn i { color: var(--brand); }

.app-version {
  font-size: 12px;
  color: var(--on-surface-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

.install-banner {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--grad);
  color: var(--on-brand);
  border: none;
}
.install-banner h3 { color: var(--on-brand); font-size: 22px; margin: 0; }
.install-banner p { margin: 4px 0 0; opacity: 0.9; font-size: 14.5px; }
.install-banner .btn-primary {
  background: #14110a;
  color: #ffd60a;
}
.install-banner .btn-primary:hover { background: #000; opacity: 1; }

/* =============================================================
   About
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.about-card { padding: 36px; }
.about-card p { color: var(--on-surface-muted); }

.about-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.about-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--on-surface);
  font-size: 15px;
}
.about-points li i {
  margin-top: 3px;
  color: var(--brand);
  font-size: 14px;
}

/* Android phone mockup */
.phone-mock {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  min-height: 540px;
}

.phone-glow {
  position: absolute;
  inset: 8% 12%;
  background: var(--grad);
  filter: blur(64px);
  opacity: 0.45;
  border-radius: 50%;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
html[data-theme="dark"] .phone-glow { opacity: 0.55; }

.phone-frame {
  position: relative;
  z-index: 1;
  width: 290px;
  height: 520px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1a1f23, #0a0d10);
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 6px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .phone-frame {
  background: linear-gradient(160deg, #25292f, #0a0d10);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 6px rgba(0, 0, 0, 0.7);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a0d10;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px 14px 14px;
  gap: 10px;
}
html[data-theme="dark"] .phone-screen { background: #11181a; }

.phone-statusbar {
  position: absolute;
  top: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: 0.3px;
}
.phone-statusbar i { font-size: 10px; margin-left: 4px; opacity: 0.7; }

.phone-greeting { margin: 6px 4px 4px; }
.phone-greeting small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-muted);
  letter-spacing: 0.3px;
}
.phone-greeting h4 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

.phone-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--on-surface);
  font-weight: 500;
  transition: transform 0.18s ease, background 0.2s ease;
}
.phone-app:hover { transform: translateX(4px); background: var(--surface-3); opacity: 1; }
.phone-app img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.phone-app > div { flex: 1; min-width: 0; line-height: 1.2; }
.phone-app b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-app span {
  font-size: 10.5px;
  color: var(--on-surface-muted);
  font-weight: 500;
}
.phone-app i {
  color: var(--brand);
  font-size: 11px;
  flex-shrink: 0;
}

.phone-navbar {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 12px 0 6px;
  border-top: 1px solid var(--outline);
}
.phone-navbar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on-surface-muted);
  opacity: 0.4;
}
.phone-navbar .active {
  width: 24px;
  border-radius: 4px;
  background: var(--brand);
  opacity: 1;
}

.phone-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  z-index: 2;
  animation: chipFloat 5s ease-in-out infinite;
}
.phone-chip i { color: var(--brand); font-size: 14px; }
.phone-chip-1 { top: 14%; left: -2%; }
.phone-chip-2 { bottom: 14%; right: -2%; animation-delay: 1.5s; }

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

/* =============================================================
   Contact info
   ============================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
}
.info-card .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 18px;
}
.info-card .info-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--on-surface-muted);
  text-transform: uppercase;
}
.info-card .info-value {
  margin-top: 4px;
  font-weight: 600;
  color: var(--on-surface);
  word-break: break-word;
}
.info-card .info-value a { color: var(--brand); font-weight: 600; }

/* =============================================================
   Footer
   ============================================================= */
.footer {
  padding: 60px 0 40px;
}
.footer-inner {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  padding: 36px 36px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand { display: grid; gap: 12px; }
.footer-brand p {
  margin: 0;
  color: var(--on-surface-muted);
  font-size: 13.5px;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-col h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--on-surface-muted);
}
.footer-col a {
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 500;
}
.footer-col a:hover { color: var(--brand); }
.footer-col .row {
  display: flex;
  gap: 10px;
}
.footer-col .row a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--outline);
  color: var(--on-surface);
}
.footer-col .row a:hover { background: var(--brand); color: var(--on-brand); border-color: transparent; }

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--outline);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--on-surface-muted);
  font-size: 13px;
}

/* =============================================================
   Legal pages
   ============================================================= */
.legal { padding: 120px 0 80px; }
.legal-card {
  padding: 44px;
  max-width: 880px;
  margin: 0 auto;
}
.legal-hero { margin-bottom: 24px; }
.legal-card h1 { letter-spacing: -0.5px; }
.legal-card h2 {
  margin-top: 28px;
  font-size: 22px;
  position: relative;
  padding-left: 14px;
}
.legal-card h2::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  background: var(--grad);
  border-radius: 4px;
}
.legal-card h3 {
  margin-top: 18px;
  font-size: 17px;
  color: var(--brand);
}
.legal-card p, .legal-card li {
  color: var(--on-surface-muted);
  line-height: 1.7;
}
.legal-card strong { color: var(--on-surface); }
.legal-card ul, .legal-card ol { padding-left: 22px; }
.legal-card .meta {
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
}
.legal-card .note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--outline);
  font-size: 13.5px;
  color: var(--on-surface-muted);
}
.legal-card .accept-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =============================================================
   Standalone mode — embed policy text only (no header/footer/contact).
   Toggled via `body.standalone` from a per-page JS flag.
   ============================================================= */
body.standalone .app-bar,
body.standalone .footer,
body.standalone .policy-contact,
body.standalone .bg-stage { display: none !important; }

body.standalone .legal { padding: 32px 0 48px; }
body.standalone .legal-card {
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
}

/* =============================================================
   Responsive
   ============================================================= */

/* Tablet — 960px and below */
@media (max-width: 960px) {
  .feature-grid,
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .install-banner h3 { font-size: 20px; }
}

/* Mobile — 720px and below */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  section { padding: 56px 0; }

  /* App bar — fully opaque to avoid background bleed through backdrop-filter */
  .app-bar {
    gap: 8px;
    padding: 0 14px;
    padding-top: env(safe-area-inset-top);
    background: var(--bg);
    border-bottom: 1px solid var(--outline);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .app-bar.scrolled {
    background: var(--bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  html[data-theme="dark"] .app-bar.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  }

  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark .logo-svg { width: 19px; height: 19px; }

  /* Bar tools */
  .icon-btn { width: 38px; height: 38px; }
  .lang-btn { padding: 0 10px; gap: 4px; font-size: 12px; }
  .bar-tools { gap: 4px; margin-left: 2px; }
  .bar-tools .lang-btn .lang-text { display: none; }

  /* Mobile nav drawer — full-screen below header, opaque, dismisses cleanly */
  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    z-index: 40; /* under sticky app-bar (50), over page content */
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 16px max(24px, env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--outline);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
  }
  .nav-link {
    height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15.5px;
  }
  .nav-toggle { display: inline-flex; }

  /* Lock page scroll when drawer is open so the menu feels like a real overlay */
  body.nav-open,
  body:has(.nav.open) { overflow: hidden; }

  /* Headings */
  h1 { font-size: 32px; letter-spacing: -0.5px; }
  h2 { font-size: 26px; letter-spacing: -0.3px; }
  h3 { font-size: 17px; }

  /* Hero */
  .hero { padding: 56px 0 36px; }
  .hero-eyebrow { font-size: 12.5px; padding: 7px 14px; }
  .hero-desc { font-size: 15px; margin-top: 12px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn { width: 100%; }

  /* Hero stats */
  .hero-stats { margin-top: 36px; gap: 10px; }
  .stat { padding: 16px 10px; border-radius: 14px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 12px; line-height: 1.3; }

  /* Section head */
  .section-head { margin: 0 auto 32px; }
  .eyebrow { font-size: 12px; padding: 5px 12px; }

  /* Cards */
  .card { padding: 22px; border-radius: 20px; }
  .feature-icon { width: 48px; height: 48px; font-size: 18px; border-radius: 14px; margin-bottom: 14px; }

  /* Grid columns collapse */
  .feature-grid,
  .apps-grid { grid-template-columns: 1fr; gap: 14px; }

  /* App cards */
  .app-icon { width: 64px; height: 64px; border-radius: 18px; }
  .app-top { gap: 12px; margin-bottom: 12px; }
  .app-name { font-size: 16px; }
  .app-tagline { font-size: 13px; }
  .app-rating { font-size: 12.5px; margin: 4px 0 10px; }
  .app-desc { font-size: 13.5px; margin-bottom: 12px; }
  .app-chips { gap: 5px; margin-bottom: 14px; }
  .chip { font-size: 11px; padding: 4px 9px; }

  .play-btn { height: 42px; padding: 0 14px 0 12px; gap: 8px; }
  .play-btn i { font-size: 20px; }
  .play-btn .pb-text small { font-size: 9.5px; }
  .play-btn .pb-text span { font-size: 14px; }
  .app-version { font-size: 11px; padding: 3px 8px; }

  /* Install banner */
  .install-banner {
    margin-top: 24px;
    padding: 22px 18px;
    text-align: center;
    flex-direction: column;
    gap: 16px;
  }
  .install-banner h3 { font-size: 19px; line-height: 1.3; }
  .install-banner > div { width: 100%; }
  .install-banner .btn { width: 100%; }

  /* About */
  .about-card { padding: 24px; }
  .about-points li { font-size: 14.5px; }

  /* Phone mockup */
  .phone-mock { min-height: 480px; padding: 8px 0; }
  .phone-frame { width: 260px; height: 460px; border-radius: 38px; padding: 10px; }
  .phone-notch { top: 18px; width: 9px; height: 9px; }
  .phone-screen { border-radius: 28px; padding: 30px 12px 10px; gap: 8px; }
  .phone-statusbar { top: 10px; left: 16px; right: 16px; font-size: 10.5px; }
  .phone-greeting h4 { font-size: 16px; }
  .phone-greeting small { font-size: 10.5px; }
  .phone-app { padding: 8px 10px; gap: 9px; }
  .phone-app img { width: 36px; height: 36px; border-radius: 10px; }
  .phone-app b { font-size: 12px; }
  .phone-app span { font-size: 10px; }
  .phone-app i { font-size: 10px; }
  .phone-navbar { padding: 10px 0 4px; gap: 22px; }
  .phone-chip { padding: 6px 10px; font-size: 11px; gap: 6px; }
  .phone-chip i { font-size: 12px; }
  .phone-chip-1 { top: 8%; left: 0; }
  .phone-chip-2 { bottom: 8%; right: 0; }

  /* Info grid */
  .info-grid { gap: 12px; }
  .info-card { padding: 18px; gap: 14px; }
  .info-card .info-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
  /* Address card was spanning 2 cols on desktop — reset on mobile */
  .info-grid > [style*="grid-column"] { grid-column: auto !important; }

  /* Footer */
  .footer { padding: 40px 0 28px; }
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 22px;
    border-radius: 20px;
  }
  .footer-brand p { font-size: 13px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
  }

  /* Legal pages */
  .legal { padding: 84px 0 48px; }
  .legal-card { padding: 24px; border-radius: 20px; }
  .legal-card h1 { font-size: 28px; }
  .legal-card h2 { font-size: 19px; margin-top: 22px; padding-left: 12px; }
  .legal-card h3 { font-size: 16px; }
  .legal-card p, .legal-card li { font-size: 14.5px; line-height: 1.65; }
  .legal-card .meta { padding: 12px 14px; font-size: 14px; }
  .legal-card .accept-row { gap: 10px; }
  .legal-card .accept-row .btn { flex: 1; min-width: 0; }
}

/* Small mobile — 480px and below */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  section { padding: 48px 0; }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .hero { padding: 40px 0 28px; }
  .hero-stats { gap: 8px; }
  .stat { padding: 14px 8px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 11px; }

  .card { padding: 18px; }
  .feature-icon { width: 44px; height: 44px; font-size: 16px; margin-bottom: 12px; }

  /* App cards extra compact */
  .app-icon { width: 56px; height: 56px; border-radius: 16px; }
  .app-name { font-size: 15px; }
  .app-cta-row { gap: 8px; }
  .play-btn { height: 40px; padding: 0 12px 0 10px; }
  .play-btn i { font-size: 18px; }

  /* Phone mockup smaller still */
  .phone-mock { min-height: 440px; }
  .phone-frame { width: 240px; height: 420px; border-radius: 34px; }
  .phone-screen { border-radius: 24px; padding: 28px 10px 8px; }
  .phone-chip { display: none; }

  /* Info card */
  .info-card { padding: 16px; }
  .info-card .info-value { font-size: 14px; }

  /* Footer */
  .footer-inner { padding: 20px; }
}

/* Extra small — 360px and below */
@media (max-width: 360px) {
  .brand-name { font-size: 15px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-btn { padding: 0 8px; }

  h1 { font-size: 26px; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 18px; }

  .play-btn .pb-text small { display: none; }
  .play-btn .pb-text span { font-size: 13px; }
}

/* Touch devices — disable hover transforms to avoid sticky state */
@media (hover: none) {
  .card.hover:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--outline);
  }
  .phone-app:hover { transform: none; }
  .nav-link:hover { background: transparent; color: var(--on-surface-muted); }
  .nav-link.active:hover { color: var(--brand); background: color-mix(in oklab, var(--brand) 12%, transparent); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .phone-glow,
  .phone-chip,
  .hero-eyebrow .dot { animation: none !important; }
}

/* iOS-style smooth scroll for in-page anchor links */
@supports (-webkit-overflow-scrolling: touch) {
  html { -webkit-overflow-scrolling: touch; }
}
