/* ═══════════════════════════════════════════════
   Arcline Project — Fedora-inspired Stylesheet
   ═══════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
/* Dark mode is the default */
:root {
  /* Colors — tactical near-black, cool cast */
  --color-bg:            #08090d;
  --color-bg-alt:        #0d1016;
  --color-bg-card:       #0f1219;
  --color-bg-card-hover: #151b26;
  --color-bg-dark:       #05060a;

  --color-border:        #202634;
  --color-border-hover:  #2e3748;
  --color-border-light:  #141923;

  --color-text:          #e8ecf2;
  --color-text-soft:     #8b93a4;
  --color-text-faint:    #5e6879;
  --color-text-inverse:  #e8ecf2;

  /* Amber / alert accent */
  --color-accent:        #fbbf24;
  --color-accent-dim:    #f59e0b;
  --color-accent-bg:     hsla(48 97% 55% / 0.09);
  --color-accent-border: hsla(48 97% 55% / 0.26);

  --color-cta-text:      #191204;

  --color-nav-bg:        rgba(8, 9, 13, 0.88);
  --color-hero-grid:     hsla(223 30% 70% / 0.05);
  --color-hero-glow:     hsla(48 97% 55% / 0.10);
  --color-hero-gradient: linear-gradient(180deg, #08090d 0%, #0d1016 55%, #08090d 100%);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", monospace;

  /* Spacing */
  --w-main:      1120px;
  --w-narrow:    720px;
  --pad-section: 80px;
  --pad-card:    28px;

  /* Radii — sharp, tactical */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 9px;

  /* Shadows */
  --shadow-card:  0 1px 2px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover: 0 6px 18px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35);
  --shadow-nav:   0 1px 2px rgba(0,0,0,0.5);

  /* Transitions */
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode overrides */
[data-theme="light"] {
  --color-bg:            #f6f7f9;
  --color-bg-alt:        #ebeef2;
  --color-bg-card:       #ffffff;
  --color-bg-card-hover: #f3f5f8;

  --color-border:        #d8dce3;
  --color-border-hover:  #b7bfca;
  --color-border-light:  #e8eaee;

  --color-text:          #171a21;
  --color-text-soft:     #454d5b;
  --color-text-faint:    #717b89;
  --color-text-inverse:  #ffffff;

  --color-accent:        #b45309;
  --color-accent-dim:    #92400e;
  --color-accent-bg:     hsla(34 100% 37% / 0.08);
  --color-accent-border: hsla(34 100% 37% / 0.20);

  --color-cta-text:      #ffffff;

  --color-nav-bg:        rgba(246, 247, 249, 0.9);
  --color-hero-grid:     hsla(222 45% 28% / 0.05);
  --color-hero-glow:     hsla(34 100% 37% / 0.07);
  --color-hero-gradient: linear-gradient(180deg, #f2f4f7 0%, #ffffff 100%);

  --shadow-card:  0 1px 2px rgba(23,31,45,0.05), 0 1px 3px rgba(23,31,45,0.04);
  --shadow-hover: 0 8px 22px rgba(23,31,45,0.10), 0 2px 6px rgba(23,31,45,0.06);
  --shadow-nav:   0 1px 2px rgba(23,31,45,0.05);
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HUD polish: amber selection + focus ring */
::selection {
  background: var(--color-accent);
  color: var(--color-cta-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Skip to Content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--color-accent);
  color: var(--color-cta-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  max-width: var(--w-main);
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1.0rem;
  font-weight: 650;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
}

/* pulsing "live" status dot — HUD detail */
.logo::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: status-pulse 2.6s ease-in-out infinite;
}

.logo-icon {
  flex-shrink: 0;
  border-radius: 4px;
}

.nav nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav nav a {
  color: var(--color-text-soft);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 560;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--ease), background var(--ease);
}

.nav nav a:hover,
.nav nav a:focus-visible {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

/* Current page indicator */
.nav nav a.nav-active {
  color: var(--color-text);
  background: var(--color-bg-alt);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-cta-text) !important;
  font-weight: 640 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--color-accent-dim) !important;
  color: var(--color-cta-text) !important;
}

/* ── Theme Toggle ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
  margin-left: 8px;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

/* Show the sun icon (toggle to light) in dark mode, moon icon (toggle to dark) in light mode */
.theme-icon-dark  { display: none; }
.theme-icon-light { display: block; }

[data-theme="light"] .theme-icon-dark  { display: block; }
[data-theme="light"] .theme-icon-light { display: none; }

/* ── Hero ── */
.hero,
.hero-page {
  position: relative;
  padding: 96px 28px 72px;
  text-align: center;
  background:
    linear-gradient(var(--color-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-hero-grid) 1px, transparent 1px),
    radial-gradient(ellipse 60% 45% at 50% -5%, var(--color-hero-glow), transparent 70%),
    var(--color-hero-gradient);
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
  border-bottom: 1px solid var(--color-border-light);
}

/* Smaller hero variant used on the edition pages */
.hero-page {
  padding: 76px 28px 60px;
}

.hero-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.hero-inner {
  max-width: var(--w-narrow);
  margin: 0 auto;
}

/* terminal-style sigil line above the headline */
.hero-sigil {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dim);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--color-text);
}

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

