/* ==========================================================================
   PulseFPS Official Website — Pulse UI Hybrid Glass System (v1.0.0)
   Porcelain Aluminum (Light Default) & Obsidian Void (Dark) + Electric Violet
   Strictly Inter-Only Typography (tabular-nums) | Zero Emojis | Explicit Transitions
   ========================================================================== */

:root,
[data-theme="light"] {
  --pulse-bg: #ececf1;
  --pulse-canvas: radial-gradient(ellipse at 50% -15%, #f8f9fa 0%, #e2e4ea 100%);
  --pulse-surface-base: #ffffff;
  --pulse-surface-glass: rgba(255, 255, 255, 0.58);
  --pulse-surface-glass-hover: rgba(255, 255, 255, 0.80);
  --pulse-surface-glass-active: rgba(255, 255, 255, 0.94);
  --pulse-surface-card: rgba(255, 255, 255, 0.68);
  --pulse-surface-inner: rgba(241, 243, 245, 0.88);
  --pulse-surface-opaque: #ffffff;
  --pulse-border-hairline: rgba(0, 0, 0, 0.09);
  --pulse-border-specular: rgba(255, 255, 255, 0.95);
  --pulse-border-hover: rgba(0, 0, 0, 0.22);
  --pulse-border-dashed: rgba(0, 0, 0, 0.22);
  --pulse-divider-glow: rgba(0, 0, 0, 0.25);
  --pulse-text-primary: #0a0a0a;
  --pulse-text-secondary: rgba(10, 10, 10, 0.68);
  --pulse-text-tertiary: rgba(10, 10, 10, 0.62);
  --pulse-shadow-card: 0 16px 45px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --pulse-shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1.0);
  --pulse-track: rgba(0, 0, 0, 0.06);

  /* Electric Violet & Telemetry Accents */
  --pulse-accent-primary: #7C3AED;
  --pulse-accent-hover: #6D28D9;
  --pulse-accent-light: #6D28D9;
  --pulse-accent-primary-text: #ffffff;
  --pulse-accent-tint: rgba(124, 58, 237, 0.10);
  --pulse-accent-border: rgba(124, 58, 237, 0.28);
  --pulse-accent-shadow: 0 6px 20px rgba(124, 58, 237, 0.28);
  --pulse-fps-lime: #15803D;
  --pulse-status-emerald: #065f46;
  --pulse-status-emerald-tint: rgba(5, 150, 105, 0.12);
  --pulse-status-amber: #d97706;
  --pulse-status-amber-tint: rgba(217, 119, 6, 0.12);
  --pulse-status-crimson: #dc2626;
  --pulse-status-crimson-tint: rgba(220, 38, 38, 0.10);
  --pulse-status-crimson-border: rgba(220, 38, 38, 0.25);
  --pulse-header-bg: rgba(240, 241, 245, 0.78);
  --pulse-hud-dark-bg: #10121A;
  --pulse-hud-lime: #80FF00;
}

