/* ============================================================
   LUMYLABS — dark cinematic theme
   Fonts: Space Grotesk (display) · Inter (body) · Instrument Serif (accent)
   ============================================================ */

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

:root {
  --bg: #08080a;
  --bg-2: #0d0d11;
  --bg-3: #131318;
  --card: #111116;
  --text: #f4f3f1;
  --text-muted: rgba(244, 243, 241, 0.62);
  --text-faint: rgba(244, 243, 241, 0.38);
  --border: rgba(244, 243, 241, 0.09);
  --border-strong: rgba(244, 243, 241, 0.18);
  --accent: #ff6a3a;
  --accent-soft: rgba(255, 106, 58, 0.14);
  --accent-glow: rgba(255, 106, 58, 0.35);
  --maxw: 1280px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-noise: 90;
  --z-header: 100;
}

html { scroll-behavior: smooth; }

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

/* film grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-noise);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #08080a; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ============ TOP BAR ============ */
.topbar {
  background: #000;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.topbar .announcement { text-align: center; }
.topbar .announcement::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 1px;
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 5px rgba(255, 106, 58, 0); }
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 8, 10, 0.86);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.logo-mark { font-size: 22px; color: var(--accent); line-height: 1; }
.logo-light { font-weight: 300; opacity: 0.55; }

.nav-main { flex: 1; }
.nav-main > ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-main a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-main a:hover { color: var(--text); background: rgba(244, 243, 241, 0.06); }

.header-actions { display: flex; gap: 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.3s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #0c0500;
  box-shadow: 0 0 0 0 rgba(255, 106, 58, 0);
}
.btn-primary:hover {
  background: #ff7c52;
  box-shadow: 0 8px 32px -8px var(--accent-glow);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-outline:hover { background: #fff; color: #0a0a0a; border-color: #fff; }

.btn-outline-dark {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline-dark:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn-dark { background: var(--text); color: #0a0a0a; }
.btn-dark:hover { background: #fff; }

.btn-small { padding: 9px 20px; font-size: 13px; }
.btn-large { padding: 17px 38px; font-size: 15px; }

/* ============ HERO ============ */
.hero { position: relative; background: #000; }
.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: #000;
  line-height: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

.hero-overlay-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 72%, rgba(0,0,0,0.88) 100%),
    linear-gradient(180deg, rgba(8,8,10,0.5) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(8,8,10,0.92) 100%);
  pointer-events: none;
}

.hero-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  animation: rise 1s 0.15s var(--ease-out) both;
}
.hero-overlay-content h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
  animation: rise 1s 0.3s var(--ease-out) both;
}
.hero-overlay-content h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--accent);
}
.hero-overlay-content p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
  animation: rise 1s 0.45s var(--ease-out) both;
}
.hero-overlay-content .hero-cta {
  justify-content: center;
  animation: rise 1s 0.6s var(--ease-out) both;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

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

/* scroll cue */
.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  overflow: hidden;
  z-index: 2;
  animation: rise 1s 1s var(--ease-out) both;
}
.hero-scrollcue::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: cue-drop 2.2s 1.4s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; background: var(--bg); position: relative; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--bg-2); }
.section-light { background: var(--bg); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}
.section-head .lede {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 540px;
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--accent); }

