/* Values taken from the Figma frame "v2_Landing Page" (1080 wide, 920 content), widened to a 1200 content column. */
:root {
  --ink: #0f172a;
  --muted: #475569;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --line: #e2e8f0;
  --tint: #f8fafc;
  --white: #ffffff;
  --gutter: 80px;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(600px + 2 * var(--gutter)); text-align: center; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { border: 1px solid var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #cbd5e1; background: var(--white); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Hero */
.hero { background: var(--tint); padding: 40px 0 126px; position: relative; z-index: 1; overflow-x: clip; }
.hero-grid { position: relative; }
.hero-copy { position: relative; z-index: 2; max-width: 536px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
/* Typographic logo */
.brand-row { position: relative; z-index: 2; margin-bottom: 64px; }
.brand { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: var(--ink); text-decoration: none; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand-tag {
  padding-left: 14px; border-left: 1.5px solid #cbd5e1;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 4px; }
h1 { font-size: 56px; font-weight: 800; line-height: 1.1; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 16px; }
/* Figma positions on the 1080 frame (minus the 20px export padding); on wider screens the art follows the right edge */
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art img { position: absolute; max-width: none; }
.art-scale { left: max(596px, calc(100% - 592px)); top: calc(65px - 146px); width: 538px; }
.art-terminal { left: max(440px, calc(100% - 640px)); top: calc(451px - 146px); width: 792px; }

/* Explainer */
.explainer { padding: 120px 0; }
.statement { font-size: 32px; font-weight: 700; line-height: 1.3; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.stat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.stat strong { font-size: 40px; font-weight: 800; line-height: 1.2; color: var(--blue); }
.stat-label { font-size: 16px; font-weight: 600; }
.stat-note { font-size: 14px; color: var(--muted); }

/* Promise */
.promise { padding: 0 0 120px; }
.promise h2, .cta h2 { font-size: 48px; font-weight: 800; line-height: 1.1; }
.promise .lead { margin-top: 32px; }

/* Technical proof */
.proof { padding: 0; }
.proof + .band { margin: 80px 0; }
.band + .proof { padding-bottom: 112px; }
.band img { width: 100%; }
.proof .wrap { display: flex; flex-direction: column; gap: 80px; }
.step { display: grid; grid-template-columns: minmax(0, 420fr) minmax(0, 452fr); gap: 48px; align-items: start; }
.step-copy { display: flex; flex-direction: column; gap: 24px; }
.step-num { font-size: 14px; font-weight: 700; color: var(--blue); }
.step h3 { font-size: 32px; font-weight: 700; line-height: 1.2; }
.step-copy p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.features { display: flex; flex-direction: column; gap: 24px; }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.feature {
  display: flex; flex-direction: column; gap: 8px;
  padding: 23px; /* + 1px border = Figma's 24px inside stroke */
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.feature h4 { font-size: 16px; font-weight: 700; }
.feature-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 8px;
  border-radius: 10px; background: var(--blue-soft); color: var(--blue);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature p { font-size: 14px; line-height: 1.21; color: var(--muted); }

/* Case studies */
.cases { background: var(--tint); padding: 32px 0 120px; scroll-margin-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; }
.section-head h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.case-list { display: flex; flex-direction: column; gap: 32px; margin-top: 64px; }
.case {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.case:hover { border-color: #cbd5e1; box-shadow: 0 12px 40px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.case-open { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: none; cursor: pointer; border-radius: 24px; }
.case-open:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.case-hint { justify-self: end; font-size: 14px; font-weight: 600; color: var(--blue); opacity: 0; transition: opacity .2s; }
.case:hover .case-hint, .case-open:focus-visible ~ .case-head .case-hint { opacity: 1; }
.case-head { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; height: 71px; padding: 40px 40px 0; }
.case-head h3 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.case img { width: 100%; }

/* Final CTA */
.cta { background: var(--ink); color: var(--white); padding: 120px 0; }
.cta .lead { color: var(--white); margin: 40px 0; }

/* Footer */
.site-footer { background: #020617; color: #94a3b8; padding: 24px 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; text-align: center; }
.site-footer .sep { color: #334155; }

/* Slideshow: close button top-right, nav centred at the bottom, the slide in between */
.deck {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #05060a; color: var(--white);
  overscroll-behavior: contain;
}
.deck::backdrop { background: #05060a; }
.deck-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: calc(72px + env(safe-area-inset-top)) 32px calc(96px + env(safe-area-inset-bottom));
}
.deck-img {
  /* explicit limits: a % max-height inside the grid cell is not enforced */
  max-width: 100%;
  max-height: calc(100dvh - 168px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  width: auto; height: auto; user-select: none; -webkit-user-drag: none; border-radius: 4px; }
.deck-close, .deck-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer;
  color: var(--white); background: rgba(255, 255, 255, .12);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.deck-close svg, .deck-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deck-close:hover, .deck-btn:hover { background: rgba(255, 255, 255, .22); }
.deck-close:focus-visible, .deck-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.deck-close { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); }
.deck-nav {
  position: absolute; z-index: 2; left: 50%; translate: -50% 0;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px;
}
.deck-count { min-width: 44px; text-align: center; font-size: 14px; color: #94a3b8; font-variant-numeric: tabular-nums; }

/* Narrower screens */
@media (max-width: 1000px) {
  :root { --gutter: 40px; }
  .hero { padding-bottom: 0; }
  .hero-copy { max-width: none; }
  .hero-art { position: relative; inset: auto; height: min(90vw, 620px); margin-top: 24px; }
  .art-scale { left: auto; right: -4%; top: 0; width: min(62vw, 538px); }
  .art-terminal { left: -6%; top: 38%; width: min(98vw, 792px); }
  .step { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand-row { margin-bottom: 40px; }
  .brand-tag { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .site-footer .sep { display: none; }
  .site-footer p { flex-direction: column; }
  .hero, .explainer, .cta { padding: 72px 0; }
  .promise, .proof { padding-bottom: 72px; }
  .cases { padding-bottom: 72px; }
  h1 { font-size: 38px; }
  .statement { font-size: 24px; }
  .promise h2, .cta h2 { font-size: 36px; }
  .step h3 { font-size: 26px; }
  .stats, .feature-pair { grid-template-columns: 1fr; }
  .case-head { height: auto; padding: 24px 24px 8px; }
  .case-hint { opacity: 1; }
  .deck-stage { padding-left: 0; padding-right: 0; }
  .deck-img { border-radius: 0; }
}
