/* ============================================================
 V4.2 — UI COMPONENT CATALOGUE
 Marketing component CSS · Albufera register
 ============================================================ */

/* ── In-page category navigation ─────────────────────────── */
.comp-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 80;
  background: rgba(247,245,240,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.comp-nav__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  gap: 0;
}
.comp-nav__inner::-webkit-scrollbar { display: none; }
.comp-nav a {
  flex-shrink: 0;
  padding: 14px var(--space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lead);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.comp-nav a:hover { color: var(--obsidian); }
.comp-nav a.is-active { color: var(--grape); border-bottom-color: var(--grape); }

/* ── Section layout ──────────────────────────────────────── */
.comp-section { padding: var(--space-3xl) 0; border-top: 1px solid var(--sand); }
.comp-section--bone { background: var(--bone); }
.comp-section--dark { background: var(--deep-royal); }
.comp-section__header { margin-bottom: var(--space-2xl); max-width: 760px; }
.comp-section__header .overline { margin-bottom: var(--space-sm); }
.comp-section__header h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: var(--space-md); }
.comp-section__header p { font-size: 1rem; }

/* ── Component grid ──────────────────────────────────────── */
.comp-row { display: grid; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.comp-row:last-child { margin-bottom: 0; }
.comp-row--1 { grid-template-columns: 1fr; }
.comp-row--2 { grid-template-columns: 1fr 1fr; }
.comp-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.comp-row--3-1 { grid-template-columns: 3fr 1fr; }
@media (max-width: 1024px) { .comp-row--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .comp-row--2, .comp-row--3, .comp-row--3-1 { grid-template-columns: 1fr; } }

/* ── Component card (wrapper) ────────────────────────────── */
.comp-card {
  border: 1px solid var(--sand);
  border-radius: 12px;
  overflow: hidden;
  background: var(--air);
  display: flex;
  flex-direction: column;
}
.comp-card__label {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--sand);
  background: var(--air);
}
.comp-card__tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 3px;
}
.comp-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--obsidian);
  letter-spacing: -0.01em;
}
.comp-card__desc {
  font-size: 0.8125rem;
  color: var(--steel);
  margin-top: 4px;
  line-height: 1.45;
  max-width: none;
}

/* ── Demo area ───────────────────────────────────────────── */
.comp-demo {
  padding: var(--space-2xl);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--parchment);
}
.comp-demo--bone   { background: var(--bone); }
.comp-demo--dark   { background: var(--deep-royal); }
.comp-demo--grape  { background: var(--grape); }
.comp-demo--tall   { min-height: 340px; }
.comp-demo--xtall  { min-height: 460px; }
.comp-demo--flush  { padding: 0; min-height: 0; }
.comp-demo--start  { align-items: flex-start; justify-content: flex-start; }

/* ── Code toggle ─────────────────────────────────────────── */
.comp-toggle {
  border-top: 1px solid var(--sand);
}
.comp-toggle summary {
  padding: 10px var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.comp-toggle summary::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--dur-fast);
}
details[open] .comp-toggle summary::before { transform: rotate(90deg); }
.comp-toggle summary:hover { color: var(--grape); background: var(--bone); }
.comp-toggle summary::-webkit-details-marker { display: none; }
.comp-toggle .code-block { border-radius: 0; border: none; border-top: 1px solid var(--sand); margin: 0; }
.comp-toggle pre { margin: 0; padding: var(--space-lg); font-size: 0.8125rem; line-height: 1.6; overflow-x: auto; background: var(--midnight); color: var(--lavender); }

/* ============================================================
   TEXT EFFECT COMPONENTS
   ============================================================ */

/* Number Ticker */
.stat-ticker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.stat-ticker__overline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}
.stat-ticker__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--obsidian);
}
.stat-ticker__num.dark { color: var(--air); }
.stat-ticker__desc {
  font-size: 0.8125rem;
  color: var(--steel);
  line-height: 1.4;
  max-width: 14ch;
}
.ticker-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--grape);
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

/* Word Rotate */
.word-rotate-wrap {
  display: inline-block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
}
.word-rotate-word {
  display: block;
  position: absolute;
  left: 0;
  transform: translateY(110%);
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
}
.word-rotate-word.is-current {
  transform: translateY(0);
}
.word-rotate-word.is-exiting {
  transform: translateY(-110%);
}

/* Hyper Text (scramble) */
.hyper-text {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--air);
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.hyper-text::after {
  content: 'hover to decode';
  position: absolute;
  bottom: -1.8em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

/* Gradient Text */
.gradient-text-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--grape) 0%, var(--amethyst) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