/* ============ SUPPORTERS ============ */
.strip-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  margin-bottom: 40px;
}
.supporters-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}
.supporter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 20px 24px;
  background: rgba(244, 243, 241, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.supporter:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 243, 241, 0.2);
  background: rgba(244, 243, 241, 0.05);
}
.supporter-logo {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
}
.supporter-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.supporter-name {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* ============ CAPABILITY CAROUSEL ============ */
.cap-section { background: #000; padding: 0; position: relative; }
.cap-scroll-wrap { position: relative; height: 1000vh; background: #000; }
.cap-sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ambient glow behind the slider */
.cap-sticky::before {
  content: '';
  position: absolute;
  width: 70vw;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 106, 58, 0.07), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.cap-slider {
  position: relative;
  width: min(1180px, 92vw);
  height: 72vh;
  max-height: 720px;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 80px -30px rgba(255, 106, 58, 0.12);
}
.cap-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out), visibility 0s linear 0.4s;
}
.cap-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out), visibility 0s linear 0s;
}
.cap-image { position: absolute; inset: 0; background: #000; }
.cap-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* slide counter */
.cap-counter {
  position: absolute;
  top: max(28px, 4vh);
  right: max(28px, 4vw);
  z-index: 3;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 7px 16px;
}
.cap-counter .cap-sep { opacity: 0.4; margin: 0 6px; }
.cap-counter [data-cap-total] { opacity: 0.5; }

/* progress lines */
.cap-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 16px;
  z-index: 3;
}
.cap-dot {
  width: 26px;
  height: 14px;
  position: relative;
  cursor: pointer;
  transition: width 0.35s var(--ease-out);
}
.cap-dot span { display: none; }
.cap-dot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.25s;
}
.cap-dot:hover::after { background: rgba(255, 255, 255, 0.55); }
.cap-dot.is-active { width: 44px; }
.cap-dot.is-active::after {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ============ INSIDE LUMY (engineering) ============ */
.eng-section {
  background: #000;
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}
.eng-section .section-head { margin-bottom: 24px; }
.eng-section .section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* full-bleed intro shot */
.eng-hero {
  position: relative;
  width: 100%;
  height: clamp(380px, 64vh, 680px);
  overflow: hidden;
  perspective: 1000px;
}
.eng-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eng-rows { display: grid; gap: 40px; padding: 40px 0 96px; }
.eng-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.eng-row-reverse .eng-media { order: 2; }

.eng-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(244, 243, 241, 0.07);
  aspect-ratio: 16 / 9;
  perspective: 900px;
  transition: border-color 0.4s;
}
.eng-row:hover .eng-media { border-color: rgba(255, 106, 58, 0.25); }
.eng-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* cursor-follow transform target */
[data-tilt] img {
  will-change: transform;
  transition: transform 0.35s var(--ease-out);
}

.eng-body { max-width: 460px; }
.eng-stat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.eng-body h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
  color: var(--text);
}
.eng-body > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.eng-points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.eng-points li {
  padding: 11px 0 11px 22px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.eng-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* image-only closing shot */
.eng-detail {
  position: relative;
  width: 100%;
  height: clamp(360px, 60vh, 640px);
  overflow: hidden;
  perspective: 1000px;
}
.eng-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .eng-row { grid-template-columns: 1fr; gap: 24px; }
  .eng-row-reverse .eng-media { order: 0; }
  .eng-body { max-width: 100%; }
  .eng-rows { gap: 64px; }
}

/* ============ CHOOSE YOUR FIT ============ */
.fit-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 72px;
}
.fit-head-title h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text);
}
.fit-head-title h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.fit-lede {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42ch;
  justify-self: end;
  padding-bottom: 6px;
}

/* ============ PHYSICAL CONTROLS ============ */
.ctrl-section { background: #000; }
.ctrl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ctrl-card {
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.45s var(--ease-out);
}
.ctrl-card:hover {
  border-color: rgba(120, 220, 200, 0.25);
  transform: translateY(-4px);
}
.ctrl-media {
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}
.ctrl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ctrl-body { padding: 22px 24px 26px; }
.ctrl-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}
.ctrl-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.detail-head { margin: 96px 0 40px; text-align: center; }
.detail-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.detail-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.detail-tile {
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.45s var(--ease-out);
}
.detail-tile:hover {
  border-color: rgba(255, 106, 58, 0.35);
  transform: translateY(-3px);
}
.detail-big {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #f4f3f1 20%, #6f6f76);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.detail-sub {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ============ PRIVACY & SECURITY ============ */
.sec-section { background: var(--bg-2); position: relative; overflow: hidden; }
.sec-section::before {
  content: '';
  position: absolute;
  left: -15%;
  top: -20%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse, rgba(255, 106, 58, 0.05), transparent 65%);
  pointer-events: none;
}
.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.sec-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0c;
}
.sec-media img {
  width: 100%;
  height: auto;
  display: block;
}
.sec-body h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--text);
  margin: 14px 0 18px;
}
.sec-body h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.sec-lede {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 36px;
}
.sec-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.sec-points li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.sec-points h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.sec-points p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
}

/* Lens hero banner */
.lens-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: 88px;
  border: 1px solid var(--border);
}
.lens-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lens-hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(to top, rgba(8, 8, 10, 0.72), transparent);
}
.lens-hero-text p {
  color: #fff;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  max-width: 46ch;
  line-height: 1.5;
}

