/* ─────────────────────────────────────────────────────────
   Hostadz — site.css
   Shared chrome (header / footer) + page tokens.
   Page-specific styles live inline in each .html.
   ───────────────────────────────────────────────────────── */
@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Hide scrollbar (chrome stays scrollable) */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
body { scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }
body {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 12% 8%,  rgba(120, 110, 150, 0.10) 0%, transparent 60%),
    radial-gradient(800px 500px at 88% 18%, rgba(150, 140, 130, 0.07) 0%, transparent 60%),
    radial-gradient(700px 600px at 50% 100%,rgba(90, 100, 140, 0.09) 0%, transparent 60%),
    #050407;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Animated background orbs ────────────────────────── */
body::before, body::after {
  content: ''; position: fixed; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(90px); opacity: 0.30;
  will-change: transform;
}
body::before {
  width: 720px; height: 720px; top: -180px; left: -160px;
  background: radial-gradient(circle, rgba(180,180,200,0.18) 0%, transparent 70%);
  animation: siteBgFloatA 22s ease-in-out infinite alternate;
}
body::after {
  width: 640px; height: 640px; bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(160,170,190,0.14) 0%, transparent 70%);
  animation: siteBgFloatB 28s ease-in-out infinite alternate;
}
@keyframes siteBgFloatA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(160px, 80px) scale(1.10); }
  100% { transform: translate(60px, 220px) scale(0.95); }
}
@keyframes siteBgFloatB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-180px, -100px) scale(1.08); }
  100% { transform: translate(-80px, -240px) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--grid-dot);
  background-size: var(--grid-dot-size);
  opacity: 0.5;
}
.bg-orbs { display: none; }

/* ── Header ──────────────────────────────────────────── */
.site-hdr {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 28px;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-hdr-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: 15px; letter-spacing: -0.01em; color: var(--text-primary);
  flex-shrink: 0;
}
.site-hdr-logo-text {
  background: linear-gradient(110deg, #FFFFFF 0%, #DCC2FF 45%, #E8C28B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.site-hdr-logo-text .tld { color: inherit; }
.site-hdr-logo img {
  height: 26px; width: auto;
  filter: invert(1) hue-rotate(180deg);
}
.site-hdr-nav { display: flex; gap: 2px; align-items: center; }
.site-hdr-nav a {
  font-size: 13px; font-weight: var(--fw-semibold);
  color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.site-hdr-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.site-hdr-nav a.active { color: var(--accent); background: var(--accent-soft); }
.site-hdr-spacer { flex: 1; }
.site-hdr-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 7px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: var(--fw-semibold);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.site-hdr-cta:hover { background: rgba(200,166,255,0.20); border-color: rgba(200,166,255,0.40); }
.site-hdr-cta svg { width: 14px; height: 14px; }

/* ── Buttons (design system) ─────────────────────────── */
.btn {
  --bg:  rgba(255,255,255,0.04);
  --fg:  #fff;
  --br:  var(--border);
  --shadow: none;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--br); background: var(--bg); color: var(--fg);
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.005em;
  cursor: pointer; outline: none; text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    background 180ms cubic-bezier(.2,.7,.2,1),
    border-color 180ms, color 120ms,
    transform 120ms cubic-bezier(.2,.7,.2,1),
    box-shadow 220ms cubic-bezier(.2,.7,.2,1);
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 35%);
  pointer-events: none; opacity: 0; transition: opacity 180ms;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 80ms; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(200,166,255,0.35), var(--shadow, 0 0 transparent); }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }

