/* ============================================================
   Sokai Sciences — design tokens (real brand palette)
   Sciences = crystal light bg + sky blue / navy / indigo / mist
   Shared origin = deep navy (from the icon mark) for contrast bands
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (spec data)
   ============================================================ */

:root {
  --crystal: #F4F4F4;
  --crystal-2: #ECEEF8;
  --white: #FFFFFF;
  --slate: #161616;
  --beaker: #4D495B;

  --sky: #2132D0;
  --navy: #05106E;
  --indigo: #231DB3;
  --mist: #B7CBF2;

  --origin-navy: #060638;
  --origin-navy-2: #0C0A4A;
  --spark: #FF90A5;

  --line: rgba(5, 16, 110, 0.12);
  --line-strong: rgba(5, 16, 110, 0.24);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container: 1200px;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(5, 16, 110, 0.06), 0 12px 32px rgba(5, 16, 110, 0.08);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crystal);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 44px 0; }

/* ---------- Mono / eyebrow / hex-tag / spec text ---------- */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow--muted { color: var(--beaker); }
.eyebrow--on-dark { color: var(--mist); }

.hex-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mist);
  opacity: 0.85;
}

.spec-list {
  font-family: var(--font-mono);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.spec-list__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list__label {
  color: var(--beaker);
  white-space: nowrap;
}
.spec-list__leader {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  height: 0;
  transform: translateY(-4px);
}
.spec-list__value {
  white-space: nowrap;
  color: var(--slate);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn--primary {
  background: var(--sky);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy); box-shadow: 0 0 0 4px rgba(255, 144, 165, 0.4); transform: translateY(-1px); }

.btn--spark {
  background: var(--origin-navy);
  color: var(--white);
}
.btn--spark:hover { box-shadow: 0 0 0 3px rgba(255, 144, 165, 0.35); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
}
.btn--outline:hover { background: var(--slate); color: var(--crystal); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(244, 244, 244, 0.4);
  color: var(--white);
}
.btn--outline-light:hover { background: rgba(244, 244, 244, 0.12); border-color: var(--white); }

.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--sky);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.link-arrow:hover { border-color: var(--sky); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 244, 244, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.logo-full { height: 54px; width: auto; }
.logo-icon-only { height: 46px; width: auto; display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav__links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav__links a {
  color: var(--beaker);
  transition: color 0.15s ease;
}
.main-nav__links a:hover,
.main-nav__links a.is-active {
  color: var(--sky);
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--slate);
}
.cart-link__count {
  background: var(--spark);
  color: var(--origin-navy);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Hero (dark origin band) ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--origin-navy) 0%, var(--origin-navy-2) 100%);
  color: var(--crystal);
  overflow: hidden;
  padding: 96px 0 108px;
}
.hero__molecule {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 600px;
  height: 600px;
  transform: translateY(-50%);
  pointer-events: none;
}
.molecule-svg { width: 100%; height: 100%; overflow: visible; }
.molecule-bond { stroke: rgba(183, 203, 242, 0.32); stroke-width: 2.5; }
.molecule-node { fill-opacity: 0.92; }
.molecule-node--sky { fill: var(--sky); }
.molecule-node--navy { fill: var(--indigo); }
.molecule-node--mist { fill: var(--mist); }
.molecule-node--pink { fill: var(--spark); }

