/* ============================================================
   NessForge — main.css
   ============================================================ */

/* 1. Design tokens */
:root {
  --bg:             #080d1a;
  --bg-surface:     #0c1225;
  --bg-card:        #111a35;
  --border:         #1b2a48;
  --border-subtle:  #12203c;
  --accent:         #4f7ef8;
  --accent-hover:   #3b6bdf;
  --accent-dim:     rgba(79, 126, 248, 0.1);
  --accent-glow:    rgba(79, 126, 248, 0.14);
  --cyan:           #2dd4bf;
  --text:           #dce8f7;
  --text-muted:     #8098b8;
  --text-dim:       #4e6285;
  --success:        #22c55e;
  --error:          #ef4444;
  --warning:        #f59e0b;
  --font-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:      "SF Mono", "Cascadia Code", "Fira Code", Consolas, "Courier New", monospace;
  --radius:         6px;
  --radius-lg:      10px;
  --shadow:         0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  --nav-h:          64px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 600; color: var(--text); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* 3. Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* 4. Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section     { padding: 5rem 0; }
.section-sm  { padding: 3rem 0; }
.section-lg  { padding: 7rem 0; }
.section-alt { background: var(--bg-surface); }
.section-border-top { border-top: 1px solid var(--border-subtle); }

/* 5. Typography */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}
.section-sub.wide { max-width: 740px; }

