/* ─── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; }

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --border: #2A2A2A;
  --text: #EDEDED;
  --muted: #888888;
  --accent-blue: #0052FF;
  --accent-purple: #8B5CF6;
  --white: #FFFFFF;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─────────────────────────────── */
.noise-overlay {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 999; opacity: 0.03;
}

/* ─── UTILITY ───────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.mono-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

/* ─── NAV ───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; color: var(--white);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-link {
  font-size: 0.85rem; color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.btn-nav {
  font-size: 0.82rem; font-weight: 500; color: var(--bg);
  background: var(--white); border: none; border-radius: 6px;
  padding: 7px 16px; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.85; }

/* ─── BUTTONS ───────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--bg);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius); border: none;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--muted);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer; text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: #444; }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  padding: 140px 24px 80px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0,82,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(139,92,246,0.07) 0%, transparent 60%);
}
.hero-inner { max-width: 1080px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-family: var(--font-mono);
  color: var(--muted); border: 1px solid var(--border);
  background: var(--surface); padding: 6px 12px; border-radius: 100px;
  margin-bottom: 40px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; } 50% { opacity:0.4; }
}

.hero-h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.0;
  color: var(--white); margin-bottom: 24px;
  /* subtle text shimmer on the last word */
}
.hero-h1 span {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--muted); line-height: 1.7;
  max-width: 560px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 72px; }

/* ─── IDE MOCKUP ─────────────────────────────────── */
.hero-mockup-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  margin: 0 -8px;
}
.mockup-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,82,255,0.12), transparent 70%);
  pointer-events: none; z-index: 0;
}
.mockup-frame {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px #1a1a1a;
}

/* Titlebar */
.mockup-titlebar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: #0F0F0F; border-bottom: 1px solid var(--border);
}
.titlebar-dots { display: flex; gap: 6px; }
.titlebar-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.titlebar-dots span:nth-child(1) { background: #FF5F57; }
.titlebar-dots span:nth-child(2) { background: #FFBD2E; }
.titlebar-dots span:nth-child(3) { background: #28CA41; }
.titlebar-name {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  flex: 1; text-align: center;
}
.titlebar-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulse-dot 1.5s ease infinite;
}

/* Body: preview + chat */
.mockup-body { display: flex; height: 340px; }

.mockup-preview {
  flex: 1; border-right: 1px solid var(--border); padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.preview-label { font-family: var(--font-mono); font-size: 0.65rem; color: #444; letter-spacing: 0.1em; }
.preview-video-area {
  flex: 1; background: #080808; border-radius: 6px; border: 1px solid #1E1E1E;
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}
.preview-subject {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.subject-silhouette {
  width: 120px; height: 180px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 60px 60px 20px 20px;
}
.subject-mask-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 45%,
    rgba(139,92,246,0.18) 0%, transparent 70%);
}
.preview-controls {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 16px;
  padding: 10px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  font-size: 0.8rem; color: var(--muted); cursor: default;
}
.ctrl-play {
  width: 28px; height: 28px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--white);
}

/* Chat panel */
.mockup-chat {
  width: 280px; display: flex; flex-direction: column;
  background: var(--surface);
  position: relative;
}
.mockup-chat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,82,255,0.6), rgba(139,92,246,0.6), transparent);
  pointer-events: none;
}
.chat-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; color: var(--text);
}
.chat-icon-wrap { display: flex; align-items: center; }
.chat-messages { flex: 1; padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }

.chat-prompt {
  background: rgba(0,82,255,0.08); border: 1px solid rgba(0,82,255,0.2);
  border-radius: 6px; padding: 10px 12px;
  display: flex; gap: 8px; align-items: flex-start;
}
.prompt-cursor {
  font-family: var(--font-mono); color: var(--accent-blue); font-size: 0.85rem; line-height: 1.4;
}
.prompt-text {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); line-height: 1.5;
}