/* blinking block caret — terminal cue */
.hero-highlight::after {
  content: "";
  display: inline-block;
  width: 0.5ch;
  height: 1.02em;
  margin-left: 5px;
  vertical-align: text-bottom;
  background: var(--color-accent);
  animation: caret-blink 1.15s steps(1) infinite;
}

.tagline {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-cta-text);
  padding: 14px 32px;
  font-size: 0.82rem;
  font-weight: 640;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px hsla(48 97% 55% / 0.22);
}

.cta:hover {
  background: var(--color-accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px hsla(48 97% 55% / 0.32);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-soft);
  padding: 14px 32px;
  font-size: 0.82rem;
  font-weight: 520;
  text-decoration: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.cta-secondary:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  background: var(--color-bg-alt);
}

/* ── Sections ── */
.section {
  padding: var(--pad-section) 28px;
  text-align: center;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.section-inner {
  max-width: var(--w-main);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 620;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  padding: 5px 13px;
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
}

.section-inner h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 720;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
  max-width: 640px;
}

.section-inner h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin: 0 auto 16px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-border);
}

.section-desc {
  color: var(--color-text-soft);
  font-size: 1.02rem;
  max-width: 600px;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── HUD corner brackets (tactical detail) ── */
.edition-card,
.principle,
.stack-card,
.compare-card,
.contribute-card,
.feature-card,
.compliance-callout {
  position: relative;
}

.edition-card::before,
.principle::before,
.stack-card::before,
.compare-card::before,
.contribute-card::before,
.feature-card::before,
.compliance-callout::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--color-accent-border);
  border-left: 2px solid var(--color-accent-border);
  opacity: 0.9;
  transition: border-color var(--ease);
  pointer-events: none;
}

.edition-card::after,
.principle::after,
.stack-card::after,
.compare-card::after,
.contribute-card::after,
.feature-card::after,
.compliance-callout::after {
  content: "";
  position: absolute;
  bottom: 7px;
  right: 7px;
  width: 11px;
  height: 11px;
  border-bottom: 2px solid var(--color-accent-border);
  border-right: 2px solid var(--color-accent-border);
  opacity: 0.9;
  transition: border-color var(--ease);
  pointer-events: none;
}

.edition-card:hover::before,
.principle:hover::before,
.stack-card:hover::before,
.compare-card:hover::before,
.contribute-card:hover::before,
.feature-card:hover::before,
.compliance-callout:hover::before,
.edition-card:hover::after,
.principle:hover::after,
.stack-card:hover::after,
.compare-card:hover::after,
.contribute-card:hover::after,
.feature-card:hover::after,
.compliance-callout:hover::after {
  border-color: var(--color-accent);
}

/* ── Edition Cards ── */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.edition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  text-align: center;
}

.edition-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.edition-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-bg);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--color-accent);
}

.edition-card h3 {
  font-size: 1.12rem;
  font-weight: 680;
  margin-bottom: 10px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.edition-card p {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

.edition-card .card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 0.76rem;
  font-weight: 620;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-btn-primary {
  background: var(--color-accent);
  color: var(--color-cta-text);
}

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

.card-btn-secondary {
  color: var(--color-text-soft);
  border: 1.5px solid var(--color-border);
  background: transparent;
}

.card-btn-secondary:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  background: var(--color-bg-alt);
}

/* ── Edition Switcher (cross-links between edition pages) ── */
.edition-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ── Feature Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease);
  text-align: left;
}

.feature-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-hover);
}

.feature-card h4 {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.84rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* ── Principles Grid ── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.principle {
  display: flex;
  gap: 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease);
  text-align: left;
}

.principle:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-hover);
}

.principle-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.principle h3 {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 640;
  margin-bottom: 5px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.principle p {
  color: var(--color-text-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ── Stack Grid ── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.stack-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease);
  text-align: left;
}

.stack-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-hover);
}

.stack-header {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 22px 24px 10px 24px;
  color: var(--color-accent);
}

.stack-card ul {
  list-style: none;
  padding: 0 24px 24px 24px;
  margin: 0;
}

.stack-card li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--color-text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.stack-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* ── Security Stack ── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.compliance-callout {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: left;
  padding: 22px 28px;
  border: 1px dashed var(--color-accent-border);
  border-radius: var(--radius-md);
  background: var(--color-accent-bg);
}

.compliance-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--color-accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.compliance-callout p {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.compliance-callout strong {
  color: var(--color-text);
  font-weight: 660;
}

.security-note {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* Edition Teaser */
.edition-teaser {
  margin-top: 24px;
  padding: 20px 28px;
  border: 1px dashed var(--color-accent-border);
  border-radius: var(--radius-md);
  background: var(--color-accent-bg);
  text-align: left;
}

.edition-teaser-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--color-accent-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.edition-teaser p {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 700px;
}

.edition-teaser strong {
  color: var(--color-text);
  font-weight: 660;
}

/* ── Compare Grid ── */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.compare-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.compare-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-hover);
}