/* Lens groups */
.lens-group { margin-bottom: 88px; }
.lens-group:last-of-type { margin-bottom: 56px; }
.lens-group-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: baseline;
  margin-bottom: 36px;
}
.lens-step {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 243, 241, 0.28);
  user-select: none;
}
.lens-group-head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}
.lens-group-head h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.lens-group-head p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
}

/* Lens cards — light tiles, matching the photography */
.lens-grid { display: grid; gap: 18px; }
.lens-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lens-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lens-grid-coat { grid-template-columns: repeat(4, 1fr); align-items: stretch; }

.lens-card {
  background: #eff0f2;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.lens-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}
.lens-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eff0f2;
}
.lens-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.lens-card:hover .lens-card-media img { transform: scale(1.05); }
.lens-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.lens-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lens-card-body h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #131316;
}
.lens-card-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #55565c;
}
.lens-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(19, 19, 22, 0.18);
  color: #55565c;
  white-space: nowrap;
}
.lens-tag-included {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lens-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.lens-cta-note {
  font-size: 13.5px;
  color: var(--text-faint);
  max-width: 40ch;
}

/* ============ DEVELOPERS ============ */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.dev-card {
  background: rgba(244, 243, 241, 0.025);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.dev-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.dev-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 58, 0.3);
  background: var(--accent-soft);
}
.dev-card:hover::before { opacity: 1; }
.dev-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 106, 58, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.dev-icon svg { width: 21px; height: 21px; }
.dev-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.dev-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.link-arrow,
.link-arrow-light {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease-out);
}
.link-arrow:hover,
.link-arrow-light:hover { gap: 8px; }
/* Stark / EDITH HUD banner */
.dev-hud {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(255, 106, 58, 0.1), transparent 55%),
    rgba(244, 243, 241, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(32px, 4.5vw, 56px);
  margin-bottom: 48px;
  overflow: hidden;
}
.dev-hud-ring {
  position: relative;
  width: 240px;
  height: 240px;
  justify-self: center;
}
.hud-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 106, 58, 0.35);
}
.hud-ring-1 {
  border-style: dashed;
  animation: hud-spin 24s linear infinite;
}
.hud-ring-2 {
  inset: 28px;
  border-color: rgba(255, 106, 58, 0.5);
  border-top-color: var(--accent);
  animation: hud-spin 10s linear infinite reverse;
}
.hud-ring-3 {
  inset: 56px;
  border-style: dotted;
  border-color: rgba(255, 106, 58, 0.4);
  animation: hud-spin 36s linear infinite;
}
.hud-core {
  position: absolute;
  inset: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 58, 0.85), rgba(255, 106, 58, 0.12) 70%);
  box-shadow: 0 0 40px rgba(255, 106, 58, 0.45), 0 0 90px rgba(255, 106, 58, 0.2);
  animation: hud-pulse 3.2s ease-in-out infinite;
}
@keyframes hud-spin { to { transform: rotate(360deg); } }
@keyframes hud-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
.dev-hud-text h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  margin: 12px 0 14px;
}
.dev-hud-text h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.dev-hud-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 22px;
}
.dev-hud-cmd {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 13.5px;
  color: var(--accent);
  background: rgba(255, 106, 58, 0.06);
  border: 1px solid rgba(255, 106, 58, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
}
.hud-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 7px;
  background: var(--accent);
  animation: hud-blink 1.1s steps(1) infinite;
}
@keyframes hud-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hud-ring, .hud-core, .hud-cursor { animation: none; }
}

.dev-iot {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: rgba(244, 243, 241, 0.025);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 48px;
}
.dev-iot-text h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.dev-iot-text p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.dev-iot-boards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dev-iot-boards li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(244, 243, 241, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}
.dev-iot-boards li:hover { border-color: rgba(255, 106, 58, 0.35); }
.dev-iot-boards strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}
.dev-iot-boards span {
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: right;
}

.dev-cta { text-align: center; }

