/* ============================================================
   STRYD ORTHOPEDICS — Shared stylesheet
   Design system v1.0 + Advanced Liquid Glassmorphism
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand palette — matches strydorthopedics.com (V2) exactly */
  --c-black:        #0A0A0A;   /* page background */
  --c-gray-900:     #111111;   /* card backgrounds */
  --c-gray-800:     #1A1A1A;   /* input backgrounds */
  --c-gray-700:     #2A2A2A;   /* borders, dividers */
  --c-gray-600:     #3A3A3A;   /* placeholder borders */
  --c-gray-500:     #6B6B6B;   /* muted text */
  --c-gray-400:     #8A8A8A;   /* body text */
  --c-gray-300:     #AAAAAA;   /* labels */
  --c-gray-200:     #D0D0D0;   /* default body color */
  --c-white:        #FFFFFF;
  --c-offwhite:     #F5F7FA;
  --c-border-light: #E4E7EE;

  /* Brand blue — matches V2 #0A7AFF */
  --c-brand:        #0A7AFF;
  --c-brand-hover:  #0060D0;
  --c-brand-active: #0050B0;
  --c-brand-light:  #3D9AFF;
  --c-brand-glow:   rgba(10, 122, 255, 0.15);
  --c-brand-glow-strong: rgba(10, 122, 255, 0.30);

  /* Semantic aliases used throughout */
  --c-black-navy:   #0A0A0A;
  --c-dark-navy:    #111111;
  --c-navy:         #1A1A1A;
  --c-border-dark:  #2A2A2A;
  --c-blue-grey:    #6B6B6B;
  --c-light-grey:   #8A8A8A;
  --c-pale-grey:    #AAAAAA;
  --c-accent-grey:  #AAAAAA;

  /* Background depths */
  --depth: 1;
  --bg-primary:   #0A0A0A;
  --bg-secondary: #111111;
  --bg-card:      #1A1A1A;

  /* Liquid Glass — tweakable */
  --glass-blur:    28px;
  --glass-alpha:   0.075;
  --glass-alpha-2: 0.13;
  --glass-border:  rgba(255,255,255,0.22);
  --glass-hi:      rgba(255,255,255,0.55);
  --glass-tint:    rgba(174,180,194,0.32);

  /* Glow — toggled by body.glow-on */
  --glow: 0 0 0 rgba(0,0,0,0);
  --glow-soft: none;

  /* Type — matches strydorthopedics.com exactly */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --text-display: clamp(44px, 6.4vw, 78px);
  --text-h1:      clamp(30px, 4vw, 50px);
  --text-h2:      clamp(24px, 3vw, 38px);
  --text-h3:      clamp(19px, 2.5vw, 25px);

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 80px);
  --section-pad-y: clamp(64px, 9vw, 120px);
  --grid-gap:      clamp(20px, 3vw, 44px);

  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   30px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body.glow-on {
  --glow: 0 0 30px rgba(10,122,255,0.12), 0 12px 54px rgba(0,0,0,0.70);
  --glow-soft: 0 0 50px rgba(10,122,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--c-gray-200);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

/* ---------- 2. AMBIENT BACKGROUND ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(10,122,255,0.06), transparent 60%),
    radial-gradient(50% 45% at 8% 70%, rgba(10,122,255,0.04), transparent 60%),
    radial-gradient(40% 40% at 90% 92%, rgba(0,0,0,0.60), transparent 60%);
  opacity: calc(1.0 - (var(--depth) - 1) * 0.5);
}
.ambient .grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  opacity: 0.8;
}
.ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: drift 22s var(--ease) infinite alternate;
}
.ambient .orb-1 {
  width: 700px; height: 700px; top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(10,122,255,0.15), transparent 70%);
}
.ambient .orb-2 {
  width: 500px; height: 500px; bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(10,122,255,0.08), transparent 70%);
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.12); }
}

/* Olive variant — military page */
body.olive { --bg-primary: #0D1208; background: #0D1208; }
body.olive .ambient::before {
  background: radial-gradient(60% 50% at 50% 30%, rgba(60,72,38,0.25), transparent 60%);
}
body.olive .ambient .orb { display: none; }

/* ---------- 3. LAYOUT ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 1;
}
section { position: relative; z-index: 1; }
.section { padding-block: var(--section-pad-y); }
.section-black   { background: var(--bg-primary); }
.section-dark    { background: color-mix(in srgb, var(--bg-secondary) 88%, transparent); }
.section-white   { background: var(--c-white); position: relative; z-index: 2; }

/* ---------- 4. TYPE ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-blue-grey);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--c-accent-grey);
}
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--c-white);
  font-weight: 800;
}
.section-white h1,
.section-white h2,
.section-white h3 { color: var(--c-black-navy); }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 700; }
.lead { font-size: 18px; line-height: 1.7; color: var(--c-light-grey); max-width: 52ch; }
.section-white .lead { color: var(--c-blue-grey); }
p { line-height: 1.7; color: var(--c-light-grey); }
.section-white p { color: var(--c-blue-grey); }
.mono { font-family: var(--font-mono); }

/* ---------- 5. LIQUID GLASS SYSTEM ---------- */
.glass {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,calc(var(--glass-alpha) + 0.06)),
      rgba(255,255,255,var(--glass-alpha)) 42%,
      rgba(255,255,255,calc(var(--glass-alpha) * 0.4))
    );
  backdrop-filter: blur(var(--glass-blur)) saturate(200%) brightness(1.12);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(200%) brightness(1.12);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--glow),
    inset 0 1px 0 var(--glass-hi),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 0 -20px 44px rgba(0,0,0,0.38),
    inset 0 28px 52px rgba(255,255,255,0.05),
    0 24px 64px rgba(0,0,0,0.50);
}