[data-theme="dark"] {
  --pulse-bg: #080808;
  --pulse-canvas: radial-gradient(ellipse at 50% -10%, #1c1c1e 0%, #080808 75%);
  --pulse-surface-base: #111113;
  --pulse-surface-glass: rgba(255, 255, 255, 0.04);
  --pulse-surface-glass-hover: rgba(255, 255, 255, 0.08);
  --pulse-surface-glass-active: rgba(255, 255, 255, 0.12);
  --pulse-surface-card: rgba(18, 18, 20, 0.72);
  --pulse-surface-inner: rgba(13, 15, 23, 0.90);
  --pulse-surface-opaque: #18181b;
  --pulse-border-hairline: rgba(255, 255, 255, 0.08);
  --pulse-border-specular: rgba(255, 255, 255, 0.26);
  --pulse-border-hover: rgba(255, 255, 255, 0.28);
  --pulse-border-dashed: rgba(255, 255, 255, 0.28);
  --pulse-divider-glow: rgba(255, 255, 255, 0.30);
  --pulse-text-primary: #ffffff;
  --pulse-text-secondary: rgba(255, 255, 255, 0.68);
  --pulse-text-tertiary: rgba(255, 255, 255, 0.56);
  --pulse-shadow-card: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --pulse-shadow-modal: 0 32px 80px rgba(0, 0, 0, 0.90), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --pulse-track: rgba(255, 255, 255, 0.08);

  --pulse-accent-primary: #7C3AED;
  --pulse-accent-hover: #6D28D9;
  --pulse-accent-light: #A78BFA;
  --pulse-accent-primary-text: #ffffff;
  --pulse-accent-tint: rgba(139, 92, 246, 0.15);
  --pulse-accent-border: rgba(139, 92, 246, 0.36);
  --pulse-accent-shadow: 0 8px 26px rgba(139, 92, 246, 0.36);
  --pulse-fps-lime: #80FF00;
  --pulse-status-emerald: #10b981;
  --pulse-status-emerald-tint: rgba(16, 185, 129, 0.15);
  --pulse-status-amber: #f59e0b;
  --pulse-status-amber-tint: rgba(245, 158, 11, 0.15);
  --pulse-status-crimson: #ef4444;
  --pulse-status-crimson-tint: rgba(239, 68, 68, 0.12);
  --pulse-status-crimson-border: rgba(239, 68, 68, 0.28);
  --pulse-header-bg: rgba(14, 14, 18, 0.78);
  --pulse-hud-dark-bg: #10121A;
  --pulse-hud-lime: #80FF00;
}

/* ==========================================================================
   RESET & INTER-ONLY TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--pulse-bg);
  background-image: var(--pulse-canvas);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--pulse-text-primary);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.55;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.engine-card:focus-visible,
.hero-banner-frame:focus-visible,
.pulse-tab-btn:focus-visible,
.pulse-segment-btn:focus-visible,
.pulse-gallery-card-tile:focus-visible,
.pulse-chip:focus-visible,
.pulse-btn:focus-visible,
.pulse-header-theme-btn:focus-visible,
.pulse-header-menu-btn:focus-visible {
  outline: 2px solid var(--pulse-accent-primary);
  outline-offset: 2px;
}

input,
button,
select,
textarea,
code,
pre {
  font-family: inherit;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Synchronize theme switch without parent/child contrast lag */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition-duration: 0s !important;
}

/* ==========================================================================
   VECTOR ICONOGRAPHY
   ========================================================================== */
.pulse-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER & RESPONSIVE NAVIGATION (<=980px DRAWER COLLAPSE)
   ========================================================================== */
.pulse-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--pulse-header-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--pulse-border-hairline);
  box-shadow: inset 0 1px 0 var(--pulse-border-specular);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.pulse-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pulse-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pulse-text-primary);
  flex-shrink: 0;
}

