/* ==========================================================================
   Warspect AI (hey.warspect.com) — Main Stylesheet
   Inspired by warspect.com & client.warspect.com
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-ground);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--brand-600);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-ground);
}

::-webkit-scrollbar-thumb {
  background: #3b1318;
  border-radius: 999px;
  border: 2px solid var(--bg-ground);
}

::-webkit-scrollbar-thumb:hover {
  background: #6c1821;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* Accessibility */
.skipLink {
  position: fixed;
  left: -9999px;
  top: 14px;
  z-index: 300;
  background: var(--brand-600);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skipLink:focus {
  left: 16px;
}

/* Scroll Progress Bar */
.scrollProgressBar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 85;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-700) 0%, var(--brand-500) 58%, var(--cyan-400) 100%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
  pointer-events: none;
  will-change: transform;
}

/* Layout Utilities */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.accentText {
  color: var(--brand-500);
}

.accentGradient {
  background: linear-gradient(115deg, #f87171 0%, #ef4444 45%, #dc2626 78%, #fca5a5 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(220, 38, 38, 0.34));
  animation: gradientFlow 7s ease-in-out infinite;
}

@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.section {
  position: relative;
  padding: clamp(64px, 7.5vw, 100px) 0;
}

.sectionAlt {
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.8) 0%, rgba(16, 19, 26, 0.96) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sectionHead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px 36px;
  align-items: end;
  margin-bottom: clamp(30px, 3.8vw, 44px);
}

.sectionHead h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
  font-weight: 700;
}

.sectionHead p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  justify-self: end;
  max-width: 470px;
}

/* ==========================================================================
   Reusable UI Primitives
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow i {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-400));
  border-radius: 2px;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.badgeBrand {
  border-color: rgba(239, 68, 68, 0.44);
  background: rgba(220, 38, 38, 0.16);
  color: #fca5a5;
}

.badgeGreen {
  border-color: rgba(16, 185, 129, 0.42);
  background: var(--emerald-soft);
  color: #6ee7b7;
}

.badgeCyan {
  border-color: rgba(103, 195, 214, 0.42);
  background: var(--cyan-soft);
  color: #9be0ee;
}

.statusDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  flex-shrink: 0;
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.iconSvg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--t-fast) var(--ease-out),
    background var(--t-fast) ease,
    border-color var(--t-fast) ease,
    box-shadow var(--t-base) ease;
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btnSm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btnLg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 14px;
  border-radius: 14px;
}

.btnFull {
  width: 100%;
}

.btnPrimary {
  background: var(--brand-600);
  border-color: rgba(252, 165, 165, 0.28);
  color: #fff;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.btnPrimary:hover {
  background: var(--brand-500);
  border-color: rgba(254, 202, 202, 0.45);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.44);
  transform: translateY(-2px);
}

.btnGhost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-default);
  box-shadow: var(--rim-top);
}

.btnGhost:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1.5px);
}

.btnCta {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Surface Card */
.surfaceCard {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--rim-top), var(--shadow-sm);
  transition:
    border-color var(--t-base) ease,
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) ease;
}

.surfaceCard:hover {
  border-color: var(--border-default);
}

/* Chips */
.chipGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chipItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 10, 14, 0.72);
  color: var(--text-secondary);
}

.chipItem.featured {
  border-color: rgba(239, 68, 68, 0.48);
  background: rgba(220, 38, 38, 0.14);
  color: #fff;
}

/* Command Copy Widget */
.cmdField {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cmdLabel {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cmdBox {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmdCode {
  min-width: 0;
  flex: 1;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.48;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #e2e8f0;
  background: transparent;
  border: 0;
  padding: 0;
}

.copyBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, color var(--t-fast) ease;
}

.copyBtn:hover {
  border-color: var(--brand-500);
  background: rgba(220, 38, 38, 0.18);
  color: #fff;
}

.copyBtn.copied {
  border-color: var(--emerald-500);
  background: var(--emerald-soft);
  color: #6ee7b7;
}

/* ==========================================================================
   Unified Sticky Header
   ========================================================================== */

.siteHeader {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  background: rgba(14, 16, 21, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-base) ease, border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}

.siteHeader::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(239, 68, 68, 0.55) 50%, transparent 92%);
  opacity: 0.85;
  pointer-events: none;
}

.siteHeader.is-scrolled {
  background: rgba(14, 16, 21, 0.94);
  border-bottom-color: var(--border-default);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

.navWrap {
  width: var(--shell);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brandLogo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform var(--t-fast) ease, filter var(--t-fast) ease;
}

.brandLogo:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.35));
}

.brandLogo img {
  height: 36px;
  width: auto;
}

.navPill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--rim-top);
}

