/* ==========================================================================
   Vibe Science — Hyper-Stylized Design System
   Dark-dominant, immersive, dramatic
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=DM+Mono:wght@300;400&display=swap');

/* --- Tokens --- */
:root {
  --ink: #0a0a0f;
  --ink-deep: #050508;
  --surface: #0f0f16;
  --surface-elevated: #15151f;
  --surface-glass: rgba(15, 15, 22, 0.7);
  --cream: #F4F1EB;
  --cream-muted: rgba(244, 241, 235, 0.65);
  --cream-dim: rgba(244, 241, 235, 0.4);
  --cream-faint: rgba(244, 241, 235, 0.15);
  --border: rgba(244, 241, 235, 0.08);
  --border-strong: rgba(244, 241, 235, 0.15);
  --accent: #5B7BC4;
  --teal: #2AABBD;
  --mid: #5B7BC4;
  --indigo: #5B4FA8;
  --grad: linear-gradient(135deg, #3EAFC0 0%, #5B7BC4 50%, #5B4FA8 100%);
  --grad-heading: linear-gradient(135deg, #5ECFDE 0%, #5B7BC4 50%, #7B6BD8 100%);
  --glow-teal: rgba(42, 171, 189, 0.25);
  --glow-indigo: rgba(91, 79, 168, 0.25);
  --glow-accent: rgba(91, 123, 196, 0.3);
  --nav-height: 72px;
  --max-width: 1200px;
  --content-padding: 48px;
  --section-padding: clamp(80px, 10vw, 160px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-med: 350ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  :root {
    --content-padding: 24px;
    --nav-height: 64px;
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  background: var(--ink);
  overflow-x: hidden;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection {
  background: rgba(91, 123, 196, 0.35);
  color: var(--cream);
}

/* --- Noise Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* --- Typography --- */
.label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.s-display {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.s-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.s-h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

.s-h4 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
}

.s-stat {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.s-card {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.body-text {
  font-size: 16px;
  line-height: 1.78;
  color: var(--cream-muted);
  max-width: 60ch;
}

.body-text + .body-text { margin-top: 16px; }

/* Gradient text */
.grad {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-glow {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(91, 123, 196, 0.4));
}

/* Tags */
.tag {
  display: inline-block;
  padding: 6px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(244, 241, 235, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--cream-dim);
  backdrop-filter: blur(4px);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.section--dark {
  background: var(--ink-deep);
}

.section--surface {
  background: var(--surface);
}

.section--elevated {
  background: var(--surface-elevated);
}

/* Mesh gradient backgrounds */
.section__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section__mesh::before,
.section__mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.section__mesh::before {
  width: 600px;
  height: 600px;
  background: var(--teal);
  top: -200px;
  right: -200px;
}

.section__mesh::after {
  width: 500px;
  height: 500px;
  background: var(--indigo);
  bottom: -200px;
  left: -100px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition-fast);
}

.nav__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--grad);
  width: 0%;
  transition: width 100ms linear;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--cream-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--cream);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 1px;
}

.nav__cta {
  padding: 10px 24px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border-radius: 100px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 0 20px rgba(91, 123, 196, 0.2);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 30px rgba(91, 123, 196, 0.4);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform var(--transition-fast);
}

.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  padding: 32px;
  z-index: 999;
  flex-direction: column;
  gap: 24px;
}

.nav__drawer.is-open { display: flex; }

.nav__drawer .nav__link {
  font-size: 24px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--cream);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 30px rgba(91, 123, 196, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(91, 123, 196, 0.45);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(91, 123, 196, 0.08);
  box-shadow: 0 0 30px rgba(91, 123, 196, 0.15);
  transform: translateY(-1px);
}

.btn-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* --- Cards --- */
.card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 123, 196, 0.05) 0%, transparent 50%, rgba(91, 79, 168, 0.03) 100%);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* 3D tilt cards */
.card-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Glass cards for dark sections */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-med);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* Gradient border cards */
.card--grad-border {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--grad) border-box;
}

/* Top accent border */
.card--accent-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
}

.card--teal-accent::after { background: var(--teal); }
.card--mid-accent::after { background: var(--mid); }
.card--indigo-accent::after { background: var(--indigo); }

