/* ==========================================================
   Upgrade PSC — Obsidian & Lime glass design system
   ========================================================== */
:root {
  --bg: #07080a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4ee;
  --muted: #8d9188;
  --lime: #c8ff1a;
  --lime-2: #e4ff7a;
  --lime-glow: rgba(200, 255, 26, 0.35);
  --green: #3ddc84;
  --red: #ff5b5b;
  --radius: 22px;
  --radius-lg: 32px;
  --font-head: "Space Grotesk", "Noto Sans Malayalam", system-ui, sans-serif;
  --font-ml: "Noto Sans Malayalam", "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
img, video { display: block; max-width: 100%; height: auto; }
iframe, embed, object, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.muted { color: var(--muted); }
.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
em { font-style: italic; color: var(--lime); }

/* ---------- Atmosphere: grain, grid, orbs ---------- */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--stroke) 1px, transparent 1px),
    linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb {
  position: fixed; z-index: -1; border-radius: 50%; filter: blur(110px); pointer-events: none;
}
.orb-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: rgba(200, 255, 26, 0.16); animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; top: 40%; right: -160px; background: rgba(61, 220, 132, 0.1); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 60px -20px rgba(0,0,0,0.6);
}

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: #0b0d05; box-shadow: 0 0 0 0 var(--lime-glow), 0 10px 40px -8px var(--lime-glow); }
.btn-lime:hover { box-shadow: 0 0 0 6px rgba(200,255,26,0.12), 0 14px 50px -6px var(--lime-glow); }
.btn-ghost { border: 1px solid var(--stroke-2); background: var(--surface); }
.btn-ghost:hover { border-color: rgba(200,255,26,0.5); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.play { font-size: 10px; color: var(--lime); }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: 11px; color: var(--lime);
  border: 1px solid rgba(200,255,26,0.25); background: rgba(200,255,26,0.06);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.pill-green { background: rgba(61,220,132,0.12); color: var(--green); }
.pill-red { background: rgba(255,91,91,0.12); color: var(--red); }

/* ---------- Floating shell nav ---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; }
.nav {
  width: min(var(--maxw), 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 14px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--lime); color: #0b0d05; font-weight: 700; font-size: 16px;
  box-shadow: 0 0 24px -4px var(--lime-glow);
}
.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.1; }
.brand-text { white-space: nowrap; }
.brand-text small { font-family: var(--font-mono); font-weight: 400; font-size: 8.5px; letter-spacing: 0.2em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(0,0,0,0.25); }
.nav-links a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #c9ccc4; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--stroke-2); background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 16px; height: 1.5px; background: var(--text); transition: transform .25s; }
.menu-btn.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: 140px 0 80px;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700;
  margin: 26px 0 24px;
}
.hero h1 em { background: linear-gradient(100deg, var(--lime), var(--lime-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 6px; }
.ml { font-family: var(--font-ml); letter-spacing: 0; }
.tagline {
  display: flex; flex-direction: column; gap: 6px; margin: -6px 0 24px; padding-left: 16px;
  border-left: 2px solid var(--lime);
}
.tagline .ml { text-wrap: balance; font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--text); line-height: 1.5; }
.tagline .mono { font-size: 11px; color: var(--lime); }
.ml-sub { font-family: var(--font-ml); font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; color: var(--lime-2); opacity: .85; margin-top: 12px; line-height: 1.6; }
.ml-sub.center { text-align: center; margin: -4px auto 14px; }
.marquee-track .ml { color: var(--lime-2); font-size: 14px; }
.lead { font-size: 18px; color: #b4b8ae; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-ctas.center { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.hero-meta span { color: var(--lime); margin-right: 4px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 620px; }
.hero-visual::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,26,0.28), transparent 65%); filter: blur(30px);
}
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2a2c2f, #0e0f11);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: rotate(-4deg); animation: float 7s ease-in-out infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 20px; background: #000; z-index: 2; }
@keyframes float { 50% { transform: rotate(-4deg) translateY(-14px); } }

.float-card { position: absolute; border-radius: 20px; padding: 16px 18px; z-index: 3; }
.float-card .label { display: block; font-size: 9.5px; color: var(--muted); margin-bottom: 6px; }
.float-card .big { display: block; font-size: 38px; line-height: 1; color: var(--lime); letter-spacing: -0.03em; }
.float-card .sub { font-size: 11px; color: var(--muted); }
.fc-rank { left: -10px; bottom: 90px; min-width: 190px; animation: float2 6s ease-in-out infinite; }
.fc-mark { right: -6px; top: 120px; display: flex; gap: 8px; align-items: center; animation: float2 8s ease-in-out infinite reverse; }
.fc-lang { right: 10px; bottom: 40px; animation: float2 7s ease-in-out infinite; }
.toggle { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,0.4); font-size: 12px; }
.toggle span { padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.toggle .on { background: var(--lime); color: #0b0d05; font-weight: 600; }
.tag-lime { position: absolute; top: 60px; left: 30px; z-index: 3; padding: 7px 14px; border-radius: 999px; background: var(--lime); color: #0b0d05; font-size: 10.5px; font-weight: 700; box-shadow: 0 10px 30px -6px var(--lime-glow); }
@keyframes float2 { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats-wrap { margin-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: var(--radius-lg); overflow: hidden; }
.stats li { padding: 30px 20px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--stroke); }
.stats li:first-child { border-left: 0; }
.stats b { font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stats .mono { font-size: 10.5px; color: var(--muted); }
.stats .lime b { color: var(--lime); text-shadow: 0 0 30px var(--lime-glow); }
@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(4) { border-left: 0; }
  .stats li:nth-child(n+4) { border-top: 1px solid var(--stroke); }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { border-left: 0; border-top: 1px solid var(--stroke); padding: 22px 18px; }
  .stats li:nth-child(even) { border-left: 1px solid var(--stroke); }
  .stats li:first-child, .stats li:nth-child(2) { border-top: 0; }
  .stats li:last-child { grid-column: span 2; border-left: 0; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--stroke); background: rgba(255,255,255,0.015); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; font-size: 13px; color: #a6aa9f; animation: scroll 38s linear infinite; }
.marquee-track i { color: var(--lime); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { font-size: 11.5px; color: var(--lime); }
.section-head h2, .cta h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 17px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(200,255,26,0.1), transparent 45%);
}
.card:hover { border-color: rgba(200,255,26,0.3); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card-tag { font-size: 10.5px; color: var(--lime); padding: 5px 10px; border: 1px solid rgba(200,255,26,0.2); border-radius: 8px; background: rgba(200,255,26,0.05); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.q-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.q-nums span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 1px solid var(--stroke-2); color: var(--muted); }
.q-nums .ok { background: rgba(61,220,132,0.14); border-color: rgba(61,220,132,0.4); color: var(--green); }
.q-nums .bad { background: rgba(255,91,91,0.14); border-color: rgba(255,91,91,0.4); color: var(--red); }
.q-nums .cur { background: var(--lime); color: #0b0d05; border-color: var(--lime); font-weight: 700; box-shadow: 0 0 20px -2px var(--lime-glow); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.stat-row div { padding: 12px 8px; border-radius: 14px; background: rgba(0,0,0,0.3); border: 1px solid var(--stroke); text-align: center; }
.stat-row b { display: block; font-size: 18px; color: var(--text); letter-spacing: 0; }
.stat-row small { font-size: 9.5px; color: var(--muted); }

.lang-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; }
.lang-demo span:not(.arrow) { padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--stroke); }
.lang-demo .ml { color: var(--lime); }
.lang-demo .arrow { color: var(--muted); }
.sol { margin-top: 22px; }

.card-wide { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(0,0,0,0.3); font-size: 12px; }
.tabs span { padding: 10px 18px; border-radius: 999px; color: var(--muted); }
.tabs .active { background: var(--lime); color: #0b0d05; font-weight: 700; }

/* ---------- App showcase ---------- */
.app-showcase { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: stretch; }
.video-frame { border-radius: var(--radius-lg); padding: 10px; overflow: hidden; display: flex; flex-direction: column; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px 14px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3c3f; }
.window-bar i:first-child { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 12px; font-size: 10.5px; color: var(--muted); }
.video-frame video { width: 100%; flex: 1; max-height: 620px; object-fit: contain; border-radius: 22px; background: #000; }

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(200,255,26,0.4) transparent;
}
.shots img {
  flex: 0 0 240px; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; border-radius: 28px;
  border: 1px solid var(--stroke-2); scroll-snap-align: start; background: #111;
}

/* ---------- Rank holders ---------- */
.ranks { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 22px; align-items: start; }
.rank-banner { border-radius: var(--radius-lg); padding: 10px; }
.rank-banner img { border-radius: 24px; width: 100%; }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-list li { border-radius: 18px; padding: 16px 18px; display: grid; gap: 2px; transition: border-color .25s; }
.rank-list li:hover { border-color: rgba(200,255,26,0.35); }
.rank-list .r { font-size: 11px; color: var(--lime); }
.rank-list .n { font-size: 17px; font-weight: 600; }
.rank-list .e { font-size: 9.5px; color: var(--muted); }
.rank-list .highlight { border-color: rgba(200,255,26,0.4); background: linear-gradient(150deg, rgba(200,255,26,0.12), rgba(255,255,255,0.02)); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step-n { font-size: 40px; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(200,255,26,0.6); letter-spacing: 0; }
.steps b { color: var(--lime); font-weight: 600; }
.sets { display: flex; flex-wrap: wrap; gap: 6px; }
.sets span { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--stroke-2); font-size: 11px; color: var(--text); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 40px; padding: 90px 30px; text-align: center; }
.cta h2 { max-width: 760px; margin: 22px auto 16px; }
.cta .lead { margin-inline: auto; }
.cta-glow { position: absolute; left: 50%; bottom: -260px; transform: translateX(-50%); width: 700px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200,255,26,0.35), transparent); filter: blur(40px); z-index: -1; }

