/* ThunderHost theme layer: aligns the site with panel.thunderhost.eu (loaded after style.css) */

:root {
  --th-bg: #0b1a2b;
  --th-bg-deep: #07131f;
  --th-card: #10243a;
  --th-card-2: #0f1f33;
  --th-accent: #22d3ee;
  --th-accent-2: #2563eb;
  --th-accent-rgb: 34, 211, 238;
  --th-gradient: linear-gradient(90deg, var(--th-accent) 0%, var(--th-accent-2) 100%);
  --th-glass: rgba(16, 36, 58, 0.65);
  --th-glass-strong: rgba(11, 26, 43, 0.82);
  --th-border: rgba(255, 255, 255, 0.07);
  --th-border-strong: rgba(255, 255, 255, 0.12);
  --th-radius: 14px;
  --th-radius-lg: 20px;
  --th-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.25);
  --th-shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.3);
  --th-glow: 0 8px 22px -8px rgba(var(--th-accent-rgb), 0.65);
  --th-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --bg-dark: var(--th-bg);
  --bg-deep: var(--th-bg-deep);
  --bg-surface: var(--th-card);
  --bg-card: var(--th-glass);
  --bg-card-hover: rgba(20, 44, 70, 0.85);
  --bg-glass: var(--th-glass-strong);
  --cyan: var(--th-accent);
  --cyan-dim: var(--th-accent-2);
  --text: #c7d6e5;
  --text-dim: #8fa6bf;
  --text-muted: #5f7893;
  --white: #f2f7fb;
  --border: var(--th-border);
  --border-bright: rgba(var(--th-accent-rgb), 0.35);
  --border-card: var(--th-border);
  --radius-sm: 10px;
  --radius-md: var(--th-radius);
  --radius-lg: var(--th-radius-lg);
  --font-main: 'Inter', ui-rounded, system-ui, sans-serif;
  --font-heading: 'Inter', ui-rounded, system-ui, sans-serif;
  --shadow-glow: var(--th-glow);
  --shadow-card: var(--th-shadow);
}

