:root {
  --bg-dark: #0a0f1c;
  --bg-mid: #111827;
  --bg-card: #1a2236;
  --fg: #e8ecf4;
  --fg-dim: #8892a8;
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --accent-bright: #00ffcc;
  --red: #ff4757;
  --yellow: #ffc312;
  --green: #00d4aa;
  --mono: 'DM Mono', monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg-dark);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  gap: 4rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero-content { max-width: 560px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

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

.hero h1 .accent {
  color: var(--accent);
  display: inline-block;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 440px;
  line-height: 1.7;
}

/* Blueprint Card */
.hero-visual { position: relative; z-index: 1; }

.blueprint-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 8px;
  width: 360px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 212, 170, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.card-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin-left: 8px;
}

.card-body {
  padding: 1rem;
  position: relative;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.card-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.card-row:last-child { border-bottom: none; }

.card-row .label {
  color: var(--fg-dim);
  flex: 1;
}

.card-row .value {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--fg);
  margin-right: 0.75rem;
}

.badge-ok {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 3px;
}

.badge-process {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--yellow);
  background: rgba(255, 195, 18, 0.12);
  padding: 2px 8px;
  border-radius: 3px;
  animation: pulse 2s ease-in-out infinite;
}

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

/* ===== PROBLEM ===== */
.problem {
  padding: 6rem 2rem;
  background: var(--bg-mid);
}

.problem-inner {
  max-width: 960px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1.15;
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2rem 1.5rem;
}

.problem-stat {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.problem-card p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.problem-kicker {
  font-size: 1.1rem;
  color: var(--fg-dim);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

/* ===== HOW ===== */
.how {
  padding: 6rem 2rem;
}

.how-inner {
  max-width: 960px;
  margin: 0 auto;
}

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

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}

.step {
  flex: 1;
  max-width: 260px;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: border-color 0.3s;
}

.step:hover {
  border-color: rgba(0, 212, 170, 0.3);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  padding-top: 3rem;
  flex-shrink: 0;
}

/* ===== NUMBERS ===== */
.numbers {
  padding: 6rem 2rem;
  background: var(--bg-mid);
}

.numbers-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: center;
}

.numbers-text {
  flex: 1;
}

.numbers-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

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

.numbers-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

.num-item {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  min-width: 200px;
}

.num-val {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent-bright);
}

.num-desc {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 0.25rem;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 4rem 1.5rem 3rem;
    gap: 3rem;
    min-height: auto;
  }

  .hero-content { text-align: center; }
  .hero-sub { margin: 0 auto; }

  .blueprint-card { width: 100%; max-width: 360px; }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .step { max-width: 100%; }

  .numbers-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .numbers-list {
    width: 100%;
  }

  .num-item { min-width: auto; }
}