/* ============================================================
   GLASSHOUSE HOSTING — Shared Stylesheet
   All marketing pages reference this file.
   Page-specific styles live in <style> blocks per page.
   ============================================================ */

/* ----------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --gh-bg:           #0b0b0d;
  --gh-bg-elevated:  #111113;
  --gh-surface:      #17171a;
  --gh-border:       rgba(255, 255, 255, 0.07);

  --gh-primary:      #ff6a00;
  --gh-primary-deep: #c2410c;
  --gh-secondary:    #f59e0b;
  --gh-glow:         rgba(255, 106, 0, 0.30);

  --gh-text:         #ffffff;
  --gh-text-muted:   #a1a1aa;
  --gh-text-subtle:  #71717a;

  --gh-radius-sm:    10px;
  --gh-radius-md:    14px;
  --gh-radius-lg:    20px;
  --gh-radius-xl:    24px;
}

/* ----------------------------------------------------------
   RESET / BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--gh-bg);
}

body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gh-text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------- */
.gh-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.gh-container--narrow {
  width: 90%;
  max-width: 860px;
  margin: 0 auto;
}

main { flex: 1; }

/* ----------------------------------------------------------
   TOP BANNER
   ---------------------------------------------------------- */
.gh-top-banner {
  background: linear-gradient(90deg, var(--gh-primary), var(--gh-secondary));
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.gh-top-banner span {
  background: rgba(0, 0, 0, 0.22);
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: 700;
}

/* ----------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------- */
.gh-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gh-border);
  padding: 14px 0;
}

.gh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gh-logo-img {
  max-height: 40px;
  height: auto;
  display: block;
}

.gh-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.gh-nav-link {
  color: var(--gh-text);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.gh-nav-link:hover       { color: var(--gh-primary); }
.gh-nav-link--active     { color: var(--gh-primary); }

.gh-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--gh-radius-sm);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--gh-primary), var(--gh-secondary));
  transition: transform .15s, box-shadow .15s;
}

.gh-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px var(--gh-glow);
}

/* Mobile nav */
.gh-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gh-border);
  color: var(--gh-text);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .gh-menu-toggle { display: block; }

  .gh-nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 72px;
    background: var(--gh-bg-elevated);
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    padding: 16px 20px;
    gap: 14px;
    min-width: 200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .gh-nav-list.open { display: flex; }
}

/* ----------------------------------------------------------
   HERO (shared baseline — pages add padding/layout overrides)
   ---------------------------------------------------------- */
.gh-hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gh-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 106, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.gh-hero-eyebrow {
  display: inline-block;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.30);
  color: var(--gh-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.gh-hero h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}

.gh-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gh-primary), var(--gh-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gh-hero-lead {
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--gh-text-muted);
}

.gh-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.gh-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--gh-radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}

.gh-btn-primary {
  background: linear-gradient(135deg, var(--gh-primary), var(--gh-secondary));
  color: #fff;
}

.gh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gh-glow);
}

.gh-btn-secondary {
  background: transparent;
  color: var(--gh-text);
  border: 1px solid var(--gh-border);
}

.gh-btn-secondary:hover {
  border-color: rgba(255, 106, 0, 0.5);
  color: var(--gh-primary);
}

.gh-btn-ghost {
  background: transparent;
  color: var(--gh-text-muted);
  border: 1px solid var(--gh-border);
  cursor: default;
}

/* ----------------------------------------------------------
   SECTION UTILS
   ---------------------------------------------------------- */
.gh-section { padding: 90px 0; }
.gh-section--sm { padding: 60px 0; }
.gh-section--flush-top { padding-top: 0; }

.gh-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gh-primary);
  margin: 0 0 14px;
  display: block;
}

.gh-section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
}

.gh-section-sub {
  color: var(--gh-text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 0 56px;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   TRUST BAR
   ---------------------------------------------------------- */
.gh-trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--gh-border);
  border-bottom: 1px solid var(--gh-border);
  margin-bottom: 90px;
}

.gh-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gh-text-muted);
  font-size: 14px;
}

.gh-trust-item strong { color: var(--gh-text); }

.gh-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   CARDS — Feature / Capability
   ---------------------------------------------------------- */
.gh-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gh-card-grid--sm {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gh-card {
  background: var(--gh-bg-elevated);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 30px;
  transition: border-color .2s;
}

.gh-card:hover { border-color: rgba(255, 106, 0, 0.30); }

.gh-card-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 14px;
}

.gh-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.gh-card p {
  font-size: 14px;
  color: var(--gh-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   GAME CARDS
   ---------------------------------------------------------- */
.gh-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.gh-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gh-border);
  background: var(--gh-bg-elevated);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 280px;
}

.gh-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 106, 0, 0.30);
}

.gh-game-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.gh-game-card:hover .gh-game-bg { transform: scale(1.07); }