/* Refractive rim — bright top-left, fades to blue-grey bottom-right */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    var(--glass-hi),
    rgba(255,255,255,0.14) 36%,
    transparent 62%,
    var(--glass-tint)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.98;
}

/* Liquid specular highlight — wet sheen blob, top-left */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 12% -8%, rgba(255,255,255,0.26), rgba(255,255,255,0.08) 32%, transparent 54%),
    radial-gradient(120% 80% at 110% 120%, rgba(174,180,194,0.12), transparent 48%);
  mix-blend-mode: screen;
  opacity: 0.92;
}

.glass-strong { --glass-alpha: var(--glass-alpha-2); }
.glass-2 { --glass-blur: calc(var(--glass-blur) * 0.6); }

/* Layered glass stack helper */
.glass-stack { position: relative; }
.glass-stack > .layer-bg {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(calc(var(--glass-blur) * 1.5));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 1.5));
  border-radius: var(--radius-xl);
  transform: rotate(-1.4deg) scale(1.018);
  border: 1px solid rgba(255,255,255,0.06);
}
.glass-stack > .layer-mid {
  position: absolute; inset: 10px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  transform: rotate(0.8deg);
  border: 1px solid rgba(255,255,255,0.09);
}
.glass-stack > .layer-top { position: relative; }

/* Glass on white sections */
.section-white .glass {
  background: rgba(255,255,255,0.60);
  border-color: rgba(0,0,0,0.09);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
.section-white .glass::before { display: none; }
.section-white .glass::after  { display: none; }

/* ---------- 6. NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.logo .mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--c-brand), var(--c-brand-active));
  box-shadow: 0 0 20px rgba(10,122,255,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  display: grid; place-items: center;
}
.logo .mark::after {
  content: '';
  width: 13px; height: 7px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: skewX(-12deg);
  opacity: 0.95;
}
.logo .word {
  font-family: var(--font-display); font-weight: 800;
  color: #fff; font-size: 17px; letter-spacing: -0.02em;
}

/* Individual glass tile per nav link */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: 180ms var(--ease);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}
.nav-links a.active {
  color: #fff;
  background: rgba(10,122,255,0.18);
  border-color: rgba(10,122,255,0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 200ms var(--ease); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity 250ms var(--ease);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer a { font-family: var(--font-body); font-size: 22px; color: #fff; text-decoration: none; }
.mobile-drawer .close {
  position: absolute; top: 22px; right: 26px;
  background: none; border: none; color: #fff; font-size: 30px; cursor: pointer;
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; text-decoration: none;
  transition: 160ms var(--ease); white-space: nowrap;
}
.btn-primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 6px 22px var(--c-brand-glow-strong), inset 0 1px 0 rgba(255,255,255,0.20);
}
.btn-primary:hover {
  background: var(--c-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--c-brand-glow-strong), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.09); }
.section-white .btn-ghost {
  color: var(--c-black-navy); border-color: #C8CDD8;
  background: rgba(255,255,255,0.5);
}
.section-white .btn-ghost:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn-full { width: 100%; }
.btn .arrow { transition: transform 160ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 8. CARDS / DATA ---------- */
.card { border-radius: var(--radius-md); padding: 22px; }
.card-pad-lg { padding: 28px; }

.data-value {
  font-family: var(--font-mono); font-size: 26px; font-weight: 400;
  color: var(--c-brand); line-height: 1; margin-bottom: 8px;
}
.section-white .data-value,
.card-white .data-value { color: var(--c-black-navy); }
.data-label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-light-grey);
}
.data-big { font-size: clamp(40px, 5vw, 60px); }