.molecule-spin {
  transform-origin: 300px 260px;
  animation: molecule-spin 90s linear infinite;
}
.molecule-bob {
  animation: molecule-bob 10s ease-in-out infinite;
}
@keyframes molecule-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes molecule-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.molecule-satellite { opacity: 0.75; }
.molecule-satellite--pink { fill: var(--spark); }
.molecule-satellite--mist { fill: var(--mist); }
.molecule-satellite--1 { animation: satellite-float 6.5s ease-in-out infinite; }
.molecule-satellite--2 { animation: satellite-float 8s ease-in-out infinite 1.4s; }
.molecule-satellite--3 { animation: satellite-float 5.8s ease-in-out infinite 0.7s; }
.molecule-satellite--4 { animation: satellite-float 7.2s ease-in-out infinite 2.1s; }
@keyframes satellite-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.45; }
  50% { transform: translate(8px, -22px); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .molecule-spin, .molecule-bob,
  .molecule-satellite--1, .molecule-satellite--2,
  .molecule-satellite--3, .molecule-satellite--4 {
    animation: none;
  }
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  color: var(--white);
  margin: 0 0 20px;
  max-width: 16ch;
}
.hero__sub {
  font-size: 18px;
  color: var(--mist);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__trust {
  margin-top: 36px;
  font-size: 12px;
  color: rgba(183, 203, 242, 0.75);
}

.label-stack {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.label-card {
  background: rgba(244, 244, 244, 0.05);
  border: 1px solid rgba(183, 203, 242, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 76px 1fr;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.label-card:hover { border-color: rgba(183, 203, 242, 0.4); background: rgba(244, 244, 244, 0.08); }
.label-card__swatch {
  background: var(--swatch, var(--sky));
}
.label-card__body {
  padding: 14px 16px;
}
.label-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
}
.label-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: 0.04em;
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
}
.section-head h2 { font-size: 32px; margin: 6px 0 0; color: var(--navy); }

/* ---------- Trust / method row ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item {
  border-top: 2px solid var(--sky);
  padding-top: 16px;
}
.trust-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sky);
  margin-bottom: 10px;
  display: block;
}
.trust-item h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
}
.trust-item p {
  font-size: 14.5px;
  color: var(--beaker);
  margin: 0;
}

/* ---------- Category filter ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--beaker);
}
.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--crystal);
}
.filter-chip:hover:not(.is-active) { border-color: var(--sky); color: var(--sky); }

/* ---------- Product grid & card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(255, 144, 165, 0.16), var(--shadow-card);
  transform: translateY(-3px);
}
.product-card__art {
  background: var(--swatch, var(--sky));
  color: #fff;
  height: 152px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.product-card__art::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.product-card__hex {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.8;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.product-card__art-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card__tagline {
  font-size: 14px;
  color: var(--beaker);
  flex: 1;
}
.product-card__specs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--beaker);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.product-card__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-detail__art {
  background: var(--swatch, var(--sky));
  color: #fff;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 96px;
  overflow: hidden;
}
.product-detail__art::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.product-detail__art-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  position: relative;
  z-index: 1;
}
.product-detail__category {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.product-detail__price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin: 18px 0 24px;
}
.qty-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--slate);
  border-radius: var(--radius);
}
.qty-stepper button {
  background: none;
  border: none;
  width: 36px;
  height: 44px;
  font-size: 16px;
  color: var(--slate);
}
.qty-stepper input {
  width: 40px;
  text-align: center;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--slate);
}
.product-detail__disclaimer {
  font-size: 12px;
  color: var(--beaker);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 24px;
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.cart-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row__swatch {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--swatch, var(--sky));
}
.cart-row__name { font-weight: 600; color: var(--navy); }
.cart-row__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--beaker);
}
.cart-row__price {
  font-family: var(--font-mono);
  text-align: right;
  min-width: 90px;
  color: var(--navy);
}
.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 0;
}
.summary-row--total {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
}
.remove-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--beaker);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}
.empty-state {
  text-align: center;
  padding: 96px 24px;
  color: var(--beaker);
}

/* ---------- Confirmation pages ---------- */
.confirm-panel {
  max-width: 560px;
  margin: 64px auto;
  text-align: center;
  padding: 0 24px;
}
.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-mono);
  font-size: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--origin-navy) 0%, var(--origin-navy-2) 100%);
  color: var(--crystal);
  margin-top: 96px;
}
.site-footer__inner {
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer .logo-full { filter: brightness(0) invert(1); height: 40px; margin-bottom: 12px; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 14px;
}
.site-footer a, .site-footer li {
  font-size: 14px;
  color: rgba(244, 244, 244, 0.8);
  margin-bottom: 8px;
}
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(183, 203, 242, 0.15);
  padding: 20px 24px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(183, 203, 242, 0.6);
}
.footer-disclaimer {
  max-width: 640px;
  font-size: 12px;
  color: rgba(183, 203, 242, 0.6);
  line-height: 1.6;
}

/* ---------- Content pages (About / Privacy / Terms / Contact) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--origin-navy) 0%, var(--origin-navy-2) 100%);
  color: var(--crystal);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4vw, 46px); margin: 10px 0 0; max-width: 22ch; }
.page-hero p { color: var(--mist); font-size: 16px; max-width: 52ch; margin: 16px 0 0; }

.prose { max-width: 720px; }
.prose h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15.5px; color: var(--beaker); line-height: 1.7; margin-bottom: 16px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { font-size: 15.5px; color: var(--beaker); line-height: 1.7; margin-bottom: 8px; list-style: disc; }
.prose strong { color: var(--slate); }
.prose a { color: var(--sky); border-bottom: 1px solid rgba(33, 50, 208, 0.3); }
.prose a:hover { border-color: var(--sky); }
.prose .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--beaker);
  margin-bottom: 32px;
}
.prose .legal-note {
  background: var(--crystal-2);
  border-left: 3px solid var(--spark);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--beaker);
  margin: 32px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.about-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sky);
  display: block;
  margin-bottom: 12px;
}
.about-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.about-card p { font-size: 14.5px; color: var(--beaker); margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.contact-card p { font-size: 14.5px; color: var(--beaker); margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .product-detail, .cart-layout, .trust-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-detail__art { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav__links { display: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__molecule { display: none; }
  .trust-grid { gap: 24px; }
}
@media (max-width: 640px) {
  .logo-full { display: none; }
  .logo-icon-only { display: block; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 44px 1fr; row-gap: 8px; }
  .cart-row__price { grid-column: 2; text-align: left; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
