: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,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(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-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  color: rgba(255,255,255,.86);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  background: rgba(255,255,255,.06);
}
.section-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero-grid {
  display: grid;
  grid-template-columns: .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: .14em;
  color: #93c5fd;
}
.eyebrow.dark { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: .95;
  letter-spacing: -.066em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(31px, 4.1vw, 50px);
  line-height: 1.02;
  letter-spacing: -.052em;
  margin-bottom: 16px;
}
h3 {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.lead {
  font-size: clamp(18px, 2.05vw, 21px);
  color: rgba(255,255,255,.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,.22); background: rgba(255,255,255,.06); }
.hero-panel {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  padding: 14px;
  box-shadow: 0 36px 120px rgba(0,0,0,.34);
  position: relative;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 38px -18px 38px;
  height: 36px;
  background: rgba(37,99,235,.38);
  filter: blur(28px);
  border-radius: 999px;
}
.hero-panel img {
  border-radius: 20px;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  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,.88);
  background: rgba(7,18,37,.86);
  border: 1px solid rgba(255,255,255,.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,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 18px; }
.metric-card strong { display: block; font-size: 32px; letter-spacing: -.05em; }
.metric-card span { display: block; color: rgba(255,255,255,.72); font-size: 14px; }
.hero-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); border-radius: 22px; }
.hero-note span { flex: 0 0 auto; font-size: 12px; font-weight: 850; text-transform: uppercase; color: #bfdbfe; }
.hero-note p { margin: 0; color: rgba(255,255,255,.8); }
.section { padding: 86px 0; }
.section.compact { padding: 70px 0; }
.section.alt { background: #eef4ff; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.copy-block { font-size: 18px; color: #334155; }
.copy-block p { margin-bottom: 16px; }
.question-bubbles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.question-bubbles span, .pill-list span, .stack-strip span {
  display: inline-flex;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}
.question-bubbles span { color: #1e40af; background: #dbeafe; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.split-head { max-width: none; display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: end; }
.flow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.flow-card {
  min-height: 100px;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dbe3f0;
  box-shadow: var(--shadow-soft);
  font-weight: 850;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.flow-card::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  right: -18px;
  top: -18px;
  background: var(--blue-soft);
}
.flow-card.source { background: #071225; color: #fff; border-color: #071225; }
.flow-card.wide { color: #172033; }
.mini-callouts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.mini-callouts div { border-radius: 20px; background: #fff; border: 1px solid var(--line); padding: 16px 18px; box-shadow: var(--shadow-soft); }
.mini-callouts strong { display: block; margin-bottom: 5px; }
.mini-callouts span { color: var(--muted); font-size: 14px; }
.cards-grid { display: grid; gap: 18px; }
.screenshots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.make-grid { grid-auto-flow: dense; }
.shot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.shot-card.featured { grid-column: span 2; }
.image-button { appearance: none; border: 0; padding: 0; background: #e2e8f0; cursor: zoom-in; width: 100%; display: block; }
.image-button img { width: 100%; height: 220px; object-fit: cover; object-position: top; transition: transform .25s ease; }
.shot-card.featured .image-button img { height: 285px; }
.image-button:hover img { transform: scale(1.02); }
.card-copy { padding: 18px; }
.card-copy p { color: var(--muted); margin-bottom: 0; }
.tag { display: inline-flex; margin-bottom: 10px; border-radius: 999px; padding: 6px 9px; color: #1e40af; background: #dbeafe; font-weight: 850; font-size: 12px; }
.micro-note { display: block; margin-top: 12px; color: #2563eb; font-size: 13px; font-weight: 760; }
.dark-section { background: linear-gradient(135deg, #071225 0%, #08172e 100%); color: #fff; }
.dark-section .section-head p { color: rgba(255,255,255,.68); }
.four-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.info-card { border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft); }
.info-card p { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.dark-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.dark-card p { color: rgba(255,255,255,.68); }
.split-showcase { display: grid; grid-template-columns: .88fr 1.12fr; gap: 28px; align-items: center; }
.showcase-copy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.showcase-copy p { color: var(--muted); font-size: 17px; }
.pill-list { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.pill-list span { color: #1e40af; background: #dbeafe; }
.showcase-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-soft); }
.showcase-media img { border-radius: 16px; background: #fff; }
.caption { margin: 12px 6px 2px; color: var(--muted); font-size: 14px; }
.final-section { padding-bottom: 72px; }
.stack-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stack-strip span { color: #bfdbfe; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(2,8,23,.86); display: none; align-items: center; justify-content: center; padding: 36px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(96vw, 1440px); max-height: 88vh; border-radius: 18px; box-shadow: 0 26px 90px rgba(0,0,0,.45); background: #fff; }
.lightbox-close { position: fixed; top: 18px; right: 20px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }
@media (max-width: 980px) {
  .hero-grid, .two-col, .split-head, .split-showcase { grid-template-columns: 1fr; }
  .metric-strip, .mini-callouts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow-grid, .screenshots, .four-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shot-card.featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .section-inner { width: min(100% - 28px, 1120px); }
  .topbar { padding-left: 14px; padding-right: 14px; align-items: flex-start; }
  .nav-actions { display: none; }
  .hero-grid { padding-top: 32px; gap: 28px; }
  .metric-strip, .mini-callouts, .flow-grid, .screenshots, .four-grid { grid-template-columns: 1fr; }
  .shot-card.featured { grid-column: auto; }
  .section { padding: 64px 0; }
  .image-button img, .shot-card.featured .image-button img { height: 210px; }
  .hero-panel img { max-height: 380px; }
  .hero-note { flex-direction: column; }
}
