/* =========================================================
   Maple Loop landing page
   Palette pulled from the Maple Loop deck
   ========================================================= */

:root {
  --ink: #06121f;          /* deep navy, near black */
  --navy: #0e2a47;         /* deck navy panels */
  --navy-2: #133559;
  --blue: #12a4f0;         /* Maple Loop bright blue */
  --blue-deep: #0b6aa2;    /* deck heading blue */
  --sky: #5cc8ff;
  --text: #1d1d1f;
  --muted: #5f6b7a;
  --muted-dark: #9fb0c4;
  --surface: #f4f6f9;
  --white: #ffffff;
  --line: #dde3ea;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(36px, 7vw, 100px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #0d93db; }
.btn:active { transform: scale(.98); }

.btn--small {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.link {
  color: var(--sky);
  font-size: 17px;
  text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }


/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(55% 70% at 78% 45%, rgba(18, 164, 240, .2) 0%, transparent 70%),
    radial-gradient(120% 70% at 25% 0%, #123a63 0%, transparent 60%),
    var(--ink);
  color: var(--white);
  padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gutter) clamp(64px, 9vw, 128px);
  overflow: hidden;
}
/* Logo, section links and button along the top of the hero */
.hero__bar {
  max-width: calc(var(--wrap) - var(--gutter) * 2);
  margin: 0 auto clamp(56px, 4vw, 104px);
  display: flex;
  align-items: center;
  gap: 16px 36px;
}
.hero__logo img { height: 80px; width: auto; }

.hero__nav { margin-left: auto; }
.hero__links {
  display: flex;
  gap: 32px;
}
.hero__links a {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  text-decoration: none;
  transition: color .2s;
}
.hero__links a:hover { color: var(--white); }

.hero__cta {
  min-height: 40px;
  padding: 0 20px;
  font-size: 15px;
}

@media (max-width: 760px) {
  .hero__bar { flex-wrap: wrap; justify-content: space-between; }
  .hero__logo img { height: 28px; }
  .hero__nav { order: 3; width: 100%; margin-left: 0; }
  .hero__links { gap: 24px; overflow-x: auto; }
  .hero__links a { font-size: 14px; white-space: nowrap; }
  .hero__cta { min-height: 36px; padding: 0 16px; font-size: 14px; }
}

.hero__inner {
  max-width: calc(var(--wrap) - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 5vw, 64px) clamp(40px, 5vw, 72px);
}

.hero__head {
  grid-column: 1 / -1;
  animation: rise 1.1s var(--ease) both;
}
.hero__copy { animation: rise 1.1s .1s var(--ease) both; }

.hero__product { margin-bottom: 28px; }
.hero__product .cta__logo { height: 100px; width: auto; margin: 0; }

.hero__title {
   max-width: 17em;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #b9d6ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 520px;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.45;
  color: var(--muted-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.hero .hero__actions { justify-content: flex-start; }

.hero__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 80px -20px rgba(0, 0, 0, .6),
    0 0 120px rgba(18, 164, 240, .16);
  animation: rise 1.3s .15s var(--ease) both;
}
.hero__media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__lede { max-width: 600px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Statement ---------- */

.statement {
  background: var(--ink);
  padding: var(--section) var(--gutter);
  text-align: center;
}

.statement__text {
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 700;
  padding: 15px;
  line-height: 1;
  letter-spacing: -0.045em;
  /* Text "fills" with light as it scrolls into view (where supported) */
  background: linear-gradient(90deg, #ffffff 0%, var(--sky) 50%, #26415f 50%, #26415f 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Section heads ---------- */

.section-head { max-width: 820px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 20px;
  font-size: clamp(18px, 1.8vw, 21px);
}
.section-head--center p { max-width: 640px; margin-inline: auto; }

.section-head__sub {
  margin: 0 0 12px !important;
  font-size: 19px !important;
  font-weight: 600;
  color: var(--blue-deep) !important;
}

/* ---------- Intro / overview ---------- */

.intro {
  background: var(--white);
  padding: var(--section) 0;
}

.intro__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.intro__title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro__title span { display: block; color: var(--blue-deep); }

.intro__media {
  margin-top: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.intro__media img,
.intro__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 19 / 9;
  object-fit: cover;
}
.intro__placeholder {
  display: grid;
  place-items: center;
  border: 1.5px dashed #c3ccd6;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(18, 164, 240, .06), rgba(11, 106, 162, .1)),
    var(--surface);
}
.intro__placeholder span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.intro__body p {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.intro__body p + p { margin-top: 20px; }

.intro__body .intro__emphasis {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--blue);
  color: var(--text);
}
.intro__emphasis strong { font-weight: 600; }

.intro__points {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 40px);
}
.intro__point {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.intro__point svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}
.intro__point h3 {
  font-size: clamp(20px, 1.8vw, 22px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.intro__point p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.intro__closer {
  margin-top: clamp(64px, 9vw, 112px);
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (max-width: 960px) {
  .intro__top { grid-template-columns: 1fr; }
  .intro__points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 560px) {
  .intro__points { grid-template-columns: 1fr; gap: 32px; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .intro__point {
      animation: step-on linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* ---------- Loop (how it works) ---------- */

.loop {
  background: var(--ink);
  color: var(--white);
  padding: 0 0 var(--section);
}
.loop .section-head p { color: var(--white); }

.loop__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.loop__ring {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1;
}
.loop__ring svg { width: 100%; height: 100%; overflow: visible; }

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 2;
}
.ring-trace {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 22 78;
  transform: rotate(-90deg);
  transform-origin: 200px 200px;
  animation: trace 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(18, 164, 240, .6));
}
.ring-node circle {
  fill: var(--ink);
  stroke: var(--sky);
  stroke-width: 3;
}

@keyframes trace {
  to { stroke-dashoffset: -100; }
}

.loop__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.loop__center-big {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.loop__center-small {
  font-size: 15px;
  color: var(--muted-dark);
}

.loop__steps { display: grid; gap: 40px; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
}
.step__num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(92, 200, 255, .5);
  color: var(--sky);
  font-weight: 600;
}
.step h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.step p { color: var(--white); font-size: 17px; max-width: 42ch; }

@media (max-width: 860px) {
  .loop__layout { grid-template-columns: 1fr; }
  .loop__ring { max-width: 340px; }
}

/* ---------- Team knowledge ---------- */

.knowledge {
  background: var(--surface);
  padding: var(--section) 0;
}

.knowledge__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.knowledge__title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.knowledge__lede {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

.knowledge__label {
  margin-top: 36px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.knowledge__list { margin-top: 8px; }
.knowledge__list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}
.knowledge__list li:last-child { border-bottom: 0; }
.knowledge__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--blue-deep);
}
.knowledge__list strong { color: var(--text); font-weight: 600; }

/* The prompt panel */

.prompts {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(18, 164, 240, .22), transparent 70%),
    var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(6, 18, 31, .55);
}

.prompts__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 24px;
}
.prompts__label::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10l-6.3 2.2L12 18.5l-2.2-6.3L3.5 10l6.3-1.7z' fill='%235cc8ff'/%3E%3Cpath d='M19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z' fill='%235cc8ff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.prompts__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.prompt {
  max-width: 88%;
  padding: 14px 18px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.4;
  color: #eaf4ff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px 20px 6px 20px;
}
.prompt:nth-child(even) {
  background: rgba(18, 164, 240, .18);
  border-color: rgba(92, 200, 255, .25);
}

.prompts__composer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.prompts__placeholder {
  min-width: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompts__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -3px;
  background: var(--sky);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.prompts__send {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
}
.prompts__send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  .knowledge__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .prompt { max-width: 100%; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .prompt {
      animation: prompt-in linear both;
      animation-timeline: view();
    }
    .prompt:nth-child(1) { animation-range: entry 10% cover 25%; }
    .prompt:nth-child(2) { animation-range: entry 25% cover 32%; }
    .prompt:nth-child(3) { animation-range: entry 40% cover 39%; }
    .prompt:nth-child(4) { animation-range: entry 55% cover 46%; }
    @keyframes prompt-in {
      from { opacity: 0; transform: translateY(14px) scale(.97); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- Workflows / use cases ---------- */

.workflows {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(18, 164, 240, .14), transparent 70%),
    var(--ink);
  color: var(--white);
  padding: var(--section) 0;
  interpolate-size: allow-keywords; /* lets the cards animate open where supported */
}
.workflows .section-head p { color: var(--muted-dark); }

.usecases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.usecase {
  border-radius: 22px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: background-color .2s ease, border-color .2s ease;
}
.usecase:hover { background: rgba(255, 255, 255, .06); }
.usecase[open] {
  background: rgba(18, 164, 240, .1);
  border-color: rgba(92, 200, 255, .3);
}

.usecase__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "icon toggle"
    "title title";
  gap: 22px 16px;
  padding: 26px 26px 28px;
  cursor: pointer;
  list-style: none;
  border-radius: 22px;
}
.usecase__summary::-webkit-details-marker { display: none; }
.usecase__summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.usecase__icon {
  grid-area: icon;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usecase__title {
  grid-area: title;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Round + button that turns into × when open */
.usecase__toggle {
  grid-area: toggle;
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: transform .3s var(--ease), background-color .2s ease;
}
.usecase__toggle::before,
.usecase__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--white);
}
.usecase__toggle::after { transform: rotate(90deg); }
.usecase__summary:hover .usecase__toggle { background: rgba(255, 255, 255, .18); }
.usecase[open] .usecase__toggle {
  transform: rotate(45deg);
  background: var(--blue);
}

.usecase__text {
  padding: 0 26px 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-dark);
}

/* Smooth open and close in browsers that support it; others open instantly */
.usecase::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.usecase[open]::details-content { block-size: auto; }

@media (max-width: 960px) {
  .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .usecases { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- CTA banner ---------- */

.banner-wrap {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  color: var(--white);
  background:
    radial-gradient(60% 140% at 0% 0%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 100%);
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
}

/* Faint "loop" rings in the corner */
.banner__rings {
  position: absolute;
  right: -80px;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1.5;
  pointer-events: none;
}

.banner__title {
  position: relative;
	  color: var(--white);
  max-width: 22em;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.banner__title span {
  display: block;
  color: rgba(255, 255, 255, .55);
}

.banner__btn {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-deep);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(6, 18, 31, .5);
	color: var(--blue-deep);
}
.banner__btn:active { transform: scale(.98); }
.banner__btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .banner { flex-direction: column; align-items: flex-start; }
  .banner__btn { width: 100%; }
  .banner__rings { right: -200px; top: 0; transform: none; }
}

/* ---------- Imagine ---------- */

.imagine {
  padding: var(--section) 0;
  background: var(--white);
}

.prompt-demo {
  display: grid;
  gap: 24px;
}

.prompt-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
}
.prompt-card__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.prompt-card__text {
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 32em;
}

.returns {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 24px;
}

.returns__plot {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.returns__plot img { margin-inline: auto; max-height: 420px; width: auto; }
.returns__plot figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.returns__list {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.returns__list h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.checks { display: grid; gap: 18px; padding-bottom: 30px; }
.checks li {
  position: relative;
  padding-left: 38px;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%2306121f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--sky);
}

@media (max-width: 860px) {
  .returns { grid-template-columns: 1fr; }
}

/* ---------- Benefits ---------- */

.benefits {
  background: var(--surface);
}
.benefits__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.benefit__icon {
  width: 100px;
  height: 100px;
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 30px;
}
.benefit h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.benefit p { color: var(--muted); }

@media (max-width: 860px) {
  .benefits__grid { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats {
  text-align: center;
}
.stats__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted-dark);
  margin-bottom: 56px;
  margin-top: 40px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.stat dt {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}
.stat dd {
  margin-top: 14px;
  color: var(--white);
  max-width: 26ch;
  margin-inline: auto;
}
.stat--ours dt {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.05;
  color: var(--blue-deep);
  min-height: 1.43em; /* aligns visually with the larger numerals */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fineprint {
  margin-top: 56px;
	margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: #86868b;
  max-width: 820px;
}
.stats .fineprint,
.fineprint--center { margin-inline: auto; text-align: center; }

@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr; gap: 48px; }
  .stat--ours dt { min-height: 0; }
}

/* ---------- Outputs ---------- */

.outputs {
  background: var(--surface);
  padding: var(--section) 0;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 380px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery__item--wide { grid-column: span 1; }
@media (min-width: 900px) {
  .gallery { grid-auto-columns: auto; grid-template-columns: 1fr 1.6fr 1fr; overflow: visible; }
}

.gallery__item { scroll-snap-align: start; }

.gallery__frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 20px 0;
  height: 420px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 20px 40px -24px rgba(14, 42, 71, .25);
}
.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.gallery__item figcaption {
  margin-top: 18px;
  padding-inline: 4px;
  color: var(--muted);
  font-size: 17px;
}
.gallery__item figcaption strong { color: var(--text); font-weight: 600; }

.formats__title {
  margin: clamp(20px, 2vw, 40px) 0 20px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
}

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.format {
  background: var(--white);
  padding: clamp(24px, 3vw, 40px);
}
.format svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}
.format h4 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.format p { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .formats { grid-template-columns: 1fr; } }

.code-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.code-strip__copy {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.code-strip__code {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: #d6e4f2;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.code-strip__code .k { color: var(--sky); }
.code-strip__code .f { color: #ffd479; }

@media (max-width: 860px) { .code-strip { grid-template-columns: 1fr; } }

/* ---------- Engine ---------- */

.engine {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(18, 164, 240, .22), transparent 70%),
    var(--ink);
  color: var(--white);
  padding: var(--section) 0;
  text-align: center;
}
.engine__inner { max-width: 960px; }
.engine__kicker {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 16px;
}
.engine__title {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.engine__lede {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: clamp(19px, 2vw, 22px);
}
.engine__pillars {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.engine__pillars li {
  padding: 28px 20px 0;
  font-size: 19px;
  line-height: 1.35;
  color: var(--muted-dark);
}
.engine__pillars li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.engine__pillars strong { display: block; color: var(--white); font-weight: 600; }

@media (max-width: 760px) {
  .engine__pillars { grid-template-columns: 1fr; }
  .engine__pillars li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; }
}

/* ---------- Example ---------- */

.example {
  background: var(--white);
  padding: var(--section) 0;
}

.example__prompt {
  position: relative;
  max-width: 860px;
  margin-left: auto;
  background: var(--blue);
  color: var(--white);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg) var(--radius-lg) 8px var(--radius-lg);
}
.example__prompt p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.example__meta {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

.example__returns-title {
  margin: clamp(56px, 8vw, 88px) 0 32px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.example__returns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.example__returns h4 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}
.example__returns p { color: var(--muted); }

.workspace {
  margin-top: clamp(56px, 8vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
}
.workspace__shot {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.workspace__shot img {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(14, 42, 71, .08), 0 24px 48px -28px rgba(14, 42, 71, .35);
  margin-inline: auto;
}
.workspace__shot figcaption { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .example__returns,
  .workspace { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: var(--white);
  padding: var(--section) 0;
  text-align: center;
}
.cta__logo { height: 125px; width: auto; margin: 0 auto 20px; }
.cta__title {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.cta__lede {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: clamp(18px, 1.8vw, 21px);
}
.hero__actions--center { margin-top: 40px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #7d8a99;
  font-size: 12px;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* =========================================================
   Scroll-driven motion (progressive enhancement)
   Chrome, Edge, Safari 26+. Other browsers show the static page.
   ========================================================= */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Statement text fills with light */
    .statement__text {
      background-position: 100% 0;
      animation: fill linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 55%;
    }
    @keyframes fill {
      to { background-position: 0% 0; }
    }

    /* Steps light up one by one */
    .step {
      animation: step-on linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 40%;
    }
    @keyframes step-on {
      from { opacity: .2; transform: translateY(16px); }
      to   { opacity: 1; transform: none; }
    }

    /* Big headlines settle into place */
    .engine__title,
    .cta__title {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    @keyframes settle {
      from { opacity: 0; transform: scale(.92); }
      to   { opacity: 1; transform: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ring-trace { stroke-dasharray: none; }
}
