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

:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a26;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #555570;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --radius: 12px;
  --radius-sm: 8px;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { color: var(--fg-muted); font-size: 1.05rem; }

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

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, var(--accent-glow), transparent),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(6, 182, 212, 0.06), transparent),
    var(--bg);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-top: 1.5rem;
  line-height: 1.7;
}

/* === TERMINAL === */
.terminal {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(99, 102, 241, 0.08),
    0 20px 60px rgba(0,0,0,0.4);
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--amber); }
.terminal-dot.green { background: var(--green); }

.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
}

.terminal-body {
  padding: 1rem;
}

.log-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.log-line:hover { background: rgba(255,255,255,0.02); }
.log-line.active { background: rgba(99, 102, 241, 0.08); }

.log-time { color: var(--fg-dim); min-width: 36px; }

.log-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 36px;
  text-align: center;
}
.tag-eng { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.tag-mkt { background: rgba(236, 72, 153, 0.15); color: var(--pink); }
.tag-growth { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.tag-ops { background: rgba(245, 158, 11, 0.15); color: var(--amber); }

.typing {
  color: var(--fg);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0.5; }
}

/* === HOW === */
.how {
  padding: 8rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.how h2 {
  margin-bottom: 4rem;
  max-width: 600px;
}

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

.step {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.step h3 { margin-bottom: 0.75rem; color: var(--fg); }
.step p { font-size: 0.95rem; line-height: 1.65; }

/* === CAPABILITIES === */
.capabilities {
  padding: 8rem 1.5rem;
  background: var(--bg-surface);
}

.capabilities h2 {
  margin-bottom: 4rem;
  max-width: 600px;
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cap-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.cap-card:hover { border-color: rgba(99, 102, 241, 0.15); }

.cap-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cap-card h3 { margin-bottom: 0.75rem; color: var(--fg); }
.cap-card p { font-size: 0.93rem; line-height: 1.65; }

/* === DIFFERENTIATORS === */
.diff {
  padding: 8rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.diff h2 {
  margin-bottom: 3.5rem;
}

.diff-list {
  display: grid;
  gap: 1.5rem;
  max-width: 700px;
}

.diff-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.diff-item:hover { border-color: rgba(99, 102, 241, 0.15); }

.diff-marker {
  width: 3px;
  min-height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  border-radius: 3px;
  flex-shrink: 0;
}

.diff-item h3 { margin-bottom: 0.5rem; color: var(--fg); }
.diff-item p { font-size: 0.93rem; line-height: 1.65; }

/* === CLOSING === */
.closing {
  padding: 8rem 1.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-glow), transparent),
    var(--bg-surface);
  text-align: center;
}

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

.closing h2 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--fg), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* === FOOTER === */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: var(--bg);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.6rem; }
  .how, .capabilities, .diff, .closing { padding: 5rem 1.25rem; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-left { flex-direction: column; gap: 0.25rem; }
}