/* ============================================================
   BrightKey — Design System (Taste-Skill Applied)
   DESIGN_VARIANCE: 8 | MOTION_INTENSITY: 6 | VISUAL_DENSITY: 4
   Font: Outfit | Accent: Single (Cyan #06B6D4)
   ============================================================ */

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

:root {
  /* Backgrounds — Light */
  --bg-base:        #FAFAFA;
  --bg-surface:     #FFFFFF;
  --bg-elevated:    #F4F4F5;
  --bg-card:        #FFFFFF;
  --border:         #E4E4E7;
  --border-hover:   #D4D4D8;

  /* ── SINGLE ACCENT: Cyan ──────────────────────────────── */
  --cyan:           #06B6D4;
  --cyan-light:     #0891B2;
  --cyan-dim:       rgba(6, 182, 212, 0.15);
  --cyan-border:    rgba(6, 182, 212, 0.22);

  /* Neutral Blue-slate (surface tones only, NOT an accent) */
  --slate:          #E2E8F0;
  --slate-dim:      rgba(226, 232, 240, 0.60);

  /* Semantic */
  --danger:         #EF4444;
  --success:        #10B981;
  --warning:        #F59E0B;

  /* Text */
  --text-primary:   #09090B;
  --text-secondary: #52525B;
  --text-muted:     #A1A1AA;

  /* Typography — NO Inter */
  --font-sans:      'Commissioner', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Layout */
  --max-width:   1200px;
  --nav-height:  68px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows — subtle for light mode */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

  /* Card depth: diffusion shadow */
  --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.08);

  /* Spring-feel transition (MI=6: fluid CSS) */
  --transition:      0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ───────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a {
  color: var(--cyan-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--text-primary); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-weight: 700;
}

/* Typography per taste-skill: tracking-tighter for display */
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.75; }
ul, ol { list-style: none; }

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section      { padding-block: var(--space-3xl); }
.section--sm  { padding-block: var(--space-2xl); }
.section--lg  { padding-block: calc(var(--space-3xl) * 1.4); }

/* Symmetric grids — only 2 & 4 (NO 3-col) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

/* Asymmetric hero grid (DV=8): 55/45 split */
.grid-hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Zig-zag 2-col (replaces banned 3-col for features) */
.zigzag { display: flex; flex-direction: column; gap: 4rem; }
.zigzag__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.zigzag__row:nth-child(even) { direction: rtl; }
.zigzag__row:nth-child(even) > * { direction: ltr; }

/* Horizontal scroll strip (replaces 4-col where applicable) */
.h-scroll-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.h-scroll-strip::-webkit-scrollbar { height: 4px; }
.h-scroll-strip::-webkit-scrollbar-track { background: transparent; }
.h-scroll-strip::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }

.flex             { display: flex; }
.flex-col         { display: flex; flex-direction: column; }
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.justify-between  { justify-content: space-between; }
.justify-center   { justify-content: center; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

.text-center   { text-align: center; }
.text-muted    { color: var(--text-muted); }
.text-secondary{ color: var(--text-secondary); }
.text-white    { color: var(--text-primary); }
.text-cyan     { color: var(--cyan); }

/* NO gradient text on large H1s — use for accent words only (small) */
.text-accent { color: var(--cyan); }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: padding var(--transition-slow), background var(--transition-slow), border-color var(--transition-slow);
}

/* Floating pill on scroll — desktop only */
@media (min-width: 769px) {
  .nav.scrolled {
    padding: 0.65rem 1.5rem;
    background: transparent;
    border-bottom-color: transparent;
  }
  .nav .container {
    transition: max-width var(--transition-slow), border-radius var(--transition-slow),
                box-shadow var(--transition-slow), padding-inline var(--transition-slow);
  }
  .nav.scrolled .container {
    background: rgba(255,255,255,0.96);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 980px;
    padding-inline: var(--space-lg);
  }
  .nav.scrolled .nav__inner { height: 52px; }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--nav-height);
  transition: height var(--transition-slow);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}