/* Shiny Text */
.shiny-badge {
  --shiny-width: 60px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--sand);
  background: linear-gradient(
    110deg,
    var(--bone) 0%,
    var(--bone) calc(50% - var(--shiny-width)/2),
    rgba(255,255,255,0.9) 50%,
    var(--bone) calc(50% + var(--shiny-width)/2),
    var(--bone) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  color: var(--lead);
  animation: shiny-pass 3.5s ease-in-out infinite;
}
.shiny-badge--dark {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.05) calc(50% - var(--shiny-width)/2),
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.05) calc(50% + var(--shiny-width)/2),
    rgba(255,255,255,0.05) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  animation: shiny-pass 3.5s ease-in-out infinite;
}
.shiny-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grape);
  flex-shrink: 0;
}
.shiny-badge--dark .dot { background: var(--amethyst); }
@keyframes shiny-pass {
  0%, 70%, 100% { background-position: 100% 0; }
  35% { background-position: -100% 0; }
}

/* ============================================================
   BACKGROUND COMPONENTS
   ============================================================ */

/* Dot Pattern */
.dot-pattern {
  background-image: radial-gradient(circle, var(--steel) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--parchment);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0.35;
}
.dot-pattern--dark {
  background-image: radial-gradient(circle, rgba(130,77,255,0.5) 1px, transparent 1px);
  opacity: 0.3;
  background-color: transparent;
}

/* Signal Grid */
.signal-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--lead) 1px, transparent 1px),
    linear-gradient(90deg, var(--lead) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.06;
}
.signal-grid--dark {
  background-image:
    linear-gradient(rgba(130,77,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,77,255,0.6) 1px, transparent 1px);
  opacity: 0.08;
}

/* Ripple */
.ripple-demo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ripple-center {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grape);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--air);
  font-style: italic;
}
.ripple-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--grape);
  animation: ripple-out 2.5s ease-out infinite;
}
.ripple-ring--1 { width: 56px; height: 56px; animation-delay: 0s; }
.ripple-ring--2 { width: 56px; height: 56px; animation-delay: 0.8s; }
.ripple-ring--3 { width: 56px; height: 56px; animation-delay: 1.6s; }
@keyframes ripple-out {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(5); opacity: 0; }
}

/* Animated Gradient Mesh */
.gradient-mesh {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--parchment), var(--bone), var(--flax), var(--bone), var(--parchment));
  background-size: 400% 400%;
  animation: mesh-shift 8s ease infinite;
}
@keyframes mesh-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ============================================================
   CARD COMPONENTS
   ============================================================ */

/* Spotlight Card */
.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  background: var(--air);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-mid), box-shadow var(--dur-mid);
  max-width: 420px;
  cursor: default;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--mouse-x) var(--mouse-y),
    rgba(78,0,235,0.08) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
  border-radius: inherit;
}
.spotlight-card:hover { border-color: rgba(78,0,235,0.25); box-shadow: 0 8px 32px rgba(78,0,235,0.08); }
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card > * { position: relative; z-index: 1; }
.spotlight-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--obsidian);
  margin: var(--space-sm) 0 var(--space-md);
  letter-spacing: -0.01em;
}
.spotlight-card p { font-size: 0.9375rem; color: var(--lead); max-width: none; }
.spotlight-card .card-tag {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--copper);
}
.spotlight-card .card-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--grape);
  margin-top: var(--space-lg);
  transition: gap var(--dur-fast);
}
.spotlight-card:hover .card-arrow { gap: 10px; }

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
  max-width: 620px;
}
.bento-cell {
  border-radius: 10px;
  padding: var(--space-xl);
  border: 1px solid var(--sand);
  background: var(--air);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}
.bento-bg {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.bento-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}
.bento-fade {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  transition:
    opacity  0.75s cubic-bezier(0.16,1,0.3,1),
    filter   0.75s cubic-bezier(0.16,1,0.3,1),
    transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.bento-fade.in-view { opacity: 1; filter: blur(0); transform: none; }
@property --bento-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.bento-cell--beam::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--bento-beam-angle) at 50% 50%,
    transparent 0deg,
    rgba(78,0,235,0.9) 35deg,
    rgba(130,77,255,1) 55deg,
    transparent 90deg
  );
  -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;
  animation: bento-beam-spin 4s linear infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes bento-beam-spin { to { --bento-beam-angle: 360deg; } }