.gh-game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.gh-game-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 26px;
}

.gh-game-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.gh-game-badge--available {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.40);
  color: #4ade80;
}

.gh-game-badge--soon {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.40);
  color: var(--gh-secondary);
}

.gh-game-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.gh-game-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ----------------------------------------------------------
   CTA BOX
   ---------------------------------------------------------- */
.gh-cta-box {
  background: linear-gradient(135deg, var(--gh-bg-elevated), var(--gh-surface));
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-xl);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gh-cta-box::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 106, 0, 0.08), transparent 70%);
  pointer-events: none;
}

.gh-cta-box h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 16px;
}

.gh-cta-box p {
  color: var(--gh-text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 17px;
}

/* ----------------------------------------------------------
   SEO PROSE
   ---------------------------------------------------------- */
.gh-prose {
  color: var(--gh-text-muted);
  line-height: 1.8;
  max-width: 820px;
}

.gh-prose p { margin: 0 0 20px; }
.gh-prose strong { color: var(--gh-text); }

.gh-prose h3 {
  color: var(--gh-text);
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 12px;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.gh-footer {
  background: var(--gh-bg-elevated);
  border-top: 1px solid var(--gh-border);
  padding: 70px 0 50px;
  margin-top: auto;
}

.gh-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .gh-footer-grid { grid-template-columns: 1fr 1fr; }
  .gh-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .gh-footer-grid { grid-template-columns: 1fr; }
}

.gh-footer-brand-logo { max-height: 34px; margin-bottom: 14px; }

.gh-footer-brand p {
  color: var(--gh-text-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  max-width: 260px;
}

.gh-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gh-primary);
  margin: 0 0 16px;
}

.gh-footer-col ul  { list-style: none; padding: 0; margin: 0; }
.gh-footer-col li  { margin-bottom: 10px; }

.gh-footer-col a {
  color: var(--gh-text-muted);
  font-size: 14px;
  transition: color .2s;
}

.gh-footer-col a:hover { color: var(--gh-text); }

.gh-footer-bar {
  background: var(--gh-bg-elevated);
  border-top: 1px solid var(--gh-border);
  padding: 20px 0;
}

.gh-footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.gh-footer-bar p {
  color: var(--gh-text-subtle);
  font-size: 13px;
  margin: 0;
}

.gh-footer-bar a {
  color: var(--gh-text-subtle);
  transition: color .2s;
}

.gh-footer-bar a:hover { color: var(--gh-primary); }

/* ----------------------------------------------------------
   SPEC / CHECKLIST
   ---------------------------------------------------------- */
.gh-spec-list { list-style: none; padding: 0; margin: 0; }

.gh-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gh-border);
  font-size: 14px;
  color: var(--gh-text-muted);
  line-height: 1.5;
}

.gh-spec-list li:first-child { border-top: 1px solid var(--gh-border); }

.gh-spec-check {
  color: #4ade80;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.gh-spec-strong { color: var(--gh-text); font-weight: 600; }

/* ----------------------------------------------------------
   STEP / PROCESS
   ---------------------------------------------------------- */
.gh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

.gh-step {
  padding: 40px 30px;
  border-right: 1px solid var(--gh-border);
}

.gh-step:last-child { border-right: none; }

@media (max-width: 600px) {
  .gh-step { border-right: none; border-bottom: 1px solid var(--gh-border); }
  .gh-step:last-child { border-bottom: none; }
}

.gh-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.30);
  color: var(--gh-primary);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}

.gh-step h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }

.gh-step p {
  font-size: 13px;
  color: var(--gh-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.gh-faq { max-width: 720px; }

.gh-faq-item { border-bottom: 1px solid var(--gh-border); padding: 22px 0; }
.gh-faq-item:first-child { border-top: 1px solid var(--gh-border); }

.gh-faq-q {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.gh-faq-toggle {
  color: var(--gh-primary);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform .2s;
}

.gh-faq-item.open .gh-faq-toggle { transform: rotate(45deg); }

.gh-faq-a {
  font-size: 14px;
  color: var(--gh-text-muted);
  line-height: 1.7;
  margin: 14px 0 0;
  display: none;
}

.gh-faq-item.open .gh-faq-a { display: block; }

/* ----------------------------------------------------------
   SHARED JAVASCRIPT SNIPPET (mobile nav + FAQ toggle + year)
   Usage: include in a <script> tag at bottom of each page.
   ---------------------------------------------------------- */
/*
  document.getElementById("year").textContent = new Date().getFullYear();
  document.getElementById("menuToggle")
    .addEventListener("click", function () {
      document.getElementById("navList").classList.toggle("open");
    });
  document.querySelectorAll(".gh-faq-q").forEach(function (q) {
    q.addEventListener("click", function () {
      this.closest(".gh-faq-item").classList.toggle("open");
    });
  });
*/
