/* ═══════════════════════════════════════════════════════════════
   OUR CANVAS — website styles
   Palette is 1:1 with the Android app's BrandColors.kt:
   bg #111521 · surface #1A2035 · card #222A42 · border #2D3755
   primary(cyan) #3BD8D2 · secondary(purple) #AB5EFA · accent #6A9DFE
   success #4ADE80 · warning(gold) #FACC15 · text-2 #A0AABF
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #111521;
  --surface: #1A2035;
  --card: #222A42;
  --border: #2D3755;
  --cyan: #3BD8D2;
  --purple: #AB5EFA;
  --accent: #6A9DFE;
  --success: #4ADE80;
  --gold: #FACC15;
  --text: #FFFFFF;
  --text-2: #A0AABF;
  --grad: linear-gradient(100deg, var(--cyan), var(--purple));
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --glow-cyan: 0 0 42px rgba(59, 216, 210, .22);
  --glow-purple: 0 0 42px rgba(171, 94, 250, .22);
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: #06211f;
  padding: 10px 18px; border-radius: 0 0 12px 0; font-weight: 600; z-index: 200;
}
.skip-link:focus { left: 0; }

.hand { font-family: var(--font-hand); font-size: 1.25em; color: var(--cyan); }

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

.gold-text { color: var(--gold); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: var(--grad); color: #07131f;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(59, 216, 210, .38); }
.btn-ghost {
  background: rgba(59, 216, 210, .06); color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(100deg, #FACC15, #FB923C);
  color: #241a02; box-shadow: 0 0 42px rgba(250, 204, 21, .25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(250, 204, 21, .4); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 21, 33, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 8px; box-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); font-weight: 500; font-size: .97rem;
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .btn { margin-left: 4px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 24px 20px; border-top: 1px solid var(--border);
  background: rgba(17, 21, 33, .97);
}
.mobile-menu a {
  color: var(--text); padding: 12px 6px; font-weight: 500;
  border-bottom: 1px solid rgba(45, 55, 85, .5); text-decoration: none;
}
.mobile-menu .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 96px 24px; max-width: var(--maxw); margin: 0 auto; }
.section-alt {
  max-width: none; background: var(--surface);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.2; }
.section-sub { color: var(--text-2); margin-top: 14px; font-size: 1.08rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 2.5px;
  color: var(--purple); border: 1px solid rgba(171, 94, 250, .45);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* ── Grids & cards ───────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 46px; }

.card {
  background: linear-gradient(180deg, var(--card), rgba(34, 42, 66, .6));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(59, 216, 210, .5);
  box-shadow: var(--glow-cyan);
}
.card h3 { font-size: 1.15rem; margin: 14px 0 8px; font-weight: 600; }
.card p { color: var(--text-2); font-size: .97rem; }
.card-icon { font-size: 1.9rem; }
.card-sm { padding: 22px; }
.card-sm h3 { font-size: 1.02rem; margin-top: 10px; }
.card-sm p { font-size: .92rem; }

.tick-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.tick-list li { padding-left: 30px; position: relative; color: var(--text-2); }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 700;
}
.tick-gold li::before { color: var(--gold); }
.tick-list em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; padding: 84px 24px 60px; overflow: hidden; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  pointer-events: none;
}
.hero-glow-a { width: 480px; height: 480px; background: rgba(59, 216, 210, .16); top: -120px; left: -120px; }
.hero-glow-b { width: 520px; height: 520px; background: rgba(171, 94, 250, .15); bottom: -160px; right: -140px; }

.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-block; font-size: .9rem; font-weight: 600;
  color: var(--cyan); background: rgba(59, 216, 210, .08);
  border: 1px solid rgba(59, 216, 210, .35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -1px;
}
.hero-sub { color: var(--text-2); font-size: 1.16rem; margin: 22px 0 30px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points {
  list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px;
  color: var(--text-2); font-size: .95rem; font-weight: 500;
}
.hero-note {
  text-align: center; color: var(--text-2); margin-top: 58px; font-size: 1rem;
}

/* ── Phone mockup ────────────────────────────────────────────── */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  width: 300px; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2b3450, #171c2c);
  border: 1px solid #3a4666;
  box-shadow: var(--shadow), 0 0 70px rgba(59, 216, 210, .12);
  position: relative; z-index: 2;
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0b0e17; border-radius: 999px; z-index: 5;
}
.phone-screen {
  background: var(--bg); border-radius: 34px; overflow: hidden;
  display: flex; flex-direction: column; aspect-ratio: 9 / 19;
  padding-top: 34px;
}