.chat-output { display: flex; flex-direction: column; gap: 6px; }
.output-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.4;
  color: var(--muted);
}
.output-line.done { color: #888; }
.output-check { color: #22c55e; flex-shrink: 0; }
.output-line.running { color: var(--text); }
.output-spinner {
  width: 10px; height: 10px; border: 1.5px solid transparent;
  border-top-color: var(--accent-blue); border-right-color: var(--accent-purple);
  border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; margin-top: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.output-line.pending { color: #444; }
.output-dot { color: #333; }

.chat-input-area { margin-top: auto; }
.chat-input-mock {
  display: flex; align-items: center; justify-content: space-between;
  background: #0F0F0F; border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 12px; font-family: var(--font-mono); font-size: 0.7rem; color: #444;
}
.input-send-icon { color: #333; }

/* Timeline */
.mockup-timeline {
  border-top: 1px solid var(--border); background: #0D0D0D; padding: 12px;
}
.timeline-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.timeline-label { font-family: var(--font-mono); font-size: 0.65rem; color: #444; letter-spacing: 0.1em; }
.timeline-tools { display: flex; gap: 12px; font-size: 0.75rem; color: #444; cursor: default; }
.timeline-tracks { position: relative; display: flex; flex-direction: column; gap: 6px; }
.track-row { display: flex; align-items: center; gap: 8px; height: 28px; }
.track-id { font-family: var(--font-mono); font-size: 0.65rem; color: #444; width: 20px; flex-shrink: 0; }
.track-bar-wrap { flex: 1; height: 100%; position: relative; }
.track-bar {
  height: 100%; border-radius: 3px; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.track-bar-1 { background: rgba(0,82,255,0.25); border: 1px solid rgba(0,82,255,0.3); width: 70%; }
.track-bar-2 { background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.3); width: 60%; }
.track-bar-3 { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.25); width: 90%; }
.track-waveform {
  width: 100%; height: 60%;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 2px,
    transparent 2px, transparent 8px);
}
.timeline-playhead {
  position: absolute; top: -4px; bottom: -4px; left: 38%; width: 1px;
  background: var(--white); opacity: 0.6;
}
.timeline-playhead::before {
  content: ''; position: absolute; top: 0; left: -3px;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 6px solid var(--white);
}

/* ─── TRACTION ───────────────────────────────────── */
.traction {
  padding: 80px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.traction .section-eyebrow { text-align: center; margin-bottom: 48px; }
.traction-stats {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.traction-stat { flex: 1; min-width: 200px; text-align: center; padding: 0 40px; }
.traction-divider {
  width: 1px; background: var(--border); align-self: stretch; flex-shrink: 0;
}
.stat-value {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--white); line-height: 1;
  margin-bottom: 12px;
}
.stat-label { font-size: 0.82rem; color: var(--muted); line-height: 1.5; max-width: 180px; margin: 0 auto; }

/* ─── SECTION SHARED ─────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.section-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--white);
}

/* ─── ARCHITECTURE ───────────────────────────────── */
.architecture { padding: 120px 0; }
.section-header { margin-bottom: 64px; }
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.arch-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.arch-card:hover {
  border-color: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,82,255,0.06), 0 20px 60px rgba(0,0,0,0.4);
}
.arch-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}
.arch-card-phase-badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em;
  color: var(--accent-purple); border: 1px solid rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.08); padding: 3px 8px; border-radius: 4px;
}
.arch-card-icon {
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; background: #0F0F0F;
}
.arch-card-title {
  font-size: 1rem; font-weight: 600; color: var(--white);
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.arch-card-copy { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.arch-card-tag {
  padding-top: 16px; border-top: 1px solid var(--border);
}

/* ─── TROJAN ─────────────────────────────────────── */
.trojan { padding: 120px 0; border-top: 1px solid var(--border); }
.trojan-inner { text-align: center; }
.trojan-inner .section-h2 { margin-bottom: 24px; }
.trojan-copy {
  font-size: 1rem; color: var(--muted); line-height: 1.8;
  margin-bottom: 56px;
}
.trojan-copy em { color: var(--text); font-style: normal; font-weight: 500; }

/* Evolution visual */
.evolution-visual {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-bottom: 48px;
}
.evo-node {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 32px;
}
.evo-node-inner { display: flex; flex-direction: column; gap: 4px; }
.evo-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); }
.evo-sub { font-size: 0.72rem; color: var(--muted); }
.evo-consumer { border-color: #222; opacity: 0.6; }
.evo-pro { border-color: rgba(0,82,255,0.4); background: rgba(0,82,255,0.05); }
.evo-arrow { display: flex; align-items: center; gap: 0; }
.evo-arrow-line {
  width: 80px; height: 1px; background: var(--border); position: relative; overflow: hidden;
}
.evo-arrow-pulse {
  position: absolute; top: 0; left: -40px;
  width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,82,255,0.8), transparent);
  animation: pulse-line 2s ease infinite;
}
@keyframes pulse-line { from { left: -40px; } to { left: 120px; } }
.evo-arrow-head svg { opacity: 0.5; }

.trojan-metrics {
  display: flex; gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: left;
}
.tm-item {
  flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border);
}
.tm-item:last-child { border-right: none; }
.tm-key { font-family: var(--font-mono); font-size: 0.68rem; color: #444; letter-spacing: 0.06em; text-transform: uppercase; }
.tm-val { font-size: 0.85rem; font-weight: 500; color: var(--text); }

/* ─── GLOBAL CTA ─────────────────────────────────── */
.global-cta {
  padding: 120px 0 80px;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,82,255,0.06), transparent 70%);
}
.global-cta-inner { text-align: center; }
.global-cta-inner .section-h2 { margin-bottom: 20px; }
.global-cta-copy {
  font-size: 1rem; color: var(--muted); line-height: 1.8;
  margin-bottom: 48px;
}

/* Waitlist form */
.waitlist-form { margin-bottom: 64px; }
.waitlist-input-row {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto 12px;
}
.waitlist-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--text);
  outline: none; transition: border-color 0.2s;
}
.waitlist-input::placeholder { color: #555; }
.waitlist-input:focus { border-color: #555; }
.btn-waitlist { white-space: nowrap; }
.waitlist-micro { font-size: 0.78rem; color: #555; text-align: center; }
.waitlist-success {
  display: none; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; color: #22c55e;
  margin-top: 16px;
}
.waitlist-success.visible { display: flex; }

/* Scale stats */
.scale-stats {
  display: flex; gap: 0; border-top: 1px solid var(--border);
  padding-top: 48px;
}
.scale-stat { flex: 1; padding: 0 32px; text-align: center; border-right: 1px solid var(--border); }
.scale-stat:last-child { border-right: none; }
.scale-val {
  display: block; font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--white); margin-bottom: 8px;
}
.scale-label { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ─── REVEAL ANIMATION ───────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 32px 24px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-logo {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  text-decoration: none; letter-spacing: -0.02em;
}
.footer-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer-link {
  font-size: 0.78rem; color: #555; text-decoration: none; transition: color 0.2s;
}
.footer-link:hover { color: var(--muted); }
.footer-copy { font-size: 0.75rem; color: #444; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 860px) {
  .arch-grid { grid-template-columns: 1fr; }
  .mockup-body { flex-direction: column; height: auto; }
  .mockup-chat { width: 100%; border-top: 1px solid var(--border); border-right: none; }
  .traction-stats { flex-direction: column; gap: 40px; }
  .traction-divider { width: 100%; height: 1px; align-self: auto; }
  .traction-stat { padding: 0 24px; }
  .trojan-metrics { flex-direction: column; }
  .tm-item { border-right: none; border-bottom: 1px solid var(--border); }
  .tm-item:last-child { border-bottom: none; }
  .scale-stats { flex-direction: column; gap: 32px; }
  .scale-stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
  .scale-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .evolution-visual { flex-wrap: wrap; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { margin-left: 0; }
  .waitlist-input-row { flex-direction: column; }
  .nav-links { display: none; }
}