.pulse-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pulse-logo-orb {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
  background: var(--pulse-surface-card);
  border: 1px solid var(--pulse-accent-border);
  box-shadow: inset 0 1px 0 var(--pulse-border-specular), 0 4px 12px rgba(124, 58, 237, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pulse-accent-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.pulse-logo-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pulse-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.pulse-pill {
  border-radius: 9999px;
}

.pulse-version-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  background: var(--pulse-surface-glass);
  border: 1px solid var(--pulse-border-hairline);
  color: var(--pulse-text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pulse-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pulse-nav-item {
  padding: 8px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--pulse-text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              color 0.18s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-nav-item:hover,
.pulse-nav-item.active {
  background: var(--pulse-track);
  color: var(--pulse-text-primary);
}

.pulse-nav-item.active {
  font-weight: 600;
  border-color: var(--pulse-border-hairline);
}

.pulse-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pulse-header-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--pulse-surface-glass);
  border: 1px solid var(--pulse-border-hairline);
  color: var(--pulse-text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-header-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 14px;
  background: var(--pulse-surface-glass);
  border: 1px solid var(--pulse-border-hairline);
  color: var(--pulse-text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-header-theme-btn:hover,
.pulse-header-menu-btn:hover {
  background: var(--pulse-track);
  border-color: var(--pulse-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pulse-header-theme-btn:active,
.pulse-header-menu-btn:active {
  transform: scale(0.96) !important;
}

@media (max-width: 980px) {
  .pulse-nav-links {
    display: none;
  }
  .pulse-header-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container,
  .pulse-header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pulse-header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }
  .pulse-header-cta-label {
    display: none;
  }
  .pulse-version-pill {
    display: none;
  }
}

/* ==========================================================================
   PULSE GLASS CARDS & CONTINUOUS PERIMETER + INSET SPECULAR BEVEL
   ========================================================================== */
.pulse-card {
  background: var(--pulse-surface-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--pulse-border-hairline);
  border-radius: 28px;
  box-shadow: var(--pulse-shadow-card);
  padding: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}

.pulse-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pulse-shadow-modal);
}

.pulse-card-inner {
  background: var(--pulse-surface-inner);
  border: 1px solid var(--pulse-border-hairline);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 0 var(--pulse-border-specular);
}

.pulse-card-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pulse-text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pulse-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pulse-text-primary);
  display: inline-flex;
  align-items: center;
}

.pulse-card-title-text {
  display: inline-block;
  line-height: 1.25;
}

/* ==========================================================================
   CANONICAL BUTTON SYSTEM (18px SQUIRCLE + THEME-SPLIT GLASS HOVER)
   ========================================================================== */
.pulse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 18px;
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              color 0.18s ease,
              box-shadow 0.18s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.18s ease;
}

.pulse-btn:active {
  transform: scale(0.97) !important;
}

.pulse-btn-sm {
  padding: 8px 14px;
  font-size: 0.80rem;
  border-radius: 14px;
}

.pulse-btn-primary {
  background: var(--pulse-accent-primary);
  color: var(--pulse-accent-primary-text);
  border: 1px solid transparent;
  box-shadow: var(--pulse-accent-shadow);
}

.pulse-btn-primary:hover {
  background: var(--pulse-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.42);
}

.pulse-btn-secondary {
  background: var(--pulse-surface-glass);
  color: var(--pulse-text-primary);
  border: 1px solid var(--pulse-border-hairline);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.pulse-btn-secondary:hover {
  background: var(--pulse-track);
  border-color: var(--pulse-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pulse-btn-ghost {
  background: transparent;
  color: var(--pulse-text-secondary);
  border: 1px dashed var(--pulse-border-dashed);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.pulse-btn-ghost:hover {
  background: var(--pulse-track);
  border-color: var(--pulse-border-hover);
  color: var(--pulse-text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dark Obsidian Option C Liquid Glass Polish */
[data-theme="dark"] .pulse-btn-secondary,
[data-theme="dark"] .pulse-header-menu-btn,
[data-theme="dark"] .pulse-header-theme-btn,
[data-theme="dark"] .pulse-chip:not(.pulse-chip-selected) {
  box-shadow: inset 0 1px 0 var(--pulse-border-specular), 0 0 0 rgba(0, 0, 0, 0);
}

[data-theme="dark"] .pulse-btn-secondary:hover,
[data-theme="dark"] .pulse-btn-ghost:hover,
[data-theme="dark"] .pulse-header-menu-btn:hover,
[data-theme="dark"] .pulse-header-theme-btn:hover,
[data-theme="dark"] .pulse-chip:not(.pulse-chip-selected):hover,
[data-theme="dark"] .pulse-accordion-summary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 5px 14px rgba(0, 0, 0, 0.45);
}

/* Universal Red Close Button */
.pulse-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pulse-text-tertiary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-close-btn:hover {
  background: var(--pulse-status-crimson-tint);
  color: var(--pulse-status-crimson);
}

.pulse-close-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   TOOLTIPS (OPTICAL CAP-HEIGHT ALIGNMENT + VIEWPORT CLAMPING)
   ========================================================================== */
.pulse-info-trigger {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 0 6px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  color: var(--pulse-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  vertical-align: middle;
  transform: translateY(-0.5px);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.pulse-info-trigger:hover,
.pulse-info-trigger:focus-visible,
.pulse-info-trigger[aria-expanded="true"] {
  color: var(--pulse-text-primary);
  background: var(--pulse-track);
  outline: none;
}

.pulse-info-trigger > svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pulse-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: calc(50% + var(--tt-shift, 0px));
  transform: translateX(-50%) translateY(4px);
  background: var(--pulse-surface-opaque);
  border: 1px solid var(--pulse-border-hairline);
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 0.76rem;
  font-weight: 450;
  color: var(--pulse-text-secondary);
  white-space: normal;
  width: 280px;
  max-width: min(280px, calc(100vw - 32px));
  text-align: left;
  line-height: 1.5;
  box-shadow: var(--pulse-shadow-modal);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  z-index: 90;
}

.pulse-info-trigger:hover .pulse-tooltip-bubble,
.pulse-info-trigger:focus-visible .pulse-tooltip-bubble,
.pulse-info-trigger[aria-expanded="true"] .pulse-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   PAGE SECTIONS & HERO LAYOUT
   ========================================================================== */
.section {
  padding: 56px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: var(--pulse-accent-tint);
  border: 1px solid var(--pulse-accent-border);
  color: var(--pulse-accent-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse-status-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-amber {
  background: var(--pulse-status-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55);
}

.status-dot-crimson {
  background: var(--pulse-status-crimson);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.55);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pulse-text-primary);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 1rem;
  color: var(--pulse-text-secondary);
  line-height: 1.6;
}

.hero-section {
  padding: 52px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-headline {
  font-size: clamp(2.15rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
  color: var(--pulse-text-primary);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #5B21B6 0%, #6D28D9 55%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #80FF00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--pulse-text-secondary);
  max-width: 580px;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--pulse-text-secondary);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual-card {
  padding: 20px;
  gap: 16px;
}

.hero-banner-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--pulse-border-hairline);
  background: #090A0F;
  cursor: pointer;
}

.hero-banner-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 820px) {
  .metrics-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.metric-stat-card {
  padding: 18px 20px;
  border-radius: 22px;
}

.metric-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--pulse-text-primary);
}

.metric-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pulse-text-tertiary);
  margin-top: 2px;
}

/* ==========================================================================
   PULSE UI SEGMENTED CONTROL, TAB BAR, SWITCHES & CHIPS
   ========================================================================== */
.pulse-segmented-control {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--pulse-surface-inner);
  border: 1px solid var(--pulse-border-hairline);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 var(--pulse-border-specular);
}

.pulse-segment-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 12px) / 2);
  height: calc(100% - 8px);
  border-radius: 14px;
  background: var(--pulse-accent-primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.32);
  transform: translateX(calc(var(--seg-idx, 0) * (100% + 4px)));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pulse-segment-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--pulse-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.pulse-segment-btn.active {
  color: #ffffff;
}