.app-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 10px;
}
.circle-avatars { display: flex; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
  border: 2px solid var(--bg); margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar-sm { width: 24px; height: 24px; font-size: .62rem; }
.circle-meta strong { display: block; font-size: .82rem; line-height: 1.2; }
.circle-meta small { color: var(--text-2); font-size: .64rem; }
.topbar-info { margin-left: auto; color: var(--text-2); font-size: .9rem; }

.app-tabs {
  display: flex; gap: 5px; padding: 4px 12px 8px;
  font-size: .66rem; font-weight: 600;
}
.tab { color: var(--text-2); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.tab.active { background: rgba(59, 216, 210, .12); color: var(--cyan); }

.feed-card {
  margin: 4px 12px 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px;
}
.feed-card-small { opacity: .85; }
.feed-head { display: flex; align-items: center; gap: 8px; }
.feed-head strong { font-size: .74rem; display: block; line-height: 1.25; }
.feed-head small { color: var(--text-2); font-size: .6rem; }
.badge-fav { margin-left: auto; color: var(--gold); font-size: .8rem; }

.doodle {
  position: relative; margin: 8px 2px;
  background: #FFF9F4; border-radius: 12px; overflow: hidden;
}
.doodle-heart { aspect-ratio: 5 / 4; }
.doodle-heart svg, .doodle-mini svg { width: 100%; height: 100%; padding: 8px; }
.doodle svg path { fill: none; stroke: #E55B7C; stroke-width: 5; stroke-linecap: round; }
.doodle-label {
  position: absolute; bottom: 6px; right: 10px;
  font-family: var(--font-hand); color: #b3496a; font-size: 1rem;
  transform: rotate(-3deg);
}
.doodle-mini { aspect-ratio: 5 / 2; }

.feed-reactions { display: flex; gap: 6px; margin-top: 8px; }
.chip {
  font-size: .64rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.chip-react { background: rgba(59, 216, 210, .1); color: var(--text); border: 1px solid var(--border); }
.chip-add { background: none; border: 1px dashed var(--border); color: var(--text-2); }

.app-bottombar {
  margin-top: auto; display: flex; justify-content: space-around;
  padding: 10px 8px 14px; border-top: 1px solid var(--border);
  font-size: 1rem; background: var(--surface);
}
.bar-item { position: relative; }
.dot {
  position: absolute; top: -4px; right: -7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Self-drawing doodle animation (mirrors the app's onboarding).
   Animations only run once the container gets .armed from the
   IntersectionObserver in main.js, so doodles draw themselves exactly
   when they scroll into view. */
.anim-group .draw-path { stroke-dasharray: 320; stroke-dashoffset: 320; }
.anim-group.armed .draw-path { animation: draw-in 2.6s ease forwards .4s; }
.anim-group.armed .draw-delay { animation-delay: 1.6s; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }

/* ── Hero particles & headline cascade ───────────────────────── */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; font-size: 1.3rem; opacity: 0;
  animation: particle-float 9s ease-in-out infinite;
}
.p1 { top: 18%; left: 6%; animation-delay: 0s; }
.p2 { top: 64%; left: 3%; animation-delay: 2.2s; }
.p3 { top: 12%; right: 30%; animation-delay: 1.1s; }
.p4 { top: 78%; left: 40%; animation-delay: 3.4s; }
.p5 { top: 30%; right: 6%; animation-delay: 4.6s; }
.p6 { bottom: 6%; right: 34%; animation-delay: 5.8s; }
@keyframes particle-float {
  0% { opacity: 0; transform: translateY(14px) rotate(-8deg); }
  25% { opacity: .8; }
  60% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-26px) rotate(10deg); }
}

.hero h1 { animation: headline-rise .8s cubic-bezier(.2,.7,.2,1) both .1s; }
@keyframes headline-rise {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.btn-primary { animation: cta-pulse 3.2s ease-in-out infinite 2s; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--glow-cyan); }
  50% { box-shadow: 0 0 58px rgba(59, 216, 210, .4); }
}

/* ── Marquee strip ───────────────────────────────────────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--border);
  background: rgba(26, 32, 53, .5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 42px; width: max-content;
  padding: 15px 0; font-weight: 600; font-size: .95rem; color: var(--text-2);
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ── Stats strip ─────────────────────────────────────────────── */
.section-tight { padding: 60px 24px 30px; }
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: linear-gradient(180deg, var(--card), rgba(34, 42, 66, .5));
  border: 1px solid var(--border); border-radius: 26px; padding: 38px 26px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--text-2); font-size: .92rem; font-weight: 500; }