body {
  background-color: var(--th-bg);
  background-image:
    radial-gradient(ellipse 900px 520px at 50% -160px, rgba(var(--th-accent-rgb), 0.13), transparent 70%),
    radial-gradient(ellipse 700px 600px at 100% 30%, rgba(37, 99, 235, 0.10), transparent 70%),
    linear-gradient(180deg, var(--th-bg) 0%, var(--th-bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

main, footer, .navbar, .top-promo-bar { position: relative; z-index: 1; }
.navbar { z-index: 100; position: sticky; }

::selection { background: rgba(var(--th-accent-rgb), 0.3); color: #fff; }

h1, h2, h3, h4,
.hero-title, .section-heading, .subpage-heading, .logo-text {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-text, .glow-cyan { filter: none; text-shadow: none; }

/* Buttons — same as panel's "Zaloguj się" */
.btn { border-radius: 12px; font-weight: 700; letter-spacing: -0.005em; }
.btn-primary {
  background: var(--th-gradient);
  color: #fff;
  box-shadow: var(--th-glow);
  border: 0;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px -10px rgba(var(--th-accent-rgb), 0.8);
  transform: translateY(-1px);
}
.btn-ghost, .btn-card {
  background: var(--th-card);
  color: var(--white);
  border: 1px solid var(--th-border-strong);
  backdrop-filter: none;
}
.btn-ghost:hover, .btn-card:hover {
  background: #14304d;
  color: #fff;
  border-color: rgba(var(--th-accent-rgb), 0.45);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Promo bar */
.top-promo-bar {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(37, 99, 235, 0.18));
  border-bottom: 1px solid var(--th-border);
}
.promo-badge { background: var(--th-gradient); color: #fff; border-radius: 6px; }

/* Navbar */
.navbar {
  background: rgba(11, 26, 43, 0.78);
  border-bottom: 1px solid var(--th-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.navbar::after { display: none; }
.navbar.scrolled {
  background: rgba(7, 19, 31, 0.92);
  border-bottom-color: var(--th-border-strong);
  box-shadow: var(--th-shadow);
}
.logo-glow-ring { display: none; }
.nav-link { border-radius: 10px; font-weight: 600; }
.nav-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-link.active { color: #fff; background: rgba(var(--th-accent-rgb), 0.1); }
.nav-dropdown {
  background: var(--th-glass-strong);
  border: 1px solid var(--th-border-strong);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow-lg);
  backdrop-filter: blur(14px);
}

.nav-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--th-gradient);
  border: 0;
  box-shadow: var(--th-glow);
  white-space: nowrap;
}
.nav-panel-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 1360px) { .nav-actions .nav-discord-btn { display: none; } }
@media (max-width: 991px) { .nav-actions .nav-panel-btn { display: none; } }

/* Cards: flat glass surfaces like the panel */
.home-cat-card, .why-card, .stat-card, .plan-card, .faq-item, .review-card,
.showcase-card, .glow-card, .contact-card, .infra-card, .game-card, .app-card,
.promo-action-banner, .discord-cta-card, .tech-pill {
  background: var(--th-glass);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-cat-card:hover, .why-card:hover, .stat-card:hover, .plan-card:hover,
.review-card:hover, .game-card:hover, .app-card:hover {
  border-color: rgba(var(--th-accent-rgb), 0.3);
  box-shadow: var(--th-shadow-lg);
  transform: translateY(-3px);
}
.tech-pill { border-radius: 999px; box-shadow: none; }

.section-badge, .hero-badge {
  background: rgba(var(--th-accent-rgb), 0.08);
  border: 1px solid rgba(var(--th-accent-rgb), 0.22);
  color: #67e8f9;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: none;
}

.hero-title { font-weight: 800; line-height: 1.06; }
.section-heading { font-weight: 800; }
.hero-bg-glow { opacity: 0.55; }

.subpage-hero {
  background: radial-gradient(ellipse 70% 70% at 50% -10%, rgba(var(--th-accent-rgb), 0.14), transparent 75%);
  border-bottom: 1px solid var(--th-border);
}
.subpage-glow { opacity: 0.16; }
.subpage-glow.purple { background: #2563eb; }

/* Inputs */
input, select, textarea {
  border-radius: 12px;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(7, 19, 31, 0.4), var(--th-bg-deep));
  border-top: 1px solid var(--th-border);
}
.footer-legal-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { color: var(--text-dim); }
.footer-legal-links a:hover { color: var(--th-accent); }

/* ============ Demo panel — matches panel.thunderhost.eu ============ */
.p-pterodactyl-root {
  background: var(--th-bg);
  background-image:
    radial-gradient(ellipse 600px 300px at 0% 0%, rgba(var(--th-accent-rgb), 0.08), transparent 70%),
    radial-gradient(ellipse 600px 400px at 100% 100%, rgba(37, 99, 235, 0.08), transparent 70%);
  background-size: auto;
  border: 1px solid var(--th-border-strong);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow-lg);
  font-family: var(--font-main);
  color: #c7d6e5;
}
.p-pterodactyl-root button, .p-pterodactyl-root input { font-family: var(--font-main); }

.p-nav-bar {
  background: var(--th-glass);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 6px;
  gap: 4px;
}
.p-tab {
  border-radius: 10px;
  font-weight: 600;
  color: #8fa6bf;
  border: 0;
}
.p-tab:hover { background: rgba(255, 255, 255, 0.05); color: #f2f7fb; }
.p-tab.active {
  background: var(--th-gradient);
  color: #fff;
  box-shadow: var(--th-glow);
  border: 0;
}
.p-tab.active::after { display: none; }

.p-metric-card, .p-graph-card, .p-set-card, .p-list-container,
.p-view-header, .p-file-item, .p-modal-window {
  background: var(--th-glass);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow);
}
.p-file-item:hover { background: rgba(20, 44, 70, 0.85); border-color: rgba(var(--th-accent-rgb), 0.25); }
.p-list-container .p-file-item { box-shadow: none; }

.p-btn-solid, .p-btn-upgrade, .p-power-btn.btn-start {
  background: var(--th-gradient);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--th-glow);
}
.p-btn-ghost, .p-power-btn {
  background: var(--th-card);
  border: 1px solid var(--th-border-strong);
  border-radius: 12px;
  color: #f2f7fb;
  font-weight: 600;
}
.p-power-btn.btn-stop { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.p-status-badge-pill { background: var(--th-card); border: 1px solid var(--th-border-strong); border-radius: 999px; }
.p-copy-input-box, .p-net-input-chip { background: #0f1f33; border: 1px solid var(--th-border); border-radius: 12px; }

/* ============ Legal page ============ */
.legal-section { padding: 40px 0 90px; }
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--th-glass);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 18px;
  backdrop-filter: blur(14px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--th-bg-deep);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  margin-bottom: 14px;
}
.legal-switch a {
  text-align: center;
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
}
.legal-switch a.active { background: var(--th-gradient); color: #fff; box-shadow: var(--th-glow); }
.legal-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 4px 6px 8px;
}
.legal-toc nav { display: flex; flex-direction: column; gap: 2px; }
.legal-toc nav a {
  font-size: 0.86rem;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.35;
}
.legal-toc nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.legal-doc {
  background: var(--th-glass);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow);
  padding: 40px 44px;
  backdrop-filter: blur(14px);
  scroll-margin-top: 96px;
}
.legal-doc + .legal-doc { margin-top: 32px; }
.legal-doc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--th-border);
}
.legal-doc-head h2 { font-size: 1.75rem; font-weight: 800; color: var(--white); }
.legal-meta { font-size: 0.85rem; color: var(--text-muted); }
.legal-doc h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin: 30px 0 12px;
  scroll-margin-top: 96px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.legal-doc h3 .par {
  color: var(--th-accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.legal-doc ol { list-style: none; counter-reset: legal; display: flex; flex-direction: column; gap: 10px; }
.legal-doc ol > li {
  counter-increment: legal;
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-doc ol > li::before {
  content: counter(legal) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.legal-doc ul { list-style: none; margin: 8px 0 2px; display: flex; flex-direction: column; gap: 6px; }
.legal-doc ul li { position: relative; padding-left: 18px; }
.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--th-accent);
}
.legal-doc a { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(103, 232, 249, 0.35); }
.legal-doc strong { color: var(--white); }
.legal-note {
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(var(--th-accent-rgb), 0.06);
  border: 1px solid rgba(var(--th-accent-rgb), 0.2);
  font-size: 0.9rem;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc nav { display: none; }
  .legal-toc .legal-toc-title { display: none; }
  .legal-switch { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .legal-section { padding: 24px 0 60px; }
  .legal-doc { padding: 24px 18px; }
  .legal-doc-head h2 { font-size: 1.35rem; }
  .legal-doc ol > li { padding-left: 28px; font-size: 0.92rem; }
}

/* ============ Feature cards (stats-grid had no styles before) ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
  text-align: left;
  transition: transform 0.3s var(--th-ease), border-color 0.3s var(--th-ease), box-shadow 0.3s var(--th-ease);
}
.stat-card .stat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.16));
  border: 1px solid rgba(var(--th-accent-rgb), 0.22);
}
.stat-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.35; }
.stat-card p { font-size: 0.92rem; line-height: 1.6; color: var(--text-dim); }
.stat-card .btn { margin-top: auto !important; }
.stat-card p + .btn { margin-top: 18px !important; }
.stat-card > p:last-of-type { margin-bottom: 0; }
.stat-card .btn:last-child { align-self: stretch; }

/* consistent section rhythm */
.trust-bar { background: transparent; border-top: 1px solid var(--th-border); }
.section-header { margin-bottom: 40px; }
.section-subtext { color: var(--text-dim); }

/* ============ Navbar: keep the live status visible on mid-size screens ============ */
@media (max-width: 1140px) and (min-width: 993px) {
  .nav-status-wrap { display: block; }
  .nav-status-badge { display: inline-flex; padding: 4px 9px; font-size: 0.72rem; gap: 6px; }
  .nav-status-badge .status-external-icon { display: none; }
  .nav-link { padding: 6px 8px; }
}

/* ============ Footer ============ */
.footer-columns { gap: 28px 36px; }
.footer-col a { line-height: 1.5; }
@media (min-width: 1025px) {
  .footer-top-row { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 48px; }
  .footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1.2fr); }
}
.footer-bottom-row { border-top: 1px solid var(--th-border); gap: 12px 24px; flex-wrap: wrap; }

/* ============ Accessibility ============ */
:focus-visible {
  outline: 2px solid var(--th-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--th-gradient);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
@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; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ============ Panel demo (iframe with the real panel snapshot) ============ */
.panel-demo-section { padding: 40px 16px 30px; }
.panel-demo-frame {
  max-width: 1320px;
  margin: 0 auto;
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  border: 1px solid var(--th-border-strong);
  background: #07131f;
  box-shadow: var(--th-shadow-lg), 0 0 60px -20px rgba(var(--th-accent-rgb), 0.45);
}
.panel-demo-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(16, 36, 58, 0.9);
  border-bottom: 1px solid var(--th-border);
}
.panel-demo-chrome > span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; opacity: 0.85; }
.panel-demo-chrome > span:nth-child(2) { background: #f59e0b; }
.panel-demo-chrome > span:nth-child(3) { background: #22c55e; }
.panel-demo-url {
  margin-left: 10px;
  flex: 1;
  max-width: 420px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(7, 19, 31, 0.8);
  border: 1px solid var(--th-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-demo-frame iframe { display: block; width: 100%; height: 860px; border: 0; background: #0b1a2b; }
.panel-demo-note { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: 0.9rem; color: var(--text-dim); }
.panel-demo-note code { font-family: var(--font-mono); color: #67e8f9; background: rgba(var(--th-accent-rgb), 0.08); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 768px) {
  .panel-demo-section { padding: 24px 12px 20px; }
  .panel-demo-frame iframe { height: 760px; }
}

/* ============ "Wkrótce" (coming soon) marker ============ */
.home-cat-card, .service-box { position: relative; }
.soon-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1203;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 18px -6px rgba(245, 158, 11, 0.7);
}
.service-box.is-soon .box-price { opacity: 0.6; }

/* ============ Polish pass ============ */
/* above-the-fold content must not wait for long reveal animations */
.hero [data-aos] { transition: none !important; animation: hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero [data-aos-delay="100"], .hero [data-aos-delay="150"] { animation-delay: 0.08s; }
.hero [data-aos-delay="250"], .hero [data-aos-delay="350"] { animation-delay: 0.16s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero [data-aos] { animation: none; } }

/* bolder, banner-like headline */
.hero-title { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.7rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; }
.hero-sub { max-width: 560px; font-size: 1.05rem; line-height: 1.65; color: #b4c6da; }
.section-heading { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 900; letter-spacing: -0.03em; }
.subpage-heading { font-weight: 900; letter-spacing: -0.035em; }

/* compact one-line promo bar on phones */
@media (max-width: 600px) {
  .top-promo-bar { padding: 7px 34px 7px 12px; font-size: 0.76rem; }
  .promo-content { flex-wrap: nowrap; justify-content: center; gap: 6px; white-space: nowrap; }
  .promo-badge { display: none; }
  .promo-text { overflow: hidden; text-overflow: ellipsis; }
  .promo-copy-btn { padding: 3px 8px; font-size: 0.72rem; flex-shrink: 0; }
  .promo-copy-btn .copy-icon { display: none; }
}

/* calmer, consistent icon chips on the home cards */
.home-cat-icon, .why-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.16));
  border: 1px solid rgba(var(--th-accent-rgb), 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* softer section rhythm */
main > section { scroll-margin-top: 90px; }
