/* =========================================================================
   WOTANN — wotann.com stylesheet
   Design: Norse-themed dark-first, with light mode. Navy + gold accent.
   Typography: serif display headings (Iowan/Baskerville stack), sans body,
   monospace code. System fonts only — zero webfonts for speed and privacy.
   ======================================================================== */

/* ─── Reset + base ────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

@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; scroll-behavior: auto !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color 140ms ease; }
a:hover { color: var(--accent-bright); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Baskerville, "Noto Serif", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--fg-strong);
}

code, pre, kbd, samp {
  font-family: "SF Mono", "Menlo", "Monaco", "Cascadia Code", Consolas, "Roboto Mono", monospace;
  font-size: 0.92em;
}

/* ─── Design tokens ───────────────────────────────────────────────── */
:root {
  /* Dark palette — Norse navy deepening into obsidian */
  --bg:          #0b1020;
  --bg-soft:     #10172c;
  --bg-elev:     #151c36;
  --fg:          #d7ddec;
  --fg-strong:   #ffffff;
  --fg-muted:    #94a0c0;
  --border:      #222b49;
  --border-soft: #1a2240;
  --accent:      #d4af37;  /* gold */
  --accent-bright: #f2cf6b;
  --accent-soft: rgba(212,175,55,0.12);
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:   0 10px 25px -10px rgba(0,0,0,0.55), 0 4px 10px -4px rgba(0,0,0,0.45);
  --shadow-lg:   0 30px 60px -25px rgba(0,0,0,0.65);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1160px;
}

:root[data-theme="light"] {
  --bg:          #faf8f2;
  --bg-soft:     #ffffff;
  --bg-elev:     #ffffff;
  --fg:          #2c2f3a;
  --fg-strong:   #0b1020;
  --fg-muted:    #5d657c;
  --border:      #e6e2d4;
  --border-soft: #efece0;
  --accent:      #9b7a16;
  --accent-bright: #7e6210;
  --accent-soft: rgba(155,122,22,0.10);
  --shadow-sm:   0 1px 2px rgba(11,16,32,0.06);
  --shadow-md:   0 10px 25px -10px rgba(11,16,32,0.10), 0 4px 10px -4px rgba(11,16,32,0.06);
  --shadow-lg:   0 30px 60px -25px rgba(11,16,32,0.15);
}

/* ─── Skip link + accessibility helpers ───────────────────────────── */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #0b1020;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

/* ─── Layout ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main > section { padding: 5rem 0; }

/* ─── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg-strong);
  font-family: "Iowan Old Style", "Palatino Linotype", Baskerville, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.logo:hover { color: var(--accent-bright); }
.logo-mark { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }
.logo-text { letter-spacing: 0.12em; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--fg-muted);
}
.nav a {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.4rem 0;
  position: relative;
}
.nav a:hover { color: var(--fg-strong); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav a:hover::after { transform: scaleX(1); }

.nav-github {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.nav-github:hover { border-color: var(--accent); color: var(--accent) !important; }
.nav-github::after { display: none; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
  font-size: 0.95rem;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon.moon { display: inline; }
.theme-icon.sun { display: none; }
:root[data-theme="light"] .theme-icon.moon { display: none; }
:root[data-theme="light"] .theme-icon.sun { display: inline; }

@media (max-width: 720px) {
  .nav { gap: 0.8rem; }
  .nav a:not(.nav-github) { display: none; }
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4.5rem !important;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero-title-gold {
  display: block;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.hero-title-sub {
  display: block;
  color: var(--fg-strong);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.15rem;
  max-width: 680px;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}
.hero-tagline strong { color: var(--fg); }

.install-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  max-width: 760px;
}
.install-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.55rem;
  font-weight: 600;
}
.install-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.install-line code {
  flex: 1;
  color: var(--fg-strong);
  background: transparent;
  padding: 0;
  font-size: 0.95rem;
  overflow-x: auto;
  white-space: nowrap;
}
.install-line code::before { content: "$ "; color: var(--accent); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 140ms ease;
  flex-shrink: 0;
  font-family: inherit;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent-bright); border-color: var(--accent); }
.copy-btn.copied .copy-label::after { content: "d!"; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #0b1020; }
.btn-primary:hover { background: var(--accent-bright); color: #0b1020; box-shadow: 0 10px 20px -8px var(--accent-soft); }

.btn-secondary { background: var(--bg-elev); color: var(--fg-strong); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--fg-muted); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--accent); }

.hero-fineprint {
  font-size: 0.92rem;
  color: var(--fg-muted);
  max-width: 720px;
}
.hero-fineprint strong { color: var(--fg); }

/* ─── At-a-glance strip ───────────────────────────────────────────── */
.strip {
  padding: 3rem 0 !important;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: 0.2rem; }
