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

:root {
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-tertiary: #21262D;
  --fg-primary: #E6EDF3;
  --fg-secondary: #8B949E;
  --fg-muted: #484F58;
  --accent: #00E5CC;
  --accent-dim: rgba(0, 229, 204, 0.12);
  --success: #3FB950;
  --warning: #D29922;
  --danger: #F85149;
  --border: rgba(240, 246, 252, 0.1);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-primary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg-primary); }

/* === HERO === */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-secondary);
  letter-spacing: 0.02em;
}

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

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

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.hero-metrics {
  display: flex;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
}

.metric {
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-divider {
  width: 1px;
  background: var(--border);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 120px;
}

/* Terminal block */
.hero-terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 680px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

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

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28C840; }

.terminal-title {
  margin-left: 8px;
  color: var(--fg-secondary);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line {
  color: var(--fg-secondary);
  line-height: 1.8;
}

.log-ok { color: var(--fg-secondary); }
.log-warn { color: var(--warning); }
.log-info { color: var(--fg-secondary); opacity: 0.7; }
.log-fix { color: var(--accent); }

.highlight { color: var(--success); font-weight: 500; }
.highlight-fail { color: var(--danger); font-weight: 500; }

.cursor-line {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: var(--fg-secondary);
}

.prompt { margin-right: 8px; color: var(--accent); }

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

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

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

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

.monitor-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.monitor-text p {
  color: var(--fg-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.monitor-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

/* === FEATURES === */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.features-header p {
  color: var(--fg-secondary);
  max-width: 480px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-primary);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  color: var(--accent);
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

/* === HOW IT WORKS === */
.howitworks {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.howitworks h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 4rem;
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.step {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.step-arrow {
  color: var(--fg-muted);
  flex-shrink: 0;
}

/* === TESTIMONIALS === */
.testimonials {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.testimonial-quote {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial-quote p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg-primary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.author-role {
  font-size: 0.8rem;
  color: var(--fg-secondary);
}

/* === CLOSING === */
.closing {
  padding: 8rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.closing-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.product-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-tagline {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  font-family: var(--font-mono);
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--fg-primary); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 1.5rem 4rem; }
  .hero-metrics { flex-direction: column; width: 100%; }
  .metric-divider { width: 100%; height: 1px; }
  .hero-terminal { max-width: 100%; }

  .monitor-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .features-grid { grid-template-columns: 1fr; }

  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }

  .testimonials-inner { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-links { gap: 1rem; }

  .nav-links { display: none; }
}