:root {
  --bg-primary: #0B0F14;
  --bg-secondary: #111821;
  --bg-card: #151D28;
  --bg-card-hover: #1a2533;
  --accent: #F97316;
  --accent-dim: rgba(249, 115, 22, 0.12);
  --accent-glow: rgba(249, 115, 22, 0.25);
  --text-primary: #F4F0E8;
  --text-secondary: #8B9EB0;
  --text-muted: #4A5F73;
  --border: #1E2D3D;
  --border-accent: rgba(249, 115, 22, 0.25);
}

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

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Mono', 'Courier New', monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  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 { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { color: var(--accent); font-size: 1.2rem; line-height: 1; }
.logo-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-tag { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* hero */
.hero {
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 5rem;
}
.hero-left { display: flex; flex-direction: column; gap: 2rem; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-stat-div { width: 1px; height: 32px; background: var(--border); }

/* forge viz */
.hero-right { display: flex; justify-content: center; align-items: center; }
.forge-viz {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forge-chamber {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(249,115,22,0.05) 0%, transparent 70%);
}
.forge-flames {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}
.flame {
  background: linear-gradient(to top, #F97316, #FB923C, #FDBA74, transparent);
  border-radius: 3px 3px 50% 50%;
  animation: flicker 1.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
  opacity: 0.85;
}
.f1 { width: 22px; height: 80px; animation-delay: 0s; }
.f2 { width: 28px; height: 110px; animation-delay: 0.3s; }
.f3 { width: 24px; height: 130px; animation-delay: 0.1s; }
.f4 { width: 28px; height: 95px; animation-delay: 0.5s; }
.f5 { width: 18px; height: 70px; animation-delay: 0.2s; }
@keyframes flicker {
  0% { transform: scaleY(1) scaleX(1) rotate(-1deg); }
  50% { transform: scaleY(0.85) scaleX(1.1) rotate(1deg); }
  100% { transform: scaleY(1.1) scaleX(0.95) rotate(-0.5deg); }
}
.forge-heat {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 60%);
  animation: heat-pulse 2s ease-in-out infinite;
}
@keyframes heat-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.forge-labels { position: absolute; inset: 0; }
.forge-label {
  position: absolute;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
}
.l1 { top: 15px; left: 50%; transform: translateX(-50%); }
.l2 { top: 50%; right: -10px; transform: translateY(-50%); }
.l3 { bottom: 15px; left: 50%; transform: translateX(-50%); }
.l4 { top: 50%; left: -10px; transform: translateY(-50%); }
.forge-core {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.core-inner { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.core-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: core-pulse 1.5s ease-in-out infinite;
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
}
.core-text {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
}

/* hero bottom bar */
.hero-bottom-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* features */
.features {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.features-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  max-width: 600px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-card); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 0.85rem; line-height: 1.65; color: var(--text-secondary); }

/* agent section */
.agent-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.agent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.agent-display { display: flex; justify-content: flex-end; }
.agent-terminal {
  width: 100%;
  max-width: 380px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.terminal-bar {
  background: var(--bg-card);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.tb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.tb-title { font-size: 0.7rem; color: var(--text-muted); margin-left: 0.5rem; }
.terminal-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.tlog { display: flex; gap: 0.8rem; align-items: baseline; }
.tlog-time { font-size: 0.65rem; color: var(--text-muted); min-width: 36px; }
.tlog-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.tlog1 .tlog-text { color: var(--text-muted); }
.tlog2 .tlog-text { color: var(--text-secondary); }
.tlog3 .tlog-text { color: var(--text-primary); }
.tlog4 .tlog-text { color: var(--accent); }
.tlog5 .tlog-text { color: var(--text-muted); font-style: italic; }
.agent-right { display: flex; flex-direction: column; gap: 1.5rem; }
.agent-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); }
.agent-proof { display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.proof-row { display: flex; align-items: baseline; gap: 1rem; }
.proof-stat { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.proof-text { font-size: 0.8rem; color: var(--text-muted); }

/* manifesto */
.manifesto {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(249,115,22,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.manifesto-inner { max-width: 900px; margin: 0 auto; padding: 0 2rem; position: relative; }
.manifesto-mark { font-size: 1.5rem; color: var(--accent); margin-bottom: 2.5rem; }
.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-style: normal;
  border: none;
}
.manifesto-attr { font-size: 0.75rem; color: var(--text-muted); margin-top: 2rem; letter-spacing: 0.1em; }

/* vision */
.vision {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.vision-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.vision-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.vision-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 700px;
  margin-bottom: 2rem;
}
.vision-body { font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary); max-width: 640px; margin-bottom: 1.5rem; }

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-mark { color: var(--accent); font-size: 1rem; }
.footer-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; }
.footer-tagline { font-size: 0.75rem; color: var(--text-muted); }

/* lead capture form */
.lead-capture { margin-top: 2rem; }
.lead-capture-inner { display: flex; flex-direction: column; gap: 0.75rem; }
.lead-capture-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.lead-capture-sub { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.lead-form { display: flex; gap: 0.5rem; }
.lead-input { flex: 1; font-family: 'DM Mono', monospace; font-size: 0.8rem; padding: 0.75rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); outline: none; transition: border-color 0.2s; }
.lead-input:focus { border-color: var(--accent); }
.lead-input::placeholder { color: var(--text-muted); }
.lead-btn { font-family: 'DM Mono', monospace; font-size: 0.8rem; padding: 0.75rem 1.25rem; background: var(--accent); color: #000; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.lead-btn:hover { background: #fb923c; }
.lead-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-success { font-size: 0.8rem; color: #22c55e; padding: 0.5rem 0; }
.lead-error { font-size: 0.75rem; color: #ef4444; }

/* hero testimonials */
.hero-testimonials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.hero-testimonial {
  border-left: 2px solid var(--border-accent);
  padding: 0.6rem 1rem;
  background: var(--accent-dim);
}
.testimonial-quote {
  display: block;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.35rem;
}
.testimonial-attr {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .forge-viz { width: 240px; height: 240px; }
  .forge-chamber { width: 160px; height: 160px; }
  .f1 { width: 14px; height: 50px; }
  .f2 { width: 18px; height: 70px; }
  .f3 { width: 16px; height: 85px; }
  .f4 { width: 18px; height: 60px; }
  .f5 { width: 12px; height: 45px; }
  .forge-labels .forge-label { font-size: 0.55rem; }
  .hero-stat-row { flex-wrap: wrap; }
  .hero-stat-div { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .agent-inner { grid-template-columns: 1fr; gap: 3rem; }
  .agent-display { justify-content: flex-start; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .lead-capture { margin-top: 2rem; }
  .lead-form { flex-direction: column; gap: 0.5rem; }
  .lead-input { width: 100%; }
}