.nav__link:hover,
.nav__link.active { color: #111827; }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: var(--space-md); }

/* CTA button overrides for white nav background */
.nav .btn-outline {
  color: #374151;
  border-color: rgba(0,0,0,0.15);
}
.nav .btn-outline:hover {
  color: var(--blue);
  background: rgba(37,99,235,0.06);
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* Hamburger — animated SVG (MenuToggleIcon style) */
.nav__toggle {
  display: none;
  cursor: pointer;
  padding: 0;
  background: none;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.nav__toggle:hover { border-color: rgba(0,0,0,0.25); }

.nav__hamburger {
  width: 20px; height: 20px;
  color: #374151;
  display: block;
  transition: transform 300ms ease;
}
.nav__toggle.open .nav__hamburger { transform: rotate(-45deg); }

.nav__ham-path {
  stroke-dasharray: 12 63;
  transition: stroke-dasharray 300ms ease, stroke-dashoffset 300ms ease;
}
.nav__toggle.open .nav__ham-path {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
  /* Rule 5: tactile :active feedback */
  will-change: transform;
}
.btn:active { transform: scale(0.98); }

/* Primary: Cyan (single accent) */
.btn-primary, .btn-cyan {
  background: var(--cyan);
  color: #FFFFFF;
  border-color: var(--cyan);
  font-weight: 700;
}
.btn-primary:hover, .btn-cyan:hover {
  background: var(--cyan-light);
  border-color: var(--cyan-light);
  color: #FFFFFF;
  transform: translateY(-1px);
  /* Tinted inset shadow — NO outer neon glow */
  box-shadow:
    0 0 0 1px rgba(6,182,212,0.3) inset,
    0 8px 24px rgba(6,182,212,0.18);
}
.btn-primary:active, .btn-cyan:active {
  transform: scale(0.98) translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--cyan-border);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan-border);
}
.btn-outline-cyan:hover {
  background: var(--cyan-dim);
  color: var(--cyan-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-elevated); }

.btn-sm  { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg  { padding: 0.95rem 2.4rem; font-size: 1rem; border-radius: var(--radius-md); letter-spacing: 0; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition-slow);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  /* Diffusion shadow, NO neon glow */
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}

/* Spotlight-border card: border illuminates under cursor */
.card--spotlight {
  position: relative;
  overflow: hidden;
}
.card--spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(6,182,212,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card--spotlight:hover::before { opacity: 1; }

/* Liquid Glass: inner refraction, no outer glow */
.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  /* Inner edge refraction per taste-skill §4 */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 20px 40px -15px rgba(0,0,0,0.5);
}

.card--elevated { background: var(--bg-elevated); }

.card--accent {
  border-color: var(--cyan-border);
  box-shadow:
    inset 0 1px 0 rgba(6,182,212,0.08),
    0 20px 40px -15px rgba(0,0,0,0.5);
}
.card--accent:hover { border-color: var(--cyan); }

/* Product card */
.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
  opacity: 0.6;
}
.product-card:hover::before { transform: scaleX(1); }

/* ── Icon Box (SVG container) ───────────────────────────── */
.icon-box {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
}
.icon-box svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Neutral variant (for non-accent items) */
.icon-box--neutral {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* ── Forms ──────────────────────────────────────────────── */
/* Rule 6: label above input, gap-2 for block */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--cyan-border);
  /* Tinted ring, not neon glow */
  box-shadow: 0 0 0 3px rgba(6,182,212,0.10);
}
.form-input.error, .form-textarea.error { border-color: var(--danger); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-hint  { font-size: 0.78rem; color: var(--text-muted); }
.form-error { font-size: 0.78rem; color: var(--danger); }

.form-select {
  background-image: 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='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge-cyan    { background: var(--cyan-dim);    color: var(--cyan-light);   border: 1px solid var(--cyan-border); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-muted);   border: 1px solid var(--border); }
.badge-success { background: rgba(16,185,129,0.08); color: #10B981;          border: 1px solid rgba(16,185,129,0.25); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-muted);   border: 1px solid var(--border); }

/* Backwards compat */
.badge-blue   { background: var(--cyan-dim); color: var(--cyan-light); border: 1px solid var(--cyan-border); }
.badge-purple { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-accent { background: var(--cyan-dim); color: var(--cyan-light); border: 1px solid var(--cyan-border); }

/* ── Alert / Toast ──────────────────────────────────────── */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}
.alert-success { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.3); color: var(--success); }
.alert-error   { background: rgba(239,68,68,0.06);  border-color: rgba(239,68,68,0.3);  color: var(--danger); }
.alert-info    { background: var(--cyan-dim);        border-color: var(--cyan-border);   color: var(--cyan-light); }
.alert--hidden { display: none; }

#toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s cubic-bezier(0.16,1,0.3,1), fadeOut 0.3s ease 2.7s forwards;
  max-width: 360px;
}
.toast-success { background: var(--success); color: #fff; }
.toast-error   { background: var(--danger);  color: #fff; }

/* ── Section Headers ────────────────────────────────────── */
.section-header { margin-bottom: var(--space-2xl); }
.section-header.text-center {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-md);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--cyan);
  border-radius: var(--radius-full);
  opacity: 0.7;
}

.section-title { margin-bottom: var(--space-md); }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Hero ────────────────────────────────────────────────── */
/* Taste-skill: NEVER h-screen. Always min-h-[100dvh] */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-3xl);
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

