@font-face {
  font-family: "Fraunces";
  src: url("/fraunces.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
/* Palette "Keskiyö ja kulta" (midnight and gold). */
:root {
  --bg: #0E1626; --bg-top: #142038; --bg-end: #0B1220;
  --glow: rgba(201, 165, 90, 0.10);
  --accent: #C9A55A; --accent-hover: #D8B873; --on-accent: #0E1626;
  --heading: #F2EBDD; --text: #EDE6D8; --muted: #B4B9C6; --fine: #8A91A3;
  --card: rgba(255, 255, 255, 0.035); --border: rgba(201, 165, 90, 0.22);
  --input: rgba(0, 0, 0, 0.25); --placeholder: #7D8598;
  --dot: #8FA67E; --focus: #D8B873; --ok: #A9C29A; --danger: #E39A8C;
  --disc-1: #F2EBDD; --disc-2: #E6D6B4; --disc-glow: rgba(201, 165, 90, 0);
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(60rem 40rem at 50% -10%, var(--glow), transparent 60%),
              linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 55%, var(--bg-end) 100%) fixed;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: 0.01em; }
.lang {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; min-height: 36px; cursor: pointer;
}
.lang:hover { border-color: var(--accent); }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hero { text-align: center; padding: 16px 0 56px; }
.mascot {
  width: min(280px, 70vw); aspect-ratio: 1; margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--disc-1) 0%, var(--disc-2) 58%, var(--disc-glow) 72%);
  display: grid; place-items: center;
  animation: float 6s ease-in-out infinite;
}
.mascot img { width: 82%; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } html { scroll-behavior: auto; } }
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; }
h1, h2 { font-family: var(--serif); }
h1 { font-weight: 500; font-size: clamp(30px, 6vw, 52px); line-height: 1.12; margin: 10px auto 16px; max-width: 18ch; letter-spacing: -0.01em; }
.lead { color: var(--muted); max-width: 40rem; margin: 0 auto 32px; font-size: clamp(17px, 2.2vw, 19px); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 96px)); justify-content: center; gap: 8px; }
.countdown div {
  padding: 14px 4px 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
}
.countdown b { display: block; font-size: clamp(30px, 6vw, 44px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.launch { margin: 16px 0 28px; color: var(--muted); font-weight: 600; }
.cta, .news button {
  display: inline-block; font: inherit; font-weight: 700; color: var(--on-accent);
  background: var(--accent); border: 0; border-radius: 14px;
  padding: 14px 26px; min-height: 48px; text-decoration: none; cursor: pointer;
  transition: background 0.15s;
}
.cta:hover, .news button:hover { background: var(--accent-hover); }
.cta:focus-visible, .news button:focus-visible, .lang:focus-visible, .news input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding-bottom: 56px; }
.features article { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.features h2 { font-size: 20px; font-weight: 500; margin: 0 0 8px; color: var(--heading); }
.features h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); margin-right: 10px; vertical-align: 2px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }
.news {
  text-align: center; max-width: 640px; margin: 0 auto 56px;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 32px 20px;
  scroll-margin-top: 16px;
}
.news h2 { font-weight: 500; margin: 0 0 8px; font-size: clamp(24px, 4vw, 30px); }
.news > p { color: var(--muted); margin: 0 0 20px; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.news input[type=email] {
  flex: 1 1 240px; min-width: 0; font: inherit; color: var(--text);
  background: var(--input); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px; min-height: 48px;
}
.news input::placeholder { color: var(--placeholder); }
.news button { flex: 0 0 auto; }
.news button[disabled] { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.msg { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }
.fine { font-size: 13px; color: var(--fine); margin: 12px 0 0; }
footer { text-align: center; color: var(--fine); font-size: 13px; padding: 0 16px 32px; }
