/**
 * HostStack futuristic dark theme (www.hoststack.in)
 * Activated via html (set in site.js).
 */
:root {
  --hs-bg-deep: #020913;
  --hs-bg-panel: rgba(6, 18, 38, 0.92);
  --hs-cyan: #38bdf8;
  --hs-cyan-dim: rgba(56, 189, 248, 0.12);
  --hs-text: #e8f4ff;
  --hs-muted: #8bacc8;
  --hs-font-sans: "Inter", system-ui, sans-serif;
  --hs-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Light marketing shells (store landings, support): body keeps Tailwind bg/text; skip cyber remap. */
html body:not([data-hs-store-landing]) {
  background-color: var(--hs-bg-deep) !important;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(99, 102, 241, 0.06), transparent 45%);
  color: var(--hs-text) !important;
  font-family: var(--hs-font-sans), "Space Grotesk", "DM Sans", system-ui, sans-serif;
}

html .hs-mono,
html code,
html .hs-gh-price-hint {
  font-family: var(--hs-font-mono), ui-monospace, monospace;
}

/* --- Sticky glass header --- */
html #hs-site-header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 9, 19, 0.96) !important;
  border-bottom: 1px solid var(--hs-cyan-dim);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html .site-header-accent {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent) !important;
  opacity: 0.9;
}

html .site-promo {
  background: linear-gradient(90deg, rgba(0, 40, 60, 0.95) 0%, rgba(6, 24, 48, 0.98) 50%, rgba(0, 30, 50, 0.95) 100%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--hs-text) !important;
}

html .hs-header-light .site-nav-link,
html .hs-header-light .site-dropdown-trigger {
  color: var(--hs-text) !important;
}

html .site-dropdown-panel {
  background: var(--hs-bg-panel) !important;
  border: 1px solid var(--hs-cyan-dim) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.06);
}

html .site-dropdown-link {
  color: var(--hs-text) !important;
}

html .site-dropdown-link:hover {
  background: rgba(56, 189, 248, 0.08) !important;
  color: var(--hs-cyan) !important;
}

/* --- Surfaces: common marketing neutrals → dark panels (cyber pages only) --- */
html body:not([data-hs-store-landing]) .bg-white {
  background-color: var(--hs-bg-panel) !important;
  border-color: rgba(56, 189, 248, 0.12) !important;
}

html body:not([data-hs-store-landing]) .bg-slate-50,
html body:not([data-hs-store-landing]) .bg-slate-50\/80,
html body:not([data-hs-store-landing]) .bg-slate-50\/90,
html body:not([data-hs-store-landing]) .bg-slate-50\/95 {
  background-color: rgba(4, 12, 28, 0.75) !important;
}

/* Heavier neutrals — used by blog CTAs (.hs-prefooter-cta), cards, hover states */
html body:not([data-hs-store-landing]) .bg-slate-100 {
  background-color: rgba(6, 18, 38, 0.72) !important;
}

html body:not([data-hs-store-landing]) .border-slate-200 {
  border-color: rgba(56, 189, 248, 0.12) !important;
}

html body:not([data-hs-store-landing]) .text-slate-900 {
  color: var(--hs-text) !important;
}

html body:not([data-hs-store-landing]) .text-slate-800 {
  color: #c8dff5 !important;
}

html body:not([data-hs-store-landing]) .text-slate-700,
html body:not([data-hs-store-landing]) .text-slate-600 {
  color: var(--hs-muted) !important;
}

html body:not([data-hs-store-landing]) .text-slate-500 {
  color: #6b8aad !important;
}

html body:not([data-hs-store-landing]) .text-slate-400 {
  color: #a8bed6 !important;
}

/* Translucent whites — Tailwind opacity utilities */
html body:not([data-hs-store-landing]) .bg-white\/90,
html body:not([data-hs-store-landing]) .bg-white\/95 {
  background-color: var(--hs-bg-panel) !important;
}

/* Warm tint callouts — must not stay “paper” while slate text maps to cyber */
html body:not([data-hs-store-landing]) .bg-orange-50,
html body:not([data-hs-store-landing]) .bg-orange-50\/40,
html body:not([data-hs-store-landing]) .bg-orange-50\/50,
html body:not([data-hs-store-landing]) .bg-orange-50\/60,
html body:not([data-hs-store-landing]) .bg-orange-50\/70 {
  background-color: rgba(72, 26, 8, 0.58) !important;
}

