/* ==========================================================================
   Game Exchange 567 — Master Stylesheet
   Brand palette sourced from the top-ranking gameexchange567 property:
   deep blue #256FC6 paired with an amber-orange #F39314.
   Fonts: Space Grotesk (display) + Inter (text).
   ========================================================================== */

:root {
  --blue:        #256FC6;
  --blue-bright: #3a86e0;
  --blue-dark:   #1b5495;
  --blue-deep:   #0d2b4d;
  --orange:      #f39314;
  --orange-soft: #ffab3d;
  --navy:        #0a1626;
  --navy-2:      #0f2137;
  --navy-3:      #16304e;
  --line:        rgba(255, 255, 255, 0.08);
  --text:        #e9eff7;
  --muted:       #9db1c9;
  --white:       #ffffff;
  --good:        #2ecc71;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --shadow-blue: 0 14px 34px -14px rgba(37, 111, 198, 0.55);
  --maxw:        1180px;
  --ff-head: "Space Grotesk", "Segoe UI", sans-serif;
  --ff-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5 { font-family: var(--ff-head); font-weight: 600; line-height: 1.2; color: var(--white); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
p { margin-bottom: 1.05rem; color: var(--muted); }
a { color: var(--blue-bright); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange-soft); }
strong { color: var(--text); font-weight: 600; }
ul, ol { margin: 0 0 1.1rem 1.25rem; color: var(--muted); }
li { margin-bottom: .5rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--ff-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  color: var(--orange); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 720px; }
.muted { color: var(--muted); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 40px; border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); color: #241300; box-shadow: 0 12px 26px -12px rgba(243, 147, 20, .8); }
.btn-primary:hover { color: #241300; }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-bright); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 38, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-head); font-weight: 700; font-size: 1.24rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  font-family: var(--ff-head); font-weight: 700; color: #fff; font-size: 1rem;
  box-shadow: var(--shadow-blue);
}
.brand-badge span { transform: translateY(-1px); }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; }
.nav-links a {
  font-family: var(--ff-head); font-weight: 500; color: var(--text); font-size: .98rem;
  padding: 9px 15px; border-radius: 30px; transition: background .18s, color .18s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.06); color: #fff; }
.nav-links a.cta { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); color: #241300; }
.nav-links a.cta:hover { color: #241300; filter: brightness(1.05); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ----- Hero ----- */
.hero { position: relative; padding: 92px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(37,111,198,.42), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(243,147,20,.22), transparent 60%),
    var(--navy);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.16rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--ff-head); font-size: 1.9rem; font-weight: 700; color: #fff; }
.hero-stat .lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-media .float-card {
  position: absolute; bottom: -22px; left: -18px; background: var(--navy-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero-media .float-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(46,204,113,.2); }
.hero-media .float-card small { color: var(--muted); display: block; font-size: .74rem; }
.hero-media .float-card b { color: #fff; font-family: var(--ff-head); }

/* ----- Cards / grids ----- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(37,111,198,.5); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(37,111,198,.16); color: var(--blue-bright); margin-bottom: 16px; font-size: 1.35rem;
}
.card h3 { color: #fff; }
.card p { margin-bottom: 0; font-size: .96rem; }

.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.07); }
.tile .tile-body { position: relative; z-index: 2; padding: 20px; width: 100%; background: linear-gradient(to top, rgba(7,15,26,.92), rgba(7,15,26,0)); }
.tile h3 { margin-bottom: 2px; }
.tile p { margin: 0; font-size: .88rem; color: #c6d4e6; }

/* ----- Split feature ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.check-list { list-style: none; margin-left: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .8rem; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: rgba(46,204,113,.16); color: var(--good); border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

/* ----- Steps ----- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n {
  counter-increment: step; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: var(--shadow-blue);
}
.step .n::before { content: counter(step); }

/* ----- Tool widget ----- */
.tool {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  box-shadow: var(--shadow);
}
.tool h3 { display: flex; align-items: center; gap: 10px; }
.tool .field { margin-bottom: 16px; }
.tool label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 7px; font-family: var(--ff-head); }
.tool input, .tool select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1rem;
  background: var(--navy); border: 1px solid var(--line); color: #fff; font-family: var(--ff-body);
  transition: border-color .18s;
}
.tool input:focus, .tool select:focus { outline: none; border-color: var(--blue-bright); }
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-result {
  margin-top: 20px; padding: 20px; border-radius: var(--radius-sm);
  background: rgba(37,111,198,.12); border: 1px dashed rgba(58,134,224,.45);
}
.tool-result .big { font-family: var(--ff-head); font-size: 2rem; font-weight: 700; color: var(--orange-soft); }
.tool-result .lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tool-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 16px; border-radius: 30px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-family: var(--ff-head); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .18s;
}
.tab-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tool-panel { display: none; }
.tool-panel.active { display: block; }