.navPill>a {
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast) ease, background var(--t-fast) ease, box-shadow var(--t-fast) ease;
  white-space: nowrap;
}

.navPill>a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.navPill>a.active {
  color: #fff;
  font-weight: 600;
  background: rgba(220, 38, 38, 0.18);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.42);
}

.mobileNavActions {
  display: none;
}

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

.versionPill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}

.versionPill:hover {
  border-color: var(--border-brand);
  color: #fff;
}

.langBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, color var(--t-fast) ease;
}

.langBtn:hover {
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.langBtn .langActive {
  color: #fff;
}

.langBtn .langSep {
  opacity: 0.4;
}

.menuButton {
  display: none;
}

/* ==========================================================================
   1. Hero Section (Fusion of warspect.com Character Stage + client.warspect.com)
   ========================================================================== */

.hero {
  position: relative;
  min-height: clamp(640px, 92dvh, 880px);
  padding: calc(var(--header-h) + 52px) 0 74px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.heroGrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 35%, transparent 100%);
}

.heroOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.heroOrbRed {
  width: 560px;
  height: 440px;
  top: 8%;
  right: 4%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.24), transparent 70%);
}

.heroOrbCyan {
  width: 420px;
  height: 360px;
  bottom: -6%;
  left: -4%;
  background: radial-gradient(circle, rgba(103, 195, 214, 0.14), transparent 70%);
}

.heroInner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 48px;
  align-items: center;
}

.heroTitle {
  margin-top: 20px;
  font-size: clamp(36px, 4.7vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.heroSub {
  margin-top: 20px;
  max-width: 590px;
  color: var(--text-secondary);
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  line-height: 1.68;
}

.heroSub strong {
  color: #fff;
  font-weight: 600;
}

.heroCta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.heroMetrics {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metricItem strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.metricItem span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Hero Character Stage (adapted from warspect.com) */
.heroVisual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.heroCharStage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(410px, 86vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  perspective: 900px;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.heroCharAura {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.34) 0%, rgba(103, 195, 214, 0.1) 50%, transparent 74%);
  filter: blur(26px);
  animation: heroCharAuraBreath 5.2s ease-in-out infinite;
  pointer-events: none;
}

.heroCharRing {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.heroCharRingOuter {
  inset: 8%;
  border: 1px dashed rgba(239, 68, 68, 0.32);
  animation: ringSpin 26s linear infinite;
}

.heroCharRingInner {
  inset: 17%;
  border: 1px solid rgba(103, 195, 214, 0.18);
  animation: ringReverse 20s linear infinite;
}

.heroCharEmbers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.heroCharEmber {
  position: absolute;
  opacity: 0;
  background: #ff6b6b;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.85);
  animation: emberRise 4.2s ease-out infinite;
}

.heroCharEmber.e1 {
  width: 4px;
  height: 4px;
  animation-duration: 4.1s;
  animation-delay: 0s;
  bottom: 20%;
  left: 22%;
}

.heroCharEmber.e2 {
  width: 6px;
  height: 6px;
  animation-duration: 3.6s;
  animation-delay: 0.9s;
  bottom: 34%;
  left: 78%;
}

.heroCharEmber.e3 {
  width: 4px;
  height: 4px;
  animation-duration: 4.6s;
  animation-delay: 1.7s;
  bottom: 18%;
  left: 68%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px 2px rgba(103, 195, 214, 0.85);
}

.heroCharEmber.e4 {
  width: 5px;
  height: 5px;
  animation-duration: 3.9s;
  animation-delay: 2.4s;
  bottom: 14%;
  left: 34%;
}

.heroCharEmber.e5 {
  width: 3.5px;
  height: 3.5px;
  animation-duration: 3.4s;
  animation-delay: 1.3s;
  bottom: 52%;
  left: 84%;
}

.heroCharEmber.e6 {
  width: 4px;
  height: 4px;
  animation-duration: 4.4s;
  animation-delay: 3.1s;
  bottom: 38%;
  left: 16%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px 2px rgba(103, 195, 214, 0.85);
}

.heroCharTilt {
  position: relative;
  z-index: 2;
  width: 84%;
  height: 84%;
  display: grid;
  place-items: center;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.28s var(--ease-out);
  will-change: transform;
}

.heroCharStage:hover .heroCharTilt {
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1.04);
}

.heroCharFloat {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  animation: heroCharFloat 6.2s ease-in-out infinite;
  will-change: transform;
}

.heroCharStage.isPulsing .heroCharFloat {
  animation: heroCharSurge 0.65s var(--ease-out);
}

.heroCharImg {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 26px rgba(220, 38, 38, 0.36));
  transition: filter 0.35s ease;
}

.heroCharStage:hover .heroCharImg {
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 38px rgba(239, 68, 68, 0.56));
}

