:root {
  color-scheme: dark;
  --canvas: #071018;
  --canvas-top: #050d14;
  --canvas-mid: #0a1620;
  --fg: #e8f0f4;
  --fg-secondary: #c5d2db;
  --muted: #8aa0ae;
  --faint: #617687;
  --edge: rgba(148, 178, 196, 0.16);
  --edge-strong: rgba(148, 178, 196, 0.28);
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-fg: #042f2e;
  --glow-a: rgba(45, 212, 191, 0.14);
  --glow-b: rgba(56, 189, 248, 0.1);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font-body);
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 90% 55% at 10% -10%, var(--glow-a), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 0%, var(--glow-b), transparent 50%),
    linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-mid) 45%, var(--canvas) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-word span {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.header-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--fg);
}

@media (max-width: 720px) {
  .header-nav a:not(.ghost) {
    display: none;
  }
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero-atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, var(--glow-a), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, var(--glow-b), transparent 50%);
}

.hero-threads {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 52rem);
  color: rgba(45, 212, 191, 0.3);
}

.hero-threads path,
.hero-threads circle {
  stroke: currentColor;
  fill: none;
}

.hero-threads .thread {
  stroke-width: 1.25;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: thread-draw 2.4s ease-out forwards;
}

.hero-threads .thread-b {
  opacity: 0.7;
  animation-delay: 0.25s;
}

.hero-threads .thread-c {
  opacity: 0.45;
  animation-delay: 0.45s;
}

.hero-threads circle {
  stroke-width: 0.75;
}

@keyframes thread-draw {
  from {
    stroke-dashoffset: 1200;
    opacity: 0.15;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-threads .thread {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-secondary);
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: rise 0.7s ease-out 0.15s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border: 1px solid var(--edge-strong);
  background: rgba(14, 26, 36, 0.4);
  color: var(--fg);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--accent);
}

.section {
  border-top: 1px solid var(--edge);
  padding: 5rem 0;
}

.section h2,
.editions h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.6;
}

.editions-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .editions-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.editions article h2 {
  margin-top: 0.75rem;
}

.editions article p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.or {
  margin: 0;
  align-self: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.text-link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent-hover);
}

.feature-list {
  display: grid;
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list li {
  border-top: 1px solid var(--edge);
  padding-top: 1.25rem;
}

.feature-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-list p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq dl {
  margin: 2.5rem 0 0;
  max-width: 42rem;
}

.faq dl > div + div {
  margin-top: 2rem;
}

.faq dt {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.faq dd {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--edge);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--fg);
}
