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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050510;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
.nav-logo img { height: 20px; width: auto; opacity: 1; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000;
  background: #44aaff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: #5bbcff; transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 5, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.nav-mobile .nav-cta { font-size: 0.8rem; padding: 14px 28px; margin-top: 12px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 60px 80px;
  background: radial-gradient(ellipse at 30% 20%, rgba(68,170,255,0.06) 0%, transparent 60%),
              linear-gradient(to bottom, #050510 0%, #080820 100%);
}
.hero-content { max-width: 760px; }
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #44aaff;
  margin-bottom: 20px;
  opacity: 0.7;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 span { color: #44aaff; }
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
}
.meta-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #44aaff;
  font-weight: 700;
}

/* ── Article ── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 60px 100px;
}

.section-block {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-block:last-child { border-bottom: none; }

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(68,170,255,0.5);
  margin-bottom: 16px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 36px;
  margin-bottom: 12px;
  color: #fff;
}

p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
p:last-child { margin-bottom: 0; }
em { color: rgba(255,255,255,0.75); font-style: italic; }
strong { color: rgba(255,255,255,0.85); }

/* ── Before/After Diagrams ── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.comparison-col {
  padding: 20px;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  line-height: 1.8;
}
.comparison-col.before {
  background: rgba(255,60,60,0.04);
  border: 1px solid rgba(255,60,60,0.1);
}
.comparison-col.after {
  background: rgba(68,170,255,0.04);
  border: 1px solid rgba(68,170,255,0.15);
}
.comparison-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  font-weight: 700;
}
.before .comparison-label { color: rgba(255,100,100,0.6); }
.after .comparison-label { color: rgba(68,170,255,0.7); }
.comparison-step {
  color: rgba(255,255,255,0.45);
  padding: 4px 0;
}
.comparison-col.before .comparison-step { color: rgba(255,255,255,0.35); }
.comparison-col.after .comparison-step { color: rgba(255,255,255,0.55); }
.arrow { color: rgba(255,255,255,0.15); text-align: center; }
.comparison-highlight {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-weight: 700;
}
.before .comparison-highlight { color: rgba(255,100,100,0.45); }
.after .comparison-highlight { color: rgba(68,170,255,0.7); }

/* ── Mapping Diagram ── */
.mapping-diagram {
  margin: 28px 0;
  padding: 24px;
  background: rgba(68,170,255,0.03);
  border: 1px solid rgba(68,170,255,0.1);
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  line-height: 2.2;
}
.mapping-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
}
.mapping-source {
  min-width: 200px;
  color: rgba(255,255,255,0.35);
}
.mapping-arrow { color: rgba(68,170,255,0.4); }
.mapping-target { color: rgba(68,170,255,0.7); font-weight: 700; }

/* ── Cleaning Examples ── */
.cleaning-examples {
  margin: 28px 0;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  line-height: 2.4;
}
.cleaning-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cleaning-input {
  color: rgba(255,255,255,0.35);
  min-width: 240px;
}
.cleaning-arrow { color: rgba(68,170,255,0.4); }
.cleaning-output { color: rgba(68,170,255,0.7); }

/* ── Results ── */
.stat-headline {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #44aaff;
  padding: 24px 0;
  border-left: 3px solid rgba(68,170,255,0.4);
  padding-left: 20px;
  margin-bottom: 32px;
}
.stat-subline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  padding-left: 23px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.result-card {
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.result-metric {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.result-numbers {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.result-before {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-decoration: line-through;
}
.result-after {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #44aaff;
}
.result-impact {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

/* ── Quote ── */
.quote-block {
  margin: 40px 0;
  padding: 28px 24px;
  border-left: 3px solid rgba(68,170,255,0.3);
  background: rgba(68,170,255,0.03);
  border-radius: 0 8px 8px 0;
}
.quote-block p {
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 12px;
}
.quote-attr {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-style: normal;
}

/* ── Deliverables ── */
.deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deliverables li {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}
.deliverables li strong {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.deliverables li span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
}
.timeline-row {
  display: grid;
  grid-template-columns: 100px 80px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: start;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-phase {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #44aaff;
}
.timeline-duration {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}
.timeline-focus {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.timeline-total {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(68,170,255,0.05);
  border: 1px solid rgba(68,170,255,0.15);
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #44aaff;
  font-weight: 700;
}

/* ── Disclaimer ── */
.disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 40px;
}

/* ── CTA Footer ── */
.cta-footer {
  text-align: center;
  padding: 80px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(68,170,255,0.05) 0%, transparent 60%);
}
.cta-footer h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.cta-footer p {
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  font-size: 0.9rem;
}
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(68,170,255,0.3);
  color: #44aaff;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
}
.cta-btn:hover {
  background: rgba(68,170,255,0.1);
  color: #fff;
  border-color: rgba(68,170,255,0.6);
}

/* ── Pipeline Diagram ── */
.system-diagram {
  margin: 36px 0;
  padding: 32px 24px;
  background: rgba(68,170,255,0.02);
  border: 1px solid rgba(68,170,255,0.1);
  border-radius: 12px;
  overflow-x: auto;
}
.system-diagram svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; min-height: 60vh; }
  .hero h1 { font-size: 1.8rem; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .article { padding: 0 24px 80px; }
  .comparison { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 80px 60px 1fr; gap: 10px; }
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  h2 { font-size: 1.3rem; }
  .mapping-source { min-width: auto; }
  .mapping-row { flex-wrap: wrap; }
  .cleaning-row { flex-wrap: wrap; }
  .cleaning-input { min-width: auto; }
}
