@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./fonts/ibm-plex-sans/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./fonts/ibm-plex-sans/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f1f2f4;
  --bg-deep: #e8e9ed;
  --surface: #f9f9fb;
  --surface-raised: #fdfdfe;
  --surface-violet: #f0ebef;
  --ink: #1e2024;
  --ink-soft: #444852;
  --muted: #686d77;
  --line: #d7d9df;
  --line-strong: #c5c8d0;
  --accent: #7f5b78;
  --accent-deep: #624359;
  --accent-ink: #fbf7fa;
  --accent-soft: #eadfe7;
  --up: #35796f;
  --down: #a65058;
  --gold: #9a6810;
  --blue: #546f9d;
  --shadow: rgb(79 55 72 / 0.13);
  --shadow-soft: rgb(78 67 79 / 0.08);
  --font-sans: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-data: "IBM Plex Sans", "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --radius: 14px;
  --radius-control: 999px;
  --section-space: clamp(72px, 7vw, 112px);
  --section-space-emphasis: clamp(80px, 8vw, 124px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #13151b;
    --bg-deep: #0f1116;
    --surface: #1b1e26;
    --surface-raised: #22252e;
    --surface-violet: #292129;
    --ink: #e9eaf0;
    --ink-soft: #c2c5ce;
    --muted: #969ba7;
    --line: #2c303a;
    --line-strong: #3a3e49;
    --accent: #c5a0bb;
    --accent-deep: #dfb7ca;
    --accent-ink: #2d1b27;
    --accent-soft: #3a2935;
    --up: #62b3a7;
    --down: #dd7d85;
    --gold: #d2a856;
    --blue: #7895c8;
    --shadow: rgb(2 3 8 / 0.34);
    --shadow-soft: rgb(2 3 8 / 0.2);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13151b;
  --bg-deep: #0f1116;
  --surface: #1b1e26;
  --surface-raised: #22252e;
  --surface-violet: #292129;
  --ink: #e9eaf0;
  --ink-soft: #c2c5ce;
  --muted: #969ba7;
  --line: #2c303a;
  --line-strong: #3a3e49;
  --accent: #c5a0bb;
  --accent-deep: #dfb7ca;
  --accent-ink: #2d1b27;
  --accent-soft: #3a2935;
  --up: #62b3a7;
  --down: #dd7d85;
  --gold: #d2a856;
  --blue: #7895c8;
  --shadow: rgb(2 3 8 / 0.34);
  --shadow-soft: rgb(2 3 8 / 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

@supports (animation-timeline: scroll()) {
  .page-progress {
    animation: page-progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes page-progress {
  to { transform: scaleX(1); }
}

.section-shell {
  width: min(100% - 48px, 1380px);
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  inset: 16px 24px auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 7px 8px 7px 18px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface-raised) 79%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface-raised) 86%, transparent),
    0 18px 46px -26px var(--shadow);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  font-family: var(--font-data);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-q,
.brand-dot {
  color: var(--accent);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 4px;
}

.nav-links a,
.text-link {
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav-links a {
  padding: 9px 14px;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--ink);
  background: var(--surface-violet);
}

.nav-actions {
  justify-content: flex-end;
  gap: 7px;
}

.nav-cta {
  flex-shrink: 0;
}

.theme-toggle {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-violet);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(1px) scale(0.985);
}

.text-link {
  padding: 9px 12px;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button-primary {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: var(--accent-ink);
  box-shadow: 0 13px 34px -20px color-mix(in srgb, var(--accent-deep) 76%, transparent);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--accent-deep) 89%, var(--ink));
  box-shadow: 0 18px 38px -18px color-mix(in srgb, var(--accent-deep) 82%, transparent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line-strong));
  background: var(--surface-raised);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  min-height: 100dvh;
  padding: 108px max(24px, calc((100vw - 1380px) / 2)) 42px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 97%, transparent) 34%, color-mix(in srgb, var(--bg) 38%, transparent) 71%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 710px;
  padding-right: clamp(0px, 4vw, 72px);
}

.stage-kicker {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-deep);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4rem, 6.4vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1;
}

.hero-intro {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-art {
  position: absolute;
  inset: 6.5% -4% 0 26%;
  z-index: -3;
  overflow: hidden;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg), transparent 35%),
    linear-gradient(0deg, var(--bg), transparent 18%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 52%, transparent), transparent 20%);
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(0.96);
  transform: scale(1.04);
}

.hero-signal {
  position: absolute;
  right: max(28px, calc((100vw - 1380px) / 2));
  bottom: 42px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(72px, 12vw) auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 11px;
}

.hero-signal i {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.hero-signal i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
}

.hero-signal strong {
  color: var(--accent-deep);
  font-weight: 600;
}

.section-heading {
  max-width: 820px;
}