/* --- Stats --- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item { text-align: left; }

.stat-item__number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(91, 123, 196, 0.3));
}

.stat-item__label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  margin-top: 8px;
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 15, 0.9) 0%,
    rgba(10, 10, 15, 0.5) 40%,
    rgba(10, 10, 15, 0.7) 70%,
    rgba(10, 10, 15, 0.95) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator__text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
}

.scroll-indicator__line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--cream-dim), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Footer --- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--ink-deep);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 14px;
  color: var(--cream-dim);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--cream); }

.footer__copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--cream-dim);
}

.footer__attribution {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--cream-dim);
}

.footer__attribution a {
  color: var(--cream-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Forms --- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: var(--cream);
  background: rgba(244, 241, 235, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder { color: var(--cream-dim); }

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 123, 196, 0.15);
}

.form-label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--cream-dim);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 0 24px;
  color: var(--cream-muted);
  line-height: 1.7;
}

/* --- Disclaimer --- */
.disclaimer {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-style: italic;
  color: var(--cream-dim);
  max-width: 60ch;
  line-height: 1.6;
}

/* --- Scrollytelling --- */
.scrolly-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.scrolly-pin {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.scrolly-step {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.4;
  transition: opacity var(--transition-slow);
}

.scrolly-step--active { opacity: 1; }
.scrolly-step:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .scrolly-section { grid-template-columns: 1fr; }
  .scrolly-pin { position: static; }
}

/* --- Protocol Cards --- */
.protocol-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.protocol-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.protocol-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.protocol-card:hover::before { opacity: 0.5; }

.protocol-card--active {
  border-color: transparent;
  box-shadow: 0 0 30px rgba(91, 123, 196, 0.2);
}

.protocol-card--active::before { opacity: 1; }

.protocol-card__name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

.protocol-card__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
}

.protocol-card__stat {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .protocol-selector { grid-template-columns: 1fr; }
}

/* --- Canvas wrappers --- */
.waveform-wrap {
  background: rgba(15, 15, 22, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.waveform-wrap canvas {
  width: 100%;
  height: 200px;
}

/* --- Frequency bands --- */
.frequency-bands { display: flex; flex-direction: column; gap: 12px; }

.freq-band { display: flex; flex-direction: column; gap: 6px; }
.freq-band__header { display: flex; align-items: center; gap: 12px; }
.freq-band__label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
  min-width: 50px;
}
.freq-band__range {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--cream-dim);
}
.freq-band__readout {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--teal);
}
.freq-band__track {
  height: 6px;
  background: rgba(244, 241, 235, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.freq-band__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px currentColor;
}

/* --- EEG toggle --- */
.eeg-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}

.eeg-toggle button {
  padding: 10px 24px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(244, 241, 235, 0.04);
  color: var(--cream-dim);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.eeg-toggle button:first-child { border-radius: 100px 0 0 100px; }
.eeg-toggle button:last-child { border-radius: 0 100px 100px 0; }

.eeg-toggle button.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(91, 123, 196, 0.3);
}

/* --- Notification mockup --- */
.notification-mockup {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 340px;
}

.notification-mockup__top {
  padding: 20px 24px;
  background: rgba(244, 241, 235, 0.03);
}

.notification-mockup__bottom {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(42, 171, 189, 0.08), rgba(91, 79, 168, 0.06));
  border-top: 1px solid var(--border);
}

.notification-mockup__text {
  font-size: 14px;
  margin: 0;
}

.notification-mockup__text--muted { color: var(--cream-dim); }
.notification-mockup__text--shift { color: var(--teal); font-weight: 500; }

/* --- LED pulse --- */
.led {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5ECFDE, #2AABBD);
  box-shadow: 0 0 12px 4px rgba(42, 171, 189, 0.45);
  animation: ledPulse 2.8s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px 4px rgba(42, 171, 189, 0.45); }
  50% { transform: scale(1.4); box-shadow: 0 0 24px 10px rgba(42, 171, 189, 0.2); }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding: 24px 0;
}

.timeline__node {
  position: absolute;
  left: -40px;
  top: 28px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 20px rgba(91, 123, 196, 0.3);
  z-index: 1;
}