/* ---------- Footer ---------- */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 70px 0 50px; margin-top: 100px; border-top: 1px solid var(--stroke); font-size: 11px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--lime); }

/* ---------- Rank tabs ---------- */
.rank-tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 22px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(0,0,0,0.3); }
.rank-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; letter-spacing: 0.08em; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.rank-tabs button.active { background: var(--lime); color: #0b0d05; font-weight: 700; }
.rank-list { max-height: 560px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(200,255,26,0.4) transparent; }

/* ---------- Reviews ---------- */
.reviews { columns: 3 300px; column-gap: 18px; }
.review { break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); padding: 24px; transition: border-color .3s; }
.review:hover { border-color: rgba(200,255,26,0.3); }
.stars { color: var(--lime); letter-spacing: 3px; font-size: 14px; }
.review blockquote { margin: 12px 0 18px; color: #c9ccc4; font-size: 15px; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review .av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(200,255,26,0.12); border: 1px solid rgba(200,255,26,0.3); color: var(--lime); font-family: var(--font-mono); font-size: 13px; }
.review b { font-weight: 600; font-size: 15px; }
.review .d { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.center-row { display: flex; justify-content: center; margin-top: 18px; }
.web-cta { flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; text-align: center; }
.web-cta .mono { font-size: 10.5px; }

/* ---------- Store + contact ---------- */
.store-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px 12px 18px; border-radius: 16px; border: 1px solid var(--stroke-2); background: rgba(0,0,0,0.35); transition: transform .2s, border-color .25s, box-shadow .25s; }
.store:hover { transform: translateY(-2px); border-color: rgba(200,255,26,0.5); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; text-align: left; font-weight: 600; font-size: 18px; line-height: 1.1; }
.store small { font-family: var(--font-mono); font-size: 9px; font-weight: 400; letter-spacing: 0.12em; opacity: 0.75; }
.store-lime { background: var(--lime); color: #0b0d05; border-color: var(--lime); box-shadow: 0 10px 40px -8px var(--lime-glow); }
.contact-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: 13px; }
.contact-row a:hover { color: var(--lime); }

/* ---------- Community ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.social { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); transition: border-color .25s, transform .25s; }
.social:hover { border-color: rgba(200,255,26,0.4); transform: translateY(-3px); }
.social svg { width: 30px; height: 30px; color: var(--lime); flex: none; }
.social div { display: flex; flex-direction: column; }
.social b { font-size: 18px; }
.social span { font-size: 11px; color: var(--muted); }
.social i { margin-left: auto; font-style: normal; color: var(--muted); }

/* ---------- Floating: WhatsApp, mobile bar, toast ---------- */
/* Netlify's free-plan "Powered by Netlify" badge occupies ~200x64px bottom-right,
   so floating UI sits above it (--badge-clear). Set to 0px if the badge is removed. */
:root { --badge-clear: 72px; }
.wa-fab {
  position: fixed; right: 20px; bottom: calc(16px + var(--badge-clear)); z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6); transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }

