:root {
  --ink: #1b2340;
  --ink-soft: #3f4a6e;
  --muted: #5a6485;
  --primary: #1769e0;
  --blue: #1f6fe5;
  --blue-deep: #124797;
  --blue-night: #0c326a;
  --blue-ledge: #0e3f94;
  --gold: #ffd45e;
  --gold-2: #ffc23c;
  --gold-ledge: #d99a00;
  --bg: #f4f6fc;
  --bg-top: #e9f0fe;
  --panel: #ffffff;
  --line: #e1e7f4;
  --tint: #e6f0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--primary); font-weight: 800; }
a:focus-visible, button:focus-visible, .gallery:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
h1, h2, h3, .brand { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; line-height: 1.1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.gold { color: var(--gold); }
.blue { color: var(--blue); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(18, 71, 151, .15); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 800; padding: 8px 0; }
.top nav a:hover { color: var(--primary); }
.top nav .nav-cta {
  color: var(--ink); padding: 8px 16px; border-radius: 14px;
  background: linear-gradient(var(--gold), var(--gold-2)); box-shadow: 0 3px 0 var(--gold-ledge);
}
.top nav .nav-cta:hover { color: var(--ink); filter: brightness(1.04); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border-radius: 20px;
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 21px;
  text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #3d8bf5, var(--blue));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 5px 0 var(--blue-ledge), 0 14px 26px rgba(12, 50, 106, .3);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 var(--blue-ledge); }
.btn.gold { color: var(--ink); background: linear-gradient(180deg, #ffe07a, var(--gold-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 5px 0 var(--gold-ledge), 0 14px 26px rgba(12, 50, 106, .35); }
.btn.gold:active { box-shadow: 0 1px 0 var(--gold-ledge); }
.btn.ghost { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn.ghost:active { transform: translateY(2px); }

/* Hero */
.hero {
  position: relative; color: #fff; padding: 56px 0 72px; overflow: hidden;
  background:
    radial-gradient(700px 600px at 72% 50%, rgba(61, 135, 245, .75), transparent 70%),
    repeating-conic-gradient(from 0deg at 72% 55%, rgba(255,255,255,.05) 0 7deg, transparent 7deg 14deg),
    radial-gradient(circle, rgba(255,255,255,.12) 3px, transparent 4px) 0 0 / 44px 44px,
    linear-gradient(165deg, var(--blue-deep), var(--blue-night));
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.hero-logo { display: block; width: 132px; height: 132px; border-radius: 30px; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.22), 0 18px 30px rgba(4, 20, 60, .45); }
.ribbon {
  display: inline-block; margin: 26px 0 14px; padding: 8px 20px 9px; border-radius: 10px;
  font-family: 'Fredoka', system-ui, sans-serif; font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(#ffe07a, var(--gold-2)); box-shadow: 0 4px 0 var(--gold-ledge); transform: rotate(-2deg);
}
.hero h1 {
  margin: 0; font-size: clamp(52px, 8vw, 92px); letter-spacing: -.02em;
  text-shadow: 0 4px 0 var(--blue-ledge), 0 8px 0 var(--blue-ledge), 0 12px 0 #0a2f70, 0 22px 26px rgba(2, 10, 48, .5);
}
.hero h1 .gold { text-shadow: 0 4px 0 #e59a00, 0 8px 0 #c77f00, 0 12px 0 #9a5f00, 0 22px 26px rgba(2, 10, 48, .5); }
.lead { font-size: 19px; color: rgba(230, 240, 255, .95); max-width: 33em; margin: 26px 0 0; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 800; font-size: 15px; }

.hero-art { position: relative; height: 620px; }
.phone {
  position: absolute; left: 50%; top: 0; width: 290px; margin-left: -145px; padding: 10px;
  border-radius: 40px; background: #0b0d12; transform: rotate(4deg);
  box-shadow: inset 0 0 0 2px #3a3f4a, 0 40px 70px -20px rgba(2, 10, 48, .75);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.hero-pip { position: absolute; left: 2%; bottom: -10px; width: 210px; filter: drop-shadow(0 22px 20px rgba(2, 10, 48, .5)); animation: hop 2.6s ease-in-out 1s 3 both; }
.prop { position: absolute; filter: drop-shadow(0 16px 16px rgba(2, 10, 48, .45)); animation: bob 3.2s ease-in-out infinite alternate; }
.p-star { width: 120px; right: 4%; top: 2%; transform: rotate(14deg); }
.p-coin { width: 92px; left: 8%; top: 18%; animation-delay: .6s; }
.p-heart { width: 104px; right: 2%; top: 58%; animation-delay: 1.1s; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes hop { 0%, 100% { translate: 0 0; } 15% { translate: 0 -26px; } 30% { translate: 0 0; } }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 10px; text-align: center; }
.section-sub { color: var(--muted); margin: 0 auto 36px; font-size: 18px; text-align: center; max-width: 36em; }
.section-title.light { color: #fff; }
.section-sub.light { color: rgba(230, 240, 255, .9); }

/* Pip */
.pip-section { background: linear-gradient(180deg, var(--bg-top), var(--bg)); }
.pips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pips figure { margin: 0; text-align: center; background: var(--panel); border-radius: 26px; padding: 24px 16px 22px; box-shadow: 0 0 0 1px var(--line), 0 6px 0 #dde4f2, 0 16px 30px rgba(45, 70, 150, .08); transition: transform .2s ease; }
.pips figure:hover { transform: translateY(-6px) rotate(-1deg); }
.pips img { width: 128px; height: 150px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(18, 71, 151, .25)); }
.pips figcaption { color: var(--ink-soft); font-size: 15.5px; }
.pips figcaption b { display: block; font-family: 'Fredoka', system-ui, sans-serif; font-size: 21px; color: var(--ink); margin: 8px 0 2px; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--panel); border-radius: 26px; padding: 24px; box-shadow: 0 0 0 1px var(--line), 0 6px 0 #dde4f2, 0 16px 30px rgba(45, 70, 150, .08); }
.card-ico { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(18, 71, 151, .25)); }
.card h3 { margin: 10px 0 6px; font-size: 22px; }
.card p { margin: 0; color: var(--ink-soft); }

/* Gallery */
.gallery-section {
  padding: 72px 0 56px; color: #fff;
  background:
    radial-gradient(circle, rgba(255,255,255,.12) 3px, transparent 4px) 0 0 / 44px 44px,
    linear-gradient(165deg, var(--blue-deep), var(--blue-night));
}
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - 1120px) / 2 + 20px)) 24px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent;
}
.gallery img { flex: none; width: 250px; height: auto; border-radius: 24px; scroll-snap-align: center; box-shadow: 0 20px 40px -14px rgba(2, 10, 48, .7); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start; background: var(--panel); border-radius: 22px; padding: 18px; box-shadow: 0 0 0 1px var(--line), 0 4px 0 #dde4f2; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: 28px; color: var(--ink);
  background: linear-gradient(#ffe07a, var(--gold-2)); box-shadow: 0 4px 0 var(--gold-ledge);
}
.step h3 { margin: 4px 0 2px; font-size: 21px; }
.step p { margin: 0; color: var(--ink-soft); }

/* Final CTA */
.final-cta { padding: 40px 0 80px; }
.final-cta .wrap {
  display: flex; align-items: center; gap: 28px; border-radius: 36px; padding: 40px 44px; color: #fff;
  background:
    repeating-conic-gradient(from 0deg at 20% 60%, rgba(255,255,255,.05) 0 7deg, transparent 7deg 14deg),
    linear-gradient(165deg, var(--blue), var(--blue-deep));
  box-shadow: 0 8px 0 var(--blue-ledge), 0 30px 50px -20px rgba(12, 50, 106, .6);
}
.final-pip { width: 190px; flex: none; filter: drop-shadow(0 20px 18px rgba(2, 10, 48, .5)); }
.final-cta h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 46px); text-shadow: 0 4px 0 var(--blue-ledge), 0 14px 20px rgba(2, 10, 48, .4); }
.final-cta h2 .gold { text-shadow: 0 4px 0 #c77f00, 0 14px 20px rgba(2, 10, 48, .4); }
.final-cta p { margin: 0 0 22px; color: rgba(230, 240, 255, .95); font-size: 18px; }

/* Legal / doc pages */
.doc { padding: 40px 0 64px; background: linear-gradient(180deg, var(--bg-top), var(--bg) 320px); }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 26px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc h3 { font-size: 19px; margin: 20px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 17px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--panel); border-radius: 16px; overflow: hidden; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.doc th { background: var(--tint); color: var(--ink); font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; }
.note { background: var(--tint); border-radius: 18px; padding: 16px 18px; color: #1450b8; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shots img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 10px 24px rgba(45,70,150,.14); background: #fff; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; background: #fff; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { height: 560px; max-width: 420px; width: 100%; margin: 0 auto; }
  .pips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta .wrap { flex-direction: column; text-align: center; padding: 32px 22px; }
}
@media (max-width: 560px) {
  .top nav a:not(.nav-cta) { display: none; }
  .hero { padding: 36px 0 56px; }
  .hero-logo { width: 104px; height: 104px; border-radius: 24px; }
  .hero-art { height: 500px; }
  .phone { width: 240px; margin-left: -120px; }
  .hero-pip { width: 160px; }
  .grid { grid-template-columns: 1fr; }
  .pips img { width: 96px; height: 112px; }
  .pips figure { padding: 18px 10px; }
  .gallery img { width: 210px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prop, .hero-pip { animation: none; }
  .pips figure, .btn { transition: none; }
}
