
.ratio {
  width: 100%;
}

.ratio > * {
  width: 100%;
  height: 100%;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-21x9 {
  aspect-ratio: 21 / 9;
}

.surface-shell {
  background: var(--surface-deep);
  color: var(--text-primary);
}

.panel {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-1);
  padding: var(--space-md);
}

.panel-soft {
  background: var(--surface-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-1);
  padding: var(--space-md);
}

.panel-xl {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.neon-outline,
.glass-card,
.card,
.btn-neon-primary,
.sample-cta,
.highlight-card,
.progress-bar-theme,
.hero-panel,
.bg-neon-gradient {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.neon-outline::before,
.glass-card::before,
.card::before,
.btn-neon-primary::before,
.sample-cta::before,
.highlight-card::before,
.progress-bar-theme::before,
.hero-panel::before,
.bg-neon-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: var(--neon-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
  pointer-events: none;
}

.border-neon,
.neon-border {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(7, 10, 20, 0.98));
  border: 1px solid transparent;
  background-clip: padding-box;
}

.border-neon::before,
.neon-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--neon-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.border-neon-soft {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 14, 28, 0.9);
}

.neon-glow {
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35),
    0 0 30px rgba(244, 114, 182, 0.25),
    0 0 40px rgba(163, 230, 53, 0.2);
}

.neon-glow-soft {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.neon-shadow-rainbow,
.glass-card,
.card,
.btn-neon-primary,
.sample-cta,
.highlight-card,
.hero-panel {
  box-shadow: 0 0 18px color-mix(in srgb, var(--neon-cyan) 45%, transparent),
    0 0 32px color-mix(in srgb, var(--neon-magenta) 35%, transparent),
    0 0 42px color-mix(in srgb, var(--neon-lime) 30%, transparent),
    0 0 52px color-mix(in srgb, var(--neon-blue) 36%, transparent);
}

.neon-ring {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.5),
    0 0 0 4px rgba(244, 114, 182, 0.35),
    0 0 0 6px rgba(163, 230, 53, 0.2);
}

.neon-ring-hover:hover {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45),
    0 0 0 4px rgba(244, 114, 182, 0.25),
    0 0 0 6px rgba(56, 189, 248, 0.2);
}

.bg-neon-gradient {
  background: linear-gradient(130deg, rgba(20, 26, 46, 0.9), rgba(12, 16, 32, 0.96));
}

.neon-border-soft {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 14, 28, 0.9);
}

.text-neon {
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(79, 125, 255, 0.45),
    0 0 32px rgba(255, 79, 216, 0.25);
}

.bg-neon {
  background: var(--neon-gradient);
  color: var(--text-on-accent);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--neon-cyan);
}

.h-title {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: var(--font-weight-bold);
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(79, 125, 255, 0.45),
    0 0 32px rgba(255, 79, 216, 0.25);
}

.muted,
.text-muted {
  color: var(--text-muted) !important;
}

.max-inline-size {
  max-inline-size: 44ch;
}

.mono-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(8, 11, 22, 0.85);
  font-family: var(--font-family-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stack-2xl {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.section-stack {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.space-y-2xl > * + * {
  margin-top: clamp(1rem, 2.5vw, 2.5rem);
}

.text-display {
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  font-family: var(--font-family-display);
}

.centered-shell {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 3vw, 2.5rem);
}

.full-bleed-grid {
  --full-bleed-max: 80rem;
  --full-bleed-gutter: var(--gutter, clamp(1.5rem, 4vw, 3rem));
  display: grid;
  grid-template-columns:
    minmax(var(--full-bleed-gutter), 1fr)
    minmax(0, min(100%, var(--full-bleed-max)))
    minmax(var(--full-bleed-gutter), 1fr);
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.full-bleed-grid > .full-bleed-content {
  grid-column: 2;
}

.full-bleed-grid > .full-bleed-span {
  grid-column: 1 / -1;
}

.balanced-grid {
  --bs-gutter-x: clamp(1rem, 2.5vw, 2rem);
  --bs-gutter-y: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}

.balanced-grid > [class*="col-"],
.balanced-grid > .col {
  display: flex;
}

.balanced-grid > [class*="col-"] > *,
.balanced-grid > .col > * {
  width: 100%;
}

.max-w-6xl {
  max-width: clamp(48rem, 85vw, 72rem);
}

.gap-2xl {
  gap: clamp(1.25rem, 2.75vw, 3rem);
}

.hero-scale {
  padding: clamp(1.5rem, 3.5vw, 3rem);
}

.theme-landing .hero-scale {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}


.brand-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--neon-blue) 32%, transparent));
}


.brand-logo--nav {
  width: clamp(168px, 20vw, 250px);
}

.brand-logo--header {
  width: clamp(184px, 23vw, 300px);
}

.brand-logo--footer {
  width: clamp(200px, 26vw, 340px);
}