/* ============ INFO / LEGAL PAGES ============ */
.page-main {
  padding: 160px 0 96px;
  min-height: 60vh;
}
.page-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page-wrap > .eyebrow { display: block; margin-bottom: 14px; }
.page-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 12px;
}
.page-wrap h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-updated {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 48px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.page-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.page-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.page-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.page-content strong { color: var(--text); font-weight: 600; }
.page-content a { color: var(--accent); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.page-note {
  background: rgba(255, 106, 58, 0.05);
  border: 1px solid rgba(255, 106, 58, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.page-note p { margin: 0; font-size: 14px; }

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(40px, 6vw, 88px);
  max-width: 1080px;
  margin: 0 auto;
}
.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 56ch;
}

/* ============ TESTIMONIALS ============ */
.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
}
.rating .stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  position: relative;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.testimonial:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.testimonial:nth-child(even) { margin-top: 28px; }
.testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 2px;
}
.testimonial .stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.6;
}
.testimonial .author { font-size: 13px; font-weight: 500; color: var(--text-faint); }

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
  padding: 160px 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 106, 58, 0.1), transparent 60%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 20px;
  color: var(--text);
}
.final-cta p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--bg);
  color: var(--text);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.newsletter h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.newsletter p { color: var(--text-muted); margin-bottom: 36px; }
.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  transition: border-color 0.25s;
}
.newsletter-form:focus-within { border-color: rgba(255, 106, 58, 0.45); }
.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form button {
  background: var(--accent);
  color: #0c0500;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.newsletter-form button:hover { background: #ff7c52; }
.newsletter-form button:active { transform: scale(0.97); }

/* ============ FOOTER ============ */
.footer {
  background: #000;
  color: var(--text-muted);
  padding-top: 72px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { font-size: 13px; color: var(--text-faint); margin-top: 12px; }
.footer-social { margin-top: 20px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }
.logo.logo-light { color: var(--text); }
.logo-light .logo-mark { color: var(--accent); }
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--text);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-newsletter-form {
  display: flex;
  background: rgba(244, 243, 241, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-top: 12px;
  transition: border-color 0.25s;
}
.footer-newsletter-form:focus-within { border-color: rgba(255, 106, 58, 0.45); }
.footer-newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 13px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  min-width: 0;
}
.footer-newsletter-form input::placeholder { color: var(--text-faint); }
.footer-newsletter-form button {
  background: var(--accent);
  color: #0c0500;
  font-weight: 600;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.footer-newsletter-form button:hover { background: #ff7c52; }
.footer-newsletter-form button:active { transform: scale(0.95); }

.footer-bottom { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ============ SCROLL REVEALS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .dev-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .ctrl-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: 1fr; }
  .dev-iot { grid-template-columns: 1fr; }
  .dev-hud { grid-template-columns: 1fr; }
  .dev-hud-ring { width: 180px; height: 180px; }
  .hud-ring-2 { inset: 22px; }
  .hud-ring-3 { inset: 44px; }
  .hud-core { inset: 66px; }
  .sec-media { max-width: 480px; margin: 0 auto; }
  .supporters-strip { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
  .fit-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 56px; }
  .fit-lede { justify-self: start; padding-bottom: 0; }
  .lens-hero { aspect-ratio: 16 / 9; margin-bottom: 72px; }
  .lens-grid-4, .lens-grid-coat { grid-template-columns: repeat(2, 1fr); }
  .lens-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .lens-group { margin-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-newsletter { grid-column: 1 / -1; }
  .testimonial:nth-child(even) { margin-top: 0; }
}

@media (max-width: 768px) {
  .nav-main { display: none; }
  .nav-main.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-main.open > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-main.open a { display: block; padding: 13px 14px; font-size: 15px; border-radius: 12px; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 16px; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .dev-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .newsletter-form { flex-direction: column; border-radius: 20px; }
  .newsletter-form button { width: 100%; }
  .cap-counter { top: 20px; right: 20px; font-size: 12px; padding: 6px 13px; }
  .cap-slider { height: 64vh; border-radius: 18px; }
}

@media (max-width: 480px) {
  .topbar .announcement { font-size: 11px; }
  .hero-cta { flex-direction: column; width: 100%; padding: 0 32px; }
  .hero-cta .btn { width: 100%; }
  .hero-overlay-content { padding: 0 20px; }
  .hero-overlay-content .hero-cta { width: 100%; padding: 0; }
  .supporters-strip { grid-template-columns: 1fr; max-width: 320px; }
  .lens-grid-4, .lens-grid-3, .lens-grid-coat { grid-template-columns: 1fr; }
  .lens-hero { aspect-ratio: 4 / 3; border-radius: 20px; }
  .lens-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ============ PRICING / BUY ============ */
.buy-section {
  padding: 110px 0 130px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255, 106, 58, 0.07), transparent 65%),
    var(--bg);
}

.buy-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.buy-media {
  position: sticky;
  top: 110px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-2);
  padding: 36px 36px 28px;
}

.buy-media img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.buy-box { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }

.buy-box h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.buy-box ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }

.buy-box li {
  color: var(--text-muted);
  font-size: 13.5px;
  padding-left: 18px;
  position: relative;
}

.buy-box li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-size: 12px; }

