:root {
  --bg: #0b0e23;
  --bg2: #11142e;
  --card: #171a38;
  --text: #eef0ff;
  --dim: #aab0d6;
  --faint: #7b81a8;
  --blue: #5b8cff;
  --pink: #c77dff;
  --border: #262a4d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg));
  color: var(--text);
  line-height: 1.65;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; }
header.site { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo { width: 40px; height: 40px; border-radius: 11px;
  object-fit: cover; display: block; flex: 0 0 auto; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: .2px; }
.brand span { background: linear-gradient(90deg, var(--blue), var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1 { font-size: 30px; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 30px 0 8px; }
.muted { color: var(--faint); font-size: 14px; margin: 0 0 24px; }
p, li { color: var(--dim); }
a { color: var(--blue); }
ul { padding-left: 20px; }
.card { background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 24px; margin: 18px 0; }
nav.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--faint); }
nav.legal a { margin-right: 16px; }
.btn { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff;
  text-decoration: none; font-weight: 700; }
footer { color: var(--faint); font-size: 13px; margin-top: 48px; }

/* ============================================================================
   BLOCK PEAK — landing page (scoped under .lp; legal pages above untouched)
   Aesthetic: calm cosmic puzzle. Baloo 2 display + Nunito body. Dark navy,
   blue→pink gradient, colorful block motif.
   ========================================================================== */
:root {
  --b1: #6ea8ff; --b2: #c77dff; --b3: #46d6e6; --b4: #ffd166;
  --b5: #4fd1a1; --b6: #ff86b3;
  --ring: rgba(123,153,255,.18);
}
body.lp {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080a1c;
  overflow-x: hidden;
}
.lp ::selection { background: rgba(199,125,255,.35); }

/* ---- ambient background ---- */
.lp-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.lp-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-a { width: 620px; height: 620px; top: -220px; left: -120px;
  background: radial-gradient(circle, rgba(91,140,255,.7), transparent 70%); }
.orb-b { width: 560px; height: 560px; top: 280px; right: -160px;
  background: radial-gradient(circle, rgba(199,125,255,.55), transparent 70%);
  animation: float 14s ease-in-out infinite alternate; }
.orb-a { animation: float 18s ease-in-out infinite alternate-reverse; }
@keyframes float { to { transform: translate(40px, 50px); } }
.lp-bg .grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- shared bits ---- */
.lp .grad { background: linear-gradient(100deg, var(--b1), var(--b2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp h1, .lp h2, .lp h3 { font-family: "Baloo 2", cursive; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.05; color: var(--text); margin: 0; }
.lp-kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--b2); margin: 0 0 12px; }

/* ---- nav ---- */
.lp-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 16px 28px;
  backdrop-filter: blur(12px); }
.lp-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font-family: "Baloo 2", cursive; font-weight: 800; font-size: 20px; color: var(--text); }
.lp-brand img { border-radius: 10px; }
.lp-brand em { font-style: normal;
  background: linear-gradient(90deg, var(--b1), var(--b2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-links { margin-left: auto; display: flex; gap: 26px; }
.lp-links a { color: var(--dim); text-decoration: none; font-weight: 700; font-size: 15px; transition: color .15s; }
.lp-links a:hover { color: var(--text); }
.lp-pill { padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
  color: #0b0e23; text-decoration: none; background: linear-gradient(135deg, var(--b1), var(--b2));
  box-shadow: 0 8px 24px -8px rgba(123,125,255,.7); transition: transform .15s; }
.lp-pill:hover { transform: translateY(-2px); }

/* ---- layout ---- */
.lp main { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.lp section { padding-block: clamp(56px, 9vw, 110px); }

/* ---- hero ---- */
.lp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-top: clamp(40px, 6vw, 72px); }
.lp-eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02); margin-bottom: 22px; }
.lp-hero h1 { font-size: clamp(33px, 6.5vw, 68px); font-weight: 800; margin-bottom: 20px; }
.lp-sub { color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); max-width: 46ch; margin: 0 0 30px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-cta.center { justify-content: center; }
.lp-store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px;
  border-radius: 16px; text-decoration: none; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: all .18s; }