.pulse-tab-bar {
  position: relative;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--pulse-border-hairline);
  margin-bottom: 18px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.pulse-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--pulse-accent-primary);
  transform: translateX(0);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pulse-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--pulse-text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.pulse-tab-btn:hover {
  color: var(--pulse-text-primary);
}

.pulse-tab-btn.active {
  color: var(--pulse-accent-light);
}

/* Spring Switch */
.pulse-switch {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: var(--pulse-accent-primary);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background-color 0.24s ease, box-shadow 0.2s ease;
}

.pulse-switch[data-active="false"] {
  background: var(--pulse-track);
  box-shadow: inset 0 0 0 1px var(--pulse-border-hairline);
}

.pulse-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(20px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1);
  pointer-events: none;
}

.pulse-switch[data-active="false"] .pulse-switch-thumb {
  transform: translateX(0);
}

/* Interactive Stat Chips (24-Stat Dock) */
.pulse-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pulse-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--pulse-surface-glass);
  border: 1px solid var(--pulse-border-hairline);
  color: var(--pulse-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  font-variant-numeric: tabular-nums;
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              color 0.18s ease,
              box-shadow 0.18s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-chip:not(.pulse-chip-selected):hover {
  background: var(--pulse-track);
  border-color: var(--pulse-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pulse-chip.pulse-chip-selected {
  background: var(--pulse-accent-primary);
  border-color: var(--pulse-accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.pulse-chip-val {
  color: var(--pulse-fps-lime);
  font-weight: 700;
}

.pulse-chip.pulse-chip-selected .pulse-chip-val {
  color: #E9FF99;
}

/* ==========================================================================
   INTERACTIVE OVERLAY WORKBENCH & LIVE HUD STAGE
   ========================================================================== */
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .workbench-grid {
    grid-template-columns: 1fr;
  }
}

.hud-stage-box {
  background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.18) 0%, #090A0F 72%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 230px;
  position: relative;
  overflow: hidden;
}

.mini-pill-preview {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(16, 18, 26, 0.92);
  border: 2px solid rgba(139, 92, 246, 0.45);
  border-radius: 18px;
  color: #80FF00;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: border-radius 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.mini-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  white-space: nowrap;
}

.expanded-hud-preview {
  width: 100%;
  max-width: 390px;
  background: rgba(16, 18, 26, 0.94);
  border: 2px solid rgba(139, 92, 246, 0.45);
  border-radius: 20px;
  padding: 14px;
  color: #f8fafc;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-outline-stroke {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.hud-outline-shadow {
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95);
}

.hud-outline-glow {
  text-shadow: 0 0 8px rgba(128, 255, 0, 0.65);
}

.hud-canvas-wrap {
  width: 100%;
  background: #0B0D14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
}

.hud-canvas-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.70rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

#hud-frametime-canvas {
  width: 100%;
  height: 76px;
  display: block;
}

.hud-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hud-mini-action {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hud-mini-action.locked {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pulse-border-hairline);
}

.control-row:last-child {
  border-bottom: none;
}

.pulse-slider {
  width: 100%;
  accent-color: var(--pulse-accent-primary);
  cursor: pointer;
}

/* ==========================================================================
   BENTO GRIDS (ENGINES, SOC, SCREENSHOTS, PRICING, ACCORDIONS)
   ========================================================================== */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.pulse-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pulse-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

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

.engine-card {
  cursor: pointer;
  gap: 10px;
}

.engine-card.selected {
  border-color: var(--pulse-accent-primary);
  box-shadow: var(--pulse-shadow-card), 0 0 0 1px var(--pulse-accent-primary);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--pulse-track);
  color: var(--pulse-text-secondary);
  border: 1px solid var(--pulse-border-hairline);
}

