:root {
  --bg:        #0c0c0e;
  --bg-raised: #16161a;
  --ink:       #dcdcde;
  --ink-muted: #b0b0b6;

  --ink-faint: #9c9ca3;
  --accent:    #409cff;
  --hairline:  hsla(0, 0%, 100%, 0.11);
  --hairline-soft: hsla(0, 0%, 100%, 0.055);
  --good:      #3fc768;
  --warn:      #e0ab3d;

  --sans: ui-sans-serif, system-ui, sans-serif;

  --f--1: 0.889rem;
  --f-0:  1rem;
  --f-1:  1.125rem;
  --f-2:  1.266rem;
  --f-5:  1.802rem;
  --f-9:  2.887rem;
  --f-12: 4.110rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 34rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

::selection { background: hsla(211, 100%, 62.5%, 0.25); }

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

#water {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -2;

}

body.no-webgl #water { display: none; }
body.no-webgl {
  background:
    radial-gradient(120% 65% at 50% 78%, #0f1218 0%, var(--bg) 62%, var(--bg) 100%);
  background-attachment: fixed;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 6.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--measure);
  will-change: transform, opacity;
}

.wordmark {
  font-size: clamp(var(--f-5), 9vw, var(--f-9));
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 60px hsla(211, 100%, 62.5%, 0.10);
}

.lede {
  font-size: clamp(var(--f-2), 4.2vw, var(--f-5));
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.lede em { font-style: normal; font-weight: 500; color: #fff; }

.sub {
  font-size: var(--f-0);
  color: var(--ink-muted);
  max-width: 30rem;
  margin: 0 auto 2.6rem;
  line-height: 1.7;
}

.wl { color: var(--ink); }
.wl .br { color: var(--ink-faint); }

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;

  border: 1px solid hsla(211, 100%, 62.5%, 0.72);
  border-radius: 999px;
  background: hsla(211, 100%, 62.5%, 0.10);
  color: var(--ink);
  font-size: var(--f-0);
  font-weight: 400;
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition:
    background 200ms var(--ease),
    border-color 200ms var(--ease),
    transform 200ms var(--ease),
    box-shadow 300ms var(--ease);
}
.cta:hover,
.cta:focus-visible {
  background: hsla(211, 100%, 62.5%, 0.20);
  border-color: hsla(211, 100%, 62.5%, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px hsla(211, 100%, 62.5%, 0.16);
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.cta:active { transform: translateY(0); }
.cta-arrow { transition: transform 200ms var(--ease); }
.cta:hover .cta-arrow { transform: translateX(3px); }

.cta.is-unset {
  border-color: var(--hairline);
  background: hsla(0, 0%, 100%, 0.03);
  color: var(--ink-muted);
  border-style: dashed;
  cursor: not-allowed;
}
.cta.is-unset:hover { transform: none; box-shadow: none; background: hsla(0,0%,100%,0.05); }

.cta-note {
  margin-top: 1.15rem;
  font-size: var(--f--1);
  color: var(--ink-faint);
}

.tour-cue {
  margin-top: 1.9rem;
  font-size: var(--f-0);
}

.tour-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.tour-link:hover,
.tour-link:focus-visible {
  color: var(--ink);
  border-color: var(--ink-faint);
}
.tour-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.tour-arrow { transition: transform 200ms var(--ease); }
.tour-link:hover .tour-arrow { transform: translateX(3px); }

.tour-cue--closer {
  margin-top: 1.5rem;
  font-size: var(--f--1);
}

.scroll-cue {

  position: absolute;
  bottom: 2.2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--f--1);
  color: var(--ink-faint);
}
.scroll-cue-line {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  animation: drip 2.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0%, 100% { transform: scaleY(0.4); opacity: 0.35; }
  45%      { transform: scaleY(1);   opacity: 1; }
}

.hero-inner > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 900ms var(--ease) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 120ms; }
.hero-inner > *:nth-child(2) { animation-delay: 260ms; }
.hero-inner > *:nth-child(3) { animation-delay: 380ms; }
.hero-inner > *:nth-child(4) { animation-delay: 500ms; }
.hero-inner > *:nth-child(5) { animation-delay: 620ms; }
.scroll-cue { opacity: 0; animation: rise 900ms var(--ease) 1100ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.compare {
  position: relative;
  padding: 8rem 1.5rem 6rem;
  background: linear-gradient(to bottom, transparent 0, var(--bg) 9rem);
}

.compare-head { max-width: 46rem; margin: 0 auto 3rem; }

.compare h2 {
  font-size: clamp(var(--f-5), 6vw, var(--f-9));
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.3rem;
}

.compare-lede {
  color: var(--ink-muted);
  max-width: 36rem;
  font-size: var(--f-1);
  line-height: 1.75;
}
.compare-lede em { color: var(--ink); font-style: normal; font-weight: 500; }

.legend {
  max-width: 62rem;
  margin: 0 auto 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: var(--f--1);
  color: var(--ink-faint);
}
.legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend i { font-style: normal; font-size: var(--f-0); }

.table-wrap {
  max-width: 62rem;
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: hsla(0, 0%, 100%, 0.018);
  box-shadow: 0 24px 80px hsla(0, 0%, 0%, 0.45);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 48rem;
  font-size: var(--f-0);
}

thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #131317;
  font-weight: 500;
  font-size: var(--f--1);
  color: var(--ink-muted);
  text-align: center;
  padding: 1.05rem 0.6rem;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

thead th.col-feature {
  left: 0;
  z-index: 4;
  text-align: left;
  padding-left: 1.15rem;
  min-width: 16rem;
}

thead th.col-mimir {
  color: #fff;
  background: linear-gradient(to bottom, #191d25, #14171d);
}

tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #101014;
  text-align: left;
  font-weight: 300;
  color: var(--ink);
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--hairline-soft);
  border-right: 1px solid var(--hairline-soft);
  min-width: 16rem;
  line-height: 1.45;
}

.row-note {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--f--1);
  font-weight: 300;
  color: var(--ink-faint);
}