.mobile-bar { display: none; }

.toast {
  position: fixed; left: 16px; bottom: 24px; z-index: 60; width: 340px; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(20,22,18,0.85), rgba(12,13,11,0.85));
  opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast-av { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: #0b0d05; font-weight: 700; font-size: 14px; }
.toast-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #10b981; border: 2px solid #0c0d0b; }
.toast-body { min-width: 0; }
.toast-body p { font-size: 13.5px; line-height: 1.35; }
.toast-body p b { font-weight: 600; }
.toast-body span { font-size: 10px; color: var(--muted); }
.toast-x { margin-left: auto; align-self: flex-start; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.toast-x:hover { color: var(--text); }

@media (max-width: 767px) {
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 84px; bottom: calc(4px + var(--badge-clear)); z-index: 59;
    padding: 8px; border-radius: 999px; background: rgba(12,13,11,0.85);
  }
  .mobile-bar .btn { flex: 1; justify-content: center; display: inline-flex; }
  .wa-fab { right: 12px; bottom: calc(4px + var(--badge-clear)); width: 56px; height: 56px; }
  .toast { left: 12px; right: 12px; width: auto; bottom: calc(72px + var(--badge-clear)); }
  .footer { padding-bottom: calc(110px + var(--badge-clear)); }
  .social-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 767px) { .toast { right: auto; width: 340px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .status { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 130px; }
  .hero-visual { min-height: 600px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-3 { grid-column: span 2; }
  .app-showcase, .ranks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .menu-btn { display: flex; width: 44px; height: 44px; flex: none; }
  .hero > *, .app-showcase > *, .ranks > * { min-width: 0; }
  .nav { border-radius: 26px; flex-wrap: wrap; }
  .nav-links {
    order: 3; width: 100%; flex-direction: column; border-radius: 18px; display: none;
  }
  .nav-links.open { display: flex; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; }
  .nav-links a { padding: 12px 16px; }
}
@media (max-width: 620px) {
  .nav-right .btn-sm { display: none; }
  .mobile-bar .btn-sm { display: inline-flex; }
  .bento, .steps { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .phone { width: 240px; }
  .hero-visual { min-height: 540px; }
  .fc-rank { left: 0; bottom: 40px; min-width: 160px; }
  .fc-mark { right: 0; top: 80px; }
  .fc-lang { display: none; }
  .section { padding-top: 90px; }
  .cta { padding: 64px 22px; border-radius: 28px; }
  .shots img { flex-basis: 200px; }
}
/* ---------- Phones: readable text, 44px tap targets, no sideways scroll ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .card p, .review blockquote, .review b, .section-head p { font-size: 16px; }
  .toast-body p { font-size: 15px; }

  /* Keep decorative glows inside the viewport */
  .orb-1 { width: 300px; height: 300px; left: -90px; top: -100px; }
  .orb-2 { width: 280px; height: 280px; right: -100px; }
  .hero-visual::before { width: min(380px, 100%); height: auto; aspect-ratio: 1; }

  /* Tap targets */
  .brand { min-height: 44px; }
  .nav-links a { font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .btn, .btn-sm { min-height: 44px; }
  .mobile-bar .btn-sm { font-size: 15px; white-space: nowrap; padding-inline: 12px; }
  .contact-row { font-size: 15px; gap: 0 20px; }
  .contact-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .foot-links { flex-wrap: wrap; gap: 0 20px; font-size: 12px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .toast-x { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px auto; font-size: 22px; padding: 0; }

  /* Rank tabs: full width, two equal buttons that can wrap their label */
  .rank-tabs { display: flex; width: 100%; border-radius: 24px; }
  .rank-tabs button { flex: 1; min-height: 44px; padding: 8px 10px; line-height: 1.25; border-radius: 20px; }

  /* Leaderboard tabs inside the bento card */
  .card-wide { gap: 20px; }
  .tabs { width: 100%; }
  .tabs span { flex: 1; min-width: 0; padding: 10px 4px; text-align: center; letter-spacing: 0.02em; }

  /* Long text never pushes the page wider */
  .social div { min-width: 0; }
  .social span, .contact-row a, .rank-list .n { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .card { padding: 22px; }
  .cta { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
