/* ==========================================================================
   Pure Lot Lab — design system
   Lab / assay aesthetic: ink ground, cool mint paper, teal accent
   ========================================================================== */

:root {
  --ink: #08110e;
  --ink-2: #0f1c17;
  --ink-3: #162820;
  --paper: #dce8e2;
  --paper-dim: #a8beb4;
  --mist: rgba(220, 232, 226, 0.08);
  --line: rgba(220, 232, 226, 0.14);
  --accent: #3dcfb0;
  --accent-dim: #2a9e86;
  --accent-glow: rgba(61, 207, 176, 0.22);
  --warn: #e8c56a;
  --danger-soft: #c47a6a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(61, 207, 176, 0.08), transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, #06140f 45%, var(--ink) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--paper);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* -------------------------------------------------------------------------- */
/* Top bar / RUO strip                                                         */
/* -------------------------------------------------------------------------- */

.ruo-strip {
  background: rgba(232, 197, 106, 0.12);
  border-bottom: 1px solid rgba(232, 197, 106, 0.28);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
}

.ruo-strip strong {
  font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 17, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  width: var(--shell);
  margin-inline: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--paper);
}

.brand:hover {
  color: var(--paper);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-primary a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
}

.nav-primary a:hover,
.nav-primary .current-menu-item a,
.nav-primary .current_page_item a {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
}

.cart-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.95rem 1.4rem;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  font-weight: 500;
}

.btn-primary:hover {
  background: #55e0c0;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black, transparent);
  opacity: 0.55;
}

.hero-orb {
  position: absolute;
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  right: -4%;
  top: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(61, 207, 176, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(220, 232, 226, 0.08), transparent 50%);
  border: 1px solid var(--line);
  animation: orb-float 12s var(--ease) infinite alternate;
}

.hero-orb::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(61, 207, 176, 0.35);
  animation: orb-spin 40s linear infinite;
}

@keyframes orb-float {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(18px) scale(1.03); }
}

@keyframes orb-spin {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  max-width: 36rem;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.2s forwards;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--paper-dim);
  max-width: 28rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero .btn-group {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

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

/* -------------------------------------------------------------------------- */
/* Sections                                                                    */
/* -------------------------------------------------------------------------- */

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--paper-dim);
  margin: 0;
}

/* Catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--paper);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  overflow: hidden;
}

.product-tile::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none;
}

.product-tile:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  color: var(--paper);
}

.product-tile .lot-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: auto;
}

.product-tile h3 {
  font-size: 1.55rem;
  margin: 1.5rem 0 0.35rem;
  position: relative;
}

.product-tile .price {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.95rem;
  position: relative;
}

.product-tile .tile-cta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  position: relative;
}

.product-tile:hover .tile-cta {
  color: var(--accent);
}

/* Trust / method strip */
.method-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.method-item {
  background: var(--ink);
  padding: 1.75rem 1.5rem;
}

.method-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.method-item p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.method-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

/* Disclaimer panel */
.disclaimer-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 2rem;
}

.disclaimer-panel h2 {
  font-size: 1.5rem;
}

.disclaimer-panel p,
.disclaimer-panel li {
  color: var(--paper-dim);
}

.disclaimer-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Page header */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-hero p {
  color: var(--paper-dim);
  max-width: 34rem;
}

.content-block {
  padding: 3rem 0 5rem;
  max-width: 42rem;
}

.content-block h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 5rem;
}

.contact-card {
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: var(--ink-2);
}

.contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--paper-dim);
  margin-bottom: 1rem;
}

.contact-card a.contact-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .brand-name {
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--paper-dim);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  max-width: 22rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--paper);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  width: var(--shell);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* -------------------------------------------------------------------------- */
/* WooCommerce overrides                                                       */
/* -------------------------------------------------------------------------- */

.woo-main {
  padding: 2.5rem 0 4rem;
}

.woocommerce .woocommerce-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--paper-dim);
  text-decoration: none;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line);
  padding: 1.25rem;
  position: relative;
}

.woocommerce ul.products li.product a img {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--ink);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 0;
  color: var(--paper);
}

.woocommerce ul.products li.product .price {
  font-family: var(--font-mono);
  color: var(--accent) !important;
  font-size: 0.95rem;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0.85rem 1.15rem !important;
  font-weight: 500;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover {
  background: #55e0c0 !important;
  color: var(--ink) !important;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
}

.woocommerce div.product .product_title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--paper);
}

.woocommerce div.product p.price {
  font-family: var(--font-mono);
  color: var(--accent) !important;
  font-size: 1.25rem;
}

.woocommerce div.product .stock {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--accent) !important;
  background: var(--ink-2) !important;
  color: var(--paper) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce input.input-text,
.woocommerce textarea {
  background: var(--ink-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--paper) !important;
  border-radius: 0 !important;
}

.woocommerce-checkout #payment {
  background: var(--ink-2) !important;
  border: 1px solid var(--line);
  border-radius: 0 !important;
}

.woocommerce table.shop_table {
  border-color: var(--line) !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--line) !important;
  color: var(--paper);
}

.product-ruo-note {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(232, 197, 106, 0.35);
  background: rgba(232, 197, 106, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--warn);
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .catalog-grid,
  .woocommerce ul.products,
  .method-row,
  .contact-grid,
  .footer-inner,
  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 17, 14, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
  }

  .nav-primary.is-open {
    display: block;
  }

  .nav-primary ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 78vh;
    align-items: center;
    padding-top: 5rem;
  }

  .hero-orb {
    opacity: 0.55;
    right: -25%;
  }
}

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