.compare-highlight {
  border-color: var(--color-accent-border);
  border-width: 2px;
  background: linear-gradient(160deg, var(--color-bg-card) 0%, var(--color-accent-bg) 100%);
}

.compare-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 630;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--color-text-faint);
}

.compare-highlight .compare-label {
  color: var(--color-accent);
}

.compare-desc {
  color: var(--color-text-soft);
  font-size: 0.89rem;
  line-height: 1.6;
}

/* ── Contribute Grid ── */
.contribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contribute-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  text-align: left;
  position: relative;
}

.contribute-card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contribute-card::after {
  content: " →";
  position: absolute;
  right: 24px;
  top: 28px;
  font-family: var(--font-mono);
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--ease), transform var(--ease);
}

.contribute-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.contribute-card span {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.contribute-card small {
  color: var(--color-text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.contribute-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-bg);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}

/* ── Inline Link ── */
.inline-link {
  color: var(--color-accent-dim);
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-accent-border);
  padding-bottom: 1px;
  transition: border-color var(--ease), color var(--ease);
}

.inline-link:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent-dim);
}

/* ── Sponsor ── */
.sponsor-section .section-inner {
  text-align: left;
}

.sponsor-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

.sponsor-desc {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.sponsor-desc strong {
  color: var(--color-text);
  font-weight: 660;
}

.sponsor-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-faint);
  padding: 8px 0;
  border-left: 3px solid var(--color-accent);
  padding-left: 14px;
}

/* ── Waitlist Form ── */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.edition-checkboxes {
  border: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
}

.edition-checkboxes legend {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
  margin-bottom: 10px;
  padding: 0;
  float: left;
  width: 100%;
  text-align: center;
}

.edition-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  user-select: none;
  transition: color var(--ease);
}

.edition-checkbox:hover {
  color: var(--color-text);
}

.edition-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--ease), background var(--ease);
}

.edition-checkbox input[type="checkbox"]:checked {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.edition-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--color-cta-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.input {
  padding: 13px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.input::placeholder {
  color: var(--color-text-faint);
  font-family: var(--font-mono);
}

.input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-bg);
}

.btn {
  padding: 13px 30px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-cta-text);
  font-size: 0.8rem;
  font-weight: 640;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--color-accent-dim);
  transform: translateY(-1px);
}

.confirmation {
  margin-top: 18px;
  padding: 14px 22px;
  color: var(--color-accent-dim);
  background: var(--color-accent-bg);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  font-weight: 520;
  font-size: 0.9rem;
  display: inline-block;
  font-family: var(--font-mono);
}

.waitlist-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

/* ── Footer ── */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: 56px 28px 32px;
}

.footer-grid {
  max-width: var(--w-main);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.footer-col p {
  color: hsla(0 0% 100% / 0.6);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: hsla(0 0% 100% / 0.55);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 650;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-bottom {
  max-width: var(--w-main);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid hsla(0 0% 100% / 0.08);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-mono);
  color: hsla(0 0% 100% / 0.3);
  font-size: 0.76rem;
}

/* ── Keyframes (HUD) ── */
@keyframes caret-blink {
  50% { opacity: 0; }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Responsive ── */
@media (max-width: 920px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  :root {
    --pad-section: 56px;
  }

  .hero,
  .hero-page {
    padding: 60px 22px 50px;
  }

  .section {
    padding: var(--pad-section) 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta,
  .cta-secondary {
    justify-content: center;
    text-align: center;
  }

  .nav nav {
    gap: 0;
  }

  .nav nav a {
    padding: 6px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .editions-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 14px;
    gap: 6px;
  }

  /* keep just the mark below 640px */
  .logo span {
    display: none;
  }

  .nav nav a {
    padding: 6px 7px;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .nav-cta {
    padding: 6px 12px;
    margin-left: 4px;
  }
}

@media (max-width: 580px) {
  .hero,
  .hero-page {
    padding: 44px 18px 36px;
  }

  .hero h1,
  .hero-page h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 42px 18px;
  }

  .section-inner h2 {
    font-size: 1.35rem;
  }

  .nav-inner {
    padding: 0 12px;
    gap: 6px;
  }

  .logo {
    font-size: 0.9rem;
  }

  /* keep just the mark on small phones */
  .logo span {
    display: none;
  }

  .nav nav a {
    padding: 5px 6px;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .nav-cta {
    padding: 6px 10px;
    margin-left: 4px;
  }

  .input {
    min-width: 100%;
  }

  .btn {
    width: 100%;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .contribute-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Very small screens: wrap the nav links onto their own row */
@media (max-width: 540px) {
  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 14px 8px;
    row-gap: 8px;
  }

  .nav nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nav nav a {
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  .theme-toggle {
    margin-left: auto;
  }
}