html body:not([data-hs-store-landing]) .border-orange-200 {
  border-color: rgba(251, 146, 60, 0.38) !important;
}

html body:not([data-hs-store-landing]) .border-orange-500\/25 {
  border-color: rgba(249, 115, 22, 0.35) !important;
}

html body:not([data-hs-store-landing]) .border-slate-300 {
  border-color: rgba(56, 189, 248, 0.16) !important;
}

html body:not([data-hs-store-landing]) .hover\:bg-slate-50:hover,
html body:not([data-hs-store-landing]) .hover\:bg-slate-100:hover {
  background-color: rgba(6, 18, 38, 0.88) !important;
}

/* Blog reading column — definition-list FAQ inherits muted grey; brighten answers */
html body:not([data-hs-store-landing]) .hs-blog-article dl dd {
  color: #c7e8fd !important;
}

html body:not([data-hs-store-landing]) a.text-violet-700,
html body:not([data-hs-store-landing]) .font-semibold.text-violet-700 {
  color: var(--hs-cyan) !important;
}

html body:not([data-hs-store-landing]) .rounded-2xl.border.border-slate-200 {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html body:not([data-hs-store-landing]) .rounded-2xl.border.border-slate-200:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(56, 189, 248, 0.12);
}

html .site-footer {
  background: #01060d !important;
  border-top: 1px solid var(--hs-cyan-dim);
}

html .site-btn-getstarted {
  background: linear-gradient(135deg, #0284c7 0%, var(--hs-cyan) 100%) !important;
  color: #020913 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

/* --- WhatsApp float (cyan accent ring) --- */
html #hs-whatsapp-btn {
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.2), 0 0 0 1px rgba(56, 189, 248, 0.25) !important;
}

/* --- Cookie bar --- */
html #hs-cookie {
  background: var(--hs-bg-panel) !important;
  border: 1px solid var(--hs-cyan-dim) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* --- VPS location selector --- */
.hs-locations {
  padding: 2.5rem 1rem;
  background: linear-gradient(180deg, rgba(2, 9, 19, 0.4) 0%, rgba(2, 9, 19, 0.9) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.hs-locations h2,
.hs-locations h3 {
  font-family: var(--hs-font-sans);
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hs-text);
  margin: 0 0 0.5rem;
}

[data-hs-network-footnote][hidden] {
  display: none !important;
}

.hs-location-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem auto 0;
  max-width: 72rem;
}

.hs-loc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  border-radius: 16px;
  border: 1px solid var(--hs-cyan-dim);
  min-width: 110px;
  transition: all 0.2s ease;
  text-align: center;
  cursor: pointer;
  background: rgba(56, 189, 248, 0.03);
  color: var(--hs-text);
}

.hs-loc-card:focus-visible {
  outline: 2px solid var(--hs-cyan);
  outline-offset: 2px;
}

.hs-loc-card.active {
  border-color: var(--hs-cyan);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.hs-loc-card.soon {
  opacity: 0.55;
}

.hs-loc-card .hs-loc-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin-bottom: 0.15rem;
}
.hs-loc-card .hs-loc-flag .hs-flag-ico--loc {
  width: 2.35rem;
  height: auto;
  max-height: 1.65rem;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hs-loc-card .city {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hs-text);
}

.hs-loc-card .country {
  font-size: 0.75rem;
  color: var(--hs-muted);
}

.hs-loc-card .badge-live {
  font-size: 0.7rem;
  color: #28c840;
  background: rgba(40, 200, 64, 0.12);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--hs-font-mono), monospace;
}