.lp-store:hover { transform: translateY(-3px); border-color: var(--b1); background: rgba(255,255,255,.07); }
.lp-store svg { color: var(--text); flex: 0 0 auto; }
.lp-store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 18px;
  font-family: "Baloo 2", cursive; }
.lp-store small { font-weight: 700; font-size: 11px; letter-spacing: .04em; color: var(--faint);
  font-family: "Nunito", sans-serif; }
.lp-trust { margin: 24px 0 0; color: var(--faint); font-size: 14.5px; font-weight: 600; }
.lp-trust span { color: var(--b5); }

/* hero staggered reveal */
.lp-hero-copy > * { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.lp-hero-copy > *:nth-child(1) { animation-delay: .05s; }
.lp-hero-copy > *:nth-child(2) { animation-delay: .15s; }
.lp-hero-copy > *:nth-child(3) { animation-delay: .25s; }
.lp-hero-copy > *:nth-child(4) { animation-delay: .35s; }
.lp-hero-copy > *:nth-child(5) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- hero device / board ---- */
.lp-hero-visual { position: relative; display: flex; justify-content: center;
  opacity: 0; animation: rise .9s .35s cubic-bezier(.2,.7,.2,1) forwards; }
.lp-device { width: min(360px, 80vw); border-radius: 36px; padding: 16px;
  background: linear-gradient(160deg, #1b2150, #11142e);
  border: 1px solid rgba(123,153,255,.25);
  box-shadow: 0 40px 90px -30px rgba(40,30,120,.9), inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotate(-3deg); animation: sway 8s ease-in-out infinite alternate; }
@keyframes sway { to { transform: rotate(2deg) translateY(-8px); } }
.lp-screen { background: radial-gradient(120% 80% at 50% 0%, #1a1f44, #0c0f28);
  border-radius: 24px; padding: 18px; border: 1px solid var(--border); }
.lp-score { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px;
  font-family: "Baloo 2", cursive; }
.lp-score b { font-size: 30px; color: var(--text); }
.lp-score i { font-style: normal; font-size: 13px; color: var(--faint); font-family: "Nunito"; font-weight: 700; }
.lp-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; aspect-ratio: 1; }
.cell { border-radius: 5px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.cell.on { box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 6px rgba(0,0,0,.25); }
.cell.k1 { background: linear-gradient(160deg, #8fc0ff, var(--b1)); }
.cell.k2 { background: linear-gradient(160deg, #ddb0ff, var(--b2)); }
.cell.k3 { background: linear-gradient(160deg, #8af0fa, var(--b3)); }
.cell.k4 { background: linear-gradient(160deg, #ffe19a, var(--b4)); }
.cell.k5 { background: linear-gradient(160deg, #8fe9c8, var(--b5)); }
.cell.k6 { background: linear-gradient(160deg, #ffb2d0, var(--b6)); }
.cell.drop { animation: drop .35s cubic-bezier(.3,1.3,.5,1); }
@keyframes drop { from { transform: translateY(-180%); opacity: 0; } to { transform: none; opacity: 1; } }
.cell.clear { animation: clear .55s ease forwards; }
@keyframes clear {
  0% { filter: brightness(1); transform: scale(1); }
  35% { filter: brightness(2.4); transform: scale(1.08); box-shadow: 0 0 18px rgba(255,255,255,.7); }
  100% { filter: brightness(2); transform: scale(0); opacity: 0; }
}
.lp-tray { display: flex; gap: 14px; justify-content: center; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border); }
.piece { display: grid; gap: 3px; }
.piece i { width: 13px; height: 13px; border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35); }
.piece.p-o { grid-template-columns: repeat(2, 1fr); }
.piece.p-o i { background: linear-gradient(160deg, #ffe19a, var(--b4)); }
.piece.p-l { grid-template-columns: repeat(3, 1fr); }
.piece.p-l i { background: linear-gradient(160deg, #ddb0ff, var(--b2)); }
.piece.p-i { grid-template-columns: repeat(3, 1fr); }
.piece.p-i i { background: linear-gradient(160deg, #8af0fa, var(--b3)); }
.badge-fair { position: absolute; bottom: 6%; left: -6%; padding: 11px 18px; border-radius: 999px;
  font-family: "Baloo 2", cursive; font-weight: 700; font-size: 15px; color: #0b0e23;
  background: linear-gradient(135deg, var(--b5), var(--b3));
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); transform: rotate(-4deg);
  animation: sway 7s ease-in-out infinite alternate-reverse; }

/* ---- USP ---- */
.lp-usp { text-align: center; max-width: 760px; margin: 0 auto; }
.lp-usp h2 { font-size: clamp(34px, 5.5vw, 56px); margin-bottom: 18px; }
.lp-usp-text { color: var(--dim); font-size: clamp(16px, 2.1vw, 19px); max-width: 60ch; margin: 0 auto; }

/* ---- features ---- */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp .feat { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px; transition: transform .2s, border-color .2s; }
.lp .feat:hover { transform: translateY(-5px); border-color: var(--ring); }
.feat-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 13px; font-size: 22px; margin-bottom: 16px; color: #0b0e23; font-weight: 800; }
.ico-1 { background: linear-gradient(150deg, var(--b5), var(--b3)); }
.ico-2 { background: linear-gradient(150deg, var(--b1), var(--b2)); }
.ico-3 { background: linear-gradient(150deg, var(--b3), var(--b1)); }
.ico-4 { background: linear-gradient(150deg, var(--b4), var(--b6)); }
.ico-5 { background: linear-gradient(150deg, var(--b2), var(--b1)); }
.ico-6 { background: linear-gradient(150deg, var(--b6), var(--b2)); }
.lp .feat h3 { font-size: 21px; margin-bottom: 7px; }
.lp .feat p { color: var(--dim); font-size: 15.5px; margin: 0; }

/* ---- daily ---- */
.lp-daily-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, rgba(91,140,255,.12), rgba(199,125,255,.12));
  border: 1px solid var(--ring); border-radius: 28px; padding: clamp(28px, 5vw, 52px); }
.lp-daily-card h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.lp-daily-card p { color: var(--dim); margin: 0; font-size: 16.5px; }
.lp-streak { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lp-streak .day { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-family: "Baloo 2", cursive; font-weight: 700; color: var(--faint);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.lp-streak .day.on { color: #0b0e23; background: linear-gradient(150deg, var(--b5), var(--b3)); border-color: transparent; }
.lp-streak .day.today { color: #0b0e23; background: linear-gradient(150deg, var(--b4), var(--b6));
  border-color: transparent; box-shadow: 0 0 0 3px rgba(255,209,102,.25); }
.lp-streak b { flex-basis: 100%; font-family: "Baloo 2", cursive; font-weight: 700; color: var(--text); margin-top: 6px; }

/* ---- final cta ---- */
.lp-final { text-align: center; }
.lp-final h2 { font-size: clamp(34px, 6vw, 60px); margin-bottom: 16px; }
.lp-final p { color: var(--dim); max-width: 48ch; margin: 0 auto 30px; font-size: 17px; }

/* ---- footer ---- */
.lp-footer { max-width: 1120px; margin: 0 auto; padding: 40px 28px 56px; border-top: 1px solid var(--border); }
.lp-foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.lp-foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-foot-links a { color: var(--dim); text-decoration: none; font-weight: 700; font-size: 15px; }
.lp-foot-links a:hover { color: var(--text); }
.lp-foot-fine { color: var(--faint); font-size: 13px; margin: 22px 0 0; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .lp-hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .lp-sub { margin-left: auto; margin-right: auto; }
  .lp-cta { justify-content: center; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-daily-card { grid-template-columns: 1fr; text-align: center; }
  .lp-streak { justify-content: center; }
}
@media (max-width: 560px) {
  .lp-links { display: none; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-nav { gap: 12px; }
  .lp-cta { flex-direction: column; align-items: center; }
  .lp-store { width: 100%; max-width: 280px; justify-content: center; }
  .badge-fair { left: 2%; }
}
@media (prefers-reduced-motion: reduce) {
  .lp * { animation: none !important; }
  .lp-device { transform: none; }
}