.buy-price-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }

.buy-price {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.buy-price-note { color: var(--text-faint); font-size: 13.5px; }

.opt-group { border: 0; padding: 0; margin: 0 0 26px; }

.opt-group legend {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  background: var(--bg-2);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.opt:hover { border-color: var(--border-strong); }

.opt input {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}

.opt input::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
}

.opt input:checked { border-color: var(--accent); }
.opt input:checked::after { transform: scale(1); }
.opt input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.opt-name { font-size: 14.5px; font-weight: 500; }
.opt-price { margin-left: auto; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.opt:has(input:checked) .opt-price { color: var(--text); }

.buy-add { width: 100%; justify-content: center; margin-top: 4px; }
.buy-add.added { background: #2ea36b; border-color: #2ea36b; }
.buy-add:disabled { opacity: 0.55; cursor: not-allowed; }

.buy-fine { margin-top: 14px; font-size: 12.5px; color: var(--text-faint); text-align: center; }

/* ============ CART ============ */
.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.cart-btn:hover { border-color: var(--border-strong); background: var(--bg-3); }
.cart-btn:active { transform: scale(0.96); }
.cart-btn svg { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 180;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.cart-overlay.open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 190;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.4s var(--ease-out);
}

.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-head h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }

.cart-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.cart-close:hover { color: var(--text); border-color: var(--border-strong); }

.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }

.cart-empty { text-align: center; padding: 56px 0; }
.cart-empty p { color: var(--text-muted); margin-bottom: 18px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-family: var(--font-display); font-size: 14.5px; margin-bottom: 3px; }
.cart-item-info p { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.cart-item-price { font-size: 13.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }

.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }

.cart-qty { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 10px; }

.cart-qty button {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-qty button:hover { color: var(--text); }
.cart-qty span { min-width: 20px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

.cart-remove {
  background: transparent;
  border: 0;
  color: var(--text-faint);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--border); background: var(--bg); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  margin-bottom: 6px;
}

.cart-total-row strong { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }

.cart-ship-note { font-size: 12px; color: var(--text-faint); margin-bottom: 14px; }

.cart-checkout { width: 100%; justify-content: center; }
.cart-checkout:disabled { opacity: 0.45; cursor: not-allowed; }

body.cart-open { overflow: hidden; }

@media (max-width: 900px) {
  .buy-grid { grid-template-columns: 1fr; gap: 28px; }
  .buy-media { position: static; padding: 24px; }
}

@media (max-width: 480px) {
  .buy-section { padding: 72px 0 88px; }
  .buy-box ul { grid-template-columns: 1fr; }
}

/* ============ PRESCRIPTION POWER PANEL ============ */
.rx-panel {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-3);
  padding: 18px 18px 20px;
  margin: -8px 0 26px;
}

.rx-head { margin-bottom: 16px; }

.rx-head h4 {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 3px;
}

.rx-head span { font-size: 12px; color: var(--text-faint); line-height: 1.5; display: block; }

.rx-eye { margin-bottom: 14px; }
.rx-eye:last-of-type { margin-bottom: 0; }

.rx-eye-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rx-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.rx-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.rx-fields input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
}

.rx-fields input:hover { border-color: var(--border-strong); }
.rx-fields input:focus { outline: none; border-color: var(--accent); }

.rx-fields input::-webkit-outer-spin-button,
.rx-fields input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rx-fields input[type='number'] { -moz-appearance: textfield; appearance: textfield; }

.rx-error { color: #ff5d5d; font-size: 12.5px; margin-top: 12px; }

.cart-item-power { font-size: 12px; color: var(--text-faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