.hs-loc-card .badge-soon {
  font-size: 0.65rem;
  color: var(--hs-muted);
  background: rgba(139, 172, 200, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

.hs-vps-soon-panel {
  border-radius: 1rem;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.05);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.hs-vps-soon-panel h3 {
  margin: 0 0 0.5rem;
  color: var(--hs-text);
}

.hs-vps-soon-panel p {
  margin: 0;
  color: var(--hs-muted);
}

/* --- Game hub cards --- */
.hs-game-hub-hero {
  position: relative;
  min-height: 22rem;
  background:
    linear-gradient(135deg, rgba(2, 9, 19, 0.96) 0%, rgba(26, 10, 46, 0.94) 35%, rgba(2, 9, 19, 0.98) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

/* Optional: drop a WebP at /assets/images/game-hub-hero.webp and uncomment:
.hs-game-hub-hero {
  background-image: linear-gradient(135deg, rgba(2, 9, 19, 0.9) 0%, rgba(15, 8, 40, 0.85) 100%),
    url("/assets/images/game-hub-hero.webp");
  background-size: cover;
  background-position: center;
}
*/

.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.12);
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
}

.game-card-large {
  aspect-ratio: 16 / 9;
}

.game-card-small {
  aspect-ratio: 3 / 2;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(56, 189, 248, 0.2);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(2, 9, 19, 0.98) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.game-card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.game-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8f4ff;
  margin-bottom: 4px;
}

.game-card-price {
  font-size: 0.8rem;
  color: var(--hs-cyan);
  font-family: var(--hs-font-mono), monospace;
}

.game-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.7rem;
  color: var(--hs-cyan);
}

/* --- VPS infra specs strip ---
   Uses 7 fixed equal columns at wide widths — auto-fill/minmax caused uneven gaps
   and raggy wraps; DDoS line is an intentional full-width foot row.
--- */
.hs-vps-specs {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: 80rem;
  width: 100%;
  margin-top: 2.5rem;
  margin-inline: auto;
  padding-block: clamp(1.35rem, 3vw, 1.65rem);
  padding-inline: clamp(1rem, 3vw, 1.75rem);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  /* Slightly more opaque vs page grid — reduces clash with ambient background mesh */
  background: linear-gradient(180deg, rgba(10, 24, 40, 0.82), rgba(6, 18, 32, 0.72));
}

.hs-vps-specs dl {
  display: grid;
  gap: 0.75rem 1rem;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (min-width: 480px) {
  .hs-vps-specs dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.85rem;
  }
}

@media (min-width: 720px) and (max-width: 1179px) {
  .hs-vps-specs dl {
    grid-template-columns: repeat(auto-fit, minmax(min(152px, 100%), 1fr));
    column-gap: 1rem;
  }
}

@media (min-width: 1180px) {
  .hs-vps-specs dl {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: clamp(0.75rem, 1.35vw, 1.125rem);
    row-gap: 0;
  }
}

.hs-vps-specs dt {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hs-muted);
  margin: 0;
  line-height: 1.25;
}

.hs-vps-specs dd {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--hs-text);
  word-break: break-word;
}

/* Full-width footer row — aligns with grid inset; calmer typography */
.hs-vps-specs dl > div:last-child {
  grid-column: 1 / -1;
  margin-top: clamp(0.45rem, 1.8vw, 0.85rem);
  padding-top: clamp(0.85rem, 2vw, 1.05rem);
  border-top: 1px solid rgba(56, 189, 248, 0.14);
}

.hs-vps-specs dl > div:last-child dd {
  max-width: 56rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.52;
  color: rgba(232, 244, 255, 0.92);
}

.hs-vps-specs dl > div:last-child dd a {
  font-weight: 600;
}

/* ========== PHP shell — ambient depth (grid handled by hs-layout-system.css) ========== */
.hs-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #020913;
  background-image: radial-gradient(ellipse 100% 55% at 50% -8%, rgba(56, 189, 248, 0.07), transparent 62%);
}

html .hs-in-conversion-wrap {
  background: transparent !important;
}

html .hs-footer-cta-card {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Primary CTAs: override legacy purple inline styles */
html .hs-in-btn-primary,
html a.hs-in-btn-primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #020913 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.28) !important;
}

html section[aria-label="Key stats"] {
  background: rgba(6, 15, 30, 0.92) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.12) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12) !important;
}

html .hs-stat-num {
  color: var(--hs-cyan) !important;
}

html .hs-stat-label {
  color: var(--hs-muted) !important;
}

html .hs-stat-sep {
  border-color: rgba(56, 189, 248, 0.12) !important;
}

/* Exit-intent modal */
html #hs-exit-popup > div[style*="border-radius:1.25rem"] {
  background: rgba(6, 15, 30, 0.98) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(56, 189, 248, 0.08) !important;
}

html #hs-exit-title {
  color: var(--hs-text) !important;
}

html #hs-exit-form button[type="submit"] {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #020913 !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3) !important;
}

/* Terminal (hero widget — optional [data-hs-terminal] blocks) */
.hs-terminal {
  margin-top: 2.5rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, #0a1628 0%, #060f1e 100%);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.06);
  overflow: hidden;
}

