/* =========================================
   BlueprintOS — Operating System
   Engineering aesthetic, industrial palette
   ========================================= */

:root {
  --bg: #060E1A;
  --surface: #0A1628;
  --surface-alt: #0F1F35;
  --border: rgba(96, 165, 250, 0.12);
  --border-bright: rgba(96, 165, 250, 0.3);
  --accent: #3B82F6;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --green: #22C55E;
  --text: #E2EAF4;
  --text-muted: #7A9CC0;
  --text-dim: #3D6080;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Sora', sans-serif;
  --grid-color: rgba(59, 130, 246, 0.06);
  --radius: 6px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body.bp-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* =========================================
   GRID BACKGROUND
   ========================================= */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-left { display: flex; flex-direction: column; gap: 28px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 16px var(--green), 0 0 24px rgba(34, 197, 94, 0.3); }
}

.eyebrow-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-title br { display: block; }

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 440px;
  font-weight: 400;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* HUD Panel */
.hero-right { display: flex; justify-content: flex-end; }

.hud-panel {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1), 0 24px 48px rgba(0,0,0,0.4);
}

.hud-header {
  background: var(--surface-alt);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hud-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
}

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

.hud-rows { padding: 4px 0; }

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.06);
}

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

.hud-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hud-val {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hud-val.accent { color: var(--amber); }

.hud-footer {
  background: rgba(34, 197, 94, 0.06);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 600;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
}

/* =========================================
   METHODOLOGY
   ========================================= */
.methodology {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}

.meth-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.meth-header { max-width: 600px; margin-bottom: 64px; }

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

.meth-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.meth-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.phase-track {
  position: relative;
  display: flex;
  gap: 0;
  align-items: stretch;
}

.phase-line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-bright);
}

.phase-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

.phase-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  flex-shrink: 0;
}

.phase-body { text-align: center; padding: 0 8px; }

.phase-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.phase-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =========================================
   FEATURES
   ========================================= */
.features { padding: 100px 0; }

.feat-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.feat-title {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 16px 0 56px;
}

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

.feat-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.feat-card:hover { background: var(--surface-alt); }

.feat-icon { margin-bottom: 4px; }

.feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feat-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

.feat-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.06);
  align-self: flex-start;
}

/* =========================================
   STATS
   ========================================= */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.stat-block {
  flex: 1;
  padding: 0 40px;
  text-align: center;
}

.stat-number {
  font-size: clamp(52px, 5vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-plus, .stat-pct {
  font-size: 0.5em;
  color: var(--amber);
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--sans);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  background: var(--border-bright);
  align-self: stretch;
  flex-shrink: 0;
}

/* =========================================
   CLOSING
   ========================================= */
.closing { padding: 100px 0; }

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.closing-rule {
  width: 60px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 48px;
}

.closing-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.closing-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.closing-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.15em;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px 20px;
  border-radius: 4px;
}

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

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-center { text-align: center; }

.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.footer-right { text-align: right; }

.footer-rule {
  width: 40px;
  height: 1px;
  background: var(--border-bright);
  margin: 0 0 12px auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 28px;
    gap: 40px;
  }
  .hero-right { justify-content: flex-start; }
  .hud-panel { max-width: 100%; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { flex-direction: column; gap: 40px; }
  .stat-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-right { text-align: left; }
  .phase-track { flex-direction: column; gap: 32px; }
  .phase-line { display: none; }
  .meth-inner, .feat-inner, .closing-inner, .footer-inner { padding: 0 28px; }
}

@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .methodology, .features, .closing { padding: 60px 0; }
}