.page-speed main {
  padding-top: 0;
}

.speed-page {
  padding: 0 0 72px;
  overflow: hidden;
}

.speed-hero {
  position: relative;
  padding: 0 0 56px;
}

.speed-hero-top {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 12px;
}

.speed-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.speed-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

@keyframes speed-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -12px) scale(1.06); }
}

.speed-orb--violet {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(93, 95, 239, 0.45);
  animation: speed-orb-drift 14s ease-in-out infinite;
}

.speed-orb--cyan {
  width: 360px;
  height: 360px;
  top: 40px;
  right: -60px;
  background: rgba(34, 211, 238, 0.22);
  animation: speed-orb-drift 18s ease-in-out infinite reverse;
}

.speed-orb--green {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: 35%;
  background: rgba(74, 222, 128, 0.18);
}

.speed-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  padding-top: 4px;
}

.speed-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.speed-brand-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(93, 95, 239, 0.35),
    0 0 48px rgba(93, 95, 239, 0.2);
}

.speed-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
}

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

.speed-badge {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
}

.speed-badge--free {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.speed-badge--demo {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.speed-badge--windows {
  align-items: center;
  gap: 7px;
  background: rgba(0, 120, 212, 0.14);
  border-color: rgba(0, 164, 239, 0.45);
  color: #7dd3fc;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}

.speed-badge-win-icon {
  display: block;
  flex-shrink: 0;
}

.speed-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 55%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.speed-lead {
  margin: 0 0 20px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #94a3b8;
}

.speed-metrics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.speed-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.speed-pill--accent {
  border-color: rgba(93, 95, 239, 0.55);
  color: #e0e7ff;
  box-shadow: 0 0 20px rgba(93, 95, 239, 0.25);
}

.speed-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 55%, #5b5fef 100%);
  box-shadow:
    0 14px 36px rgba(93, 95, 239, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.speed-download-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(93, 95, 239, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.speed-download-btn-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
}

.speed-cta-note {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
}

.speed-hero-visual {
  position: relative;
}

.speed-visual-glow {
  position: absolute;
  inset: 12% 8% -8%;
  background: radial-gradient(ellipse at center, rgba(93, 95, 239, 0.35) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.speed-window-chrome {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0e14;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(93, 95, 239, 0.15);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.35s ease;
}

.speed-hero-visual:hover .speed-window-chrome {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.speed-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #161b28 0%, #10141f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.speed-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.speed-window-bar span:nth-child(1) { background: #ef4444; }
.speed-window-bar span:nth-child(2) { background: #f59e0b; }
.speed-window-bar span:nth-child(3) { background: #22c55e; }

.speed-window-bar p {
  margin: 0 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.speed-window-body img {
  display: block;
  width: 100%;
  height: auto;
}

.speed-features-wrap {
  max-width: 1180px;
  margin-top: 12px;
}

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

.speed-feature-card {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(22, 27, 40, 0.9) 0%, rgba(12, 16, 28, 0.85) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.speed-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.speed-feature-card--highlight {
  border-color: rgba(93, 95, 239, 0.4);
  background: linear-gradient(160deg, rgba(93, 95, 239, 0.14) 0%, rgba(12, 16, 28, 0.9) 100%);
}

.speed-feature-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.speed-feature-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.speed-feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
}

.speed-hotkeys {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.speed-hotkeys li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.speed-hotkeys kbd {
  min-width: 38px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e2e8f0;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.speed-showcase {
  margin-top: 48px;
  padding: 0 0 56px;
}

.speed-showcase-inner {
  max-width: 1180px;
}

.speed-showcase-copy {
  text-align: center;
  margin-bottom: 24px;
}

.speed-showcase-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.speed-showcase-sub {
  margin: 0 auto;
  max-width: 58ch;
  color: #94a3b8;
  line-height: 1.6;
}

.speed-showcase-frame {
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(22, 27, 40, 0.97) 0%, rgba(8, 11, 20, 0.99) 100%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(93, 95, 239, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.speed-showcase-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.speed-showcase-games-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center top;
  filter: blur(14px) saturate(1.15) brightness(0.55);
  transform: scale(1.05);
}

.speed-showcase-stage-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 20, 0.15) 0%, rgba(8, 11, 20, 0.45) 42%, rgba(8, 11, 20, 0.92) 100%),
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(93, 95, 239, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.speed-showcase-brand {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92%, 520px);
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(93, 95, 239, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
  text-align: left;
}

.speed-showcase-brand-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(93, 95, 239, 0.35);
}

.speed-showcase-motto {
  margin: 0 0 4px;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.speed-showcase-motto-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

.speed-showcase-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 100px 24px 150px;
  pointer-events: none;
}

/* Overlay real — réplica de overlay.py / widgets.py (panel_opacity 0.72) */
.speed-hud-panel {
  width: min(100%, 280px);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.speed-hud-body {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 27, 76, 0.35);
  border-left: 3px solid #ff1b4c;
  background: rgba(19, 19, 31, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.speed-hud-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff1b4c;
  margin-bottom: 4px;
}

.speed-hud-fps {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #ff4d6d;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.speed-hud-fps-ms {
  text-align: center;
  margin-bottom: 8px;
  font-size: 10px;
  color: #8b8fa3;
}

.speed-hud-gauges {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.speed-hud-arc-pct {
  fill: #ececec;
  font-size: 11px;
  font-weight: 700;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.speed-hud-arc-sub {
  fill: #8b8fa3;
  font-size: 9px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.speed-hud-arc-lbl {
  fill: #8b8fa3;
  font-size: 9px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.speed-hud-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.speed-hud-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.speed-hud-row-label {
  font-size: 11px;
  font-weight: 600;
  color: #8b8fa3;
}

.speed-hud-row-val {
  font-size: 11px;
  font-weight: 600;
  color: #ececec;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  text-align: right;
}

.speed-hud-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.098);
  overflow: hidden;
}

.speed-hud-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.speed-overlay-hint {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.speed-overlay-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.speed-overlay-keycap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
}

.speed-overlay-keycap kbd {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  color: #cbd5e1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.speed-showcase-hud {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}

.speed-ticker {
  padding: 10px 12px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 9, 18, 0.82);
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.speed-ticker-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.speed-ticker-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.speed-ticker-value {
  margin-left: auto;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f1f5f9;
}

.speed-ticker-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.speed-ticker-delta {
  font-size: 0.68rem;
  font-weight: 800;
}

.speed-ticker-delta--up {
  color: #4ade80;
}

.speed-ticker-delta--down {
  color: #f87171;
}

.speed-ticker-chart {
  display: block;
  width: 100%;
  height: 72px;
}

.speed-chart-line {
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.35));
}

.speed-ticker--temp .speed-ticker-value {
  color: #fdba74;
}

.speed-ticker--gpu .speed-ticker-value {
  color: #c7d2fe;
}

.speed-ticker--cpu .speed-ticker-value {
  color: #86efac;
}

@keyframes speed-chart-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.speed-chart-area,
.speed-chart-line {
  animation: speed-chart-pulse 4s ease-in-out infinite;
}

@media (max-width: 960px) {
  .speed-showcase-hud {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .speed-ticker-chart {
    height: 64px;
  }

  .speed-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .speed-hero-visual {
    order: -1;
  }

  .speed-window-chrome {
    transform: none;
  }

  .speed-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .speed-showcase {
    padding-bottom: 40px;
  }

  .speed-showcase-frame {
    padding: 8px;
    border-radius: 18px;
  }

  .speed-showcase-stage {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
  }

  .speed-showcase-games-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    filter: blur(8px) saturate(1.1) brightness(0.48);
  }

  .speed-showcase-stage-veil {
    position: absolute;
    inset: 0;
  }

  .speed-showcase-brand {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 3;
    flex-direction: row;
    text-align: left;
    align-items: center;
    width: calc(100% - 20px);
    max-width: none;
    margin: 10px auto 0;
    padding: 10px 12px;
    gap: 10px;
  }

  .speed-showcase-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .speed-showcase-motto {
    font-size: 0.82rem;
  }

  .speed-showcase-motto-sub {
    font-size: 0.72rem;
  }

  .speed-showcase-center {
    position: relative;
    inset: auto;
    z-index: 2;
    flex: 0 0 auto;
    padding: 12px 12px 8px;
    gap: 8px;
  }

  .speed-hud-panel {
    width: min(100%, 240px);
  }

  .speed-showcase-hud {
    position: relative;
    inset: auto;
    z-index: 2;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .speed-ticker-chart {
    height: 56px;
  }

  .speed-hud-gauges {
    gap: 4px;
  }

  .speed-hud-arc {
    width: 64px;
    height: 76px;
  }

  .speed-overlay-keys {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .speed-hero {
    padding-top: 28px;
  }

  .speed-hero-top {
    padding: 16px 16px 8px;
  }

  .speed-hero-grid {
    padding-left: 16px;
    padding-right: 16px;
    gap: 24px;
  }

  .speed-brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .speed-window-chrome {
    transform: none;
  }

  .speed-hero-visual:hover .speed-window-chrome {
    transform: none;
  }

  .speed-download-btn {
    width: 100%;
    justify-content: center;
  }

  .speed-features-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .speed-showcase-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