.card-white {
  background: #fff; border-radius: var(--radius-md);
  padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card-white .data-value { color: var(--c-black-navy); }
.card-white .data-label { color: var(--c-blue-grey); }

.progress-track {
  height: 6px; background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden; position: relative;
}
.progress-fill {
  position: absolute; inset: 0 auto 0 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--c-brand-hover), var(--c-brand));
  border-radius: 3px; box-shadow: 0 0 12px rgba(10,122,255,0.6);
  transition: width 900ms var(--ease);
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-light-grey); padding: 7px 13px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-brand); box-shadow: 0 0 8px rgba(10,122,255,0.5);
}

/* ---------- 9. INPUTS ---------- */
.input, .textarea, select.input {
  width: 100%; min-height: 48px; padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff; font-family: var(--font-body); font-size: 14px;
  transition: 150ms var(--ease);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* Glassmorphism select */
select.input {
  appearance: none; -webkit-appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center,
    linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  padding-right: 38px;
}
select.input:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-glow), inset 0 1px 0 rgba(10,122,255,0.15);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230A7AFF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center,
    linear-gradient(135deg, rgba(10,122,255,0.10) 0%, rgba(10,122,255,0.04) 100%);
}
select.input option {
  background: #1a1a1a;
  color: #fff;
}
.textarea { resize: vertical; min-height: 120px; }
.input::placeholder { color: var(--c-blue-grey); }
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--c-brand);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px var(--c-brand-glow);
}
.section-white .input,
.section-white .textarea {
  background: var(--c-offwhite); border-color: #D8DBE2; color: var(--c-black-navy);
}
.section-white .input::placeholder { color: var(--c-pale-grey); }
.field-label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--c-blue-grey); margin-bottom: 8px; display: block;
}

/* ---------- 10. PARTNER STRIP ---------- */
.partner-strip {
  overflow: hidden; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative; z-index: 1;
}
.partner-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.partner-tag {
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--c-light-grey);
  padding: 9px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.partner-tag--anchor {
  background: #fff; color: var(--c-black-navy);
  font-weight: 500; border: none; box-shadow: 0 0 24px rgba(255,255,255,0.18);
}

/* ---------- 11. AUDIENCE TABS ---------- */
.audience-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--c-border-light); margin-bottom: 24px;
}
.section-white .audience-tab {
  flex: 1; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 0 12px; background: none; border: none; cursor: pointer;
  color: var(--c-light-grey); border-bottom: 2px solid transparent;
  transition: 180ms var(--ease);
}
.section-white .audience-tab.active {
  color: var(--c-black-navy); font-weight: 700; border-bottom-color: var(--c-brand);
}
.section-white .audience-tab:hover:not(.active) { color: var(--c-black-navy); }
.tab-panel { display: none; animation: fadeUp 280ms var(--ease); }
.tab-panel.active { display: block; }

/* ---------- BUBBLE TAB SELECTOR ---------- */
.tabs-bubble {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: none;
}
.tabs-bubble .audience-tab {
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--c-light-grey);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 180ms var(--ease);
  text-align: center;
  white-space: nowrap;
}
.tabs-bubble .audience-tab:hover:not(.active) {
  border-color: rgba(255,255,255,0.20);
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.05) 100%);
}
.tabs-bubble .audience-tab.active {
  background: linear-gradient(135deg, rgba(10,122,255,0.30) 0%, rgba(10,122,255,0.14) 100%);
  border-color: rgba(10,122,255,0.55);
  box-shadow: 0 0 22px rgba(10,122,255,0.22), inset 0 1px 0 rgba(10,122,255,0.35);
  color: #fff;
  font-weight: 600;
}

/* ---------- 12. FEATURE SPLIT ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); align-items: center; }
.feature-split.reversed .feature-visual { order: -1; }
.feature-content { max-width: 30rem; }
.feature-content h2 { margin-bottom: 18px; }
.feature-content .lead { margin-bottom: 26px; }
.stack-cards { display: grid; gap: 14px; }

/* ---------- 13. HERO ---------- */
.hero { min-height: 92vh; display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-hook { min-height: 100vh; position: relative; }
.hero-title-pulse {
  font-family: var(--font-display);
  font-size: clamp(48px, 9.5vw, 140px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 700;
  display: inline-block;
}
.hero-title-pulse .hl-letter {
  display: inline;
  opacity: 0.18;
  will-change: opacity, text-shadow;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.28em; color: var(--c-pale-grey); opacity: 0.65;
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(var(--c-pale-grey), transparent);
  animation: cuePulse 1.8s var(--ease) infinite;
}
@keyframes cuePulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 0.9; transform: scaleY(1); }
}
.hero-inner { max-width: 780px; }
.hero h1 { font-size: var(--text-display); margin-bottom: 22px; }
.hero .lead { font-size: 20px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.emg-wrap { margin: 40px 0; position: relative; }
.emg-canvas { display: block; width: 100%; height: 64px; }
.emg-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.18); margin-top: 12px;
}
.hero-stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .data-label { margin-top: 6px; }