.timeline__title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.timeline__duration {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 8px;
}

.timeline__desc {
  color: var(--cream-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* --- Floating Beta Button --- */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  padding: 14px 28px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(91, 123, 196, 0.4);
  transition: all var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(91, 123, 196, 0.6);
}

/* --- Loading screen --- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  width: 80px;
  height: auto;
  filter: brightness(0) invert(1);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* --- Bio cards --- */
.bio-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.bio-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.bio-card__info { flex: 1; }

.bio-card__name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.bio-card__title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}

.bio-card__desc {
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* --- Orbs for shiftlab --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb--teal {
  width: 500px;
  height: 500px;
  background: var(--teal);
  opacity: 0.12;
  animation: orbDrift 20s ease-in-out infinite alternate;
}

.orb--indigo {
  width: 400px;
  height: 400px;
  background: var(--indigo);
  opacity: 0.1;
  animation: orbDrift 25s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.1); }
}

/* --- Reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.4s; }

/* --- Custom cursor --- */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(42, 171, 189, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* --- Steps --- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(91, 123, 196, 0.3);
}

.step-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

.step-card__desc {
  font-size: 14px;
  color: var(--cream-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .steps-row { grid-template-columns: 1fr; gap: 24px; }
  .steps-row::before { display: none; }
}

/* --- Signup card --- */
.signup-card {
  background: var(--surface);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-image: linear-gradient(135deg, #3EAFC0, #5B7BC4, #5B4FA8) 1;
  border-radius: 0;
  padding: 40px;
  position: relative;
}

.signup-card__price {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 700;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signup-card__checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.signup-card__check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--cream-muted);
}

.signup-card__check::before {
  content: '✓';
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
}

/* --- Specular highlight on sections --- */
.section--glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(91, 123, 196, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: calc(var(--nav-height) + 24px) 0 48px; }
  .s-display { font-size: clamp(36px, 8vw, 48px); }
  .s-h2 { font-size: clamp(28px, 6vw, 36px); }
  .btn-cta-row { flex-direction: column; align-items: flex-start; }
  .stat-row { gap: 24px; }
  /* Force all inline grids to stack on mobile */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .scrolly-section { grid-template-columns: 1fr !important; }
  .scrolly-pin { position: static !important; }
  .scroll-indicator { display: none; }
  .protocol-selector { grid-template-columns: 1fr !important; }
  .steps-row { grid-template-columns: 1fr !important; }
  .steps-row::before { display: none; }
}

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

/* ==========================================================================
   Hero Background Light Animations (Subpages)
   ========================================================================== */
.hero-light-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
.hero-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: heroLightDrift 12s ease-in-out infinite;
}
.hero-light--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(62,175,192,0.35) 0%, rgba(62,175,192,0.08) 50%, transparent 70%);
  top: -15%;
  right: -8%;
  animation-delay: 0s;
  animation-duration: 14s;
}
.hero-light--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91,123,196,0.28) 0%, rgba(91,123,196,0.06) 50%, transparent 70%);
  bottom: -10%;
  left: 5%;
  animation-delay: -4s;
  animation-duration: 16s;
}
.hero-light--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91,79,168,0.25) 0%, rgba(91,79,168,0.05) 50%, transparent 70%);
  top: 15%;
  left: 35%;
  animation-delay: -8s;
  animation-duration: 18s;
}

@keyframes heroLightDrift {
  0% {
    opacity: 0.1;
    transform: translate(0, 0) scale(0.85);
  }
  20% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.6;
    transform: translate(50px, -35px) scale(1.2);
  }
  80% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.1;
    transform: translate(-25px, 25px) scale(0.85);
  }
}

/* ==========================================================================
   Product Hero — Device Showcase with Animated Canvas
   ========================================================================== */
.product-hero-showcase {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.product-hero-showcase canvas {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  pointer-events: none;
  z-index: 0;
}
.product-hero-showcase__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(42,171,189,0.2)) drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  animation: deviceFloat 6s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .product-hero-showcase {
    max-width: 340px;
    margin: 0 auto;
  }
  .product-hero-showcase canvas {
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
  }
}
