:root {
  --ice: #d7e7f2;
  --ice-deep: #b7cfe0;
  --navy: #0d1b26;
  --panel: #122230;
  --ink: #e8eef4;
  --muted: #9eb3c4;
  --blue: #2f8fe8;
  --red: #e23b3b;
  --yellow: #ffd84d;
  --line: #2a4a63;
  --max: 1080px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 18px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
  min-height: 100%;
}
a { color: var(--blue); text-decoration: none; }
a:hover { filter: brightness(1.08); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; text-align: center; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.ice-glow {
  pointer-events: none;
  position: fixed;
  inset: 0 auto auto 50%;
  width: 1400px;
  height: 640px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 0%, #1c3a52 0%, transparent 64%),
    radial-gradient(circle at 20% 30%, rgba(47, 111, 214, .18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(226, 59, 59, .12), transparent 36%);
  z-index: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 27, 38, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.wordmark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}
.nav { flex: 0 0 auto; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.hello { color: var(--muted); font-size: 14px; }
.link { color: var(--ink); font-size: 15px; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font: 650 16px/1.2 inherit;
  border: 0;
  cursor: pointer;
}
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.secondary {
  background: #22384c;
  color: #fff;
  border: 1px solid #3a5a77;
}

body.signed-in .cta-guest { display: none; }
body:not(.signed-in) .cta-signed { display: none; }

.hero { position: relative; z-index: 1; padding: 36px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.logo-plate {
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px 10px;
  width: min(340px, 100%);
  margin: 0 0 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.logo-plate img { display: block; width: 100%; }
.lede { margin: 0 0 22px; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.greet { margin: 0 8px 0 0; color: var(--ink); }
.hero-test {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 16px;
}
.hero-test-copy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-ice { display: flex; flex-direction: column; align-items: center; }
.sheet {
  width: min(280px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
}
.caption { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.stone-track { transform-origin: 140px 300px; }
.stone {
  animation: stone-slide 5.2s cubic-bezier(.12, .7, .22, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes stone-slide {
  0%   { transform: translate(18px, 150px) rotate(0deg); }
  18%  { transform: translate(14px, 110px) rotate(-80deg); }
  55%  { transform: translate(-6px, 8px) rotate(-300deg); }
  72%  { transform: translate(0, 0) rotate(-360deg); }
  100% { transform: translate(0, 0) rotate(-360deg); }
}

.modes, .features { position: relative; z-index: 1; padding: 48px 0; }
.section-lede { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 32em; }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cards li, .feature-list li {
  background: linear-gradient(180deg, #163044, var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.cards p, .feature-list p { margin: 0; color: var(--muted); font-size: 15px; }

.feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cta-band {
  position: relative;
  z-index: 1;
  padding: 16px 0 64px;
}
.band-inner {
  background: linear-gradient(180deg, #163044, var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.band-inner p { color: var(--muted); margin: 0 0 20px; }
.band-inner .hero-cta { justify-content: center; }

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--blue); }

@media (max-width: 860px) {
  .hero-grid, .cards, .feature-list { grid-template-columns: 1fr 1fr; }
  .hero-ice { order: -1; }
  .sheet { width: min(200px, 70vw); }
  .logo-plate { width: min(280px, 100%); margin-left: auto; margin-right: auto; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-test { justify-content: center; }
  .eyebrow { text-align: center; }
}
@media (max-width: 560px) {
  .hero-grid, .cards, .feature-list { grid-template-columns: 1fr; }
  .top-inner { min-height: 58px; }
  .hero { padding-top: 22px; }
  .nav .link { display: none; }
  .sheet { width: min(180px, 58vw); }
}
@media (prefers-reduced-motion: reduce) {
  .stone { animation: none; }
}

.legal { position: relative; z-index: 1; padding: 36px 0 64px; }
.legal-inner { width: min(720px, calc(100% - 32px)); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.legal h1 { margin-bottom: 16px; }
.legal h2 { text-align: left; margin: 1.6em 0 8px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; }
.legal li { margin: 0 0 8px; }
.legal code { font-size: 0.92em; }
.foot-inner p:last-child { display: flex; flex-wrap: wrap; gap: 6px 0; }
