/* ========================
   WRD — AI Changelog Agent
   Design: Syne + IBM Plex Mono
   Palette: near-black #09090b / lime #b5ff2e / warm gray #6b7280
   ======================== */

:root {
  --bg: #09090b;
  --bg-alt: #0f1117;
  --bg-card: #13161f;
  --fg: #f4f4f0;
  --fg-muted: #6b7280;
  --fg-subtle: #4b5563;
  --accent: #b5ff2e;
  --accent-dim: rgba(181, 255, 46, 0.12);
  --accent-glow: rgba(181, 255, 46, 0.08);
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(181, 255, 46, 0.3);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-mark { color: var(--fg); }
.logo-d { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181,255,46,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.hero-headline br { display: block; }
.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.hero-meta strong { color: var(--fg); font-weight: 500; }
.hero-divider { color: var(--fg-subtle); }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #09090b;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--fg); border-color: rgba(255,255,255,0.15); }

/* ---- HERO CODE PANEL ---- */
.hero-code-panel {
  position: relative;
}
.code-panel-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.code-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code-panel-section { padding: 1.25rem; }
.code-panel-section + .code-panel-section {
  border-top: 1px solid var(--border);
}
.code-panel-label-inline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  display: block;
}
.code-block {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-panel-arrow {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.prose-block { display: flex; flex-direction: column; gap: 0.875rem; }
.prose-entry { display: flex; flex-direction: column; gap: 0.25rem; }
.prose-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.prose-entry p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- DEMONSTRATION ---- */
.demonstration {
  padding: 100px 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-headline {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 4rem;
  max-width: 560px;
}
.demo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.demo-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--fg-subtle);
  line-height: 1;
  letter-spacing: -0.03em;
}
.step-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.step-content p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.demo-code { margin-top: 1rem; }
.demo-code-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
}
.demo-code-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.demo-code-block {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.8;
  white-space: pre;
}
.token-comment { color: var(--fg-subtle); }
.token-keyword { color: var(--accent); }
.token-string { color: #a5d6ff; }

/* ---- FEATURES ---- */
.features {
  padding: 100px 2rem;
  background: var(--bg);
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
}
.feature-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-alt); }
.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- PHILOSOPHY ---- */
.philosophy {
  padding: 100px 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.philosophy-inner { max-width: 1200px; margin: 0 auto; }
.philosophy-headline {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 3rem;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
}
.philosophy-stat {
  background: var(--bg-card);
  padding: 2rem;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.stat-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.philosophy-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin-bottom: 3rem;
}
.philosophy-copy p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.75;
}
.philosophy-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  max-width: 600px;
}
.philosophy-quote blockquote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 2rem 120px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.closing-bg-glow {
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(181,255,46,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.closing-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 700px;
}
.closing-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 4rem;
}
.closing-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.closing-product-name {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.04em;
}
.closing-product-name span { color: var(--accent); }
.closing-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.closing-link-primary {
  background: var(--accent);
  color: #09090b;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.closing-link-primary:hover { opacity: 0.88; }
.closing-link-secondary {
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s;
}
.closing-link-secondary:hover { color: var(--fg); }
.closing-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--fg-muted);
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-code-panel { display: none; }
  .demo-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding-top: 80px; }
  .section-headline { margin-bottom: 2rem; }
}