.stats-note { text-align: center; color: var(--text-2); font-size: .85rem; margin-top: 16px; }

/* ── Try-it canvas ───────────────────────────────────────────── */
.try-canvas {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center;
  margin-top: 60px;
  background:
    radial-gradient(500px 240px at 90% 10%, rgba(171, 94, 250, .12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border); border-radius: 26px; padding: 38px;
}
.try-copy h3 { font-size: 1.4rem; margin-bottom: 10px; }
.try-copy p { color: var(--text-2); }
.try-board {
  background: #FFF9F4; border-radius: 18px; padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(17, 21, 33, .08);
}
#doodlePad {
  width: 100%; height: 240px; display: block; border-radius: 12px;
  background: #FFF9F4; cursor: crosshair; touch-action: none;
}
.try-tools {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
}
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0; transition: transform .15s, border-color .15s;
}
.swatch.is-active { border-color: #111521; transform: scale(1.16); }
.sw-cyan { background: #3BD8D2; } .sw-purple { background: #AB5EFA; }
.sw-pink { background: #E55B7C; } .sw-gold { background: #FACC15; }
.try-clear {
  margin-left: auto; font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: #3c465f; background: rgba(17, 21, 33, .07); border: 0;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.try-clear:hover { background: rgba(17, 21, 33, .14); }
.try-hint { color: #7a849c; font-size: .78rem; margin-top: 10px; text-align: right; }

/* ── Fresh / recently shipped ────────────────────────────────── */
.fresh-row { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.fresh-chip {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 15px 20px; color: var(--text-2); font-size: .98rem;
  transition: transform .2s, border-color .2s;
}
.fresh-chip:hover { transform: translateX(8px); border-color: rgba(59, 216, 210, .5); }
.fresh-chip span { font-size: 1.3rem; }

/* ── Feedback section ────────────────────────────────────────── */
.section-feedback { padding-bottom: 40px; }
.feedback-box {
  text-align: center; max-width: 640px; margin: 0 auto;
  background:
    radial-gradient(420px 200px at 50% -40px, rgba(59, 216, 210, .14), transparent 60%),
    var(--surface);
  border: 1px solid var(--border); border-radius: 30px; padding: 54px 40px;
}
.feedback-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.feedback-sub { color: var(--text-2); margin: 14px auto 30px; max-width: 460px; }
.stars { display: inline-flex; gap: 6px; }
.star {
  font-size: 1.9rem; background: none; border: 0; cursor: pointer; padding: 4px;
  filter: grayscale(1) opacity(.55); transform: scale(.92);
  transition: filter .15s, transform .15s;
}
.star:hover, .star.lit { transform: scale(1); filter: none; }
.star-msg { margin-top: 10px; color: var(--text-2); font-size: .9rem; min-height: 1.4em; }
.fb-chips { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 22px 0 26px; }
.fb-chip {
  font-family: var(--font-body); font-size: .84rem; font-weight: 600;
  color: var(--text-2); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: all .15s;
}
.fb-chip:hover { color: var(--text); border-color: var(--cyan); }
.fb-chip.selected { color: #07131f; background: var(--cyan); border-color: var(--cyan); }
.fb-alt { color: var(--text-2); font-size: .86rem; margin-top: 18px; }

/* ── CTA row + QR ────────────────────────────────────────────── */
.cta-row { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; }
.qr-wrap { display: grid; justify-items: center; gap: 6px; }
.qr-wrap img { border-radius: 12px; background: #FFF9F4; padding: 6px; }
.qr-wrap small { color: var(--text-2); font-size: .74rem; }

/* ── Sticky mobile app bar ───────────────────────────────────── */
.appbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 17, 28, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.appbar.show { transform: none; }
.appbar[hidden] { display: none; }
.appbar-info { display: flex; align-items: center; gap: 10px; }
.appbar-info strong { display: block; font-size: .9rem; line-height: 1.2; }
.appbar-info small { color: var(--text-2); font-size: .72rem; }

/* ── Reveal: stagger support ─────────────────────────────────── */
.reveal { transition-delay: var(--reveal-delay, 0s); }

/* Floating chips */
.float-chip {
  position: absolute; z-index: 3;
  background: rgba(26, 32, 53, .96); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
}
.float-notif {
  top: 8%; right: 0;
  display: flex; gap: 10px; align-items: center; padding: 12px 16px;
  max-width: 250px;
  animation: float-y 5s ease-in-out infinite;
}
.float-notif strong { font-size: .78rem; display: block; }
.float-notif small { color: var(--text-2); font-size: .66rem; }
.float-react {
  bottom: 12%; left: -2%;
  padding: 12px 16px; border-radius: 50%;
  font-size: 1.5rem;
  animation: float-y 6s ease-in-out infinite 1.2s;
}
.notif-emoji { font-size: 1.4rem; }
@keyframes float-y { 50% { transform: translateY(-12px); } }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; position: relative;
}
.step-num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; color: #07131f;
  background: var(--grad); margin-bottom: 16px;
  box-shadow: var(--glow-cyan);
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .96rem; }

/* ── Feature duos (copy + demo) ──────────────────────────────── */
.feature-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-top: 56px;
}
.feature-duo-flip { margin-top: 64px; }
.feature-duo .feature-copy h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }

.feature-demo {
  background: linear-gradient(180deg, var(--card), rgba(34, 42, 66, .55));
  border: 1px solid var(--border); border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow);
}

/* Brush demo */
.brush-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.brush-row svg { flex: 1; height: 26px; overflow: visible; }
.brush-chip {
  font-size: .72rem; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px;
  min-width: 82px; text-align: center;
}
.brush-row path { fill: none; stroke-linecap: round; }
.stroke-neon { stroke: #3BD8D2; stroke-width: 5; filter: drop-shadow(0 0 6px #3BD8D2); }
.stroke-rainbow { stroke: url(#rainbowGrad); stroke-width: 6; }
.stroke-calli { stroke: #FFFFFF; stroke-width: 3.4; }
.stroke-glitter { stroke: #FACC15; stroke-width: 3; filter: drop-shadow(0 0 3px #FACC15); }
.stroke-water { stroke: #6A9DFE; stroke-width: 9; opacity: .55; stroke-linejoin: round; }

/* Backgrounds demo */
.bg-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bg-tile {
  aspect-ratio: 1; border-radius: 14px; position: relative; overflow: hidden;
  border: 1px solid var(--border);
  display: grid; place-items: end start; padding: 8px;
}
.bg-tile span {
  font-size: .66rem; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .42); padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.bg-starry { background: linear-gradient(180deg, #0e1638 30%, #232a5c), radial-gradient(circle at 20% 25%, #fff 1px, transparent 1.6px), radial-gradient(circle at 68% 18%, #fff 1px, transparent 1.6px), radial-gradient(circle at 45% 60%, #fff 1px, transparent 1.6px), radial-gradient(circle at 82% 70%, #fff 1px, transparent 1.6px); background-blend-mode: normal; }
.bg-galaxy { background: radial-gradient(circle at 30% 30%, rgba(171, 94, 250, .65), transparent 55%), radial-gradient(circle at 75% 65%, rgba(59, 216, 210, .4), transparent 50%), #131028; }
.bg-sunset { background: linear-gradient(160deg, #ff9d6c, #d9558f 55%, #553d9e); }
.bg-sakura { background: linear-gradient(180deg, #ffeef2, #ffd3dd); }
.bg-sakura span { color: #a14; }
.bg-coffee { background: linear-gradient(180deg, #f3e5cf, #dcbf9c); }
.bg-coffee span { color: #5b3a1f; }
.bg-neon { background: linear-gradient(160deg, #0b1020, #1b1040); box-shadow: inset 0 0 24px rgba(59, 216, 210, .28); }

/* ── Guess My Doodle ─────────────────────────────────────────── */
.section-game { padding: 0 24px; max-width: none; }
.section-game-inner {
  max-width: var(--maxw); margin: 0 auto;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(171, 94, 250, .16), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(59, 216, 210, .12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border); border-radius: 32px;
  padding: 76px 56px; margin: 90px auto;
}
.game-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.game-rules { list-style: none; counter-reset: rule; display: grid; gap: 18px; margin-bottom: 8px; }
.game-rules li {
  counter-increment: rule; position: relative; padding-left: 52px;
  color: var(--text-2);
}
.game-rules li strong { color: var(--text); }
.game-rules li::before {
  content: counter(rule);
  position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #07131f;
  background: var(--grad); box-shadow: var(--glow-cyan);
}

.game-mock {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 26px; padding: 22px; box-shadow: var(--shadow);
}
.gm-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gm-chip {
  font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--text-2);
}
.gm-hint { color: var(--purple); border-color: rgba(171, 94, 250, .5); }
.gm-canvas {
  background: #FFF9F4; border-radius: 16px; padding: 10px; margin-bottom: 16px;
}
.gm-canvas svg { width: 100%; height: auto; }
.gm-canvas path { fill: none; stroke: #444; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.anim-group.armed .gm-canvas path { animation: draw-in 2.4s ease forwards .5s; }
.anim-group.armed .gm-canvas .draw-delay { animation-delay: 1.8s; }
.mushroom-dot { fill: #E55B7C; stroke: none; }

.gm-tiles { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.gm-tile {
  width: 34px; height: 40px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.02rem;
  background: rgba(59, 216, 210, .14); color: var(--cyan);
  border: 1px solid rgba(59, 216, 210, .45);
  opacity: 0;
}
.anim-group.armed .gm-tile { animation: tile-pop .3s ease forwards; }
.anim-group.armed .gm-tile:nth-child(1) { animation-delay: .5s; } .anim-group.armed .gm-tile:nth-child(2) { animation-delay: .7s; }
.anim-group.armed .gm-tile:nth-child(3) { animation-delay: .9s; } .anim-group.armed .gm-tile:nth-child(4) { animation-delay: 1.1s; }
.anim-group.armed .gm-tile:nth-child(5) { animation-delay: 1.3s; } .anim-group.armed .gm-tile:nth-child(6) { animation-delay: 1.5s; }
.anim-group.armed .gm-tile:nth-child(7) { animation-delay: 1.7s; } .anim-group.armed .gm-tile:nth-child(8) { animation-delay: 1.9s; }
@keyframes tile-pop { from { transform: scale(.3); opacity: 0; } }

.gm-bank { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.gm-key {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: .85rem;
  background: var(--card); border: 1px solid var(--border); color: var(--text-2);
  opacity: .55;
}
.gm-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.gm-btn {
  font-size: .78rem; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px;
}
.gm-checking { font-size: .78rem; color: var(--cyan); font-weight: 600; }

/* ── Co-Draw ─────────────────────────────────────────────────── */
.codraw-demo { padding: 20px; }
.cd-canvas {
  position: relative; background: #FFF9F4; border-radius: 16px; overflow: hidden;
  min-height: 210px;
}
.cd-canvas svg { width: 100%; height: auto; }
.cd-stroke { fill: none; stroke-linecap: round; }
.cd-a { stroke: #3BD8D2; stroke-width: 6; filter: drop-shadow(0 0 5px rgba(59, 216, 210, .8)); stroke-dasharray: 420; stroke-dashoffset: 420; }
.cd-b { stroke: #AB5EFA; stroke-width: 6; filter: drop-shadow(0 0 5px rgba(171, 94, 250, .7)); stroke-dasharray: 420; stroke-dashoffset: 420; }
.anim-group.armed .cd-a { animation: draw-in 3s ease forwards .4s; }
.anim-group.armed .cd-b { animation: draw-in 3s ease forwards 1s; }
.cd-thin { stroke-width: 3; }
.cd-cursor {
  position: absolute; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  animation: cursor-drift 6s ease-in-out infinite;
}
.cd-cur-a { top: 12%; right: 10%; background: rgba(59, 216, 210, .18); color: #3BD8D2; border: 1px solid rgba(59, 216, 210, .5); }
.cd-cur-b { bottom: 14%; left: 8%; background: rgba(171, 94, 250, .18); color: #CDA9FF; border: 1px solid rgba(171, 94, 250, .5); animation-delay: 2s; }
@keyframes cursor-drift { 50% { transform: translate(-8px, 10px); } }
.cd-live {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: .8rem; color: var(--text-2); font-weight: 500;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

/* ── Widget ──────────────────────────────────────────────────── */
.widget-demo { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.homescreen {
  width: 250px; border-radius: 34px; padding: 18px 14px;
  background:
    radial-gradient(circle at 20% 15%, rgba(59, 216, 210, .22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(171, 94, 250, .22), transparent 45%),
    linear-gradient(170deg, #1c2340, #12172a);
  border: 1px solid #3a4666; box-shadow: var(--shadow);
}
.widget-card {
  background: rgba(26, 32, 53, .95); border: 1px solid var(--cyan);
  border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 0 18px rgba(59, 216, 210, .25);
  margin-bottom: 16px;
}
.widget-head { display: flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 700; }
.widget-head span { color: var(--cyan); }
.widget-refresh { margin-left: auto; color: var(--text-2); cursor: pointer; }
.widget-doodle { background: #FFF9F4; border-radius: 10px; margin: 8px 0 6px; }
.widget-doodle path { fill: none; stroke: #E55B7C; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.anim-group.armed .widget-doodle path { animation: draw-in 2.4s ease forwards .6s; }
.widget-cap { color: var(--text-2); font-size: .6rem; }
.hs-row { display: flex; justify-content: space-around; margin-bottom: 14px; }
.hs-app {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1rem; background: rgba(34, 42, 66, .9); border: 1px solid var(--border);
}
.hs-dock {
  display: flex; justify-content: space-around; padding: 10px;
  background: rgba(17, 21, 33, .75); border-radius: 999px;
}
.widget-themes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wtheme {
  font-size: .7rem; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2);
}
.wt-neon { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(59, 216, 210, .3); }
.wt-galaxy { border-color: var(--purple); color: #CDA9FF; }
.wt-sakura { border-color: #ffb3c6; color: #ffb3c6; }
.wt-coffee { border-color: #dcbf9c; color: #dcbf9c; }
.wt-luxury { border-color: var(--gold); color: var(--gold); }

/* ── Notifications ───────────────────────────────────────────── */
.notif-showcase { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.notif {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 16px 18px;
  transition: transform .2s ease, border-color .2s;
}
.notif:hover { transform: translateX(6px); border-color: rgba(59, 216, 210, .5); }
.notif-emoji { font-size: 1.5rem; margin-top: 2px; }
.notif-body strong { display: block; font-size: .98rem; }
.notif-body small { color: var(--text-2); font-size: .88rem; }
.notif-time { margin-left: auto; color: var(--text-2); font-size: .78rem; white-space: nowrap; }
.notif-note { text-align: center; color: var(--text-2); margin-top: 30px; font-size: .95rem; }

/* ── Premium ─────────────────────────────────────────────────── */
.premium-card {
  position: relative; text-align: center;
  background:
    radial-gradient(700px 300px at 50% -60px, rgba(250, 204, 21, .13), transparent 65%),
    linear-gradient(180deg, var(--card), rgba(34, 42, 66, .5));
  border: 1.5px solid rgba(250, 204, 21, .45);
  border-radius: 30px; padding: 58px 48px;
  box-shadow: var(--shadow), 0 0 60px rgba(250, 204, 21, .07);
}
.premium-badge {
  display: inline-block; font-weight: 800; letter-spacing: 1.5px; font-size: .82rem;
  color: var(--gold); border: 1.5px solid rgba(250, 204, 21, .55);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
.premium-card h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.premium-sub { color: var(--text-2); max-width: 560px; margin: 16px auto 34px; font-size: 1.05rem; }
.premium-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; text-align: left;
}
.premium-aside { display: grid; gap: 18px; justify-items: start; }
.premium-price .hand { font-size: 1.5rem; }
.premium-fine { color: var(--text-2); font-size: .82rem; line-height: 1.5; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: border-color .2s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: rgba(59, 216, 210, .5); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: none; border: 0; color: var(--text); font-family: var(--font-body);
  font-size: 1.02rem; font-weight: 600; text-align: left;
  padding: 20px 22px; cursor: pointer;
}
.faq-icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem; font-weight: 700;
  color: var(--cyan); border: 1px solid var(--border);
  transition: transform .25s ease, background .2s;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: rgba(59, 216, 210, .15); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-2); font-size: .97rem; }

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta { text-align: center; }
.cta-box {
  position: relative; padding: 70px 40px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(59, 216, 210, .14), transparent 60%),
    var(--surface);
  border: 1px solid var(--border); border-radius: 32px;
}
.cta-box h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; line-height: 1.25; }
.cta-box p { color: var(--text-2); margin: 18px 0 30px; }
.cta-doodle { width: 110px; margin: 0 auto 8px; }
.cta-doodle path { fill: none; stroke: #E55B7C; stroke-width: 5.4; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.anim-group.armed .cta-doodle path { animation: draw-in 2.4s ease forwards .4s; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: #0d111c; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
.footer-brand p { color: var(--text-2); margin-top: 14px; font-size: .95rem; max-width: 280px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { font-size: .82rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.footer-col a { color: var(--text); font-size: .95rem; text-decoration: none; opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(45, 55, 85, .5); }
.footer-base p {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
  color: var(--text-2); font-size: .85rem;
}

/* ── Reveal animations ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Rainbow gradient def helper ─────────────────────────────── */
.svg-defs { position: absolute; width: 0; height: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 36px; }
  .section-game-inner { padding: 56px 32px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero-visual { margin-top: 26px; }
  .float-notif { right: 2%; }
  .float-react { left: 2%; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .feature-duo, .feature-duo-flip { grid-template-columns: 1fr; gap: 30px; }
  .feature-duo-flip .feature-demo { order: -1; }
  .game-showcase { grid-template-columns: 1fr; }
  .try-canvas { grid-template-columns: 1fr; gap: 24px; }
  .premium-grid { grid-template-columns: 1fr; }
  .premium-aside { justify-items: center; text-align: center; }
  .section-game-inner { margin: 56px auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .section { padding: 64px 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .phone { width: 264px; }
  .float-notif { max-width: 210px; top: 2%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .section-game-inner { padding: 40px 20px; border-radius: 22px; }
  .premium-card { padding: 42px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .gm-tile { width: 30px; height: 36px; font-size: .92rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .try-canvas { grid-template-columns: 1fr; padding: 26px; }
  .feedback-box { padding: 38px 22px; }
  .cta-row { flex-direction: column; gap: 18px; }
  .fresh-chip { font-size: .9rem; padding: 13px 16px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw-path, .gm-canvas path, .cd-a, .cd-b, .widget-doodle path, .cta-doodle path { stroke-dashoffset: 0; }
  .anim-group .gm-tile { opacity: 1; }
  .particle, .marquee-track, .hero h1, .btn-primary { animation: none !important; }
  .particle { display: none; }
}
