@font-face {
  font-family: "Fredoka";
  src: url("/assets/Fredoka-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #173a5a;
  --muted: #58738d;
  --cream: #fff8e8;
  --paper: #fffdf6;
  --gold: #f6b323;
  --gold-deep: #db7c13;
  --teal: #13c8c5;
  --blue: #247bdd;
  --sky: #eafaff;
  --line: rgba(45, 112, 151, 0.16);
  --shadow: 0 24px 70px rgba(42, 103, 144, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 230, 122, 0.34), transparent 24rem),
    radial-gradient(circle at 94% 25%, rgba(31, 210, 204, 0.18), transparent 28rem),
    linear-gradient(180deg, #f4fcff 0%, #fffaf0 52%, #f3fbff 100%);
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.7);
  background: rgba(246, 252, 255, .78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #38ddd2, #247bdd 70%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.65), 0 6px 14px rgba(36,123,221,.22);
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 540;
}
.nav-links a:hover { color: var(--ink); background: #fff; }

.hero {
  width: min(1240px, calc(100% - 24px));
  margin: 24px auto 0;
  min-height: min(720px, 78vh);
  border-radius: 42px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #8ed7ff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(16,51,80,.72) 0%, rgba(16,51,80,.26) 42%, rgba(16,51,80,.05) 72%), url("/assets/glimmer-loop-hero.png") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 48%;
  background: linear-gradient(transparent, rgba(11, 39, 58, .68));
}

.hero-copy { padding: clamp(28px, 5vw, 72px); max-width: 710px; color: #fff; }
.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(19, 57, 79, .32);
  backdrop-filter: blur(10px);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: clamp(3rem, 8vw, 7rem); line-height: .86; letter-spacing: -.05em; text-shadow: 0 7px 24px rgba(16,45,64,.28); }
.hero p { max-width: 590px; margin: 22px 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; color: rgba(255,255,255,.92); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(36,123,221,.16);
  border-radius: 17px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 9px 22px rgba(25,77,113,.16), inset 0 2px 0 rgba(255,255,255,.8);
  text-decoration: none;
  font-weight: 650;
}
.button.primary { color: #fff; border-color: #0f62bd; background: linear-gradient(180deg, #3d91ed, #1766c0); }
.button.ghost { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.13); backdrop-filter: blur(10px); }
.button:hover { transform: translateY(-2px); }

.section { width: min(1120px, calc(100% - 32px)); margin: 100px auto; }
.section-kicker { color: #1f93aa; font-size: .82rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.section h2 { margin: 10px 0 14px; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.section-lead { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 1.12rem; }

.game-card {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border: 1px solid rgba(54,129,166,.18);
  border-radius: 34px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}
.game-art { min-height: 440px; background: url("/assets/glimmer-loop-hero.png") center / cover; }
.game-copy { padding: clamp(28px, 5vw, 60px); align-self: center; }
.game-icon { width: 82px; border-radius: 22px; box-shadow: 0 12px 24px rgba(31,97,139,.2); }
.game-copy h3 { margin: 24px 0 10px; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.04em; }
.game-copy p { color: var(--muted); line-height: 1.7; font-size: 1.06rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chip { padding: 7px 11px; border-radius: 999px; background: #e9f8ff; color: #2f6b8f; font-size: .85rem; font-weight: 580; }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.promise {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.68);
}
.promise b { display: block; margin-bottom: 10px; font-size: 1.35rem; }
.promise p { margin: 0; color: var(--muted); line-height: 1.65; }
.promise .symbol { font-size: 2.1rem; margin-bottom: 28px; }

.legal-shell { width: min(860px, calc(100% - 32px)); margin: 70px auto 110px; }
.legal-card { padding: clamp(26px, 6vw, 66px); border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.legal-card h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; }
.legal-card h2 { margin: 38px 0 10px; font-size: 1.45rem; }
.legal-card p, .legal-card li { color: #4c6b82; line-height: 1.75; }
.legal-card a { color: #0a7eab; }
.updated { display: inline-block; margin: 0 0 24px; color: #638097; font-size: .9rem; }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.support-item { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.support-item h2 { margin-top: 0; }

.footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.6); }
.footer-inner { width: min(1120px, calc(100% - 32px)); margin: auto; padding: 38px 0 48px; display: flex; justify-content: space-between; gap: 30px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav { min-height: 64px; }
  .nav-links a:not(.keep-mobile) { display: none; }
  .hero { min-height: 650px; border-radius: 28px; }
  .hero::before { background-position: 60% center; }
  .hero-copy { padding: 28px 22px 36px; }
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 280px; }
  .promise-grid, .support-grid { grid-template-columns: 1fr; }
  .section { margin: 72px auto; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .18s ease; }
  .game-card { animation: rise .7s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
