/* ============================================================
   AXSYS GLOBAL — "The Business X-Ray"
   Dark luxury design system
   ============================================================ */

:root {
  --bg-0: #050507;
  --bg-1: #0a0a0f;
  --bg-2: #101016;
  --bg-3: #16161e;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.055);
  --red: #d40f2c;
  --red-bright: #ff2742;
  --red-dim: rgba(212, 15, 44, 0.14);
  --red-glow: rgba(255, 39, 66, 0.45);
  --text: #f4f4f6;
  --text-soft: #c9c9d1;
  --muted: #8f8f9b;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --scan-radius: 230px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--red); color: #fff; }

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 18px 0 20px;
}

.section-lead {
  color: var(--text-soft);
  max-width: 640px;
  font-size: 1.06rem;
}

.accent { color: var(--red-bright); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img { display: block; }

/* full lockup (262.5×75 viewBox) for desktop; square mark for small screens */
.logo .logo-full { height: 46px; width: auto; }
.logo .logo-mark { display: none; height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #fff; }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: var(--red);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px !important;
  background: var(--glass);
  color: #fff !important;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  border-color: var(--red);
  box-shadow: 0 0 22px rgba(212, 15, 44, 0.25);
}

.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, #e01331, #9c0a20);
  color: #fff;
  box-shadow: 0 8px 30px rgba(212, 15, 44, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(212, 15, 44, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HERO — The Business X-Ray
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-0);
  cursor: none;
}

.hero-layers {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
}

.hero-layer.clean { z-index: 1; }

.hero-layer.xray {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
  -webkit-mask-image: radial-gradient(
    circle var(--scan-radius) at var(--x, 50%) var(--y, 50%),
    #000 0%, #000 62%, transparent 98%
  );
  mask-image: radial-gradient(
    circle var(--scan-radius) at var(--x, 50%) var(--y, 50%),
    #000 0%, #000 62%, transparent 98%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero.scanning .hero-layer.xray { opacity: 1; }

/* red scan-line sweep inside the x-ray reveal */
.hero-layer.xray::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 39, 66, 0.10) 46%,
    rgba(255, 39, 66, 0.32) 50%,
    rgba(255, 39, 66, 0.10) 54%,
    transparent 100%
  );
  background-size: 100% 320px;
  background-repeat: no-repeat;
  animation: scanline 3.4s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes scanline {
  0%   { background-position: 0 -320px; }
  100% { background-position: 0 calc(100% + 320px); }
}

/* scanner ring following the cursor */
.scanner-ring {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: calc(var(--scan-radius) * 2);
  height: calc(var(--scan-radius) * 2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 39, 66, 0.75);
  box-shadow:
    0 0 26px rgba(255, 39, 66, 0.35),
    0 0 70px rgba(212, 15, 44, 0.18),
    inset 0 0 34px rgba(255, 39, 66, 0.12);
}

.scanner-ring::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 39, 66, 0.35);
  animation: ringspin 14s linear infinite;
}

.scanner-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--red-glow);
}

/* crosshair ticks */
.scanner-ring .tick {
  position: absolute;
  background: rgba(255, 39, 66, 0.8);
}
.scanner-ring .tick.t { top: -1px; left: 50%; width: 1.5px; height: 14px; transform: translateX(-50%); }
.scanner-ring .tick.b { bottom: -1px; left: 50%; width: 1.5px; height: 14px; transform: translateX(-50%); }
.scanner-ring .tick.l { left: -1px; top: 50%; height: 1.5px; width: 14px; transform: translateY(-50%); }
.scanner-ring .tick.r { right: -1px; top: 50%; height: 1.5px; width: 14px; transform: translateY(-50%); }

@keyframes ringspin { to { transform: rotate(360deg); } }

.hero.scanning .scanner-ring { opacity: 1; }

/* ambient particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles i {
  position: absolute;
  bottom: -6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 39, 66, 0.4);
  box-shadow: 0 0 6px rgba(255, 39, 66, 0.35);
  animation: floatup linear infinite;
}

@keyframes floatup {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.7; }
  85%  { opacity: 0.35; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

/* hero content */
.hero-content {
  position: relative;
  z-index: 10;
  width: min(var(--container), 92vw);
  margin-inline: auto;
  padding: 140px 0 120px;
  max-width: none;
  pointer-events: none;
}

.hero-content > * { pointer-events: auto; }

.hero-inner {
  max-width: 620px;
  position: relative;
}

/* dark gradient behind text for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    100deg,
    rgba(5, 5, 7, 0.92) 0%,
    rgba(5, 5, 7, 0.66) 34%,
    rgba(5, 5, 7, 0.12) 58%,
    rgba(5, 5, 7, 0) 75%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  z-index: 4;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  font-weight: 700;
  margin: 26px 0 22px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #ff4257, #c00e28);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 38px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero, .hero a, .hero button { cursor: none; }

@media (hover: none) {
  .hero, .hero a, .hero button { cursor: auto; }
}

.hero-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-hint::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--red-bright);
  box-shadow: 0 0 10px var(--red-glow);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

section { position: relative; }

.section {
  padding: 110px 0;
}

.section-head { margin-bottom: 56px; }

.section-head.center {
  text-align: center;
}

.section-head.center .section-lead { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Problem section ---------- */

