:root {
  --black: #000000;
  --ink: #0a0a0a;
  --white: #f5f5f2;
  --paper: #f1f1ed;
  --gray-1: #a3a3a3;   /* secondary text on black */
  --gray-2: #6e6e6e;   /* quiet text on black */
  --gray-3: #4a4a4a;   /* secondary text on paper */
  --rule-dark: #1c1c1c;
  --rule-light: #cdcdc8;

  --sans: "Inter Tight", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --ease: 200ms cubic-bezier(.2, .7, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }
.features :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--white); color: var(--black); padding: 8px 12px; font-weight: 600;
  transition: top var(--ease);
}
.skip:focus { top: 12px; }

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

.wordmark {
  display: inline-block;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.03em;
}

/* ---------- Motion primitives (only when JS is on) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }

.js .rise { animation: rise 1.1s var(--out) var(--d, 0ms) both; }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease var(--d, 0ms), transform 1.1s var(--out) var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header .wrap { height: 72px; display: flex; align-items: center; }

/* slim CTA bar: one consistent primary action, always within reach after the hero */
.sticky-cta {
  position: fixed; inset: 0 0 auto; z-index: 40;
  background: rgba(0,0,0,.94);
  border-bottom: 1px solid var(--rule-dark);
  transform: translateY(-101%);
  transition: transform 250ms cubic-bezier(0,0,0,1);
}
.sticky-cta.show { transform: none; }
.sticky-inner { height: 60px; display: flex; align-items: center; gap: 12px; }
.sticky-name { color: var(--gray-1); font-size: 14px; }
.sticky-cta .btn { margin-left: auto; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* hero emblem drifts and fades slightly as you scroll away */
.art-parallax { transform: translate3d(0, var(--py, 0px), 0); opacity: var(--po, 1); will-change: transform; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding-block: 112px 72px;
  overflow: hidden;
  isolation: isolate;
}
/* faint ambient light behind the art */
.hero::before {
  content: "";
  position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax;
  right: -18vmax; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.07), rgba(255,255,255,.02) 55%, transparent 100%);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

h1 {
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 800;
  max-width: 12ch;
  text-wrap: balance;
  filter: drop-shadow(0 0 36px rgba(255, 255, 255, .12)); /* on the whole heading so the word masks don't clip it */
}
.headline .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .04em .12em;
  margin: 0 -.04em -.12em;
}
.headline .w > span { display: inline-block; }
.js .headline .w > span { animation: word-up 1.15s var(--out) calc(120ms + var(--i) * 90ms) both; }

.product-name {
  margin-top: clamp(28px, 3.5vw, 44px);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -.015em;
}
.lede {
  margin-top: 8px;
  max-width: 36ch;
  color: var(--gray-1);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}
.cta { margin-top: 36px; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  background: var(--white); color: var(--black);
  border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 0 0 rgba(255,255,255,0);
  transition: background-color var(--ease), box-shadow 400ms ease, transform var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: #e4e4e0;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 12px 48px -6px rgba(255,255,255,.35);
}
.btn:active { transform: scale(.98); }
.arrow { width: 16px; height: 16px; transition: transform var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn[aria-disabled="true"] {
  background: #262626; color: #7a7a7a; box-shadow: none;
  cursor: not-allowed; pointer-events: none;
}
.shopify-note { margin-top: 12px; font-size: 13px; color: var(--gray-2); }
.shopify-note[hidden] { display: none; }

/* ---------- Hero art: supplied emblem in grayscale ---------- */
.hero-art { display: grid; place-items: center; perspective: 1100px; }
.art-tilt {
  position: relative;
  width: min(100%, 600px);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 900ms var(--out);
}
.art-float { position: relative; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-10px); } }

.art-glow {
  position: absolute; inset: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(255,255,255,.07) 55%, transparent 100%);
  filter: blur(18px);
  animation: glow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }

.art-img { position: relative; }
/* The emblem file has no baked-in halo (crisp edges); the glow is added here
   and follows the S's exact outline: a tight rim light plus a wide soft bloom. */
.art-img img,
.closing-mark img {
  width: 100%;
  filter: grayscale(1) contrast(1.12) brightness(1.04)
          drop-shadow(0 0 1.5px rgba(255,255,255,.7))
          drop-shadow(0 0 10px rgba(255,255,255,.35))
          drop-shadow(0 0 28px rgba(255,255,255,.18));
  mix-blend-mode: lighten;
  user-select: none;
}
/* a slow band of light passing over the facets. It is masked by the emblem's own
   alpha, so the light only ever touches the S, never the square image box. */
.art-sheen {
  position: absolute; inset: 0;
  -webkit-mask: url("assets/sysinfo-s-emblem.png") center / 100% 100% no-repeat;
          mask: url("assets/sysinfo-s-emblem.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%) no-repeat;
  background-size: 260% 100%;
  background-position: 94% 0;    /* band just left of the S */
  mix-blend-mode: screen;
  animation: sheen 9s ease-in-out 1.6s infinite;
  pointer-events: none;
}
/* glides from just left of the S to just right of it, then rests */
@keyframes sheen { 0% { background-position: 94% 0; } 28%, 100% { background-position: 6% 0; } }

.art-floor {
  position: absolute; left: 22%; right: 22%; bottom: 2%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent);
  filter: blur(6px);
  animation: floor 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floor { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.82); opacity: .55; } }

/* ---------- Concept showcase ---------- */
.showcase {
  position: relative;
  background: var(--black);
  padding-block: clamp(56px, 8vw, 120px) clamp(72px, 10vw, 144px);
}
.showcase-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-1);
}
.showcase h2, .closing h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.02;
  text-shadow: 0 0 40px rgba(255,255,255,.08);
}
.showcase-sub { margin-top: 14px; color: var(--gray-1); font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 48ch; }

