:root {
  --night: #1b2a45;
  --night-2: #24395c;
  --sky: #7fb4e6;
  --snow: #eef2f8;
  --snow-2: #dfe6f0;
  --ink: #16202f;
  --ink-soft: #4a5568;
  --teal: #2ecdd8;
  --teal-deep: #178a92;
  --cyan: #45f3f3;
  --gold: #ffd25a;
  --slate: #5c5d66;
  --radius: 14px;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  padding: 18px 0;
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 14px var(--pixel); color: #fff; text-decoration: none; letter-spacing: 1px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { display: flex; gap: 20px; }
.bar nav a { color: #cfe3ff; text-decoration: none; font-size: 15px; }
.bar nav a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 46%, var(--sky) 78%, var(--snow) 100%);
  color: #fff;
  padding: 120px 0 40px;
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.title {
  margin: 0;
  font: clamp(48px, 9vw, 104px)/1 var(--pixel);
  color: var(--cyan);
  text-shadow: 0.06em 0.06em 0 var(--teal-deep);
  letter-spacing: 0.04em;
}
.tagline {
  margin: 22px 0 8px;
  font: clamp(14px, 2vw, 18px)/1.6 var(--pixel);
  color: #fff;
}
.lede { margin: 0 0 28px; max-width: 34ch; color: #dbe8fa; font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font: 13px/1.2 var(--pixel);
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .08s ease;
}
.btn:active { transform: translateY(2px); }
.btn-play {
  background: var(--teal); color: var(--ink);
  box-shadow: 0 5px 0 var(--teal-deep);
}
.btn-play:hover { background: #45dbe5; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.btn small { display: block; font: 10px var(--body); opacity: .75; letter-spacing: 0; }
.soon {
  font: 10px var(--pixel); color: var(--gold);
  background: rgba(0,0,0,.25); padding: 4px 6px; border-radius: 6px;
}

.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 230px;
  border-radius: 34px; padding: 9px;
  background: #0d1424;
  box-shadow: 0 30px 60px rgba(10, 20, 40, .45);
}
.phone img { border-radius: 26px; }
.phone.p1 { left: 8%; top: 40px; transform: rotate(-6deg); }
.phone.p2 { left: 42%; top: 0; transform: rotate(5deg); z-index: 1; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
h2 {
  font: clamp(18px, 3vw, 26px)/1.4 var(--pixel);
  margin: 0 0 28px; color: var(--night);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 0 var(--snow-2), 0 10px 30px rgba(27, 42, 69, .07);
}
.card .k { font: 12px var(--pixel); color: var(--teal-deep); margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); }

.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.shots figure { margin: 0; }
.shots img {
  border-radius: 22px; border: 8px solid #0d1424;
  box-shadow: 0 16px 40px rgba(27, 42, 69, .18);
}
.shots figcaption { margin-top: 12px; font: 11px/1.5 var(--pixel); color: var(--slate); text-align: center; }

.band {
  background: var(--night); color: #fff; text-align: center;
}
.band h2 { color: var(--cyan); }
.band p { color: #cfdcf0; max-width: 52ch; margin: 0 auto 26px; }

/* ---------- doc pages (privacy, support) ---------- */
.doc-head {
  background: linear-gradient(180deg, var(--night), var(--night-2));
  color: #fff; padding: 110px 0 44px;
}
.doc-head h1 { margin: 0; font: clamp(20px, 4vw, 32px)/1.3 var(--pixel); color: var(--cyan); }
.doc-head p { margin: 14px 0 0; color: #cfdcf0; }
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 720px; }
.doc h2 { font-size: 15px; margin: 36px 0 10px; }
.doc p, .doc li { color: #2a3546; }
.doc .mail {
  display: inline-block; margin-top: 4px; padding: 14px 18px; border-radius: 12px;
  background: #fff; box-shadow: 0 1px 0 var(--snow-2), 0 8px 24px rgba(27,42,69,.08);
  font-weight: 600; text-decoration: none; word-break: break-all;
}

/* ---------- footer ---------- */
footer {
  background: #121c2f; color: #9fb0c8; padding: 32px 0; font-size: 15px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: #cfe3ff; text-decoration: none; }
footer a:hover { color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .bar nav { gap: 14px; }
  .hero { padding-top: 100px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 420px; }
  .phone { width: 170px; border-radius: 26px; padding: 7px; }
  .phone img { border-radius: 20px; }
  .phone.p1 { left: 6%; }
  .phone.p2 { left: 44%; }
  .cards, .shots { grid-template-columns: 1fr; }
  .shots { max-width: 320px; margin-inline: auto; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}

/* ---------- animations ---------- */
.hero > .wrap { position: relative; z-index: 1; }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.title span { display: inline-block; }
.js .title span { animation: drop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.title span:nth-child(2) { animation-delay: .08s; }
.title span:nth-child(3) { animation-delay: .16s; }
.title span:nth-child(4) { animation-delay: .24s; }
.title span:nth-child(5) { animation-delay: .32s; }
@keyframes drop {
  from { transform: translateY(-120%) rotate(-12deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.title:hover span { animation: hop .45s ease both; }
.title:hover span:nth-child(2) { animation-delay: .05s; }
.title:hover span:nth-child(3) { animation-delay: .1s; }
.title:hover span:nth-child(4) { animation-delay: .15s; }
.title:hover span:nth-child(5) { animation-delay: .2s; }
@keyframes hop { 40% { transform: translateY(-14px); } }

.phone.p1 { --r: -6deg; animation: float 5s ease-in-out infinite; }
.phone.p2 { --r: 5deg;  animation: float 5s ease-in-out -2.5s infinite; }
.phone.p1, .phone.p2 { transform: rotate(var(--r)); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-16px) rotate(calc(var(--r) * 0.6)); }
}

.btn-play { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 5px 0 var(--teal-deep), 0 0 0 0 rgba(46, 205, 216, .5); }
  50%      { box-shadow: 0 5px 0 var(--teal-deep), 0 0 0 10px rgba(46, 205, 216, 0); }
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.2); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(2), .shots figure:nth-child(2) { transition-delay: .12s; }
.cards .card:nth-child(3), .shots figure:nth-child(3) { transition-delay: .24s; }
.card { transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 1px 0 var(--snow-2), 0 16px 40px rgba(27, 42, 69, .14); }
.shots img { transition: transform .25s ease; }
.shots img:hover { transform: translateY(-6px) rotate(-1.5deg); }

/* a snowball that rolls across and grows, then wrecks a little tree */
.slope { position: relative; height: 120px; overflow: hidden; background: linear-gradient(180deg, var(--snow) 0%, var(--snow-2) 100%); }
.slope::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: #fff; box-shadow: 0 -2px 0 #cfdbea; }
.ball {
  position: absolute; left: -80px; bottom: 18px; width: 40px; height: 40px;
  transform-origin: 50% 100%;
  animation: roll 7s linear infinite;
}
.ball i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, #dce6f2 70%, #b9c8db 100%);
  box-shadow: inset -4px -4px 0 rgba(120, 140, 170, .25);
  animation: spin .7s linear infinite;
}
.ball i::before { content: ""; position: absolute; left: 30%; top: 18%; width: 14%; height: 14%; border-radius: 50%; background: #c7d4e5; }
@keyframes roll {
  0%   { transform: translateX(0) scale(.6); }
  100% { transform: translateX(calc(100vw + 160px)) scale(1.8); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.tree {
  position: absolute; bottom: 18px; left: 62%; width: 0; height: 0;
  border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 46px solid #2f7d3a;
  transform-origin: bottom center; animation: wrecked 7s linear infinite;
}
@keyframes wrecked {
  0%, 58%  { transform: none; opacity: 1; }
  64%      { transform: translate(60px, -50px) rotate(160deg); opacity: 1; }
  72%      { transform: translate(120px, 10px) rotate(320deg); opacity: 0; }
  73%, 92% { transform: none; opacity: 0; }
  100%     { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  #snow, .slope { display: none; }
}
