/* === BASE === */
:root {
  --bg: #0f1419;
  --bg-2: #151c24;
  --bg-3: #1c252e;
  --fg: #e8edf2;
  --fg-muted: #8b99a8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: rgba(255,255,255,0.07);
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

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

/* === LAYOUT === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(245,158,11,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(245,158,11,0.03) 0%, transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 120px 80px 80px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* Headline */
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Monitor Ring (Hero Right) */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.monitor-ring {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.15);
}
.ring-1 { width: 320px; height: 320px; animation: spin 20s linear infinite; }
.ring-2 { width: 240px; height: 240px; animation: spin 14s linear infinite reverse; }
.ring-3 { width: 160px; height: 160px; animation: spin 9s linear infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.core-dot {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.core-dot::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--bg);
  border-radius: 50%;
}

.pulse-ring {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s ease-out infinite;
  opacity: 0;
}
.pulse-ring-2 { animation-delay: 1s; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

.scan-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(245,158,11,0.4), transparent);
  animation: scan 4s linear infinite;
  left: 50%;
}
@keyframes scan { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.status-row {
  position: absolute;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.status-text { font-size: 0.75rem; color: var(--fg-muted); font-weight: 400; }

.log-feed {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 300px;
}
.log-entry {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
}
.log-ok { background: rgba(34,197,94,0.08); }
.log-warn { background: rgba(245,158,11,0.1); }
.log-time { color: var(--fg-muted); font-family: monospace; min-width: 36px; }
.log-msg { color: var(--fg-muted); }
.log-warn .log-msg { color: var(--accent); }

/* Hero bottom bar */
.hero-bottom-bar {
  border-top: 1px solid var(--border);
  padding: 20px 80px;
  text-align: center;
}
.hero-tagline {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 64px;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 40px;
  position: relative;
}

.step-connector {
  width: 60px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  margin-top: 36px;
}

.step-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

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

/* === FEATURES === */
.features {
  padding: 120px 80px;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  padding: 48px;
  background: var(--bg);
}

.feature-primary {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-card:nth-child(2) { border-bottom: 1px solid var(--border); }
.feature-card:nth-child(3) { border-right: 1px solid var(--border); }

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.feature-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* === OUTCOMES === */
.outcomes {
  padding: 120px 80px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.outcomes-headline {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.outcomes-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.outcomes-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.stat-block {
  padding: 36px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.stat-block:last-child { border-bottom: none; }

.stat-value {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* === CLOSING === */
.closing {
  padding: 140px 80px;
  background: var(--bg);
  text-align: center;
}

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

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

.closing-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

/* === FOOTER === */
.site-footer {
  padding: 48px 80px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 80px 40px 60px; }
  .hero-right { display: none; }
  .steps-row { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-primary { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-card:nth-child(3) { border-right: none; }
  .outcomes-inner { grid-template-columns: 1fr; }
  .howitworks, .features, .outcomes, .closing { padding: 80px 40px; }
  .hero-bottom-bar { padding: 20px 40px; }
  .site-footer { padding: 40px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-inner { padding: 60px 24px 40px; }
  .howitworks, .features, .outcomes, .closing { padding: 60px 24px; }
  .hero-bottom-bar { padding: 16px 24px; }
  .site-footer { padding: 32px 24px; }
  .step { padding: 0; }
  .feature-card { padding: 32px; }
  .stat-block { padding: 28px 32px; }
  .stat-value { font-size: 2.2rem; }
}