.strip-num {
  font-family: "Iowan Old Style", Baskerville, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.strip-lbl {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 720px) {
  .strip-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.5rem; }
}
@media (max-width: 420px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Section defaults ────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 0.85rem;
  max-width: 820px;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 720px;
  margin-bottom: 3rem;
}

/* ─── Features ────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
/* Rune glyphs — Elder Futhark, Noto Sans Runic fallbacks.
   Size bumped so the runic strokes read clearly on the gold tint. */
.feature-icon--rune {
  font-family: "Noto Sans Runic", "Segoe UI Symbol", "Apple Symbols", system-ui, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--fg-muted); font-size: 0.96rem; }

/* ─── Comparison table ────────────────────────────────────────────── */
.comparison { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.compare-scroll { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--fg-strong);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table tbody th {
  color: var(--fg-muted);
  font-weight: 500;
  width: 12rem;
  background: var(--bg-soft);
}
.compare-table td:last-child { color: var(--fg-strong); }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }

/* ─── Surfaces ────────────────────────────────────────────────────── */
.surfaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.surface-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 140ms ease;
}
.surface-card:hover { border-color: var(--accent); }
.surface-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.surface-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.surface-card p { color: var(--fg-muted); font-size: 0.92rem; }
.surface-card code { color: var(--fg-strong); background: var(--bg-elev); padding: 0.1rem 0.4rem; border-radius: 4px; }

/* ─── Install section ─────────────────────────────────────────────── */
.install-section { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.install-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.install-method {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.install-method-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.install-method-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.install-method h3 { font-size: 1.1rem; margin: 0; }
.install-method pre { margin-bottom: 0.9rem; }
.install-method p { color: var(--fg-muted); font-size: 0.92rem; }

.install-sub { font-size: 1.15rem; margin-bottom: 0.75rem; }
.install-note { color: var(--fg-muted); margin: 1.5rem 0 0.75rem; }

pre {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  overflow-x: auto;
  color: var(--fg-strong);
  margin: 0.5rem 0;
  line-height: 1.5;
}
pre code { color: inherit; }
.cmt { color: var(--fg-muted); font-style: italic; }

/* ─── Pricing ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.75rem;
}
.price-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}
.price-card-emphasis {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}
.price-num {
  font-family: "Iowan Old Style", Baskerville, serif;
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.price-card li {
  padding: 0.45rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--fg);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.96rem;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--accent);
  font-weight: 700;
}
.pricing-fineprint { color: var(--fg-muted); font-size: 0.92rem; text-align: center; }

/* ─── CTA band ────────────────────────────────────────────────────── */
.cta-band {
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.5rem; }
.cta-band p { color: var(--fg-muted); max-width: 540px; margin: 0 auto 1.75rem; font-size: 1.05rem; }
.cta-band-inner .hero-ctas { justify-content: center; }

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-soft);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 3rem;
}
.footer-brand .logo { margin-bottom: 0.8rem; }
.footer-tag { color: var(--fg-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.soul-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  color: var(--fg-muted);
  font-style: italic;
  font-size: 0.9rem;
  max-width: 420px;
}
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  color: var(--fg);
  font-size: 0.94rem;
}
.footer-col a:hover { color: var(--accent); }

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.footer-stack { font-family: "SF Mono", Menlo, monospace; font-size: 0.8rem; }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
  main > section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 2.5rem !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .install-line { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .install-line code { white-space: pre-wrap; word-break: break-all; }
  .copy-btn { align-self: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 1.1rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .hero-title-gold { font-size: 1.4rem; }
  .footer-nav { grid-template-columns: 1fr; gap: 1.5rem; }
}
