:root {
  --bg: #051438;
  --bg2: #0a2452;
  --ice: #73e0ff;
  --sky: #389efa;
  --frost: #e8f7ff;
  --muted: #9bc4e8;
  --ember: #ffc247;
  --violet: #8c6cf5;
  --font: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "Menlo", monospace;
  --max: 1120px;
  --pad: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--frost);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.frost-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.coord-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(115, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(115, 224, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  z-index: 0;
}

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }

.polar-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: rgba(5, 20, 56, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(115, 224, 255, 0.15);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--frost);
  text-decoration: none;
}

.brand-lockup:hover { text-decoration: none; }

.brand-glyph {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--sky), var(--ice));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.polar-menu {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.polar-menu a { color: var(--muted); text-decoration: none; }
.polar-menu a:hover { color: var(--ice); }

.menu-frost {
  display: none;
  background: none;
  border: 1px solid rgba(115, 224, 255, 0.3);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.menu-frost span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ice);
  margin: 4px 0;
}

main { position: relative; z-index: 1; }

.ice-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
}

.ice-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.ice-hero h1 em {
  font-style: normal;
  color: var(--ice);
  display: block;
  font-size: 0.55em;
  margin-bottom: 0.35em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.readout-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.readout-pill {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(115, 224, 255, 0.25);
  background: rgba(10, 36, 82, 0.7);
  color: var(--ice);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-ice, .btn-deep {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-ice {
  background: linear-gradient(135deg, var(--ice), var(--sky));
  color: #051438;
}

.btn-deep {
  border: 1px solid rgba(115, 224, 255, 0.35);
  color: var(--frost);
  background: rgba(10, 36, 82, 0.5);
}

.btn-ice:hover, .btn-deep:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(56, 158, 250, 0.25);
}

.hero-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(115, 224, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.frame-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.65rem 0.85rem;
  background: rgba(5, 20, 56, 0.82);
  border: 1px solid rgba(115, 224, 255, 0.3);
  border-radius: 10px;
  color: var(--ice);
}

.realm-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 0.5rem;
}

.realm-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.5rem;
}

.thermo-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.thermo-cell {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 1rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 38, 74, 0.9), rgba(5, 20, 56, 0.95));
  border: 1px solid rgba(115, 224, 255, 0.12);
  text-align: center;
}

.thermo-cell .glyph { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.thermo-cell strong { display: block; font-size: 0.82rem; color: var(--frost); }
.thermo-cell span { font-size: 0.72rem; color: var(--muted); }

.specimen-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.specimen-row figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(115, 224, 255, 0.15);
  background: var(--bg2);
}

.specimen-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.specimen-row figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.ledger-section {
  background: linear-gradient(180deg, rgba(10, 36, 82, 0.55), transparent);
  padding: 3rem var(--pad) 4rem;
}

.ledger-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.ledger-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ledger-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: rgba(5, 20, 56, 0.65);
  border: 1px solid rgba(115, 224, 255, 0.12);
}

.ledger-index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ice);
  padding-top: 0.2rem;
}

.ledger-entry h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.ledger-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--pad);
}

.legal-block h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--ice);
}

.legal-block p, .legal-block li {
  color: var(--muted);
  max-width: 68ch;
}

.legal-block ul { padding-left: 1.2rem; }

.support-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(10, 36, 82, 0.6);
  border: 1px solid rgba(115, 224, 255, 0.2);
  max-width: 420px;
}

.support-card a {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.polar-foot {
  text-align: center;
  padding: 2rem var(--pad) 3rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(115, 224, 255, 0.1);
}

@media (max-width: 860px) {
  .ice-hero { grid-template-columns: 1fr; }
  .specimen-row { grid-template-columns: 1fr; }
  .polar-menu { display: none; }
  .polar-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 20, 56, 0.98);
    padding: 1rem var(--pad) 1.25rem;
    border-bottom: 1px solid rgba(115, 224, 255, 0.15);
  }
  .polar-top { position: relative; flex-wrap: wrap; }
  .menu-frost { display: block; margin-left: auto; }
}