.problem {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(212, 15, 44, 0.06), transparent 60%),
    var(--bg-0);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}

.problem-copy p {
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 560px;
}

.problem-copy p strong { color: var(--text); }

.risk-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.risk-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  font-size: 0.97rem;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.risk-list li:hover {
  border-color: rgba(212, 15, 44, 0.45);
  background: var(--red-dim);
  transform: translateX(6px);
}

.risk-list .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 12px var(--red-glow);
}

.risk-list li span:last-child { color: var(--text-soft); font-weight: 500; }
.risk-list li b { color: var(--text); font-weight: 700; margin-right: 6px; }

/* ---------- Solution: 4-step cards ---------- */

.solution { background: var(--bg-1); border-block: 1px solid var(--border-soft); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  padding: 38px 30px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--glass-strong), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 15, 44, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 15, 44, 0.12);
}

.step-card .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red-bright);
}

.step-card h3 {
  font-size: 1.45rem;
  margin: 14px 0 12px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.step-card:hover::after { opacity: 1; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 28px;
  min-height: 230px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--bg-2);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 20% 0%, rgba(212, 15, 44, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover { transform: translateY(-6px); border-color: rgba(212, 15, 44, 0.4); }
.service-card:hover::before { opacity: 1; }

.service-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--red-bright);
}

.service-card .icon svg { width: 21px; height: 21px; }

.service-card h3 {
  font-size: 1.12rem;
  position: relative;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
}

.service-card .card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: 0.04em;
  position: relative;
}

/* ---------- Standards strip ---------- */

.standards {
  background: var(--bg-1);
  border-block: 1px solid var(--border-soft);
  padding: 80px 0;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.standard-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.standard-chip:hover {
  border-color: rgba(212, 15, 44, 0.45);
  background: var(--red-dim);
  transform: translateY(-4px);
}

.standard-chip .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
}

.standard-chip .label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Industries ---------- */

.industries-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.industry-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-soft);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.industry-pill:hover {
  border-color: rgba(212, 15, 44, 0.5);
  color: #fff;
  background: var(--red-dim);
  transform: translateY(-3px);
}

/* ---------- Store preview ---------- */

.store-preview { background: var(--bg-1); border-block: 1px solid var(--border-soft); }

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.store-grid--two { grid-template-columns: repeat(2, 1fr); }

.product-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.product-card:hover { transform: translateY(-6px); border-color: rgba(212, 15, 44, 0.4); }

.product-card .tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid rgba(212, 15, 44, 0.35);
  background: var(--red-dim);
  padding: 5px 12px;
  border-radius: 999px;
}

.product-card h3 { font-size: 1.15rem; margin-top: 8px; }

.product-card p { color: var(--muted); font-size: 0.9rem; flex-grow: 1; }

.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.product-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.product-card .price small { color: var(--muted); font-size: 0.72rem; font-weight: 500; }

.store-cta-row { text-align: center; margin-top: 46px; }

.product-card .btn-card { padding: 10px 20px; font-size: 0.85rem; }

.product-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  margin-top: 8px;
}

.store-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 50px 0;
  font-size: 1rem;
}

.store-status a { color: var(--red-bright); }

/* Account dashboard empty states read as body copy, not centered banners */
#account-dashboard .store-status {
  text-align: left;
  padding: 24px 0 36px;
}

/* ---------- Cart ---------- */

.cart-badge {
  display: none;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  vertical-align: 2px;
}

.cart-badge.show { display: inline-block; }

.cart-items {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 26px;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-row:last-child { border-bottom: none; }

.cart-row-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }

.cart-row-unit { color: var(--muted); font-size: 0.84rem; margin-top: 2px; }

.cart-row-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.qty-stepper button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-stepper button:hover { background: var(--red-dim); }

.qty-stepper span {
  min-width: 26px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-line-total {
  font-family: var(--font-display);
  font-weight: 700;
  min-width: 70px;
  text-align: right;
}

.cart-remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cart-remove:hover { color: var(--red-bright); }

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.cart-summary .price { font-size: 1.35rem; }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--glass);
}

.cart-empty h2 { font-size: 1.6rem; margin-bottom: 12px; }

.cart-empty p { color: var(--muted); max-width: 420px; margin: 0 auto 26px; }

@media (max-width: 620px) {
  .cart-row { flex-direction: column; align-items: flex-start; }
  .cart-row-controls { width: 100%; justify-content: space-between; }
  .cart-items { padding: 8px 18px; }
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding: 140px 0;
  background:
    radial-gradient(760px 420px at 50% 115%, rgba(212, 15, 44, 0.16), transparent 65%),
    var(--bg-0);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin: 20px auto 18px;
  max-width: 720px;
}

.final-cta p {
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Contact form ---------- */

.contact-panel {
  max-width: 680px;
  margin: 60px auto 0;
  padding: 44px;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--glass-strong), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field select { appearance: none; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 15, 44, 0.18);
}

