/* ─── Brand Design Tokens ─── */
:root {
  --void: #08080c;
  --surface-0: #0e0e14;
  --surface-1: #14141e;
  --surface-2: #1a1a28;
  --surface-3: #222234;
  --border: #2a2a3e;
  --border-bright: #3a3a52;

  --text-primary: #e8e6f0;
  --text-secondary: #9594a8;
  --text-tertiary: #5e5d72;

  --override: #f0a030;
  --override-bright: #ffc04a;
  --override-dim: #c07820;
  --override-glow: rgba(240, 160, 48, 0.15);
  --override-glow-strong: rgba(240, 160, 48, 0.3);

  --success: #38c878;
  --danger: #e84040;
  --info: #4890e8;
}

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

/* ─── Base ─── */
body {
  background: var(--void);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: var(--override);
  text-decoration: none;
}

a:hover { color: var(--override-bright); }

img { max-width: 100%; height: auto; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.site-logo img {
  width: 28px;
  height: 28px;
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark .accent {
  color: var(--override);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-primary);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-decoration: none;
}

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

.footer-attr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--override-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--override);
  border: 1px solid var(--override-dim);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  background: var(--override-glow);
}

.hero-wordmark {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

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

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-tagline em {
  color: var(--override-bright);
  font-style: normal;
  font-weight: 500;
}

.cta-btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  background: var(--override);
  color: var(--void);
  text-decoration: none;
  transition: background 0.15s;
}

.cta-btn:hover {
  background: var(--override-bright);
  color: var(--void);
}

.cta-btn-secondary {
  background: transparent;
  color: var(--override);
  border: 1px solid var(--override-dim);
}

.cta-btn-secondary:hover {
  background: var(--override-glow);
  color: var(--override-bright);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Features ─── */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ─── Content Pages ─── */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.content-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-page p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-page ul, .content-page ol {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-page a {
  color: var(--override);
}

.content-page a:hover {
  color: var(--override-bright);
}

/* ─── List Items ─── */
.list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.list-item h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.list-item h2 a {
  color: var(--text-primary);
}

.list-item h2 a:hover {
  color: var(--override);
}

.list-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ─── Blog ─── */
.blog-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.blog-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-list-item h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.blog-list-item h2 a {
  color: var(--text-primary);
}

.blog-list-item h2 a:hover {
  color: var(--override);
}

.blog-list-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item summary {
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item summary::before {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: var(--override);
  flex-shrink: 0;
  width: 1.2rem;
}

.faq-item[open] summary::before {
  content: '\2212';
}

.faq-answer {
  padding: 0.75rem 0 0.5rem 1.7rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .site-nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: 50vh;
    padding: 3rem 1.25rem;
  }

  .hero-wordmark {
    font-size: 2.5rem;
  }

  .features {
    padding: 2rem 1.25rem;
  }

  .content-page {
    padding: 2rem 1.25rem;
  }
}