/* ---------- 14. EXPLODED VIEW ---------- */
.exploded-view {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding: 30px 0;
}
.layer {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform 600ms var(--ease), opacity 400ms var(--ease); cursor: pointer;
}
.layer-shape {
  border: 1px solid rgba(10,122,255,0.40);
  background: rgba(10,122,255,0.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(10,122,255,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
}
.layer-shape--sleeve    { width: 96px; height: 142px; border-radius: 48px 48px 42px 42px / 36px 36px 48px 48px; }
.layer-shape--electrodes { width: 74px; height: 112px; border-radius: 40px 40px 34px 34px / 30px 30px 40px 40px; background: rgba(10,122,255,0.10); }
.layer-shape--pcb       { width: 56px; height: 36px; border-radius: var(--radius-sm); background: rgba(10,122,255,0.18); }
.layer-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-blue-grey); }
.layer-separator { font-size: 20px; color: var(--c-border-dark); padding-bottom: 24px; }

.exploded-view.is-exploded .layer[data-layer="sleeve"]     { transform: translateY(-26px); }
.exploded-view.is-exploded .layer[data-layer="pcb"]        { transform: translateY(26px); }
.exploded-view.isolating .layer:not(.isolated) { opacity: 0.18; }

/* ---------- 15. SPEC GRID ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec-item { padding: 22px; }
.spec-value { font-family: var(--font-mono); font-size: 22px; color: var(--c-black-navy); margin-bottom: 6px; }
.section-white .spec-item {
  background: #fff; border: 1px solid var(--c-border-light); border-radius: var(--radius-md);
}
.spec-detail { font-size: 13px; color: var(--c-blue-grey); }

/* ---------- 16. FOOTER ---------- */
.footer { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(255,255,255,0.07); }
.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--c-pale-grey); text-decoration: none; transition: 160ms var(--ease);
}
.social a:hover { color: #fff; border-color: var(--c-brand); background: var(--c-brand-glow); }
.legal { font-family: var(--font-mono); font-size: 10px; color: var(--c-border-dark); }

/* ---------- 17. SCROLL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 18. TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed; top: 76px; right: 18px; z-index: 999; width: 286px;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55); padding: 18px;
  display: none; font-family: var(--font-body); color: #fff;
}
.tweaks-panel.open { display: block; }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tweaks-head h4 { font-family: var(--font-display); font-size: 15px; color: #fff; }
.tweaks-head .x { background: none; border: none; color: var(--c-pale-grey); font-size: 20px; cursor: pointer; line-height: 1; }
.tweak-row { margin-bottom: 16px; }
.tweak-row label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-pale-grey); display: flex; justify-content: space-between; margin-bottom: 8px; }
.tweak-row label .val { color: var(--c-brand); }
.tweak-row input[type=range] { width: 100%; accent-color: var(--c-brand); }
.tweak-toggle { display: flex; gap: 8px; }
.tweak-toggle button { flex: 1; font-family: var(--font-mono); font-size: 11px; padding: 8px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: var(--c-light-grey); cursor: pointer; transition: 140ms; }
.tweak-toggle button.on { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.preset-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 4px; }
.preset-row button { font-family: var(--font-mono); font-size: 10px; padding: 9px 4px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: #fff; cursor: pointer; transition: 140ms; }
.preset-row button:hover { border-color: var(--c-brand); background: var(--c-brand-glow); }
.tweak-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 16px 0; }

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reversed .feature-visual { order: 0; }
  .feature-visual { order: 1; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .exploded-view { flex-direction: column; }
  .layer-separator { padding-bottom: 0; }

  /* For-who glass card — reduce padding */
  .forwho-card { padding: 20px 18px !important; }

  /* Tabs bubble — stack to 1 column */
  .tabs-bubble {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  .tabs-bubble .audience-tab {
    padding: 12px 14px !important;
    font-size: 11px !important;
  }

  /* Demo video tile — keep bubble radius, full width crop */
  .demo-video-tile {
    border-radius: 16px !important;
    /* Force GPU compositing so overflow:hidden clips correctly on iOS Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
  .demo-video-tile video {
    width: 120% !important;
    margin-left: -10% !important;
  }
}
@media (max-width: 480px) {
  .spec-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  /* Tabs bubble — tighten further on very small screens */
  .tabs-bubble .audience-tab { font-size: 10px !important; padding: 11px 12px !important; }
}

/* ---------- Form success animation ---------- */
@keyframes circleIn {
  from { stroke-dashoffset: 188.5; }
  to   { stroke-dashoffset: 0; }
}
@keyframes checkIn {
  from { stroke-dashoffset: 40; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- 20. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