.hs-terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  font-size: 0.75rem;
  color: #4a6d8c;
}

.hs-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}

.hs-terminal__dot:nth-child(2) {
  background: #ffbd2e;
}

.hs-terminal__dot:nth-child(3) {
  background: #27c93f;
}

.hs-terminal__body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: var(--hs-font-mono), ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--hs-muted);
  min-height: 220px;
}

.hs-terminal__line {
  opacity: 0;
  animation: hs-term-in 0.35s forwards;
}

.hs-terminal__line.is-visible {
  opacity: 1;
}

@keyframes hs-term-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hs-terminal__cmd {
  color: var(--hs-cyan);
}

.hs-terminal__ok {
  color: #7dffc8;
}

.hs-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--hs-cyan);
  animation: hs-blink 1s step-end infinite;
}

@keyframes hs-blink {
  50% {
    opacity: 0;
  }
}

/* Step circles & misc purple hotspots */
html span[style*="background:#38bdf8"] {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #020913 !important;
}

html a[style*="linear-gradient(90deg,#38bdf8"],
html a[style*="linear-gradient(135deg,#38bdf8"] {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #020913 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25) !important;
}

/* SEO pillar bands — include store landing pages */
html body .hs-in-band--white {
  background: rgba(4, 12, 28, 0.55) !important;
  border-block: 1px solid rgba(56, 189, 248, 0.1);
}

html body .hs-in-band--muted {
  background: rgba(6, 18, 38, 0.45) !important;
}

html body .hs-in-band--pricing {
  background: rgba(2, 9, 19, 0.72) !important;
}

html body .hs-in-band--final {
  background: linear-gradient(165deg, rgba(6, 18, 38, 0.95), rgba(15, 23, 42, 0.88)) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
}

html body .hs-in-band--white .bg-white\/90,
html body .hs-in-band--white .bg-white {
  background: var(--hs-surface, rgba(6, 18, 38, 0.88)) !important;
}

html body .hs-in-band--white .text-slate-900,
html body .hs-in-band--white strong.text-slate-900 {
  color: var(--hs-ink, #e8f4ff) !important;
}

html body .hs-in-band--white .text-slate-700,
html body .hs-in-band--white .text-slate-600 {
  color: var(--hs-ink-muted, #8bacc8) !important;
}

html body .hs-in-band--white a.text-orange-600 {
  color: var(--hs-accent, #38bdf8) !important;
}

html body .hs-in-band--white .border-slate-200 {
  border-color: rgba(56, 189, 248, 0.15) !important;
}

/* Store-style landings moved to cyber shell (data-hs-cyber-product-landing on body) */
html body[data-hs-cyber-product-landing] .border-slate-100 {
  border-color: rgba(56, 189, 248, 0.1) !important;
}
html body[data-hs-cyber-product-landing] .bg-slate-100 {
  background-color: rgba(6, 18, 38, 0.55) !important;
}
html body[data-hs-cyber-product-landing] .text-orange-400,
html body[data-hs-cyber-product-landing] .text-orange-500,
html body[data-hs-cyber-product-landing] .text-orange-600,
html body[data-hs-cyber-product-landing] .text-orange-700 {
  color: var(--hs-cyan) !important;
}
html body[data-hs-cyber-product-landing] .text-blue-700 {
  color: var(--hs-cyan) !important;
}
html body[data-hs-cyber-product-landing] .text-violet-800 {
  color: #c8dff5 !important;
}
html body[data-hs-cyber-product-landing] .text-indigo-900 {
  color: var(--hs-text) !important;
}
html body[data-hs-cyber-product-landing] .text-indigo-700 {
  color: var(--hs-cyan) !important;
}
html body[data-hs-cyber-product-landing] .bg-indigo-100 {
  background: rgba(56, 189, 248, 0.12) !important;
}
html body[data-hs-cyber-product-landing] .sales-vps-upsell {
  background: rgba(6, 18, 38, 0.92) !important;
  border-color: rgba(56, 189, 248, 0.18) !important;
}
html body[data-hs-cyber-product-landing] .text-red-400 {
  color: var(--hs-cyan) !important;
}
html body[data-hs-cyber-product-landing] section[style*="#f8fafc"] {
  background: rgba(4, 12, 28, 0.85) !important;
  color: var(--hs-text) !important;
}