.stage {
  position: relative;
  aspect-ratio: 16 / 9.6;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 55%, rgba(255,255,255,.055), transparent 70%),
    #050505;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 40px 140px -50px rgba(255,255,255,.16);
}
/* soft spotlight that follows the pointer */
.stage::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.05), transparent 60%);
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.stage:hover::before { opacity: 1; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html:not(.js) .stage { display: none; }

.badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.6);
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #cfcfcf;
}
.badge i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 10px rgba(255,255,255,.8);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.play {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.6);
  color: var(--white);
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}
.play:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.play svg { width: 16px; height: 16px; }
.play .i-play { display: none; }
.play[data-state="paused"] .i-play { display: block; }
.play[data-state="paused"] .i-pause { display: none; }
.play[hidden] { display: none; }

/* ---------- Side panel next to the illustration ----------
   The four steps; the active one (set by motion.js) lights up, opens its line and
   fills its hairline over the step's time (--p, 0…1). Click to jump to a step. */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline;
  position: relative;
  width: 100%;
  padding: 18px 0 20px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}
.step:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }
.step-n {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums;
  color: var(--gray-2);
  transition: color 400ms ease;
}
.step-title {
  display: block;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1;
  color: #3d3d3d;
  transition: color 400ms ease;
}
.step:hover .step-title { color: var(--gray-2); }
.step-line {
  display: grid; grid-template-rows: 0fr;
  color: var(--gray-1); font-size: 14.5px; line-height: 1.45;
  opacity: 0;
  transition: grid-template-rows 500ms var(--out), opacity 300ms ease, margin-top 500ms var(--out);
}
.step-line > * { overflow: hidden; min-height: 0; }
/* hairline under each step; the active one fills with the step's progress */
.step-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-dark); overflow: hidden; }
.step-bar i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.step.is-past .step-bar i { transform: scaleX(1); opacity: .22; }
.step.is-active .step-bar i { transform: scaleX(var(--p, 0)); }
.step.is-active .step-n, .step.is-active .step-title { color: var(--white); }
.step.is-active .step-line { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; transition-delay: 0ms, 120ms, 0ms; }

@media (min-width: 1001px) {
  .showcase-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: clamp(28px, 3.5vw, 56px); align-items: center;
  }
  .showcase-grid .stage { aspect-ratio: 16 / 11; }
}
@media (max-width: 1000px) {
  .steps { margin-top: 20px; }
  .step { padding: 14px 0 16px; }
}

/* caption + CTA right after the illustration's peak moment */
.showcase-foot {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: clamp(20px, 3vw, 32px);
}
.showcase-cta { text-align: right; }
.caption { min-height: 4.6em; flex: 1 1 360px; }
.caption-text { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 500; letter-spacing: -.015em; max-width: 46ch; text-wrap: pretty; }
.caption-legend { margin-top: 8px; color: var(--gray-1); font-size: 14.5px; max-width: 60ch; }
.caption.swap .caption-text, .caption.swap .caption-legend { animation: rise .7s var(--out) both; }
.caption.swap .caption-legend { animation-delay: 80ms; }

.disclaimer {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
  color: var(--gray-2); font-size: 13px;
}
.disclaimer svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ---------- Features (off-white) ---------- */
.features {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(72px, 10vw, 144px);
}
.features-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.rows { border-top: 1px solid var(--rule-light); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: baseline;
  padding-block: clamp(28px, 3.6vw, 48px);
}
/* the rule under each row draws in from the left */
.row::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rule-light);
  transform-origin: left center;
}
.js .row::after { transform: scaleX(0); transition: transform 1.3s var(--out) calc(var(--d, 0ms) + 150ms); }
.js .row.in::after { transform: scaleX(1); }
.row h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.row p {
  color: var(--gray-3);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  max-width: 40ch;
}

/* ---------- Closing CTA ---------- */
.closing {
  position: relative;
  background: var(--black);
  padding-block: clamp(80px, 11vw, 160px);
  overflow: hidden;
  isolation: isolate;
}
.closing::before {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 0;
  width: 80vmax; height: 50vmax;
  transform: translate(-50%, -45%);
  background: radial-gradient(closest-side, rgba(255,255,255,.07), transparent);
  pointer-events: none;
}
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing-mark {
  position: relative;
  width: clamp(120px, 14vw, 168px);
  margin-bottom: 8px;
}
.closing-mark img { position: relative; animation: float 7s ease-in-out infinite; }
.closing h2 { margin-top: 8px; }
.closing-sub { margin: 14px 0 32px; color: var(--gray-1); font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 44ch; }
.fine-print { margin-top: 28px; color: var(--gray-2); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--rule-dark); }
.footer-inner {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding-block: 20px;
}
.footer-tag { color: var(--gray-1); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { min-height: 0; padding-block: 104px 32px; }
  .hero::before { right: -40vmax; top: 72%; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .art-tilt { width: min(100%, 420px); }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .stage { aspect-ratio: 5 / 4; border-radius: 18px; }
}

@media (max-width: 600px) {
  .stage { aspect-ratio: 2 / 3; }
  .caption { min-height: 0; }
  .showcase-cta { text-align: left; width: 100%; }
}

@media (max-width: 480px) {
  .btn { width: 100%; }
  .closing-cta { width: 100%; }
  .badge { top: 12px; left: 12px; height: 28px; font-size: 10.5px; }
  .sticky-cta .btn { width: auto; }
  .sticky-name { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise, .js .reveal { opacity: 1; transform: none; }
  .js .headline .w > span { transform: none; }
  .js .row::after { transform: scaleX(1); }
  .art-tilt { transform: none; }
}
