/* === BASE === */
:root {
  --bg: #09090b;
  --surface: #141416;
  --surface2: #1c1c1f;
  --border: #2a2a2e;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.08);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --muted: #71717a;
  --text: #e4e4e7;
  --text-dim: #a1a1aa;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3e; }

/* === LAYOUT === */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(245, 158, 11, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 60%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.proof-sep { color: var(--border); }

/* === TERMINAL === */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(245, 158, 11, 0.04);
}

.terminal-bar {
  background: var(--surface2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.t-red { background: #ff5f57; }
.t-amber { background: #ffbd2e; }
.t-green { background: #28c840; }

.t-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  min-height: 220px;
}

.t-line { color: var(--text-dim); }
.t-time { color: var(--muted); }
.t-ts { color: var(--muted); margin-right: 8px; }
.t-ok { color: var(--green); }
.t-warn { color: var(--accent); font-weight: 600; }
.t-info { color: var(--text-dim); }
.t-alert { color: var(--accent); }
.t-indent { padding-left: 20px; }
.t-silent { color: var(--muted); font-style: italic; }
.t-muted { color: var(--muted); }
.t-branch { color: #818cf8; margin-left: 4px; }
.t-spacer { height: 10px; }

.blink-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.stat {
  flex: 1;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child { border-right: none; }

.stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === ORBIT RING === */
.orbit-ring {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.15);
  transform: translate(-50%, -50%);
  animation: orbit-spin linear infinite;
}

.o1 { width: 300px; height: 300px; animation-duration: 20s; }
.o2 { width: 420px; height: 420px; animation-duration: 32s; animation-direction: reverse; }
.o3 { width: 540px; height: 540px; animation-duration: 45s; }

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-core {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

/* === LOOP SECTION === */
.loop-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.loop-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.loop-diagram {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.loop-node {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: border-color 0.2s;
}

.loop-node:hover { border-color: rgba(245, 158, 11, 0.3); }

.ln-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.ln-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.ln-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.loop-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
  flex-shrink: 0;
}

.loop-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 640px;
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.callout-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* === CAPABILITIES === */
.capabilities-section {
  padding: 120px 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.cap-card {
  padding: 32px;
  background: var(--surface);
  border: none;
  transition: background 0.2s;
}

.cap-card:hover { background: var(--surface2); }

.cap-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cap-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
}

.cap-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* === INTEGRATIONS === */
.integrations-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.int-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.int-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.int-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--accent-glow);
}

.int-logo { opacity: 0.8; }

.int-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.int-cap {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.int-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* === CLOSING === */
.closing-section {
  padding: 140px 0;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  position: relative;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
}

.closing-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.closing-badge::before, .closing-badge::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}

.closing-cta {
  margin-bottom: 64px;
}

.closing-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.proof-stat {
  padding: 0 40px;
}

.ps-val {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.ps-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { order: -1; }
  .terminal { max-width: 100%; }
  .orbit-ring { display: none; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .int-grid { grid-template-columns: repeat(3, 1fr); }
  .loop-arrow { display: none; }
}

@media (max-width: 600px) {
  .section-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .closing-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; flex-direction: column; gap: 12px; }
  .cap-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-proof { flex-direction: column; gap: 24px; }
  .proof-divider { display: none; }
  .proof-stat { padding: 0; }
  .nav-inner { padding: 0 20px; }
}