:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #eef4ff;
  --text: #101827;
  --muted: #64748b;
  --line: #dbe3f0;
  --dark: #071225;
  --dark-2: #0b1830;
  --blue: #2563eb;
  --blue-2: #60a5fa;
  --blue-soft: #dbeafe;
  --violet: #7c3aed;
  --green: #10b981;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 42px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(37, 99, 235, 0.34), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(124, 58, 237, 0.34), transparent 30%),
    radial-gradient(circle at 52% 90%, rgba(96, 165, 250, 0.15), transparent 28%),
    linear-gradient(135deg, #061126 0%, #08172e 58%, #0f2142 100%);
  padding-bottom: 58px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.62), transparent 78%);
  pointer-events: none;
}

.topbar,
.hero-grid,
.metric-strip,
.hero-note {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 850;
  letter-spacing: -0.03em;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
  padding-top: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #93c5fd;
}

.eyebrow.dark {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 6.8vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.066em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.052em;
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(18px, 2.05vw, 21px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 650px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 850;
  font-size: 14px;
}

.button.primary {
  color: #061126;
  background: #fff;
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 14px;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.34);
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 38px -18px 38px;
  height: 36px;
  background: rgba(37, 99, 235, 0.38);
  filter: blur(28px);
  border-radius: 999px;
}

.hero-panel img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  background: #fff;
  position: relative;
  z-index: 1;
}

.screen-label {
  position: relative;
  z-index: 2;
  margin: -18px 16px 0 auto;
  width: min(92%, 460px);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(7, 18, 37, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 18px;
}

.metric-card strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.metric-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-note span {
  flex: 0 0 auto;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 70px 0;
}

.alt {
  background: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

.copy-block {
  font-size: 20px;
  color: #334155;
}

.copy-block p:last-child,
.section-head p:last-child,
.card-copy p:last-child,
.info-card p:last-child,
.final-card p:last-child,
.hero-note p:last-child {
  margin-bottom: 0;
}

.question-bubbles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.question-bubbles span {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 10px 14px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 850;
}

.question-bubbles span::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 48px;
  align-items: end;
}

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

.flow-card {
  min-height: 74px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  position: relative;
}

.flow-card.source {
  background: #f8fbff;
  color: #1d4ed8;
}

.flow-card.wide {
  grid-column: span 2;
}

.flow-card.wide:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.cards-grid {
  display: grid;
  gap: 22px;
}

.screenshots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -8px 0 26px;
}

.mini-callouts div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.mini-callouts strong {
  display: block;
  color: #1e3a8a;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.mini-callouts span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.shot-card,
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
  border-color: #c7d7ef;
}

.shot-card.featured {
  grid-column: span 2;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #eef2f8;
}

.image-button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.card-copy {
  padding: 20px 22px 22px;
}

.card-copy p,
.info-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.micro-note {
  display: inline-flex;
  margin-top: 14px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
}

.dark-section {
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.26), transparent 30%),
    radial-gradient(circle at 84% 70%, rgba(124, 58, 237, 0.18), transparent 26%),
    linear-gradient(135deg, #071225, #0d1d38);
}

.dark-section .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-cards {
  align-items: stretch;
}

.info-card {
  padding: 22px;
  position: relative;
}

.info-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  margin-bottom: 18px;
}

.dark-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.dark-card::before {
  background: #93c5fd;
}

.dark-card p {
  color: rgba(255, 255, 255, 0.68);
}

.impact-section {
  padding-top: 80px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.impact-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 18px 46px;
  font-weight: 850;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  position: relative;
}

.impact-grid div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.stack-section {
  background: #fff;
  padding: 64px 0;
}

.stack-wrap {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 42px;
  align-items: center;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-list span {
  background: #f1f5ff;
  border: 1px solid #dbe7ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
}

.final-section {
  background: var(--dark);
  color: #fff;
  padding: 92px 0;
}

.final-card {
  max-width: 880px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 54px);
  position: relative;
  overflow: hidden;
}

.final-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  background: rgba(37, 99, 235, 0.28);
  filter: blur(12px);
  border-radius: 999px;
}

.final-card > * {
  position: relative;
  z-index: 1;
}

.final-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(2, 8, 23, 0.88);
  z-index: 999;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 88vh;
  max-width: 96vw;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .split-head,
  .stack-wrap {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .metric-strip,
  .four-grid,
  .impact-grid,
  .mini-callouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-card.wide {
    grid-column: span 1;
  }

  .flow-card.wide::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding: 62px 0;
  }

  .section.compact {
    padding: 52px 0;
  }

  .metric-strip,
  .screenshots,
  .four-grid,
  .impact-grid,
  .flow-grid,
  .mini-callouts {
    grid-template-columns: 1fr;
  }

  .shot-card.featured {
    grid-column: span 1;
  }

  .image-button img {
    aspect-ratio: 4 / 3;
  }

  .lead,
  .copy-block,
  .section-head p,
  .final-card p {
    font-size: 17px;
  }

  .hero-note {
    display: block;
  }

  .hero-note span {
    display: inline-block;
    margin-bottom: 8px;
  }

  .screen-label {
    width: auto;
    margin: 10px 4px 0;
  }
}
