:root {
  --bg: #fafaff; --surface: #ffffff; --surface2: #f1f0ff; --text: #0e1024; --muted: #636981; --line: #e7e8f5;
  --brand: #5b4bff; --violet: #8b5cf6; --teal: #00c9ab; --amber: #ffb020; --pink: #ff5c8a;
  --ink: #0b0b1f;
  --shadow: 0 1px 2px rgba(20, 20, 60, .04), 0 18px 40px -22px rgba(60, 50, 180, .28);
  --grad: linear-gradient(135deg, #5b4bff, #8b5cf6);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media all {
  :root[data-theme="dark"] { --bg: #090a18; --surface: #12142a; --surface2: #1a1c3a; --text: #f1f2fc; --muted: #9a9fba; --line: #24274a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -22px rgba(0, 0, 0, .8); }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: middle; }
.logo { width: 34px; height: 34px; flex-shrink: 0; }
.grad { background: linear-gradient(95deg, #5b4bff 10%, #a06bff 50%, #00c9ab 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(91, 75, 255, .85), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .18s, box-shadow .18s, filter .18s; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 16px; border-radius: 16px; }
.btn.ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.light { background: #fff; color: #3d2fd1; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }

/* ---------- header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: calc(12px + env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.nav-pill { pointer-events: auto; max-width: 1060px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 62%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: box-shadow .25s, background .25s; }
.nav.scrolled .nav-pill { box-shadow: var(--shadow); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.5px; }
.links { display: flex; gap: 6px; margin: 0 auto; }
.links a { padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.links a:hover { color: var(--text); background: var(--surface2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.signin { font-weight: 700; font-size: 14.5px; padding: 8px 10px; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: var(--surface2); color: var(--text); border-radius: 12px; place-items: center; cursor: pointer; }
.burger .ic { width: 22px; height: 22px; }

/* ---------- aurora ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; opacity: .5; will-change: transform; animation: drift 18s ease-in-out infinite alternate; }
.aurora .b1 { width: 760px; height: 760px; background: radial-gradient(circle, #6a5cff 0%, transparent 66%); left: -260px; top: -300px; }
.aurora .b2 { width: 680px; height: 680px; background: radial-gradient(circle, #00d1b2 0%, transparent 66%); right: -220px; top: -80px; opacity: .34; animation-delay: -5s; }
.aurora .b3 { width: 560px; height: 560px; background: radial-gradient(circle, #ff7ab0 0%, transparent 66%); left: 32%; bottom: -330px; opacity: .26; animation-delay: -9s; }
@keyframes drift { to { transform: translate(50px, 36px) scale(1.1); } }
@media all { :root[data-theme="dark"] .aurora i { opacity: .4; } :root[data-theme="dark"] .aurora .b2 { opacity: .24; } :root[data-theme="dark"] .aurora .b3 { opacity: .18; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 96px; overflow: hidden; background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px); background-size: 26px 26px; background-position: center top; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; padding-top: 44px; padding-bottom: 96px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow); }
.badge .ic { color: var(--amber); }
h1 { margin-top: 20px; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
.lead { margin: 22px 0 30px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 31em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.micro { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
.micro li { display: flex; align-items: center; gap: 6px; }
.micro .ic { color: var(--teal); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.phone { position: relative; z-index: 2; width: 270px; padding: 10px; border-radius: 44px; background: linear-gradient(160deg, #26284a, #0d0e22); box-shadow: 0 50px 80px -30px rgba(50, 35, 170, .6), inset 0 0 0 1.5px rgba(255,255,255,.12); transform: rotate(-4deg); animation: tiltIn 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tiltIn { from { transform: translateY(30px) rotate(0); opacity: 0; } }
.screen { position: relative; border-radius: 35px; padding: 40px 18px 18px; min-height: 480px; color: #fff; background: linear-gradient(165deg, #6a5cff 0%, #8b5cf6 55%, #3ec6d0 130%); overflow: hidden; }
.notch { position: absolute; top: 11px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 14px; background: #0d0e22; }
.s-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.s-streak { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.2); font-size: 12.5px; }
.s-streak .ic { color: #ffc069; }
.s-label { margin-top: 26px; font-size: 12.5px; opacity: .8; }
.s-amt { font-size: 52px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.s-meter { height: 8px; margin: 16px 0 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.s-meter i { display: block; height: 100%; width: 100%; background: #fff; border-radius: 99px; }
.s-foot { font-size: 12.5px; opacity: .9; }
.s-btn { margin-top: 16px; padding: 12px; border-radius: 14px; background: #fff; color: #4a3bd8; font-weight: 800; font-size: 14px; text-align: center; }
.s-feed { margin-top: 18px; display: grid; gap: 8px; }
.s-feed li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 12.5px; font-weight: 600; }
.s-feed b { margin-left: auto; }
.d { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fff; flex-shrink: 0; }
.d .ic { width: 16px; height: 16px; }
.d.a, .tile.a { background: linear-gradient(135deg, #7a6bff, #5b4bff); }
.d.b, .tile.b { background: linear-gradient(135deg, #2fe0bd, #00b894); }
.d.c, .tile.c { background: linear-gradient(135deg, #ffc247, #ff9a1f); }
.d.d, .tile.d { background: linear-gradient(135deg, #5db5ff, #3b82f6); }

.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float .d { width: 38px; height: 38px; border-radius: 12px; }
.float .d .ic { width: 20px; height: 20px; }
.float b { display: block; font-size: 15px; line-height: 1.2; }
.float small { color: var(--muted); font-size: 12.5px; }
.f1 { left: -10%; top: 12%; }
.f2 { right: -6%; top: 44%; animation-delay: -2s; }
.f3 { left: -6%; bottom: 10%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- sections ---------- */
.sect { padding-top: 84px; }
.sect.narrow { max-width: 780px; }
.head { text-align: center; margin-bottom: 38px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.head h2, .calc h2 { margin-top: 8px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; }
.head .sub { margin-top: 10px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 20px -10px rgba(0,0,0,.3); }
.tile .ic { width: 24px; height: 24px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px 26px 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 54px; right: -19px; width: 20px; border-top: 2px dashed var(--line); }
.num { position: absolute; top: 16px; right: 22px; font-size: 54px; font-weight: 800; letter-spacing: -.05em; color: var(--surface2); line-height: 1; }
.steps h3 { margin: 22px 0 6px; font-size: 21px; letter-spacing: -.02em; }
.steps p { color: var(--muted); font-size: 15px; }

/* rewards */
.earn-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.earn { padding: 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .25s; }
.earn:hover { transform: translateY(-4px); }
.earn.big { grid-row: span 2; justify-content: flex-end; background: var(--grad); color: #fff; border: 0; position: relative; overflow: hidden; }
.earn.big::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); }
.earn.big .tile { position: absolute; top: 24px; left: 24px; background: rgba(255,255,255,.2); box-shadow: none; }
.earn.big p { color: #fff; opacity: .85; }
.earn .amt { margin-top: 18px; font-size: 38px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.earn.big .amt { font-size: 76px; margin-top: 0; }
.amt small { font-size: .42em; font-weight: 700; opacity: .65; letter-spacing: 0; }
.earn h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.earn p { font-size: 14.5px; color: var(--muted); }

/* calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-l { padding: 40px; }
.calc h2 { font-size: clamp(26px, 3.4vw, 36px); text-align: left; }
.sliders { display: grid; gap: 22px; margin-top: 30px; }
.sliders label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-weight: 600; font-size: 15px; }
.sliders b { min-width: 34px; text-align: center; padding: 3px 10px; border-radius: 99px; background: var(--surface2); color: var(--brand); font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; flex-basis: 100%; height: 8px; border-radius: 99px; outline-offset: 6px; background: linear-gradient(90deg, var(--brand) var(--p, 0%), var(--surface2) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 4px 10px rgba(60, 50, 180, .35); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 4px 10px rgba(60, 50, 180, .35); cursor: grab; }
.calc-r { position: relative; padding: 40px; color: #fff; background: linear-gradient(160deg, #5b4bff, #8b5cf6 60%, #17c3b2 140%); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.calc-r::before { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%); }
.result-label { font-size: 14px; opacity: .85; font-weight: 600; position: relative; }
.result { font-size: clamp(54px, 8vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; position: relative; }
.result-sub { opacity: .85; font-weight: 600; position: relative; }
.split-list { margin: 22px 0 14px; display: grid; gap: 8px; position: relative; }
.split-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.split-list b { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.a { background: #c9c2ff; } .dot.b { background: #5dffe3; } .dot.c { background: #ffd27a; } .dot.d { background: #9ccdff; }
.fine { font-size: 12.5px; opacity: .75; position: relative; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { padding: 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; min-height: 230px; transition: transform .25s; }
.cell:hover { transform: translateY(-4px); }
.cell h3 { margin-top: 12px; font-size: 19px; letter-spacing: -.02em; }
.cell p { color: var(--muted); font-size: 14.5px; }
.c-wallet { grid-column: span 3; }
.c-streak { grid-column: span 3; }
.c-board { grid-column: span 4; }
.c-pay { grid-column: span 2; }
.mini-bal { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.mini-bal b { font-size: 44px; font-weight: 800; letter-spacing: -.045em; }
.mini-bal span { color: var(--muted); font-weight: 600; }
.week-dots { margin-top: auto; display: flex; gap: 8px; }
.week-dots i { flex: 1; display: grid; place-items: center; aspect-ratio: 1; max-width: 46px; border-radius: 14px; font-style: normal; font-weight: 700; font-size: 13px; background: var(--surface2); color: var(--muted); }
.week-dots i.on { background: linear-gradient(135deg, #ffc247, #ff9a1f); color: #fff; }
.week-dots i.now { background: var(--grad); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.rows { margin-top: auto; display: grid; gap: 6px; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--surface2); font-weight: 600; font-size: 14.5px; }
.rows i { font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); font-size: 12.5px; color: var(--muted); }
.rows b { margin-left: auto; }
.rows li.you { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); }
.status { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--teal) 18%, var(--surface)); color: #008f7a; font-weight: 700; font-size: 14px; }
@media all { :root[data-theme="dark"] .status { color: #4de8cf; } }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 62px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; color: var(--muted); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--brand); }
.faq p { padding: 0 0 20px; color: var(--muted); }

/* cta */
.band { position: relative; margin-top: 90px; padding: 64px 28px; border-radius: 36px; text-align: center; color: #fff; background: var(--ink); overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.band .aurora i { opacity: .7; }
.band .b1 { left: -200px; top: -380px; } .band .b2 { right: -200px; bottom: -380px; top: auto; opacity: .5; }
.band h2 { position: relative; font-size: clamp(30px, 5vw, 50px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.band .btn, .band small { position: relative; }
.band small { opacity: .7; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 44px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.foot .brand { font-size: 17px; }
.foot .logo { width: 28px; height: 28px; }
.foot nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.foot nav a:hover { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; padding-bottom: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .micro { justify-content: center; }
  .hero-art { min-height: 500px; }
  .f1 { left: 4%; } .f2 { right: 4%; } .f3 { left: 6%; }
  .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .earn-grid { grid-template-columns: 1fr 1fr; }
  .earn.big { grid-column: span 2; grid-row: auto; min-height: 220px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-wallet, .c-streak, .c-board, .c-pay { grid-column: span 2; }
  .links, .nav-cta .signin { display: none; }
  .burger { display: grid; }
  .nav-cta { margin-left: auto; }
  .links { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); flex-direction: column; margin: 0; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: auto; }
  .links.open { display: flex; }
  .links a { padding: 14px; font-size: 16px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .sect { padding-top: 64px; }
  .nav-cta .btn { display: none; }
  .nav-pill { padding-right: 8px; }
  .burger { margin-left: auto; }
  h1 { letter-spacing: -.04em; }
  .btn.lg { width: 100%; }
  .hero-art { min-height: 470px; }
  .phone { width: 244px; }
  .screen { min-height: 440px; padding-top: 38px; }
  .s-amt { font-size: 46px; }
  .float { padding: 9px 14px 9px 9px; }
  .f1 { left: -2%; top: 8%; } .f2 { right: -2%; top: 46%; } .f3 { left: -2%; bottom: 6%; }
  .earn-grid { grid-template-columns: 1fr; }
  .earn.big { grid-column: auto; }
  .calc-l, .calc-r { padding: 28px 22px; }
  .bento { grid-template-columns: 1fr; }
  .c-wallet, .c-streak, .c-board, .c-pay { grid-column: auto; }
  .cell { min-height: 0; }
  .mini-bal, .week-dots, .rows { margin-top: 14px; }
  .band { padding: 48px 20px; border-radius: 28px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
