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

:root {
  --bg: #0f0f17;
  --bg-surface: #16161f;
  --bg-elevated: #1e1e2a;
  --fg: #e8e8f0;
  --fg-muted: #6b6b8a;
  --accent: #f59e0b;
  --accent-dim: #b4730a;
  --border: #2a2a3a;
  --terminal-bg: #0a0a12;
  --terminal-border: #1e1e2e;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Outfit', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

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

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-bracket { color: var(--accent); }

.nav-tagline {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--fg); }

.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: #0f0f17;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary-nav:hover { background: #fbbf24; }

/* ===== HERO ===== */
.hero {
  padding: 6rem 2rem 4rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 44ch;
}

.hero-lede code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent);
  background: var(--bg-elevated);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #0f0f17;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.btn-primary-hero:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* ===== TERMINAL ===== */
.hero-terminal {
  position: relative;
}

.terminal-window {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(245,158,11,0.08), 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--terminal-border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.9;
}

.t-line { white-space: nowrap; overflow: hidden; }
.t-prompt { color: var(--accent); margin-right: 0.6rem; }
.t-cmd { color: var(--fg); }
.t-out { color: var(--fg-muted); }
.t-out-list { display: flex; flex-direction: column; gap: 0.25rem; padding-left: 1.5rem; }
.t-link { color: var(--accent); display: inline-block; min-width: 12ch; }
.t-dest { color: var(--fg-muted); }
.t-highlight { color: var(--fg); }
.t-cursor::before { content: '>'; color: var(--accent); }

/* ===== DEMO SECTION ===== */
.demo-section {
  padding: 2rem 2rem 5rem;
}

.demo-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.demo-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.demo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}

.demo-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.dc-name {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.dc-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.dc-clicks {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
}

/* ===== FEATURES ===== */
.features {
  padding: 5rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-headline {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 3rem;
  color: var(--fg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--accent-dim); }

.fc-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.fc-title {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.fc-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.fc-desc code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--bg-surface);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* ===== HOW IT WORKS ===== */
.howitworks {
  padding: 5rem 2rem;
}

.hiw-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 1rem;
}

.step {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.step-desc code {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--accent);
  background: var(--bg-elevated);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  color: var(--border);
  font-size: 1.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-glyph {
  font-family: var(--mono);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.closing-headline {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--fg);
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-terminal { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .demo-cards { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 1rem; }
  .step-connector { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .demo-cards { grid-template-columns: 1fr; }
  .features { padding: 3.5rem 1.25rem; }
  .howitworks { padding: 3.5rem 1.25rem; }
  .closing { padding: 4rem 1.25rem; }
  .section-headline br { display: none; }
}