.bento-cell--dark {
  background: var(--deep-royal);
  border-color: transparent;
  grid-column: 1;
  grid-row: 1 / span 2;
}
.bento-cell--grape {
  background: var(--grape);
  border-color: transparent;
}
.bento-cell--bone { background: var(--bone); }
.bento-stat {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--air);
  margin: var(--space-sm) 0;
}
.bento-stat span { font-size: inherit; }
.bento-stat--sm {
  font-size: 2.5rem;
  color: var(--obsidian);
}
.bento-cell .overline { color: var(--amber); }
.bento-cell--dark p { color: rgba(255,255,255,0.65); font-size: 0.875rem; max-width: none; }
.bento-cell p { font-size: 0.875rem; max-width: none; }
.bento-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--flax);
  line-height: 1.3;
}

/* Border Beam Card */
.beam-wrap {
  position: relative;
  border-radius: 14px;
  padding: 1.5px;
  overflow: hidden;
  max-width: 420px;
  background: transparent;
}
.beam-wrap::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 240deg,
    var(--grape) 270deg,
    var(--amethyst) 290deg,
    var(--violet) 300deg,
    transparent 330deg
  );
  animation: beam-spin 3s linear infinite;
}
.beam-inner {
  position: relative;
  background: var(--air);
  border-radius: 12px;
  z-index: 1;
}
@keyframes beam-spin { to { transform: rotate(360deg); } }
.beam-inner h4 {
  font-size: 1.25rem; font-weight: 600; color: var(--obsidian);
  margin: var(--space-sm) 0 var(--space-md); letter-spacing: -0.01em;
}
.beam-inner p { font-size: 0.9375rem; color: var(--lead); max-width: none; }

/* Metric / Data Card */
.metric-card {
  background: var(--air);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: var(--space-xl);
  max-width: 320px;
  width: 100%;
}
.metric-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.metric-card__header span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.04em;
}
.trend-up {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--basil);
  background: var(--daiquiri);
  padding: 3px 8px;
  border-radius: 100px;
}
.trend-down {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--candy);
  background: var(--ballet);
  padding: 3px 8px;
  border-radius: 100px;
}
.metric-card__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-sm);
}
.metric-card__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--obsidian);
}
.metric-card__unit {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--steel);
  letter-spacing: -0.02em;
}
.metric-card__label {
  font-size: 0.8125rem;
  color: var(--steel);
  margin-bottom: var(--space-lg);
}
.metric-card__bar {
  height: 4px;
  background: var(--sand);
  border-radius: 2px;
  overflow: hidden;
}
.metric-card__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--grape), var(--amethyst));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.metric-card__fill.animated { width: var(--fill); }

/* Testimonial Card */
.testimonial-card {
  background: var(--bone);
  border-radius: 12px;
  padding: var(--space-xl);
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--sand);
}
.testimonial-card__quote {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--grape);
}
.testimonial-card__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--obsidian);
  line-height: 1.5;
  max-width: none;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grape);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--air);
  flex-shrink: 0;
  font-family: var(--font-body);
}
.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--obsidian);
  max-width: none;
  margin: 0;
  line-height: 1.3;
}
.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--steel);
  max-width: none;
  margin: 2px 0 0;
  line-height: 1.3;
  font-family: var(--font-mono);
}

/* ============================================================
   BUTTON COMPONENTS
   ============================================================ */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* Shimmer Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--grape);
  color: var(--air);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--indigo);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(78,0,235,0.30);
}
.btn-primary:active { transform: none; }
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmer-sweep 2.8s ease-in-out infinite;
}
@keyframes shimmer-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--grape);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1.5px solid var(--grape);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
  letter-spacing: -0.01em;
}
.btn-ghost:hover {
  background: rgba(78,0,235,0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(78,0,235,0.12);
}
.btn-ghost--dark {
  color: var(--flax);
  border-color: rgba(232,217,181,0.4);
}
.btn-ghost--dark:hover {
  background: rgba(232,217,181,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Arrow Link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--grape);
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.arrow-link:hover { gap: 10px; color: var(--indigo); }
.arrow-link--sm {
  font-size: 0.875rem;
  font-weight: 500;
}
.arrow-link--dark { color: var(--flax); }
.arrow-link--dark:hover { color: var(--air); }
.arrow-link__arrow { transition: transform var(--dur-fast); }
.arrow-link:hover .arrow-link__arrow { transform: translateX(3px); }

/* Pulsating Button */
.btn-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--grape);
  color: var(--air);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78,0,235,0.45); }
  50%       { box-shadow: 0 0 0 14px rgba(78,0,235,0); }
}
.btn-pulse:hover { background: var(--indigo); }

/* Icon Button */
.btn-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--sand);
  background: var(--air);
  color: var(--lead);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  position: relative;
}
.btn-icon:hover { border-color: var(--grape); color: var(--grape); background: rgba(78,0,235,0.04); }