.heroCharShadow {
  position: absolute;
  bottom: 9%;
  width: 48%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(rgba(220, 38, 38, 0.36), rgba(0, 0, 0, 0.6) 58%, transparent 78%);
  filter: blur(8px);
  animation: shadowPulse 6.2s ease-in-out infinite;
  pointer-events: none;
}

.voiceToastPreview {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(103, 195, 214, 0.38);
  background: rgba(14, 17, 25, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--rim-top), var(--shadow-md);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #f1f5f9;
  white-space: nowrap;
}

.voiceBars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.voiceBars i {
  display: block;
  width: 2.5px;
  height: 5px;
  border-radius: 2px;
  background: var(--cyan-400);
  animation: eqBar 1.1s ease-in-out infinite;
}

.voiceBars i:nth-child(2) {
  animation-delay: 0.15s;
  background: var(--brand-400);
}

.voiceBars i:nth-child(3) {
  animation-delay: 0.3s;
}

.voiceBars i:nth-child(4) {
  animation-delay: 0.45s;
  background: var(--brand-500);
}

@keyframes eqBar {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 14px;
  }
}

.spriteDirectionHint {
  margin-top: 8px;
}

.spriteToggleBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, background var(--t-fast) ease;
}

.spriteToggleBtn:hover {
  border-color: var(--border-brand);
  background: rgba(220, 38, 38, 0.12);
  color: #fff;
}

@keyframes heroCharFloat {

  0%,
  100% {
    transform: translateY(4px) rotate(-1.5deg);
  }

  32% {
    transform: translate(4px, -13px) rotate(1.4deg);
  }

  64% {
    transform: translate(-4px, -6px) rotate(-0.8deg);
  }
}

@keyframes heroCharSurge {
  0% {
    transform: translate(0, 0) scale(1) rotate(0);
  }

  30% {
    transform: translate(4px, -16px) scale(1.07) rotate(-4deg);
  }

  65% {
    transform: translate(-2px, -5px) scale(0.98) rotate(2deg);
  }

  100% {
    transform: translateY(4px) scale(1) rotate(-1.5deg);
  }
}

@keyframes heroCharAuraBreath {

  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

@keyframes shadowPulse {

  0%,
  100% {
    opacity: 0.85;
    transform: scaleX(1.04);
  }

  32% {
    opacity: 0.48;
    transform: scaleX(0.76);
  }
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ringReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.4);
  }

  20% {
    opacity: 0.9;
    transform: translate(-4px, -14px) scale(1);
  }

  65% {
    opacity: 0.5;
    transform: translate(6px, -60px) scale(0.7);
  }

  100% {
    opacity: 0;
    transform: translate(-3px, -100px) scale(0.2);
  }
}

/* ==========================================================================
   2. Features Grid
   ========================================================================== */

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

.featureCard {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featureCard:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.34);
  box-shadow: var(--rim-top), 0 18px 42px rgba(0, 0, 0, 0.45);
}

.featureIcon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.iconBrand {
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: var(--brand-400);
}

.iconCyan {
  background: var(--cyan-soft);
  border: 1px solid rgba(103, 195, 214, 0.34);
  color: var(--cyan-400);
}

.iconEmerald {
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: var(--emerald-400);
}

.featureCard h3 {
  font-size: 18px;
  line-height: 1.25;
}

.featureCard p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.62;
}

/* ==========================================================================
   3. Voice Commands Table
   ========================================================================== */

.commandsCard {
  overflow: hidden;
}

.commandsTableWrap {
  overflow-x: auto;
}

.commandsTable {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}

.commandsTable th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 22px;
  background: rgba(10, 12, 18, 0.55);
  border-bottom: 1px solid var(--border-subtle);
}

