/* ===== NexHost — Design Tokens ===== */
:root {
  --bg: #0d0d0f;
  --bg-alt: #131317;
  --surface: #17171c;
  --surface-2: #1e1e25;
  --border: #26262f;
  --text: #f4f4f6;
  --text-muted: #a1a1ad;
  --accent: #ff4d2e;      /* red-orange from logo */
  --accent-2: #ff8a3d;    /* orange from logo */
  --accent-soft: rgba(255, 77, 46, 0.14);
  --radius: 14px;
  --maxw: 1160px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.bg-body { background: var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 77, 46, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(255, 77, 46, .75); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,15,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: auto; border-radius: 6px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-accent { color: var(--accent); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 20px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 10px 0; color: var(--text-muted); font-weight: 500; }
.mobile-nav .btn { margin-top: 8px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,15,.55), rgba(13,13,15,.96)), url("../assets/hero-bg.png");
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.hero-sub { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.18rem); margin: 22px auto 0; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--text); }
.hero-stats span { color: var(--text-muted); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin-top: 12px; }
.section-desc { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Games ===== */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.game-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.game-media { aspect-ratio: 16 / 11; overflow: hidden; }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .game-media img { transform: scale(1.06); }
.game-body { padding: 18px 18px 20px; }
.game-body h3 { font-size: 1.2rem; }
.game-body p { color: var(--text-muted); font-size: 14px; margin: 8px 0 14px; }
.game-link { color: var(--accent-2); font-weight: 600; font-family: var(--font-head); font-size: 14px; }
.game-link:hover { color: var(--accent); }

/* ===== Billing toggle ===== */
.billing-toggle {
  display: inline-flex; margin: 0 auto 40px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px; gap: 4px; position: relative; left: 50%; transform: translateX(-50%);
}
.billing-btn {
  border: 0; background: transparent; color: var(--text-muted); font-family: var(--font-head);
  font-weight: 600; font-size: 14px; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: .2s;
}
.billing-btn.is-active { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.is-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -24px rgba(255,77,46,.6); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-game { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); font-family: var(--font-head); font-weight: 600; }
.plan-name { font-size: 1.3rem; margin-top: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.plan-price .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price .period { color: var(--text-muted); font-size: 14px; }
.plan-desc { color: var(--text-muted); font-size: 14px; min-height: 40px; }
.plan-features { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text); }
.plan-features li::before { content: "✓"; color: var(--accent-2); font-weight: 700; flex-shrink: 0; }
.plan .btn { width: 100%; margin-top: auto; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 30px; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature-icon { font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 12px; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ===== FAQ ===== */
.faq-container { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.faq-item summary {
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600;
  font-size: 1.02rem; padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-muted); font-size: 14px; padding: 0 0 18px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(100deg, rgba(255,77,46,.12), rgba(255,138,61,.08));
  border-top: 1px solid var(--border);
}
.cta-inner { text-align: center; padding: 72px 0; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-inner p { color: var(--text-muted); margin: 14px 0 28px; font-size: 1.08rem; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding: 22px 20px; color: var(--text-muted); font-size: 13px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--accent-2); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .games-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .games-grid, .pricing-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero { padding: 64px 0 56px; }
}
