:root {
  --ink: #17151f;
  --muted: #6f6a7a;
  --paper: #fffdf8;
  --panel: #ffffff;
  --line: #ebe5ee;
  --cyan: #42dce7;
  --pink: #ff78a8;
  --yellow: #ffd54f;
  --green: #79dc8f;
  --red: #ff5d5d;
  --shadow: 0 24px 70px rgba(37, 30, 55, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(125deg, rgba(66, 220, 231, .16) 0 13%, transparent 13% 44%, rgba(255, 120, 168, .12) 44% 54%, transparent 54%),
    linear-gradient(180deg, rgba(255, 213, 79, .2), transparent 240px),
    linear-gradient(180deg, #fffafd 0%, #f8fcff 42%, #fffdf8 100%);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(23, 21, 31, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 31, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 2.6vw, 36px) 48px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 48px rgba(28, 26, 42, .1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #15131f, #3e314a);
  border-radius: 7px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset -8px -8px 0 rgba(66, 220, 231, .32);
}

.brand strong {
  display: block;
  font-weight: 900;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  color: #3b3548;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.top-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.icon-btn,
.cart-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

.icon-btn svg,
.cart-button svg,
.search-row svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  font-weight: 800;
}

.cart-button b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--pink);
  border-radius: 7px;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 0;
  padding: clamp(34px, 5vw, 56px) 0 28px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: #574d67;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 34px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 12px);
  border-radius: 6px;
}

.hero h1,
.section-head h2,
.control-band h2,
.ops-panel h2 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: .96;
  letter-spacing: 0;
}

.hero h1 {
  text-wrap: balance;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #4d455c;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.product-card button,
.lead-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #17151f;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-link {
  color: #fff;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--cyan);
}

.secondary-link {
  background: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 590px;
  margin: 34px 0 0;
}

.hero-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
}

.hero-metrics dt {
  font-size: 30px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-stage {
  position: relative;
  min-height: clamp(420px, 43vw, 560px);
}

.stage-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 31, .1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.stage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-main {
  inset: 20px 8% 44px 10%;
}

.stage-small {
  width: 34%;
  aspect-ratio: 1;
}

.stage-small.a {
  top: 0;
  right: 0;
}

.stage-small.b {
  left: 0;
  bottom: 0;
}

.stage-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 14px;
  color: #fff;
  background: rgba(23, 21, 31, .82);
  border-radius: var(--radius);
}

.stage-label span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-label strong {
  font-size: 24px;
}

.control-band,
.search-row,
.section-head {
  position: relative;
  z-index: 2;
}

.control-band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-top: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 44px rgba(45, 36, 64, .08);
}

.control-band h2,
.section-head h2,
.ops-panel h2 {
  font-size: clamp(28px, 4vw, 54px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #4d455c;
  font-weight: 800;
}

.filter.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.search-row {
  margin: 14px 0 0;
}

.search-row label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(45, 36, 64, .08);
}

.search-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 44px rgba(45, 36, 64, .08);
}

.product-card[data-priority="A"] {
  border-color: rgba(66, 220, 231, .7);
}

.media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f4f0f6;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.product-card:hover .media img {
  transform: scale(1.04);
}

.badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 5px 8px;
  border-radius: 7px;
  color: #15131f;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.badge.a {
  background: var(--cyan);
}

.badge.b {
  background: var(--yellow);
}

.badge.verify {
  color: #fff;
  background: var(--pink);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-body h3 {
  min-height: 3.1em;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta span {
  padding: 5px 7px;
  background: #f6f2f7;
  border-radius: 6px;
}

.product-copy {
  flex: 1;
  margin: 0 0 14px;
  color: #5a5266;
  font-size: 14px;
  line-height: 1.65;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.price {
  display: grid;
}

.price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.price strong {
  font-size: 20px;
}

.product-card button {
  min-width: 126px;
  background: #fff;
}

.pipeline,
.prep,
.ops {
  margin-top: 58px;
}

.section-head {
  max-width: 840px;
}

.section-head p:last-child {
  color: #5a5266;
  font-size: 17px;
  line-height: 1.8;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pipeline-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 44px rgba(45, 36, 64, .08);
}

.pipeline-grid span {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.pipeline-grid h3 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.pipeline-grid p,
.prep-grid li,
.cart-note p,
.lead-form p {
  color: #5a5266;
  line-height: 1.7;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.prep-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 44px rgba(45, 36, 64, .08);
}

.prep-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.prep-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.ops {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 18px;
  align-items: stretch;
}

.ops-panel,
.lead-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 44px rgba(45, 36, 64, .08);
}

.ops-panel ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ops-panel li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ops-panel b {
  color: #14111d;
}

.ops-panel span {
  color: #5a5266;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form h3 {
  margin: 0;
  font-size: 28px;
}

.lead-form p {
  margin: 0;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #4d455c;
  font-size: 13px;
  font-weight: 900;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.lead-form output {
  min-height: 22px;
  color: #147a4a;
  font-weight: 800;
}

.drawer,
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.drawer.is-open,
.cart-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 15, 25, .5);
  backdrop-filter: blur(6px);
}

.drawer-panel,
.cart-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(720px, calc(100vw - 24px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cart-panel {
  width: min(480px, calc(100vw - 24px));
  padding: 20px;
}

.cart-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-panel h2 {
  margin: 0;
}

.close-btn {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px;
  z-index: 2;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1fr;
  gap: 22px;
  padding: 22px;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

.detail-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.detail-copy p {
  color: #51495f;
  line-height: 1.75;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.detail-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cart-line img {
  width: 72px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0;
  font-size: 15px;
}

.cart-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.remove-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cart-note {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: #f3fbfc;
}

.empty {
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 800px) {
  .site-shell {
    padding-inline: 12px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .cart-button span {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-stage {
    min-height: 430px;
  }

  .stage-main {
    inset: 18px 4% 34px 8%;
  }

  .stage-small {
    width: 38%;
  }

  .control-band {
    display: grid;
    padding: 18px;
  }

  .filters {
    justify-content: flex-start;
  }

  .product-grid,
  .prep-grid,
  .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-text {
    margin-top: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 22px;
  }

  .hero-metrics div {
    padding: 10px 8px;
  }

  .hero-metrics dt {
    font-size: 22px;
  }

  .hero-metrics dd {
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-stage {
    min-height: 240px;
  }

  .stage-main {
    inset: 8px 10% 18px 5%;
  }

  .stage-small {
    width: 34%;
  }

  .stage-label {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
  }

  .stage-label strong {
    font-size: 20px;
  }

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

  .product-body h3 {
    min-height: 0;
  }

  .ops-panel li,
  .detail-list {
    grid-template-columns: 1fr;
  }
}