.commandsTable td {
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 14px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.commandsTable tbody tr:last-child td {
  border-bottom: 0;
}

.commandsTable tbody tr {
  transition: background var(--t-fast) ease;
}

.commandsTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.cmdActionCell {
  font-weight: 600;
  color: var(--text-primary);
}

.cmdOr {
  color: var(--text-dim);
  margin-inline: 3px;
}

/* ==========================================================================
   4. Downloads Section (faithful to client.warspect.com/descargar/)
   ========================================================================== */

.osBanner {
  margin-bottom: 24px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.osBannerStatus {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 300px;
}

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

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

.platformCard {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.platformCard.is-detected {
  border-color: rgba(239, 68, 68, 0.56);
  box-shadow:
    inset 0 2px 0 var(--brand-500),
    0 20px 54px rgba(0, 0, 0, 0.55),
    0 0 54px rgba(220, 38, 38, 0.12);
}

.platformHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.detectedPill {
  display: none;
}

.platformCard.is-detected .detectedPill {
  display: inline-flex;
}

.platformTitleRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.platformTitleRow h3 {
  font-size: 22px;
  line-height: 1.15;
}

.platformIconBox {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-inset);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.platformDesc {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.platformDesc strong {
  color: var(--text-primary);
}

.metaGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.metaCell {
  min-width: 0;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-inset);
}

.metaCell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.metaCell strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkBulletList {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
}

.checkBulletList li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
}

.checkIcon {
  color: var(--emerald-400);
  margin-top: 2px;
}

.platformCmdWrap {
  margin-top: 16px;
}

.platformFoot {
  display: grid;
  gap: 10px;
}

.smartScreenNote {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.smartScreenNote strong {
  color: #fff;
}

/* Linux Distro Dependencies Band */
.linuxSetupBand {
  margin-top: 22px;
  padding: 26px;
}

.distroHeaderRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.distroHeaderRow h3 {
  margin-top: 8px;
  font-size: 20px;
}

.segmentedTabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid var(--border-subtle);
}

.segmentedTab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast) ease, background var(--t-fast) ease, border-color var(--t-fast) ease;
}

.segmentedTab:hover {
  color: #fff;
}

.segmentedTab.active {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(220, 38, 38, 0.2);
  color: #fff;
}

.tabPanel[hidden] {
  display: none;
}

.releaseLinksBar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.releaseLinkGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.releaseLinkGroup a {
  color: var(--text-secondary);
  transition: color var(--t-fast) ease;
}

.releaseLinkGroup a:hover {
  color: var(--brand-400);
}

/* ==========================================================================
   5. Closing Banner
   ========================================================================== */

.closingSection {
  padding-top: 10px;
}

.closingBanner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(239, 68, 68, 0.36);
  background:
    radial-gradient(ellipse 65% 85% at 88% 18%, rgba(220, 38, 38, 0.22), transparent 62%),
    radial-gradient(ellipse 40% 70% at 10% 85%, rgba(103, 195, 214, 0.12), transparent 65%),
    linear-gradient(135deg, rgba(22, 26, 36, 0.96) 0%, rgba(12, 14, 20, 0.98) 100%);
  box-shadow: var(--rim-top), var(--shadow-md);
  padding: clamp(24px, 3.6vw, 40px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.closingCharacter img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(220, 38, 38, 0.34));
}

.closingCopy h2 {
  margin-top: 10px;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.12;
}

.closingCopy p {
  margin-top: 8px;
  color: var(--text-muted);
  max-width: 520px;
  font-size: 14.5px;
}

.closingActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Unified Footer
   ========================================================================== */

.siteFooter {
  position: relative;
  background: #090b0f;
  padding-top: 60px;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.siteFooter::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(239, 68, 68, 0.38) 50%, transparent 92%);
  pointer-events: none;
}

.footerMark {
  position: absolute;
  right: max(24px, 5vw);
  bottom: 42px;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.footerGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 44px;
}

.footerCol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.footerBrandDesc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 340px;
  margin-top: 6px;
}

.footerTitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footerLink {
  color: var(--text-secondary);
  font-size: 13.5px;
  transition: color var(--t-fast) ease, transform var(--t-fast) ease;
}

.footerLink:hover {
  color: #fff;
  transform: translateX(2px);
}

.footerBottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footerLegal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footerLegal a {
  transition: color var(--t-fast) ease;
}

.footerLegal a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Toast Notification & Scroll Reveal
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 260;
  max-width: min(360px, calc(100vw - 32px));
  background: rgba(18, 21, 30, 0.96);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.76s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .heroInner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .heroContent {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .heroCta {
    justify-content: center;
  }

  .heroMetrics {
    width: 100%;
    max-width: 620px;
  }

  .featuresGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .downloadGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .closingBanner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }

  .closingActions {
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .sectionHead {
    grid-template-columns: minmax(0, 1fr);
  }

  .sectionHead p {
    justify-self: start;
    max-width: 600px;
  }

  .footerGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .headerActions {
    display: none;
  }

  .menuButton {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    padding: 0 10px;
    cursor: pointer;
  }

  .menuButton span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform var(--t-base) var(--ease-out);
  }

  .menuButton[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menuButton[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .navPill {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--border-default);
    background: rgba(11, 13, 18, 0.97);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--container-pad) 20px;
    gap: 8px;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .navPill.open {
    display: flex;
  }

  .navPill>a {
    padding: 11px 14px;
    font-size: 15px;
  }

  .mobileNavActions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  .brandLogo img {
    height: 30px;
  }

  .heroMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featuresGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .metaGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .platformCard,
  .linuxSetupBand {
    padding: 20px;
  }

  .footerGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}