.badge-tag.emerald {
  background: var(--pulse-status-emerald-tint);
  color: var(--pulse-status-emerald);
  border-color: rgba(16, 185, 129, 0.30);
}

.badge-tag.violet {
  background: var(--pulse-accent-tint);
  color: var(--pulse-accent-light);
  border-color: var(--pulse-accent-border);
}

.badge-tag.crimson {
  background: var(--pulse-status-crimson-tint);
  color: var(--pulse-status-crimson);
  border-color: var(--pulse-status-crimson-border);
}

/* Gallery Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.pulse-gallery-card-tile {
  padding: 14px;
  border-radius: 24px;
  background: var(--pulse-surface-card);
  border: 1px solid var(--pulse-border-hairline);
  box-shadow: var(--pulse-shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.pulse-gallery-card-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pulse-accent-border);
  box-shadow: var(--pulse-shadow-modal);
}

.gallery-thumb-box {
  width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pulse-surface-inner);
  border: 1px solid var(--pulse-border-hairline);
}

.gallery-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Pricing / VIP Cards */
.vip-card {
  text-align: center;
  gap: 10px;
  align-items: center;
}

.vip-card.popular {
  border-color: var(--pulse-accent-primary);
  box-shadow: var(--pulse-shadow-card), 0 0 0 1px var(--pulse-accent-primary);
}

.vip-price {
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--pulse-accent-primary);
}

/* Clean-Divider Accordion (D:/Pulse UI Design Spec #3) */
.pulse-accordion-list {
  display: flex;
  flex-direction: column;
}