.section-heading h2,
.product-copy h2,
.proof-copy h2,
.pricing-heading h2,
.final-shell h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.1vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading p,
.product-copy > p,
.proof-copy > p,
.pricing-heading p,
.final-shell > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.category-section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-violet) 46%, transparent) 58%, transparent);
}

.category-explorer {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 2.28fr);
  gap: 18px;
  margin-top: 64px;
}

.category-tabs {
  display: grid;
  gap: 5px;
  align-content: start;
}

.category-tab {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease);
}

.category-tab:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-raised) 58%, transparent);
}

.category-tab:active {
  transform: scale(0.985);
}

.category-tab.is-active {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 18px 44px -30px var(--shadow);
}

.category-tab span {
  font-size: 15px;
  font-weight: 700;
}

.category-tab small {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 10px;
}

.category-stage {
  position: relative;
  min-height: 560px;
  padding: clamp(22px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 28%),
    var(--surface-raised);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface-raised) 86%, transparent),
    0 34px 90px -52px var(--shadow);
}

.stage-head,
.stage-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.stage-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
}

.stage-head h3 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.stage-state {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--accent-deep);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 600;
}

.signal-chart {
  display: block;
  width: 100%;
  height: 300px;
  margin: 28px 0 12px;
}

.stage-foot {
  align-items: flex-end;
}

.stage-foot > p {
  max-width: 440px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.stage-metrics {
  display: flex;
  gap: 6px;
}

.stage-metrics span {
  display: grid;
  min-width: 92px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.stage-metrics b {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
}

.stage-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.product-section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.product-copy {
  position: sticky;
  top: 120px;
}

.product-copy h2,
.proof-copy h2 {
  font-size: clamp(2.8rem, 4.8vw, 4.9rem);
}

.inline-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 30px;
  color: var(--accent-deep);
  font-weight: 700;
}

.inline-link span {
  transition: transform 180ms var(--ease);
}

.inline-link:hover span {
  transform: translate(2px, -2px);
}

.product-shot {
  position: relative;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 38px 94px -58px var(--shadow);
}

.product-shot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 5px);
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.product-shot-trigger:focus-visible {
  outline-offset: -4px;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 5px);
  background: #f1f2f4;
  transition: transform 220ms var(--ease);
}

.product-shot-trigger:hover img {
  transform: scale(1.006);
}

.product-lightbox {
  width: min(96vw, 1920px);
  height: min(94dvh, 1320px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 42px 130px -42px rgb(7 8 12 / 0.72);
}

.product-lightbox::backdrop {
  background: rgb(13 14 18 / 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-lightbox-panel {
  position: relative;
  height: 100%;
}

.product-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  box-shadow: 0 10px 26px -16px var(--shadow);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-lightbox-close:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.product-lightbox-viewport {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: start center;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: #9ba0a9 #e4e6ea;
  scrollbar-width: thin;
  background: #f1f2f4;
  touch-action: pan-x pan-y pinch-zoom;
}

.product-lightbox-viewport.is-full-size {
  place-items: start;
}

.product-lightbox-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.product-lightbox-viewport::-webkit-scrollbar-track {
  background: #e4e6ea;
}

.product-lightbox-viewport::-webkit-scrollbar-thumb {
  border: 2px solid #e4e6ea;
  border-radius: var(--radius-control);
  background: #9ba0a9;
}

.product-lightbox-image-toggle {
  display: block;
  width: max-content;
  margin: 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: calc(var(--radius) - 5px);
  background: #f1f2f4;
  cursor: zoom-in;
}

.product-lightbox-image-toggle.is-full-size {
  cursor: zoom-out;
}

.product-lightbox-image {
  display: block;
  width: auto;
  max-width: calc(min(96vw, 1920px) - 24px);
  max-height: calc(min(94dvh, 1320px) - 24px);
  height: auto;
  border-radius: inherit;
  background: #f1f2f4;
  object-fit: contain;
}

.product-lightbox-image-toggle.is-full-size .product-lightbox-image {
  width: 2048px;
  max-width: none;
  max-height: none;
}

.proof-section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--surface-violet) 58%, transparent), transparent 64%);
  overflow: hidden;
}

.proof-shell {
  display: flex;
  align-items: center;
}

.proof-copy {
  width: 100%;
  max-width: 1120px;
}

.proof-copy h2 {
  font-size: clamp(3.2rem, 6.6vw, 6.8rem);
}

.proof-copy h2 span {
  display: block;
}

.proof-copy > p {
  max-width: 680px;
  margin-left: clamp(0px, 15vw, 220px);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.pricing-section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.pricing-heading {
  max-width: 720px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  margin-top: 58px;
}

.price-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 500px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 28px 80px -60px var(--shadow);
}