tbody td {
  text-align: center;
  padding: 0.95rem 0.6rem;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ink-faint);
  min-width: 5.4rem;
}

td.col-mimir, tbody th.col-feature { background-clip: padding-box; }
td.col-mimir {
  background: hsla(211, 100%, 62.5%, 0.045);
  box-shadow:
    inset 1px 0 0 hsla(211, 100%, 62.5%, 0.18),
    inset -1px 0 0 hsla(211, 100%, 62.5%, 0.18);
}
thead th.col-mimir {
  box-shadow:
    inset 1px 0 0 hsla(211, 100%, 62.5%, 0.30),
    inset -1px 0 0 hsla(211, 100%, 62.5%, 0.30),
    inset 0 2px 0 var(--accent);
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background-color: hsla(0, 0%, 100%, 0.028); }
tbody tr:hover td.col-mimir { background-color: hsla(211, 100%, 62.5%, 0.075); }
tbody tr:hover th { background-color: #17171b; }

.glyph { font-size: var(--f-0); line-height: 1; }
td[data-v="yes"]  .glyph { color: var(--ink-muted); }
td[data-v="part"] .glyph { color: var(--ink-faint); }
td[data-v="no"]   .glyph { color: var(--ink-faint); }

td.col-mimir[data-v="yes"] .glyph { color: var(--good); }
td.col-mimir[data-v="no"]  .glyph { color: var(--accent); opacity: 1; }
td.col-mimir[data-v="part"] .glyph { color: var(--ink-muted); opacity: 1; }

tbody tr[data-tone="punchline"] th { color: #fff; font-weight: 400; }

.footnote {
  max-width: 62rem;
  margin: 1.4rem auto 0;
  font-size: var(--f--1);
  line-height: 1.7;
  color: var(--ink-faint);
}

.closer {
  max-width: 62rem;
  margin: 5.5rem auto 0;
  text-align: center;
}
.closer-line {
  font-size: clamp(var(--f-2), 4.4vw, var(--f-5));
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.9rem;
}
.cta--ghost {
  border-color: hsla(211, 100%, 62.5%, 0.42);
  background: hsla(211, 100%, 62.5%, 0.08);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 1.5rem 3.5rem;
  font-size: var(--f--1);
  color: var(--ink-faint);
}
footer .dot { opacity: 0.6; }

@media (max-width: 640px) {
  .compare { padding-top: 6rem; }
  .table-wrap { border-radius: 12px; }
  tbody th, thead th.col-feature { min-width: 13rem; }
  table { font-size: var(--f--1); min-width: 44rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-inner > *, .scroll-cue { opacity: 1; transform: none; }
}
