/* ===== DESIGN TOKENS ===== */
:root {
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --charcoal: #1a1a1a;
  --graphite: #2d2d2d;
  --accent: #64748b;
  --accent-light: #94a3b8;
  --accent-subtle: #f1f5f9;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); color: var(--charcoal); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.navbar.scrolled { border-bottom-color: transparent; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--charcoal); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 0.875rem; font-weight: 400; color: var(--gray-500); transition: color 0.25s var(--ease); }
.nav-link:hover { color: var(--charcoal); }
.nav-link--cta { color: var(--charcoal); font-weight: 500; padding: 6px 16px; border: 1px solid var(--gray-300); border-radius: 6px; transition: all 0.25s var(--ease); }
.nav-link--cta:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--charcoal); transition: all 0.3s var(--ease); }

/* ===== HERO ===== */
.hero { padding: 160px 0 120px; position: relative; overflow: hidden; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 6px 14px; border: 1px solid var(--gray-200); border-radius: 100px; margin-bottom: 24px; }
.hero-title { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--charcoal); margin-bottom: 20px; }
.hero-subtitle { font-size: 1.25rem; font-weight: 400; color: var(--graphite); line-height: 1.5; margin-bottom: 16px; max-width: 520px; }
.hero-description { font-size: 1rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 40px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
#orchestrationCanvas { width: 100%; max-width: 520px; aspect-ratio: 1; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--white)); pointer-events: none; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 500; padding: 12px 28px; border-radius: 8px; transition: all 0.3s var(--ease); letter-spacing: -0.01em; }
.btn--primary { background: var(--charcoal); color: var(--white); }
.btn--primary:hover { background: var(--graphite); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn--secondary { background: transparent; color: var(--charcoal); border: 1px solid var(--gray-300); }
.btn--secondary:hover { border-color: var(--charcoal); transform: translateY(-1px); }
.btn--form { padding: 12px 24px; white-space: nowrap; border-radius: 0 8px 8px 0; }

/* ===== SECTIONS ===== */
.section { padding: 120px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.section-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; color: var(--charcoal); }
.section-subtitle { font-size: 1.0625rem; color: var(--gray-500); line-height: 1.65; }

/* ===== PROBLEM ===== */
.section--problem { background: var(--white); border-top: 1px solid var(--gray-200); }
.problem-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.problem-card { max-width: 360px; flex: 1 1 300px; }
.problem-card { padding: 32px; border: 1px solid var(--gray-200); border-radius: 12px; transition: all 0.35s var(--ease); background: var(--white); }
.problem-card:hover { border-color: var(--gray-300); box-shadow: 0 2px 20px rgba(0,0,0,0.04); transform: translateY(-2px); }
.problem-card__title { font-size: 1.0625rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.problem-card__text { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.6; }

/* ===== PIPELINE ===== */
.section--architecture { background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.pipeline { max-width: 600px; margin: 0 auto; }
.pipeline-track { position: relative; display: flex; flex-direction: column; align-items: center; }
.pipeline-line { display: none; }
.pipeline-line__fill { display: none; }
.pipeline-stage { position: relative; padding: 40px 0; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateY(16px); transition: all 0.6s var(--ease); width: 100%; }
.pipeline-stage.visible { opacity: 1; transform: translateY(0); }
.pipeline-stage::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 40px; background: var(--gray-200); transform: translateX(-50%); }
.pipeline-stage:last-child::after { display: none; }
.pipeline-stage.visible::after { background: var(--charcoal); transition: background 0.4s var(--ease) 0.3s; }
.pipeline-stage::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 40px; background: var(--gray-200); transform: translateX(-50%); }
.pipeline-stage:first-child::before { display: none; }
.pipeline-stage.visible::before { background: var(--charcoal); transition: background 0.4s var(--ease); }
.pipeline-node { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--gray-300); background: var(--white); transition: all 0.4s var(--ease); z-index: 2; flex-shrink: 0; }
.pipeline-stage.visible .pipeline-node { border-color: var(--charcoal); background: var(--charcoal); }
.pipeline-stage__content { margin-top: 16px; max-width: 420px; }
.pipeline-stage__label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gray-400); }
.pipeline-stage__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 6px; }
.pipeline-stage__text { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.55; }



