/* === BASE === */
:root {
  --bg: #0B1120;
  --bg-2: #111827;
  --bg-card: #1a2235;
  --fg: #e8edf5;
  --fg-muted: #8899aa;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(255,255,255,0.07);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === SHARED BUTTONS === */
.btn-accent {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--accent);
  color: #0B1120;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.btn-accent:hover { opacity: 0.88; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: transparent;
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.05); }

/* === NAV === */
.nav {
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* === HERO === */
.hero {
  padding: 80px 40px 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.hero-authors {
  display: flex;
  gap: 12px;
}
.author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 16px 8px 8px;
}
.author-initial {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.author-name {
  font-weight: 600;
  font-size: 14px;
}
.author-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}

/* Format Stack */
.format-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s;
}
.format-card:hover {
  border-color: rgba(245,158,11,0.25);
}
.format-card--primary {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,158,11,0.04) 100%);
}
.format-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.format-type {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 3px;
}
.format-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* === FORMATS === */
.formats {
  padding: 80px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.formats-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 60px;
  align-items: start;
}
.format-divider {
  background: var(--border);
  align-self: stretch;
}
.format-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 500;
  color: var(--accent-dim);
  margin-bottom: 16px;
  line-height: 1;
}
.format-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--fg);
}
.format-body {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}
.format-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.format-features li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
}
.format-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* === APPROACH === */
.approach {
  padding: 100px 40px;
  background: var(--bg);
}
.approach-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.approach-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 600px;
}
.approach-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 60px;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.approach-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.approach-icon {
  color: var(--accent);
  margin-bottom: 16px;
}
.approach-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.approach-card-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === LIBRARY === */
.library {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.library-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.library-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.library-sub {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.65;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.library-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.library-card:hover {
  border-color: rgba(245,158,11,0.2);
}
.library-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,158,11,0.03) 100%);
  border-color: rgba(245,158,11,0.2);
}
.library-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.library-card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.library-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.library-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

/* === CLOSING === */
.closing {
  padding: 120px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.closing-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-statement {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* === FOOTER === */
.footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.footer-logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  flex: 1;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .format-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .library-card--featured { grid-column: span 2; }
  .formats-grid { grid-template-columns: 1fr; gap: 48px; }
  .format-divider { display: none; }
  .footer-inner { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 600px) {
  .hero, .formats, .approach, .library, .closing, .footer, .nav {
    padding-left: 20px;
    padding-right: 20px;
  }
  .format-stack { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .library-card--featured { grid-column: span 1; }
  .hero-headline { font-size: 42px; }
}