.price-card-featured {
  background:
    radial-gradient(circle at 90% 2%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    var(--surface-violet);
  box-shadow: 0 38px 94px -58px color-mix(in srgb, var(--accent) 52%, var(--shadow));
}

.price-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.price-head h3 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.price-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.price strong {
  font-family: var(--font-data);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.price span {
  color: var(--muted);
  font-size: 12px;
}

.price-card ul {
  display: grid;
  align-content: center;
  gap: 18px;
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 23px;
  color: var(--ink-soft);
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.plan-cta {
  width: 100%;
}

.pricing-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.final-section {
  padding: var(--section-space-emphasis) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 35%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--surface-violet));
}

.final-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
}

.final-shell h2 {
  max-width: 880px;
}

.final-shell > p {
  grid-column: 1;
  margin-top: 0;
}

.final-shell .button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.site-footer {
  padding: 44px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(280px, 0.85fr) minmax(400px, 1.7fr);
  gap: 30px;
  align-items: start;
}

.footer-brand {
  font-size: 18px;
}

.footer-grid > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.legal-links a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    transform: translateY(22px);
    animation: hero-enter 820ms var(--ease) forwards;
  }

  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }

  .hero-art img {
    animation: hero-art-enter 1400ms var(--ease) forwards;
  }

  .hero-signal i::after {
    animation: resolve-signal 1600ms var(--ease) 550ms forwards;
  }

}

@keyframes hero-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-art-enter {
  from { opacity: 0; transform: scale(1.09); }
  to { opacity: 1; transform: scale(1.04); }
}

@keyframes resolve-signal {
  to { transform: translateX(0); }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.75fr);
  }

  .hero-art {
    left: 22%;
  }

  .category-explorer {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .category-tab {
    grid-template-columns: 1fr;
    min-width: 190px;
    scroll-snap-align: start;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-copy {
    position: static;
    max-width: 760px;
  }

  .footer-grid {
    grid-template-columns: 1fr 2fr;
  }

  .legal-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 940px) {
  .text-link {
    display: none;
  }
}

@media (max-width: 780px) {
  .section-shell {
    width: min(100% - 32px, 1380px);
  }

  .site-nav {
    inset: 10px 12px auto;
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding-left: 14px;
  }

  .nav-links,
  .text-link {
    display: none;
  }

  .nav-cta {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 100dvh;
    padding: 106px 16px 84px;
    align-items: end;
  }

  .hero::before {
    background:
      linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 96%, transparent) 42%, color-mix(in srgb, var(--bg) 30%, transparent) 100%);
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    max-width: 640px;
    font-size: clamp(3.45rem, 15.5vw, 5.8rem);
  }

  .hero-intro {
    font-size: 17px;
  }

  .proof-copy > p {
    margin-left: 0;
  }

  .product-lightbox {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .hero-art {
    inset: 62px -52% 24% -22%;
  }

  .hero-art::after {
    background:
      linear-gradient(0deg, var(--bg), transparent 58%),
      linear-gradient(90deg, color-mix(in srgb, var(--bg) 48%, transparent), transparent);
  }

  .hero-signal {
    right: 16px;
    bottom: 22px;
    left: 16px;
  }

  .category-section,
  .product-section,
  .proof-section,
  .pricing-section,
  .final-section {
    padding-block: 72px;
  }

  .category-explorer {
    margin-top: 42px;
  }

  .category-stage {
    min-height: 520px;
  }

  .stage-head,
  .stage-foot {
    display: grid;
  }

  .stage-state {
    width: max-content;
    grid-row: 1;
  }

  .signal-chart {
    height: 250px;
  }

  .stage-metrics {
    overflow-x: auto;
  }

  .stage-metrics span {
    min-width: 84px;
  }

  .pricing-grid,
  .final-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 0;
  }

  .price-head {
    display: grid;
  }

  .final-shell .button,
  .final-shell > p {
    grid-column: 1;
    grid-row: auto;
  }

  .final-shell .button {
    width: max-content;
  }

  .legal-links {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .category-section,
  .product-section,
  .proof-section,
  .pricing-section,
  .final-section {
    padding-block: 64px;
  }

  .hero-actions {
    display: grid;
  }

  .product-shot {
    padding: 3px;
  }

  .button {
    width: 100%;
  }

  .nav-cta {
    width: auto;
  }

  .stage-state {
    display: none;
  }

  .category-stage {
    min-height: 500px;
  }

  .signal-chart {
    height: 220px;
  }

  .price {
    display: grid;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .hero-art img {
    filter: brightness(0.42) saturate(0.75) contrast(1.16) hue-rotate(2deg);
  }
}

:root[data-theme="dark"] .hero-art img {
  filter: brightness(0.42) saturate(0.75) contrast(1.16) hue-rotate(2deg);
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav {
    background: var(--surface-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .product-lightbox::backdrop {
    background: rgb(13 14 18 / 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