/* ===== OBSERVABILITY ===== */
.section--observability { background: var(--white); border-top: 1px solid var(--gray-200); }
.obs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.obs-panel { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; background: var(--white); transition: all 0.35s var(--ease); }
.obs-panel:hover { box-shadow: 0 2px 20px rgba(0,0,0,0.04); border-color: var(--gray-300); }
.obs-panel__header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); }
.obs-panel__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); }
.obs-panel__title { font-size: 0.8125rem; font-weight: 500; color: var(--gray-500); letter-spacing: 0.02em; }
.obs-panel__body { padding: 16px 20px; }
.obs-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.obs-row:last-child { border-bottom: none; }
.obs-label { font-size: 0.8125rem; color: var(--gray-400); font-family: var(--font-mono); }
.obs-value { color: var(--charcoal); font-weight: 500; }
.obs-value--ok { color: #16a34a; }
.obs-metric { margin-bottom: 14px; }
.obs-metric:last-child { margin-bottom: 0; }
.obs-metric__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.obs-metric__bar { height: 4px; background: var(--gray-100); border-radius: 2px; overflow: hidden; }
.obs-metric__fill { height: 100%; background: var(--charcoal); border-radius: 2px; transition: width 1s var(--ease); }
.obs-metric__fill--accent { background: var(--accent); }
.obs-latency { margin-bottom: 12px; }
.obs-latency:last-child { margin-bottom: 0; }
.obs-latency__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.obs-latency__bar { height: 3px; background: var(--gray-100); border-radius: 2px; overflow: hidden; }
.obs-latency__fill { height: 100%; background: var(--gray-400); border-radius: 2px; }

/* ===== SANDBOX ===== */
.section--sandbox { background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.sandbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sandbox-card { padding: 32px; border: 1px solid var(--gray-200); border-radius: 12px; background: var(--white); transition: all 0.35s var(--ease); }
.sandbox-card:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(0,0,0,0.05); border-color: var(--gray-300); }
.sandbox-card__badge { display: inline-block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-400); padding: 3px 10px; border: 1px solid var(--gray-200); border-radius: 4px; margin-bottom: 16px; }
.sandbox-card__badge--accent { color: var(--accent); border-color: var(--accent-light); }
.sandbox-card__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.sandbox-card__text { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; }
.sandbox-card__preview { padding: 20px; background: var(--gray-50); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.sandbox-line { height: 6px; background: var(--gray-200); border-radius: 3px; width: 100%; }
.sandbox-line--short { width: 55%; }
.sandbox-line--med { width: 78%; }
.sandbox-line--accent { background: var(--accent-light); }
.sandbox-block { height: 24px; background: var(--gray-200); border-radius: 6px; width: 100%; }
.sandbox-block--sm { width: 48%; display: inline-block; }
.sandbox-card__preview--diff { flex-direction: column; gap: 6px; }
.sandbox-diff-row { display: flex; gap: 8px; }
.sandbox-diff--del { flex: 1; height: 6px; background: #fecaca; border-radius: 3px; }
.sandbox-diff--add { flex: 1; height: 6px; background: #bbf7d0; border-radius: 3px; }
.sandbox-diff--short { flex: 0.6; }

/* ===== RESEARCH ===== */
.section--research { background: var(--white); border-top: 1px solid var(--gray-200); }
.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.research-item { padding: 40px; border: 1px solid var(--gray-200); border-radius: 12px; transition: all 0.35s var(--ease); position: relative; background: var(--white); z-index: 1; overflow: hidden; }
.research-item:hover { border-color: var(--gray-300); box-shadow: 0 2px 20px rgba(0,0,0,0.04); transform: translateY(-2px); }
.research-item__number { font-family: var(--font-mono); font-size: 6.5rem; color: var(--charcoal); font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; margin-bottom: 8px; margin-left: -4px; display: block; }
.research-item__title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--charcoal); }
.research-item__text { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 20px; }
.research-item__tag { font-size: 0.75rem; font-weight: 500; color: var(--accent); padding: 4px 12px; border: 1px solid var(--gray-200); border-radius: 100px; display: inline-block; background: var(--white); }

/* ===== WAITLIST ===== */
.section--waitlist { background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.waitlist-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.waitlist-text { font-size: 1.0625rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 32px; }
.waitlist-form__group { display: flex; max-width: 440px; margin: 0 auto; }
.waitlist-input { flex: 1; padding: 12px 16px; font-size: 0.9375rem; border: 1px solid var(--gray-300); border-right: none; border-radius: 8px 0 0 8px; outline: none; background: var(--white); color: var(--charcoal); transition: border-color 0.25s var(--ease); }
.waitlist-input:focus { border-color: var(--charcoal); }
.waitlist-input::placeholder { color: var(--gray-400); }
.waitlist-note { font-size: 0.8125rem; color: var(--gray-400); margin-top: 16px; }

/* ===== FOOTER ===== */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--gray-200); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 64px; margin-bottom: 64px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-logo { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; display: block; margin-bottom: 12px; }
.footer-description { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; max-width: 240px; }
.footer-col__title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px; }
.footer-link { display: block; font-size: 0.875rem; color: var(--gray-500); padding: 4px 0; transition: color 0.25s var(--ease); }
.footer-link:hover { color: var(--charcoal); }
.footer-bottom { border-top: 1px solid var(--gray-100); padding-top: 24px; }
.footer-copyright { font-size: 0.8125rem; color: var(--gray-400); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 400px; margin: 0 auto; }
  .hero { padding: 140px 0 80px; }

  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--gray-200); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .problem-grid, .research-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 64px; }
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .waitlist-form__group { flex-direction: column; }
  .waitlist-input { border-right: 1px solid var(--gray-300); border-radius: 8px; margin-bottom: 8px; }
  .btn--form { border-radius: 8px; }
  .footer-inner { gap: 32px; }
  .footer-links { flex-direction: column; gap: 32px; }

}
