/* ============================================
   DressClaw — Elite Open Source Landing
   Dark theme, frontier-grade design
   ============================================ */

/* Hide Vercel Toolbar (preview/collaboration UI) */
vercel-live-feedback,
[data-vercel-toolbar],
#__vercel_live_feedback,
.__vercel-toolbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

:root {
  --bg: #08080a;
  --bg-elevated: #0f0f12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #e8e6e3;
  --text-secondary: #8a8784;
  --text-tertiary: #5a5856;
  --accent: #ff4d2d;
  --accent-soft: rgba(255, 77, 45, 0.12);
  --accent-glow: rgba(255, 77, 45, 0.25);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --mono: 'JetBrains Mono', monospace;
  --display: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
  --content: 1080px;
  --page-gutter: clamp(20px, 4vw, 36px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Noise overlay ---- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ---- Gradient orbs ---- */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gradient-orb--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 77, 45, 0.15), transparent 70%);
}

.gradient-orb--2 {
  width: 500px;
  height: 500px;
  top: 30%;
  right: -150px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08), transparent 70%);
}

.gradient-orb--3 {
  width: 700px;
  height: 700px;
  bottom: -200px;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 77, 45, 0.08), transparent 70%);
}

/* ---- Grid pattern ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.5), transparent 70%);
}

/* ---- Topbar ---- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--page-gutter);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(8, 8, 10, 0.75);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff7b5a);
  color: white;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar-links a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.topbar-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.topbar-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--surface-hover) !important;
  border: 1px solid var(--border-strong);
  margin-left: 8px;
}

.topbar-cta:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Label / Eyebrow ---- */
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 45, 0.15);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ff7040);
  color: white;
  box-shadow: 0 0 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 0.96rem;
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px var(--page-gutter) 80px;
}

.hero-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-line {
  display: block;
}

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

.hero-lead {
  margin-top: 16px;
  max-width: 50ch;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-terminal {
  min-width: 0;
  overflow: hidden;
}

/* ---- Terminal ---- */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px -12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 77, 45, 0.04);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots span:first-child { background: rgba(255, 95, 87, 0.7); border-color: rgba(255, 95, 87, 0.3); }
.terminal-dots span:nth-child(2) { background: rgba(255, 189, 46, 0.7); border-color: rgba(255, 189, 46, 0.3); }
.terminal-dots span:nth-child(3) { background: rgba(40, 200, 64, 0.7); border-color: rgba(40, 200, 64, 0.3); }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.terminal-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  overflow: hidden;
}

.terminal-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.t-blank { height: 10px; }
.t-indent { padding-left: 20px; }
.t-prompt { color: var(--accent); font-weight: 600; }
.t-cmd { color: var(--text); }
.t-dir { color: #70a5fd; font-weight: 500; }
.t-file { color: var(--text-secondary); }
.t-ok { color: var(--green); font-weight: 600; }
.t-result { color: var(--text-secondary); }
.t-accent { color: var(--accent); font-weight: 600; }

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1.2s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   BANNER
   ============================================ */
.banner {
  position: relative;
  z-index: 1;
  margin: 0 var(--page-gutter);
}

.banner-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 77, 45, 0.08), rgba(52, 211, 153, 0.04));
  border: 1px solid rgba(255, 77, 45, 0.1);
}

.banner-inner p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
}

.banner-inner strong {
  color: var(--accent);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 100px var(--page-gutter);
}

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

.section-header {
  margin-bottom: 56px;
}

.section-header .label {
  margin-bottom: 16px;
}

.section-header h2 {
  color: var(--text);
}

/* ---- Feature cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 0 32px rgba(255, 77, 45, 0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid rgba(255, 77, 45, 0.12);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

/* ---- Emphasis section ---- */
.section--emphasis {
  background: linear-gradient(180deg, rgba(255, 77, 45, 0.02), transparent);
}

.section--emphasis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 45, 0.3), transparent);
}

/* ---- Standard grid ---- */
.standard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}

.standard-copy p {
  margin-bottom: 16px;
}

/* ---- Stack visualization ---- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stack-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: border-color 0.2s, transform 0.2s;
}

.stack-layer:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.stack-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  min-width: 20px;
}

.stack-layer--accent {
  background: linear-gradient(135deg, rgba(255, 77, 45, 0.1), rgba(255, 112, 64, 0.06));
  border-color: rgba(255, 77, 45, 0.2);
  color: var(--accent);
  font-weight: 700;
}

.stack-layer--accent .stack-num {
  color: var(--accent);
}

/* ---- Trait cards ---- */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trait-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.trait-card:hover {
  border-color: rgba(255, 77, 45, 0.2);
}