.field textarea { min-height: 120px; resize: vertical; }

/* Native dropdown fallback (touch devices / no JS): dark panel */
.field select option {
  background-color: #0a0a0f;
  color: var(--text);
}

/* ---------- Custom dropdown (enhanced <select>) ---------- */

.dd { position: relative; }

.dd-toggle {
  width: 100%;
  padding: 14px 42px 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dd-toggle::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.dd.open .dd-toggle::after { transform: translateY(-30%) rotate(-135deg); }

.dd-toggle:focus-visible,
.dd.open .dd-toggle {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 15, 44, 0.18);
}

.dd-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: none;
}

.dd.open .dd-menu { display: block; }

.dd-option {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-soft);
  cursor: pointer;
}

.dd-option:hover,
.dd-option.active {
  background: var(--red);
  color: #fff;
}

.dd-option[aria-selected="true"] { color: var(--red-bright); font-weight: 600; }

.dd-option[aria-selected="true"]:hover,
.dd-option[aria-selected="true"].active { color: #fff; }

/* Honeypot — invisible to humans, filled only by bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

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

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-1);
  padding: 80px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 300px;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: grid; gap: 12px; }

.footer-col a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

.socials { display: flex; gap: 12px; margin-top: 22px; }

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
  border-color: var(--red);
  color: var(--red-bright);
  transform: translateY(-3px);
}

.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding: 190px 0 90px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(212, 15, 44, 0.09), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--border-soft);
}

.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 18px 0 16px; }

.page-hero p { color: var(--text-soft); max-width: 620px; font-size: 1.06rem; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * { opacity: 1; transform: none; }

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .steps-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .standards-grid { grid-template-columns: repeat(4, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; gap: 46px; }

  /* backdrop-filter on the fixed header makes it the containing block for
     fixed descendants, which collapsed the full-screen menu to the header's
     box once scrolled — on mobile use a solid background instead of blur */
  .site-header.scrolled {
    background: rgba(5, 5, 7, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* don't let the page scroll underneath the open menu — main.js pins the
     body at its current offset and restores the scroll position on close */
  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(5, 5, 7, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .main-nav a { font-size: 1.3rem; }

  .nav-open .main-nav { opacity: 1; pointer-events: auto; }

  .nav-toggle { display: flex; z-index: 95; position: relative; }

  .hero { min-height: 92svh; }

  .hero-content { padding: 130px 0 90px; }

  .hero::before {
    background: linear-gradient(
      to top,
      rgba(5, 5, 7, 0.95) 0%,
      rgba(5, 5, 7, 0.62) 45%,
      rgba(5, 5, 7, 0.25) 100%
    );
  }

  :root { --scan-radius: 150px; }

  .section { padding: 80px 0; }

  .standards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  /* compact square logo in the header only (the footer keeps the full lockup) */
  .site-header .logo .logo-full { display: none; }
  .site-header .logo .logo-mark { display: block; }

  .steps-grid, .services-grid, .store-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-panel { padding: 30px 22px; }
  .hero-ctas .btn { width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

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

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }

  .hero-layer.xray::after { display: none; }
  .hero-particles { display: none; }
  .scanner-ring::before { animation: none; }

  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   ACCOUNT, AUTH & WORKSHOP BOOKING
   ============================================================ */

.btn-small {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.btn-small:hover { color: var(--text); border-color: var(--border); }
.btn-small.danger { color: var(--red-bright); }
.btn-small:disabled { opacity: 0.6; cursor: default; }

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 14px;
}
.auth-tab {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab:hover { color: var(--text); border-color: var(--border); }
.auth-tab.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.account-signed-in { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

.account-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 38px 0 6px;
}
.account-section-lead { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.account-card {
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.account-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.account-card-title { font-family: var(--font-display); font-weight: 600; }
.account-card-note { color: var(--muted); font-size: 0.87rem; margin: 4px 0; }

.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px dashed var(--border-soft);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.order-status-paid, .order-status-fulfilled { border-color: #3ecf6f; color: #3ecf6f; }
.order-status-awaiting_payment, .order-status-new, .order-status-invoiced { border-color: #e0a93a; color: #e0a93a; }
.order-status-failed, .order-status-cancelled { border-color: var(--red-bright); color: var(--red-bright); }

/* ---------- workshops ---------- */

.workshop-when { color: var(--red-bright); font-size: 0.86rem; font-weight: 600; }

.workshop-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-soft);
  margin-bottom: 30px;
}

.workshop-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 16px; }

.workshop-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.workshop-meta p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

.workshop-description p { color: var(--text-soft); margin-bottom: 14px; max-width: 70ch; }

.ticket-options { display: flex; flex-direction: column; gap: 12px; }

.ticket-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.ticket-option-name { font-family: var(--font-display); font-weight: 600; }
.ticket-option-note { color: var(--muted); font-size: 0.84rem; margin-top: 3px; max-width: 44ch; }
.ticket-option-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .ticket-option-controls { width: 100%; justify-content: space-between; }
  .account-head { flex-direction: column; align-items: flex-start; }
}