/* ----- FAQ / accordion ----- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--navy-2); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 22px; color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q .plus { color: var(--orange); font-size: 1.4rem; transition: transform .25s; flex: 0 0 auto; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; }
.faq-a p { padding-bottom: 18px; margin: 0; }

/* ----- Callout / CTA band ----- */
.cta-band { position: relative; border-radius: 22px; padding: 52px 40px; text-align: center; overflow: hidden; border: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--blue-deep), var(--navy-3) 60%, rgba(243,147,20,.25)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e2f0; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ----- Auth pages ----- */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { position: relative; padding: 60px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 30% 20%, rgba(37,111,198,.5), transparent 60%), linear-gradient(160deg, var(--blue-deep), var(--navy)); }
.auth-side .badge-list { list-style: none; margin: 24px 0 0; }
.auth-side .badge-list li { padding-left: 30px; position: relative; color: #dbe6f3; margin-bottom: 14px; }
.auth-side .badge-list li::before { content: "★"; position: absolute; left: 0; color: var(--orange); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 50px 30px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .88rem; font-family: var(--ff-head); font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-field input, .form-field select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); background: var(--navy-2);
  border: 1px solid var(--line); color: #fff; font-size: 1rem; font-family: var(--ff-body);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--blue-bright); }
.form-help { font-size: .82rem; color: var(--muted); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--muted); }
.checkbox input { margin-top: 4px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { font-size: .8rem; color: var(--muted); background: rgba(243,147,20,.08); border: 1px solid rgba(243,147,20,.25); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 18px; }

/* ----- Page hero (inner) ----- */
.page-hero { padding: 66px 0 46px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 340px at 80% -20%, rgba(37,111,198,.32), transparent 60%), var(--navy); }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange-soft); }

/* ----- Prose (legal / articles) ----- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; color: #fff; }
.prose p, .prose li { color: var(--muted); }
.prose a { text-decoration: underline; }
.toc { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 34px; }
.toc h4 { font-family: var(--ff-head); color: #fff; margin-bottom: 10px; }
.toc ul { list-style: none; margin-left: 0; columns: 2; }
.toc a { text-decoration: none; }

/* ----- Stat band ----- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-band .num { font-family: var(--ff-head); font-size: 2.3rem; font-weight: 700; color: var(--orange-soft); }
.stat-band .lbl { color: var(--muted); font-size: .9rem; }

/* ----- Table ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.data th { background: var(--navy-3); color: #fff; font-family: var(--ff-head); font-weight: 600; }
table.data td { color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }

/* ----- Footer ----- */
.site-footer { background: #07101c; border-top: 1px solid var(--line); padding: 54px 0 28px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid p { font-size: .94rem; }
.footer-col h4 { font-family: var(--ff-head); color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin-left: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: var(--muted); font-size: .94rem; }
.footer-col ul a:hover { color: var(--orange-soft); }
.age-badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); font-family: var(--ff-head); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .hero-grid, .split, .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy-2); border-bottom: 1px solid var(--line); padding: 14px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 15px; }
  .grid-2, .grid-3, .grid-4, .toc ul { grid-template-columns: 1fr; columns: 1; }
  .hero-stats { gap: 22px; }
  .tool .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