.pulse-accordion-item {
  border-bottom: 1px solid var(--pulse-border-hairline);
  margin: 0 4px;
  padding: 4px 0;
}

.pulse-accordion-item:last-child {
  border-bottom: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.pulse-accordion-summary {
  padding: 13px 12px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--pulse-text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  user-select: none;
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-accordion-summary:hover {
  background: var(--pulse-track);
  border-color: var(--pulse-border-hover);
  transform: translateY(-1px);
}

.pulse-accordion-icon {
  color: var(--pulse-text-tertiary);
  font-size: 1.15rem;
  font-weight: 400;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse-accordion-icon::after {
  content: "+";
}

details[open] > summary .pulse-accordion-icon::after {
  content: "\2212";
}

.pulse-accordion-body {
  padding: 4px 12px 14px;
  font-size: 0.88rem;
  color: var(--pulse-text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   MODALS, DRAWER, LIGHTBOX & TOAST STACK (COMPOSITED LIFECYCLE)
   ========================================================================== */
.pulse-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s ease;
}

.pulse-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pulse-drawer-panel {
  width: 300px;
  max-width: 85vw;
  height: 100%;
  padding: 24px 18px;
  background: var(--pulse-surface-base);
  border-right: 1px solid var(--pulse-border-hairline);
  border-radius: 0 28px 28px 0;
  box-shadow: var(--pulse-shadow-modal);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.pulse-modal-backdrop.open .pulse-drawer-panel {
  transform: translateX(0);
}

.pulse-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--pulse-text-secondary);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.pulse-nav-link:hover,
.pulse-nav-link.active {
  background: var(--pulse-track);
  color: var(--pulse-text-primary);
  font-weight: 600;
}

/* Lightbox */
#pulse-lightbox-viewport {
  width: 100%;
  height: 66vh;
  min-height: 320px;
  max-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(10, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

#pulse-lightbox-active-visual {
  transition: transform 0.14s ease-out;
  transform-origin: center center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#pulse-lightbox-active-visual img {
  max-width: 100%;
  max-height: calc(100% - 48px);
  border-radius: 14px;
  object-fit: contain;
  pointer-events: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Toast Stack */
.pulse-toast-stack {
  position: fixed;
  top: 84px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.pulse-toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--pulse-surface-opaque);
  border: 1px solid var(--pulse-border-hairline);
  box-shadow: var(--pulse-shadow-modal);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: grab;
  touch-action: pan-y;
  animation: slideInToast 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInToast {
  from { transform: translateX(36px) scale(0.95); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .pulse-toast-stack {
    left: 16px;
    right: 16px;
    align-items: stretch;
  }
  .pulse-toast-item {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* ==========================================================================
   DOCS, TABLES & LEGAL PAGES (INTER TABULAR-NUMS ONLY)
   ========================================================================== */
.code-pill-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pulse-surface-inner);
  border: 1px solid var(--pulse-border-hairline);
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--pulse-text-primary);
  word-break: break-word;
}

.inline-code-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--pulse-track);
  border: 1px solid var(--pulse-border-hairline);
  font-size: 0.84em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--pulse-accent-light);
}

.pulse-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--pulse-border-hairline);
}

.pulse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pulse-table th,
.pulse-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--pulse-border-hairline);
  text-align: left;
  vertical-align: top;
}

.pulse-table th {
  background: var(--pulse-surface-inner);
  font-weight: 700;
  color: var(--pulse-text-primary);
}

.pulse-table tr:last-child td {
  border-bottom: none;
}

.pulse-table td {
  color: var(--pulse-text-secondary);
}

/* ==========================================================================
   FOOTER (4-COLUMN PULSEMIND STANDARD)
   ========================================================================== */
.pulse-footer {
  border-top: 1px solid var(--pulse-border-hairline);
  margin-top: 48px;
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pulse-text-tertiary);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--pulse-text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--pulse-accent-light);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--pulse-border-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.80rem;
  color: var(--pulse-text-tertiary);
}
