/* ============================================================
   Ice Lines — icelines.app
   Midnight aurora theme: deep navy night sky, teal/violet aurora
   glow, ice-white text, gold action buttons. Mobile-first.
   ============================================================ */

:root {
  --ink: #0B1026;          /* deep night navy */
  --ink-2: #10173A;        /* raised panel */
  --ink-3: #16204E;        /* card */
  --line: rgba(126, 168, 255, 0.16);
  --paper: #EAF0FF;        /* ice-white text */
  --muted: #A9B7DE;
  --teal: #2DD4BF;         /* aurora teal */
  --violet: #8B5CF6;       /* aurora violet */
  --ice: #7DD3FC;          /* aurora blue */
  --gold: #F5B301;         /* action gold */
  --gold-ink: #151A2E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 90% 45% at 15% -5%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 40% at 95% 8%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(125, 211, 252, 0.10), transparent 55%),
    var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 38, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 6px; }

.sitenav { margin-left: auto; }
.sitenav__list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitenav__list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.sitenav__list a:hover { color: var(--paper); }

/* ---------- play buttons ---------- */
.playbtn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #FFC52E 0%, var(--gold) 55%, #E09E00 100%);
  color: var(--gold-ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(245, 179, 1, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.playbtn > * { position: relative; z-index: 1; }
.playbtn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: sheen 2.4s ease-in-out infinite;
  pointer-events: none;
}
.playbtn--lg {
  padding: 15px 34px;
  font-size: 1.12rem;
  border-radius: 12px;
}
.glowpulse { animation: glow 2.6s ease-in-out infinite; }

@keyframes sheen {
  0% { left: -60%; }
  45% { left: 130%; }
  100% { left: 130%; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 8px 22px rgba(245, 179, 1, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
  50% { box-shadow: 0 10px 36px rgba(245, 179, 1, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 34px;
  align-items: center;
  padding: 56px 0 40px;
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.display {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 16px;
}
.display span {
  background: linear-gradient(100deg, var(--teal), var(--ice) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.deck {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
}

.hero-actions { margin-bottom: 18px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-meta span::before { content: "·"; color: var(--teal); margin-right: 8px; font-weight: 700; }

.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(2, 8, 30, 0.55), 0 0 0 1px rgba(45, 212, 191, 0.08), 0 0 46px rgba(45, 212, 191, 0.10);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 16, 38, 0.5) 0%, rgba(11, 16, 38, 0.12) 18%, transparent 30%);
  pointer-events: none;
}

/* ---------- zones ---------- */
.zone { padding: 34px 0 10px; }

.zone-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}

.zone-title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 14px;
}

.zone-copy {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 72ch;
}

.zone-cta { margin: 20px 0 34px; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.stat {
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-k {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-v {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--paper);
}
.stat-v small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- perks ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.perk {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perk-fig {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.perk-num {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--gold-ink);
  background: linear-gradient(180deg, #FFC52E, var(--gold));
}
.perk-title { font-size: 1.12rem; font-weight: 700; color: var(--paper); }
.perk-copy { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 13px 16px 13px 56px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  font-size: 0.96rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.10);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

/* ---------- notice ---------- */
.notice {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--violet);
  background: rgba(139, 92, 246, 0.09);
  border-radius: 0 12px 12px 0;
  color: var(--paper);
  font-size: 0.95rem;
  max-width: 72ch;
}

/* ---------- shout band ---------- */
.shout {
  margin: 34px 0 10px;
  padding: 30px 26px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(45, 212, 191, 0.20), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink-3));
}
.shout-title { font-size: clamp(1.35rem, 3vw, 1.8rem); color: var(--paper); margin-bottom: 8px; }
.shout-copy { margin: 0 0 18px; color: var(--muted); }

/* ---------- faq ---------- */
.faq {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  max-width: 760px;
}
.faq-title {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-title::-webkit-details-marker { display: none; }
.faq-title::after { content: "+"; color: var(--teal); font-size: 1.3rem; font-weight: 500; }
.faq[open] .faq-title::after { content: "−"; }
.faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
.pagefoot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 30, 0.6);
  padding: 34px 0 30px;
}
.pagefoot__inner { display: flex; flex-direction: column; gap: 18px; }
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--paper); }
.foot-note { color: var(--muted); font-size: 0.85rem; max-width: 44ch; }
.foot-note p { margin: 0 0 4px; }
.foot-note a { color: var(--teal); }
.foot-legal { color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 14px; }
.foot-legal a { color: var(--teal); text-decoration: none; }

/* ---------- sticky play bar ---------- */
.playbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(11, 16, 38, 0.94) 45%);
}
.playbar .playbtn { width: 100%; max-width: 420px; padding: 14px 22px; font-size: 1.05rem; }
.playbar.is-hidden { display: none; }

/* ---------- policy pages ---------- */
.legal-prose { max-width: 72ch; }
.legal-prose h3 { margin: 22px 0 8px; font-size: 1.15rem; color: var(--paper); }
.legal-prose p { margin: 0 0 12px; color: var(--muted); }
.legal-prose a { color: var(--teal); }
.legal-prose ul { color: var(--muted); padding-left: 20px; }
.legal-prose li { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: 1fr; }
  .perk-fig { height: 150px; }
}

@media (max-width: 640px) {
  .sitenav { display: none; }
  .topbar__inner { min-height: 56px; }
  .topbar .playbtn { margin-left: auto; padding: 9px 16px; font-size: 0.88rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .display { font-size: clamp(2rem, 9vw, 2.6rem); }
  .playbar { display: flex; }
  .playbar.is-hidden { display: none; }
  .shout { padding: 24px 18px; }
}
