/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #070707;
  --bg2: #0e0e0e;
  --bg3: #141414;
  --fg: #f0ebe2;
  --fg-muted: #7a756e;
  --accent: #ff8c42;
  --accent-dim: rgba(255, 140, 66, 0.12);
  --accent-border: rgba(255, 140, 66, 0.25);
  --border: rgba(255,255,255,0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'General Sans', sans-serif;
}

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

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

::selection { background: var(--accent); color: #000; }

/* === TYPOGRAPHY === */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  backdrop-filter: blur(12px);
  background: rgba(7,7,7,0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  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.03'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,140,66,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero-line-1 { color: var(--fg); }
.hero-line-2 { color: var(--fg); }
.hero-line-3 {
  color: var(--accent);
  -webkit-text-stroke: 0px;
}

.hero-sub {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta-block { display: flex; flex-direction: column; gap: 8px; }

.hero-cta-note {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #000;
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  align-self: flex-start;
}

.hero-cta:hover { background: #ffb070; transform: translateY(-1px); }

/* === STUDIO WIDGET === */
.studio-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,140,66,0.08);
}

.studio-header {
  background: #111;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-dots {
  display: flex;
  gap: 6px;
}

.studio-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.studio-dots span:first-child { background: #ff5f57; }
.studio-dots span:nth-child(2) { background: #febc2e; }
.studio-dots span:last-child { background: #28c840; }

.studio-title {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-body);
  flex: 1;
}

.studio-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #28c840;
  background: rgba(40,200,64,0.1);
  border: 1px solid rgba(40,200,64,0.2);
  padding: 3px 8px;
  border-radius: 3px;
}

.studio-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.studio-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.studio-step--active { border-color: var(--accent-border); background: var(--accent-dim); }

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--fg-muted);
}

.studio-step--active .step-icon svg { stroke: var(--accent); }

.step-info { flex: 1; }

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.step-desc {
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.step-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.step-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.step-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

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

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === PIPELINE === */
.pipeline {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.pipeline-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.pipeline-stages {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  gap: 0;
  margin-top: 80px;
  align-items: start;
}

.stage { padding: 24px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; }

.stage-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.stage-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.stage-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.stage-connector {
  display: flex;
  align-items: center;
  padding-top: 60px;
}

.stage-connector svg { width: 48px; height: 48px; }

/* Stage visuals */
.stage-code {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 2;
}

.code-comment { color: #555; }
.code-keyword { color: var(--accent); }
.code-str { color: #aaa; }

.avatar-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg3);
}

.avatar-chip--active {
  border-color: var(--accent-border);
  color: var(--fg);
  background: var(--accent-dim);
}

.avatar-avatar svg { width: 28px; height: 28px; }

.caption-preview {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.caption-line {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.4;
}

.caption-line--large { font-size: 15px; font-weight: 600; }
.caption-line--small { font-size: 11px; color: var(--accent); margin-top: 8px; }

.export-row {
  display: flex;
  gap: 8px;
}

.export-format {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg3);
}

.export-format--active {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

/* === PROOF === */
.proof {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
  margin-bottom: 40px;
}

.proof-card {
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
}

.proof-card--main {
  background: var(--bg3);
}

.proof-card--accent {
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

.proof-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.proof-card--accent .proof-label { color: var(--accent); }

.proof-cost {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--fg);
  margin-bottom: 32px;
  line-height: 1;
}

.proof-card--accent .proof-cost { color: var(--fg); }

.proof-per {
  font-size: 20px;
  font-weight: 400;
  color: var(--fg-muted);
}

.proof-items { display: flex; flex-direction: column; gap: 12px; }

.proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
}

.proof-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.proof-item--no { opacity: 0.5; }
.proof-item--no svg { stroke: #555; }

.proof-item--yes svg { stroke: var(--accent); }
.proof-item--yes { color: var(--fg); }

.proof-note {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 600px;
}

/* === PRINCIPLES === */
.principles {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.principles-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.principle { padding: 32px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; }

.principle-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.principle-icon svg { width: 100%; height: 100%; }

.principle-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.2;
}

.principle-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === CLOSING === */
.closing {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,140,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 12px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
  .hero-visual { order: -1; }
  .hero-headline { font-size: clamp(40px, 8vw, 64px); }
  .pipeline-stages { grid-template-columns: 1fr; gap: 16px; }
  .stage-connector { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .nav { padding: 16px 24px; }
  .hero-inner { padding: 80px 24px; }
  .pipeline-inner, .proof-inner, .principles-inner, .closing-inner, .footer-inner { padding: 0 24px; }
}

@media (max-width: 600px) {
  .hero-stat-row { gap: 16px; }
  .hero-stat-num { font-size: 20px; }
  .proof-cost { font-size: 36px; }
  .proof-card { padding: 28px; }
}