/* Pill / Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--sand);
  background: var(--air);
  color: var(--lead);
  cursor: default;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.chip:hover { border-color: var(--silver); background: var(--bone); }
.chip .chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip--grape { border-color: rgba(78,0,235,0.2); background: var(--mauve); color: var(--grape); }
.chip--grape .chip-dot { background: var(--grape); }
.chip--violet { border-color: rgba(150,97,255,0.2); background: #f0ebff; color: var(--violet); }
.chip--violet .chip-dot { background: var(--violet); }
.chip--green { border-color: rgba(22,202,127,0.2); background: var(--daiquiri); color: var(--basil); }
.chip--green .chip-dot { background: var(--basil); }
.chip--amber { border-color: rgba(200,138,62,0.2); background: #fdf4e7; color: var(--copper); }
.chip--amber .chip-dot { background: var(--amber); }

/* ============================================================
   SPECIAL EFFECT COMPONENTS
   ============================================================ */

/* Marquee */
.marquee-outer {
  width: 100%;
  overflow: hidden;
  padding: var(--space-md) 0;
  position: relative;
}
.marquee-outer::before,
.marquee-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-outer::before { left: 0; background: linear-gradient(to right, var(--fade-bg, var(--deep-royal)), transparent); }
.marquee-outer::after  { right: 0; background: linear-gradient(to left,  var(--fade-bg, var(--deep-royal)), transparent); }
.marquee-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: marquee-run 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.marquee-item:hover { border-color: rgba(130,77,255,0.4); color: rgba(255,255,255,0.9); }
.marquee-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amethyst);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Animated Beam (SVG data flow) */
.beam-svg { width: 100%; max-width: 640px; }
.beam-node {
  filter: drop-shadow(0 4px 12px rgba(78,0,235,0.25));
}
.beam-path {
  stroke-dasharray: 6 4;
  stroke-dashoffset: 0;
  animation: path-dash 1s linear infinite;
}
@keyframes path-dash { to { stroke-dashoffset: -10; } }
.beam-dot {
  r: 5;
  fill: var(--grape);
  filter: drop-shadow(0 0 6px rgba(78,0,235,0.8));
}

/* Orbit */
.orbit-demo {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-center {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grape);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--air);
  z-index: 2;
  position: relative;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(130,77,255,0.25);
}
.orbit-ring--1 { width: 120px; height: 120px; }
.orbit-ring--2 { width: 180px; height: 180px; border-style: dashed; }
.orbit-ring--3 { width: 220px; height: 220px; }
.orbit-body {
  position: absolute;
  width: 100%; height: 100%;
  animation: orbit-spin var(--orbit-dur, 8s) linear infinite;
}
.orbit-body--rev { animation-direction: reverse; }
.orbit-sat {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--deep-royal);
  border: 1.5px solid rgba(130,77,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.05em;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* ============================================================
   DATA & CONTENT COMPONENTS
   ============================================================ */

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
}
.stat-grid--wide {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}
.stat-grid-cell {
  background: var(--air);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-grid-cell__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.stat-grid-cell__val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--obsidian);
}
.stat-grid-cell__desc {
  font-size: 0.8125rem;
  color: var(--lead);
  line-height: 1.4;
  max-width: none;
  margin-top: 4px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  width: 100%;
  max-width: 560px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--grape), rgba(78,0,235,0.15));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grape);
  border: 2px solid var(--parchment);
  box-shadow: 0 0 0 2px var(--grape);
  z-index: 1;
}
.timeline-item--future::before {
  background: var(--parchment);
  border-color: var(--grape);
  box-shadow: 0 0 0 2px rgba(78,0,235,0.3);
}
.timeline-item__date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--copper);
  text-transform: uppercase;
}
.timeline-item__event {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--obsidian);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.timeline-item__desc {
  font-size: 0.875rem;
  color: var(--lead);
  line-height: 1.5;
  max-width: 44ch;
  max-width: none;
}
.timeline-item--future .timeline-item__event { color: var(--steel); }

/* Accordion */
.accordion { width: 100%; max-width: 600px; }
.accordion-item {
  border-bottom: 1px solid var(--sand);
}
.accordion-item:first-child { border-top: 1px solid var(--sand); }
.accordion-item summary {
  padding: var(--space-lg) 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--obsidian);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast);
}
.accordion-item summary:hover { color: var(--grape); }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--steel);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--dur-mid) var(--ease), color var(--dur-fast);
}
.accordion-item[open] summary::after { transform: rotate(45deg); color: var(--grape); }
.accordion-body {
  padding: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--lead);
  line-height: 1.65;
  animation: accordion-reveal 250ms var(--ease);
}
@keyframes accordion-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Coverage Chips group */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Copy button ─────────────────────────────────────────── */
.comp-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  background: transparent;
  border: 1px solid var(--sand);
  border-radius: 5px;
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
  z-index: 2;
}
.comp-copy-btn:hover {
  color: var(--grape);
  border-color: var(--grape);
  background: rgba(78,0,235,0.04);
}
.comp-copy-btn--copied,
.comp-copy-btn.copied {
  color: #2a7a3b;
  border-color: #2a7a3b;
}
.comp-card__label { position: relative; }

