:root {
  --bg1: #0f0c29;
  --bg2: #302b63;
  --bg3: #24243e;
  --accent: #f472b6;
  --accent2: #818cf8;
  --gold: #fbbf24;
  --orange: #f97316;
  --text: #f8fafc;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 55%, var(--bg3)) fixed;
  line-height: 1.6;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }

/* ---------- background ---------- */
.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-a { background: var(--accent); top: -140px; right: -120px; }
.orb-b { background: var(--accent2); bottom: -160px; left: -140px; animation-delay: -6s; }
@keyframes drift {
  to { transform: translate(60px, 40px) scale(1.1); }
}

.float {
  position: fixed;
  z-index: 0;
  font-size: 34px;
  opacity: 0.25;
  pointer-events: none;
  animation: bob 6s ease-in-out infinite;
}
.float-1 { top: 18%; left: 4%; font-size: 40px; }
.float-2 { bottom: 14%; right: 6%; font-size: 48px; animation-delay: -2s; }
.float-3 { top: 62%; left: 6%; font-size: 30px; animation: fly 16s linear infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
@keyframes fly {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(calc(100vw + 60px)); }
}

body > *:not(.bg-orb):not(.float):not(.consent) { position: relative; z-index: 1; }

/* ---------- header ---------- */
.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.7);
}
.top nav { display: flex; gap: 20px; font-size: 14px; font-weight: 700; }
.top nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.top nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 70px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fdba74;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent2));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.lead { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 520px; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(244, 114, 182, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(244, 114, 182, 0.5); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  animation: glow 3s ease-in-out infinite;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out infinite;
}
.chrome-logo { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
@keyframes glow {
  0%, 100% { box-shadow: 0 10px 26px rgba(244, 114, 182, 0.35); }
  50% { box-shadow: 0 10px 34px rgba(129, 140, 248, 0.55); }
}
@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- popup mock ---------- */
.mock {
  justify-self: center;
  width: 320px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(30, 27, 75, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-hello { font-weight: 800; font-size: 18px; }
.mock-streak {
  background: linear-gradient(135deg, var(--orange), #ef4444);
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}
.mock-tabs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: 14px 0;
}
.mock-tabs span {
  text-align: center;
  font-size: 15px;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--border);
}
.mock-tabs span.on {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(129, 140, 248, 0.35);
}
.mock-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
}
.mock-kicker { font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-text { font-size: 14px; margin-top: 4px; }
.mock-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.ring { position: relative; width: 110px; height: 110px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 110;
  filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.6));
  animation: ring 8s ease-in-out infinite alternate;
}
@keyframes ring { to { stroke-dashoffset: 260; } }
.ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}
.mock-stats { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; }
.mock-stats b { color: var(--gold); font-size: 20px; text-align: right; }
.mock-stats span { font-size: 12px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 60px 0; }
.section h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin-bottom: 26px; }
.muted { color: var(--muted); margin-top: -14px; margin-bottom: 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  padding: 22px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.25), rgba(129, 140, 248, 0.25));
  transition: transform 0.4s;
}
.feature:hover .ico { transform: rotate(-12deg) scale(1.15); }
.feature h3 { font-size: 19px; margin: 14px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 560px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
}
.num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 16px rgba(244, 114, 182, 0.35);
}
.steps p { font-size: 16px; }

.card {
  padding: 26px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.card h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent2);
  font-weight: 800;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.closing {
  margin: 40px 0 20px;
  padding: 50px 24px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.14), rgba(129, 140, 248, 0.14));
  border: 1px solid var(--border);
}
.closing h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 22px; }

.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- support: FAQ and contact ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(244, 114, 182, 0.5); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }
.faq details a { color: var(--accent2); }
.contact { margin-top: 24px; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .mock { width: min(320px, 100%); }
  .top nav { display: none; }
}
@media (max-width: 480px) {
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  .lead { font-size: 17px; }
  .float-2, .float-3 { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- cookie consent banner ---------- */
body.has-consent { padding-bottom: var(--consent-space, 120px); }

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0 auto;
  width: min(620px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  gap: 14px 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(244, 114, 182, 0.22), rgba(129, 140, 248, 0.22) 55%, rgba(251, 191, 36, 0.16)) padding-box,
    linear-gradient(rgba(24, 20, 60, 0.96), rgba(24, 20, 60, 0.96)) padding-box,
    linear-gradient(120deg, var(--accent), var(--accent2), var(--gold)) border-box;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(244, 114, 182, 0.25);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  animation: consent-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.consent.is-leaving { animation: consent-out 0.35s ease-in forwards; pointer-events: none; }

.consent-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(244, 114, 182, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.consent-body { flex: 1 1 auto; min-width: 0; }
.consent-title { margin: 0; font-weight: 800; font-size: 15px; color: #fff; }
.consent-text { margin: 2px 0 0; color: #e2e8f0; }
.consent a {
  color: var(--gold);
  font-weight: 700;
  text-underline-offset: 2px;
  border-radius: 4px;
}
.consent a:hover { color: #fde68a; }

.consent-actions { flex: none; display: flex; gap: 8px; }
.consent-btn {
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  color: #1e1b4b;
  background: linear-gradient(135deg, var(--accent), var(--gold) 50%, var(--accent2)) 0 0 / 200% 100%;
  box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.55), 0 6px 18px rgba(244, 114, 182, 0.35);
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: consent-pulse 2.4s ease-in-out 0.8s infinite;
}
.consent-btn:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.55), 0 8px 22px rgba(129, 140, 248, 0.4);
}
.consent-btn:active { transform: translateY(0); }
.consent-btn.ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  animation: none;
}
.consent-btn.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }
.consent-btn:focus-visible,
.consent a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@keyframes consent-in {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes consent-out {
  to { opacity: 0; transform: translateY(28px) scale(0.98); }
}
@keyframes consent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.55), 0 6px 18px rgba(244, 114, 182, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(244, 114, 182, 0), 0 6px 22px rgba(251, 191, 36, 0.45); }
}

@media (max-width: 560px) {
  .consent {
    flex-wrap: wrap;
    width: auto;
    left: 16px;
    right: 16px;
    padding: 14px;
  }
  .consent-icon { width: 36px; height: 36px; font-size: 19px; align-self: flex-start; }
  .consent-body { flex: 1 1 0; }
  .consent-actions { flex: 1 1 100%; flex-direction: column-reverse; }
  .consent-btn { width: 100%; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent,
  .consent-btn { animation: none !important; transition: none !important; }
}