.prose {
  font-size: 1.0rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.prose p { margin-bottom: 1.25em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-mono   { font-family: var(--font-mono); }
.text-center { text-align: center; }
.text-cyan   { color: var(--cyan); }
.text-accent { color: var(--accent); }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(79, 126, 248, 0.09);
  color: var(--cyan);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid rgba(79, 126, 248, 0.15);
}
pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

/* 6. Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.14s, background 0.14s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--accent-dim);
  text-decoration: none;
}
.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  padding: 0.4rem 1rem;
  margin-left: 0.5rem;
}
.nav-links a.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}
.nav-links a.nav-cta.is-active {
  background: var(--accent-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.25rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.65rem 1rem; }
  .nav-links a.nav-cta { text-align: center; margin: 0.25rem 0 0; }
}

/* 7. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); background: var(--accent-dim); }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.875rem; }
.btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 8. Hero */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,126,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,126,248,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 520px;
  background: radial-gradient(ellipse at top, rgba(79,126,248,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(45,212,191,0.07);
  border: 1px solid rgba(45,212,191,0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}
.hero-title {
  font-size: clamp(2.125rem, 5.5vw, 3.625rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.175rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 610px;
  margin: 0 auto 2.25rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* 9. Terminal */
.terminal {
  background: #050810;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79,126,248,0.05);
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
  padding-right: 1.5rem;
}
.terminal-body { padding: 1.25rem 1.5rem; overflow-x: auto; }
.terminal-body code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre;
  display: block;
}
.t-cmd    { color: var(--text); }
.t-ok     { color: #28c840; }
.t-err    { color: #ff5f57; }
.t-warn   { color: var(--warning); }
.t-accent { color: var(--accent); }
.t-cyan   { color: var(--cyan); }
.t-dim    { color: var(--text-dim); }

/* 10. Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.card-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 11. Steps */
.steps {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step:last-child::before { display: none; }
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.step-content { padding-top: 0.5rem; }
.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.step-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 12. Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-blue  { background: rgba(79,126,248,0.1);  color: var(--accent); border: 1px solid rgba(79,126,248,0.22); }
.badge-cyan  { background: rgba(45,212,191,0.09); color: var(--cyan);   border: 1px solid rgba(45,212,191,0.2);  }
.badge-green { background: rgba(34,197,94,0.09);  color: var(--success); border: 1px solid rgba(34,197,94,0.2);  }

/* 13. Quote / Social proof */
.quote-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.75rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}
.quote-text {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.875rem;
  font-style: italic;
}
.quote-attr {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem 3.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.logo-placeholder {
  height: 22px;
  border-radius: 3px;
  background: var(--border);
  opacity: 0.4;
}

/* 14. Role sections (product page) */
.role-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  background: var(--bg-card);
}
.role-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.role-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.875rem;
}
.role-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 15. Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1rem;
}
.tech-item {
  padding: 1.125rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tech-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.tech-value {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 16. FAQ */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.faq-a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 17. Post cards (updates) */
.post-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--bg-card);
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.post-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 18. Forms */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.form-label.required::after { content: ' *'; color: var(--error); }
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,126,248,0.14);
}
.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error { border-color: var(--error); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234e6285' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: var(--bg-card); color: var(--text); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error {
  font-size: 0.8rem;
  color: var(--error);
  display: none;
}
.form-error.visible { display: block; }
.form-note { font-size: 0.8125rem; color: var(--text-dim); line-height: 1.55; }
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  display: none;
}
.alert.visible { display: block; }
.alert-success {
  background: rgba(34,197,94,0.09);
  border: 1px solid rgba(34,197,94,0.22);
  color: var(--success);
  line-height: 1.6;
}

/* 19. Team (about page) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.team-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 1rem;
}
.team-name  { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.team-role  { font-size: 0.8125rem; color: var(--text-muted); }

/* 20. Principles (about page) */
.principles-list { display: flex; flex-direction: column; gap: 1.25rem; }
.principle {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1.3;
  min-width: 1.75rem;
}
.principle-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.principle-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 21. Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-info-item {
  margin-bottom: 1.5rem;
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.contact-info-value {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.contact-info-value a {
  color: var(--text-muted);
}
.contact-info-value a:hover { color: var(--accent); }

/* 22. Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.875rem; color: var(--text-dim); line-height: 1.6; }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-col ul a:hover { color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* 23. CTA section */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 320px;
  background: radial-gradient(ellipse at bottom, rgba(79,126,248,0.09) 0%, transparent 68%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 0.875rem;
}
.cta-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* 24. Early Access page */
.ea-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  text-align: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.form-card-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.ea-includes { display: flex; flex-direction: column; gap: 0.75rem; }
.ea-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.ea-check {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--success);
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.ea-item-text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* 25. Stack diagram (how-it-works page) */
.stack-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 580px;
  margin: 2rem auto;
}
.stack-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.stack-row:last-child { margin-bottom: 0; }
.stack-row.yours {
  background: rgba(79,126,248,0.06);
  border: 1px solid rgba(79,126,248,0.14);
}
.stack-row.ness {
  background: rgba(45,212,191,0.05);
  border: 1px solid rgba(45,212,191,0.14);
}
.stack-label { font-family: var(--font-mono); font-size: 0.67rem; color: var(--text-dim); min-width: 70px; }
.stack-name  { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.stack-tag   { font-family: var(--font-mono); font-size: 0.67rem; }

/* 26. Feat list */
.feat-list { display: flex; flex-direction: column; gap: 0.625rem; }
.feat-item { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.9375rem; color: var(--text-muted); }
.feat-check { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--success); flex-shrink: 0; }
.feat-item strong { color: var(--text); }

/* 27. Utilities */
.mt-2  { margin-top: 0.5rem;  }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem;    }
.mt-6  { margin-top: 1.5rem;  }
.mt-8  { margin-top: 2rem;    }
.mt-10 { margin-top: 2.5rem;  }
.mt-12 { margin-top: 3rem;    }
.mb-2  { margin-bottom: 0.5rem;  }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem;    }
.mb-6  { margin-bottom: 1.5rem;  }
.mb-8  { margin-bottom: 2rem;    }
.mb-10 { margin-bottom: 2.5rem;  }
.flex         { display: flex; }
.items-center { align-items: center; }
.gap-2        { gap: 0.5rem;  }
.gap-3        { gap: 0.75rem; }
.gap-4        { gap: 1rem;    }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 28. Page hero variants (non-home pages) */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.page-hero .section-title { margin-bottom: 0.875rem; }

/* 29. Dividers */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* 30. Responsive type */
@media (max-width: 640px) {
  .section    { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }
  .hero { padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem; }
  .hero-actions { gap: 0.625rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