/* ── Marquee logo strip ──────────────────────────────────── */
.marquee-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--space-md);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lead);
  white-space: nowrap;
}
.marquee-logo-init {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

/* ── Animated Beam full-width ────────────────────────────── */
.beam-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ── Typing Animation ─────────────────────────────────────── */
.typing-text {
  color: inherit;
  border-right: 2px solid var(--amber);
  white-space: nowrap;
  display: inline-block;
  min-width: 1ch;
}
.typing-text.typing-pause {
  animation: typing-cursor-blink 0.6s step-end infinite;
}
.typing-text--mono {
  font-family: var(--font-mono);
  font-size: inherit;
}
@keyframes typing-cursor-blink {
  0%, 100% { border-color: var(--amber); }
  50%       { border-color: transparent; }
}

/* ── Scan Marker (.text-mark) ────────────────────────────── */
/* Nested-span approach: __bg slides in via scaleX, __txt stays above */
.text-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.text-mark__bg {
  position: absolute;
  inset: -2px -3px;
  border-radius: 3px;
  background: rgba(78, 0, 235, 0.18);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.text-mark--amber .text-mark__bg {
  background: rgba(200, 138, 62, 0.32);
}
.text-mark.is-highlighted .text-mark__bg {
  transform: scaleX(1);
}
.text-mark__txt {
  position: relative;
  z-index: 1;
}

/* ── Aurora Text ──────────────────────────────────────────── */
.aurora-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--grape)  0%,
    #824DFF       28%,
    var(--violet) 45%,
    #E8D9B5       55%,
    var(--violet) 72%,
    var(--grape)  100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: aurora-shift 6s ease-in-out infinite;
  display: block;
}
@keyframes aurora-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Testimonial Marquee ──────────────────────────────────── */
.test-marquee-wrap {
  display: flex;
  gap: 16px;
  overflow: hidden;
  height: 480px;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.test-marquee-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.test-marquee-col--down      { animation: test-scroll-down 24s linear infinite; }
.test-marquee-col--up        { animation: test-scroll-up   22s linear infinite; }
.test-marquee-col--down-slow { animation: test-scroll-down 30s linear infinite; }
.test-marquee-col:hover { animation-play-state: paused; }
@keyframes test-scroll-down {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes test-scroll-up {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
.test-quote-card {
  background: var(--bone);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-shrink: 0;
}
.test-quote-card__stars {
  color: var(--amber);
  font-size: 0.6875rem;
  letter-spacing: 2px;
}
.test-quote-card__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--obsidian);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}
.test-quote-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.test-quote-card__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.test-quote-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--obsidian);
  margin: 0;
  line-height: 1.3;
  max-width: none;
}
.test-quote-card__role {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--steel);
  margin: 1px 0 0;
  line-height: 1.3;
  max-width: none;
}

/* ── Hero Video ───────────────────────────────────────────── */
.hero-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--deep-royal);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 60%, rgba(130,77,255,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 30%, rgba(78,0,235,0.12) 0%, transparent 70%);
  z-index: 0;
}
.hero-video-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
}
.hero-video-scan {
  position: absolute;
  top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(130,77,255,0.5), transparent);
  animation: hero-scan 5s linear infinite;
  z-index: 1;
}
@keyframes hero-scan {
  0%   { left: -2px; }
  100% { left: calc(100% + 2px); }
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(37,0,102,0.88) 0%,
    rgba(37,0,102,0.5)  50%,
    rgba(17,19,24,0.15) 100%
  );
  z-index: 1;
}
.hero-video-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 600px;
}
.hero-video-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-md);
}
.hero-video-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--flax);
  margin-bottom: var(--space-lg);
}
.hero-video-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 420px;
}
.hero-video-note {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-lg);
  z-index: 2;
}
/* Hero Video play button */
.hero-video-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur-fast);
}
.hero-video-play-btn:hover { color: var(--flax); }
.hero-video-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.hero-video-play-btn:hover .hero-video-play-icon {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.65);
}

/* ── Dot grid (MagicUI-style individual dots) ─────────────── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 22px 22px;
}