.trait-marker {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 18px;
}

.trait-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

/* ---- Code block ---- */
.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
}

.code-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.code-lang {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.code-copy, .code-copy-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 0.68rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.code-copy:hover, .code-copy-sm:hover {
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

code {
  font-family: var(--mono);
}

.c-comment { color: var(--text-tertiary); }
.c-key { color: #70a5fd; }
.c-str { color: var(--green); }

/* ---- File tree ---- */
.file-tree {
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.file-tree-header {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.tree-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.tree-indent { padding-left: 20px; }
.tree-indent-2 { padding-left: 40px; }

.tree-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 3px;
}

.tree-folder::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: #70a5fd;
  border-radius: 3px;
  opacity: 0.5;
}

.tree-file::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: var(--text-tertiary);
  border-radius: 3px;
  opacity: 0.3;
}

/* ============================================
   ARCHITECTURE
   ============================================ */
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px 24px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  min-width: 160px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.arch-node:hover {
  border-color: rgba(255, 77, 45, 0.2);
  box-shadow: 0 0 20px rgba(255, 77, 45, 0.06);
}

.arch-node--external {
  border-style: dashed;
  opacity: 0.6;
}

.arch-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.arch-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.arch-connector {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--accent), var(--border-strong));
  position: relative;
}

.arch-line::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.arch-desc {
  margin-bottom: 40px;
}

.arch-desc p {
  max-width: 72ch;
  font-size: 1.02rem;
}

.arch-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.arch-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.arch-card:hover {
  border-color: var(--border-strong);
}

.arch-card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.arch-card h3 {
  margin: 8px 0;
  color: var(--text);
}

/* ============================================
   VALUE PROPS
   ============================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.value-card:hover {
  border-color: var(--border-strong);
}

.value-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-hover);
  color: var(--text-secondary);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.value-card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

/* ============================================
   COMMUNITY
   ============================================ */
.section--dark {
  background: linear-gradient(180deg, var(--bg), var(--bg-elevated));
}

.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.community-copy p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.manifesto {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 77, 45, 0.06), var(--surface));
  border: 1px solid rgba(255, 77, 45, 0.12);
}

.manifesto-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.manifesto-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.manifesto-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}

.manifesto-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 20px;
}

/* ============================================
   TIMELINE / ROADMAP
   ============================================ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-track {
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border), transparent);
}

.timeline-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  margin-top: 4px;
  margin-left: 18px;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.timeline-phase {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-content h3 {
  margin: 6px 0 8px;
  color: var(--text);
}

/* ============================================
   CTA
   ============================================ */
.section--cta {
  text-align: center;
  padding: 100px var(--page-gutter);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 77, 45, 0.06), transparent 60%);
}

.section--cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--content));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 45, 0.3), transparent);
}

.cta-content .label {
  margin-bottom: 20px;
}

.cta-content h2 {
  margin: 0 auto 20px;
  max-width: 14ch;
}

.cta-lead {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 1.08rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.cta-install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}

.cta-install code {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.code-copy-sm {
  padding: 4px 6px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 64px var(--page-gutter) 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
}

.footer-brand .brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--content);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.lang-chevron {
  transition: transform 0.2s;
}

.lang-dropdown.open + .lang-btn .lang-chevron,
.lang-btn:focus .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.lang-option:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.lang-option.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-flag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.lang-option.active .lang-flag {
  background: rgba(255, 77, 45, 0.15);
  border-color: rgba(255, 77, 45, 0.2);
  color: var(--accent);
}

/* ============================================
   HAMBURGER BUTTON
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hamburger:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 999px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   DRAWER (Mobile Nav)
   ============================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-strong);
  z-index: 160;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header .brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.drawer-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.drawer-link:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-section-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-lang {
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.drawer-lang:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.drawer-lang.active {
  background: var(--accent-soft);
  border-color: rgba(255, 77, 45, 0.25);
  color: var(--accent);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .topbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner,
  .standard-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .trait-grid {
    grid-template-columns: 1fr;
  }

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

  .arch-flow {
    flex-direction: column;
  }

  .arch-connector {
    width: auto;
    height: 32px;
  }

  .arch-line {
    width: 1px;
    height: 100%;
  }

  .arch-line::after {
    right: -3px;
    top: auto;
    bottom: -3px;
    transform: rotate(45deg);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px var(--page-gutter) 64px;
  }

  .section {
    padding: 72px var(--page-gutter);
  }

  .lang-switcher {
    display: none;
  }

  .value-grid,
  .arch-cards {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .arch-node {
    min-width: unset;
    width: 100%;
    padding: 18px;
  }
}