.btn.primary {
  --bg: linear-gradient(180deg, #D2B4FF 0%, #C0A0FB 100%);
  --fg: #15101F;
  --br: rgba(200,166,255,0.55);
  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 1px 0 rgba(0,0,0,0.4),
    0 6px 18px -4px rgba(200,166,255,0.45);
}
.btn.primary:hover {
  --bg: linear-gradient(180deg, #DCC2FF 0%, #C8A6FF 100%);
  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 1px 0 rgba(0,0,0,0.4),
    0 10px 28px -6px rgba(200,166,255,0.65),
    0 0 0 4px rgba(200,166,255,0.10);
}
.btn.primary:active {
  --bg: linear-gradient(180deg, #B894F0 0%, #A988E8 100%);
  --shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 2px 8px rgba(200,166,255,0.3);
}

.btn.ghost { color: var(--text-secondary); }
.btn.ghost:hover { --bg: rgba(255,255,255,0.07); --br: rgba(255,255,255,0.20); color: #fff; }
.btn.ghost:active { --bg: rgba(255,255,255,0.04); }

.btn.trade {
  padding: 14px 28px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  --bg: linear-gradient(180deg, #C8A6FF 0%, #B48EFF 100%);
  --fg: #fff;
  --br: rgba(200,166,255,0.55);
  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 8px 22px -4px rgba(200,166,255,0.55);
}
.btn.trade:hover {
  --bg: linear-gradient(180deg, #D4B4FF 0%, #BC98FF 100%);
  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    0 12px 32px -6px rgba(200,166,255,0.75),
    0 0 0 4px rgba(200,166,255,0.12);
}

.btn.steam {
  padding: 12px 22px; border-radius: 10px; font-size: 13px; font-weight: 700;
  --bg: linear-gradient(180deg, #14131A 0%, #0B0A11 100%);
  --br: rgba(200,166,255,0.30);
  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 18px -2px rgba(0,0,0,0.6);
}
.btn.steam svg { fill: var(--accent); transition: fill 180ms; width: 16px; height: 16px; }
.btn.steam:hover {
  --br: rgba(200,166,255,0.55);
  --shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 6px 24px -4px rgba(200,166,255,0.35);
}
.btn.steam:hover svg { fill: #DCC2FF; }

.btn.sm  { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn.lg  { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn.icon { padding: 8px; width: 32px; height: 32px; border-radius: 8px; }

@media (max-width: 600px) {
  .site-hdr { padding: 0 16px; gap: 10px; }
  .site-hdr-nav a { padding: 6px 8px; font-size: 12px; }
  .site-hdr-cta { padding: 7px 12px; }
  .site-hdr-cta-label { display: none; }
}

/* ── Footer ──────────────────────────────────────────── */
.site-ftr {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.85);
  padding: 32px 24px 28px;
  margin-top: 64px;
}
.site-ftr-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.site-ftr-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.site-ftr-brand {
  display: flex; align-items: center; gap: 10px;
}
.site-ftr-brand img {
  height: 22px; filter: invert(1) hue-rotate(180deg); opacity: 0.7;
}
.site-ftr-brand-name {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 13px; color: var(--text-secondary); letter-spacing: 0.01em;
}
.site-ftr-socials { display: flex; gap: 6px; }
.site-ftr-soc {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur-fast);
}
.site-ftr-soc:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.site-ftr-soc svg { width: 15px; height: 15px; }

.site-ftr-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-ftr-links {
  display: flex; gap: 18px; flex-wrap: wrap;
}
.site-ftr-links a {
  font-size: 12px; font-weight: var(--fw-medium);
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.site-ftr-links a:hover { color: var(--accent); }
.site-ftr-meta {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .site-ftr-row, .site-ftr-bottom { justify-content: center; text-align: center; }
}

/* ── Page wrap (default content frame) ──────────────── */
.page {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto;
  padding: 64px 24px 24px;
}
.page-narrow { max-width: 780px; }
.page-wide { max-width: 1100px; }

/* ── Page hero (used by sub-pages) ──────────────────── */
.page-hero { text-align: center; margin-bottom: 48px; }
.page-hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 14px;
  background: linear-gradient(140deg, #ffffff 25%, rgba(200,166,255,0.85) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero-sub {
  font-size: 15px; color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 540px; margin: 0 auto;
}

/* ── Section heading (category labels) ──────────────── */
.section-h {
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-h:first-of-type { margin-top: 0; }

/* ── CTA banner (shared) ────────────────────────────── */
.cta-banner {
  margin-top: 56px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,166,255,0.10), transparent 70%),
    rgba(200,166,255,0.04);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  padding: 36px 32px;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-snug);
  margin: 0 0 10px;
  color: var(--text-primary);
}
.cta-banner p {
  font-size: 14px; color: var(--text-secondary);
  margin: 0 0 22px; line-height: 1.6;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--text-on-accent);
  padding: 12px 28px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: var(--fw-bold);
  transition: all var(--dur-base);
  box-shadow: var(--shadow-cta);
}
.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

/* ── Utility ────────────────────────────────────────── */
.eyebrow {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-eyebrow);
  color: var(--text-muted);
}

/* ── Rich page hero (subpage upgrade) ───────────────── */
.page-hero {
  position: relative;
  padding: clamp(40px, 7vh, 88px) 0 clamp(28px, 4vh, 48px);
  margin-bottom: clamp(32px, 5vh, 64px);
}
.page-hero::before {
  content: '';
  position: absolute; inset: -10% 10% auto 10%; height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(200,166,255,0.18) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
  filter: blur(40px);
}
.page-hero-eyebrow {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: var(--fw-black);
  line-height: 1.05;
  background: linear-gradient(140deg, #FFFFFF 0%, #DCC2FF 55%, #E8C28B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero-sub { max-width: 620px; font-size: clamp(15px, 1.4vw, 17px); }

/* ── Section heading (display) ──────────────────────── */
.section-h {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-transform: none;
  margin: 56px 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-h::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ── Glassy card surface ────────────────────────────── */
.card-glass {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(200,166,255,0.05) 0%, transparent 60%),
    rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-base);
}
.card-glass:hover {
  border-color: var(--border-hover);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(200,166,255,0.08) 0%, transparent 60%),
    rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.card-glass.us {
  border-color: var(--border-accent);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(200,166,255,0.12) 0%, transparent 60%),
    rgba(200,166,255,0.04);
}

/* ── Reveal-on-scroll ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
