:root {
  --ink: #102033;
  --muted: #5d7088;
  --blue: #1d4ed8;
  --cyan: #38bdf8;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(29, 78, 216, 0.18);
  --shadow: 0 24px 70px rgba(15, 35, 70, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,0.95) 0 9%, transparent 23%),
    radial-gradient(circle at 86% 16%, rgba(255,255,255,0.72) 0 8%, transparent 24%),
    radial-gradient(circle at 72% 74%, rgba(56,189,248,0.18) 0 12%, transparent 34%),
    linear-gradient(135deg, #e0f2fe 0%, #f8fbff 46%, #dbeafe 100%);
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(29,78,216,0.12);
  backdrop-filter: blur(14px);
}

.brand, .topbar a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar nav a {
  color: #35506d;
  font-size: 14px;
  font-weight: 700;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: stretch;
  min-height: 520px;
}

.hero-copy, .hero-visual, .section {
  border: 1px solid rgba(29,78,216,0.14);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 32px;
}

.hero-copy {
  padding: clamp(30px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.05; margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.045em;
}

h3 { margin-bottom: 12px; font-size: 21px; letter-spacing: -0.02em; }

.lede, .section-heading p, .grid-copy p, .formula-section p, .meem-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

.button {
  display: inline-flex;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(29,78,216,0.22);
}

.button.ghost {
  background: rgba(29,78,216,0.08);
  color: var(--blue);
  box-shadow: none;
}

.hero-visual { overflow: hidden; position: relative; min-height: 420px; }

.skyline {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 74%, rgba(29,78,216,0.08) 75% 76%, transparent 77%),
    linear-gradient(90deg, transparent 74%, rgba(29,78,216,0.08) 75% 76%, transparent 77%);
  background-size: 46px 46px;
}

.contrail {
  position: absolute;
  width: 120%;
  height: 18px;
  top: 34%;
  left: -22%;
  transform: rotate(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), rgba(255,255,255,0.96), rgba(56,189,248,0.35), transparent);
  filter: blur(1px);
}

.plane {
  position: absolute;
  top: 22%;
  right: 18%;
  color: var(--blue);
  font-size: 76px;
  transform: rotate(-14deg);
  text-shadow: 0 16px 30px rgba(29,78,216,0.22);
}

.grid-cube {
  position: absolute;
  left: 12%;
  bottom: 12%;
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 10px;
  transform: skewY(-9deg) rotate(-4deg);
}

.grid-cube span, .voxel span {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid rgba(29,78,216,0.16);
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(56,189,248,0.28));
  box-shadow: 0 12px 24px rgba(29,78,216,0.12);
}

.section { margin-top: 34px; padding: clamp(24px, 4vw, 46px); }
.section-heading { max-width: 780px; margin-bottom: 30px; }
.section-heading.compact { margin-bottom: 22px; }

/* Slide-friendly pipeline: one 16:9-ish panel that can be screenshotted/copied into PowerPoint. */
.intro-section {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro-section .section-heading { margin-bottom: 18px; }
.intro-section .section-heading p { font-size: 15px; line-height: 1.45; }

.flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 8px 0 4px;
}

.flow-card {
  position: relative;
  min-height: 218px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.flow-card.highlight {
  border-color: rgba(245,158,11,0.5);
  background: linear-gradient(180deg, rgba(255,247,237,0.94), rgba(255,255,255,0.78));
}

.step {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(29,78,216,0.34);
  font-size: 12px;
  font-weight: 950;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(29,78,216,0.09);
  border: 1px solid rgba(29,78,216,0.16);
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.flow-card h3 { font-size: 16px; line-height: 1.12; margin-bottom: 8px; }
.flow-card ul { padding-left: 16px; margin: 0; color: #405773; font-size: 13px; line-height: 1.38; }
.flow-card strong { color: var(--blue); }
.arrow { display: none; }

.meem-section {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meem-section .section-heading.compact { margin-bottom: 14px; }
.meem-section h2 { font-size: clamp(28px, 3.2vw, 42px); }

.meem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meem-panel {
  min-height: 172px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(29,78,216,0.14);
  background: rgba(255,255,255,0.68);
}

.meem-panel h3 { font-size: 16px; line-height: 1.12; margin-bottom: 7px; }
.meem-panel p { font-size: 13.5px; line-height: 1.38; margin: 0; }

.meem-panel.database { grid-column: span 2; }
.meem-panel.output { background: linear-gradient(145deg, rgba(29,78,216,0.94), rgba(20,184,166,0.88)); color: white; }
.meem-panel.output p, .meem-panel.output span { color: white; }

.split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.split-list div, .output-pills span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(29,78,216,0.08);
  color: #38506c;
  font-size: 13px;
}
.split-list strong { color: var(--blue); }

.mini-equations { display: flex; gap: 10px; margin-top: 14px; }
.mini-equations span, .ratio {
  display: grid;
  place-items: center;
  min-height: 50px;
  border-radius: 15px;
  background: rgba(56,189,248,0.14);
  color: var(--blue);
  font-size: 28px;
  font-weight: 950;
}
.mini-equations span { flex: 1; }
.ratio { margin-top: 16px; }

.thrust-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
}
.thrust-line::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8%;
  right: 8%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--blue));
}
.thrust-line span {
  position: relative;
  font-weight: 950;
  color: #344c67;
}
.thrust-line span::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: white;
  border: 4px solid var(--blue);
}

.output-pills { display: grid; gap: 10px; margin-top: 16px; }
.output-pills span { background: rgba(255,255,255,0.15); font-size: 17px; }
.output-pills b { font-size: 11px; opacity: 0.86; }

.formula-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.formula-cards { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.formula-card {
  flex: 1 1 150px;
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
}
.formula-card span { color: var(--muted); font-weight: 800; }
.formula-card strong { font-size: 25px; color: var(--blue); }
.formula-card.result { background: #102033; }
.formula-card.result span, .formula-card.result strong { color: white; }
.operator { color: var(--amber); font-size: 32px; font-weight: 950; }

.grid-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: center;
}

.voxel {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: 12px;
  padding: 30px;
  border-radius: 30px;
  background: rgba(16,32,51,0.05);
  transform: perspective(900px) rotateX(58deg) rotateZ(-28deg);
}
.voxel span:nth-child(3n), .grid-cube span:nth-child(4) { background: linear-gradient(145deg, rgba(245,158,11,0.8), rgba(29,78,216,0.38)); }
.voxel span:nth-child(5), .grid-cube span:nth-child(2) { background: linear-gradient(145deg, rgba(20,184,166,0.7), rgba(255,255,255,0.8)); }

@media (max-width: 940px) {
  .hero, .formula-section, .grid-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .intro-section, .meem-section { aspect-ratio: auto; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meem-grid { grid-template-columns: 1fr; }
  .meem-panel.database { grid-column: auto; }
  .split-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  main { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .hero-copy, .section { border-radius: 22px; }
  h1 { font-size: 42px; }
  .flow { grid-template-columns: 1fr; overflow: visible; }
  .flow-card { min-height: auto; }
  .formula-cards { display: grid; grid-template-columns: 1fr; }
  .operator { text-align: center; }
}