/* Mesh gradient bg (subtle animated blobs) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(6,182,212,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(6,182,212,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(226,232,240,0.6) 0%, transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 100% 70% at 60% 20%, black 20%, transparent 80%);
}

.hero__content { position: relative; z-index: 1; width: 100%; }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-block: var(--space-3xl) var(--space-2xl);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(6,182,212,0.05) 0%, transparent 70%);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text-secondary); }

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); border: none; margin-block: var(--space-2xl); }

/* ── Stat block ─────────────────────────────────────────── */
.stat-block { display: flex; flex-direction: column; gap: 2px; }
.stat-block__num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-block__label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-block: var(--space-3xl) var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3,1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer__brand p { margin-top: var(--space-md); font-size: 0.875rem; max-width: 280px; line-height: 1.75; }
.footer__col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-md); }
.footer__link { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--transition); }
.footer__link:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__social { display: flex; gap: var(--space-md); }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer__social a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.footer__social a:hover { border-color: var(--cyan-border); color: var(--cyan); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid; place-items: center;
  padding: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition-slow);
  /* Inner refraction */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-xl); }
.modal__close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.5rem; line-height: 1;
  transition: color var(--transition);
  padding: 0.2rem 0.4rem;
}
.modal__close:hover { color: var(--text-primary); }

/* ── Pill Tabs ───────────────────────────────────────────── */
.pill-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.pill-tab {
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.pill-tab:hover { border-color: var(--cyan-border); color: var(--cyan); }
.pill-tab.active {
  background: var(--cyan-dim);
  border-color: var(--cyan-border);
  color: var(--cyan);
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card { position: relative; overflow: hidden; }
.pricing-card--featured {
  border-color: var(--cyan-border);
  box-shadow: inset 0 1px 0 rgba(6,182,212,0.08), var(--shadow-card);
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 14px; right: -28px;
  background: var(--cyan);
  color: #09090b;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 2.5rem;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}
.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-block: var(--space-lg);
}
.pricing-currency { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); padding-bottom: 4px; }
.pricing-amount   { font-size: 2.8rem; font-weight: 800; color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.pricing-period   { font-size: 0.875rem; color: var(--text-muted); padding-bottom: 6px; }

.pricing-features { display: flex; flex-direction: column; gap: var(--space-sm); margin-block: var(--space-lg); }
.pricing-feature {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.875rem; color: var(--text-secondary);
}
/* SVG checkmark inline — no emojis */
.pricing-feature::before { content: ''; }
.pricing-feature .check {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--cyan);
}
.pricing-feature.disabled { opacity: 0.35; text-decoration: line-through; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-section { overflow: hidden; }

.testimonials-columns {
  display: flex;
  gap: 1.25rem;
  max-height: 740px;
  overflow: hidden;
  margin-top: var(--space-2xl);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.testimonials-col { flex: 1; min-width: 0; }
.testimonials-col--md { display: none; }
.testimonials-col--lg { display: none; }
@media (min-width: 768px) { .testimonials-col--md { display: block; } }
@media (min-width: 1024px) { .testimonials-col--lg { display: block; } }

.testimonials-track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: testimonials-scroll var(--col-duration, 15s) linear infinite;
}

@keyframes testimonials-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: var(--border-hover); }

.testimonial-card__text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(20px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
/* Subtle pulsing status dot — no neon */
@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* MI=6: Fluid CSS stagger reveal */
.reveal {
  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.visible { opacity: 1; transform: translateY(0); }

/* Stagger cascade utility (DV=8) */
.stagger > * { opacity: 0; transform: translateY(20px); }
.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger.visible > *:nth-child(1)  { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2)  { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3)  { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4)  { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5)  { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6)  { transition-delay: 400ms; }
.stagger.visible > *:nth-child(7)  { transition-delay: 480ms; }
.stagger.visible > *:nth-child(8)  { transition-delay: 560ms; }

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Mobile nav ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg) var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav__links.mobile-open { display: flex; }

  .nav__cta {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) + 1px);
    left: 0; right: 0;
    padding: var(--space-md) var(--space-xl) var(--space-lg);
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    z-index: 98;
  }
  .nav__cta.mobile-open { display: block; top: calc(var(--nav-height) + 190px); }

  /* DV=8 MOBILE OVERRIDE: all asymmetric → single column */
  .grid-2, .grid-4, .grid-hero { grid-template-columns: 1fr; }
  .zigzag__row { grid-template-columns: 1fr; gap: var(--space-xl); }
  .zigzag__row:nth-child(even) { direction: ltr; }
  .container { padding-inline: var(--space-lg); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section-header.text-center { max-width: 100%; }
  /* Apply 100dvh on mobile too */
  .hero { min-height: 100dvh; padding-top: calc(var(--nav-height) + 2rem); }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; letter-spacing: -0.035em; }
  h2 { font-size: 1.55rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 0.8rem 1.6rem; font-size: 0.95rem; }
}
