/* FutureX Games website. Colours match the Arrow Puzzle design system. */
:root {
  --bg: #131a2a;
  --surface: #1c2538;
  --surface-2: #243049;
  --line: #2f3b56;
  --ink: #f1f4fa;
  --ink-muted: #b4bdd0;
  --amber: #ffb627;
  --amber-edge: #b87a00;
  --teal: #2ec4b6;
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, .brand-name, .display-title {
  font-family: "Baloo 2", "Lexend", sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a { color: var(--amber); }
a:hover { color: #ffd27a; }

.skip-link {
  position: absolute; left: 1rem; top: 1rem; z-index: 2000;
  background: var(--amber); color: #1a1300; padding: .5rem 1rem; border-radius: 8px;
}

/* ---- Navigation ---- */
.site-nav { background: rgba(19, 26, 42, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; }
.brand-name { font-size: 1.45rem; color: var(--ink); }
.brand-name span { color: var(--amber); }
.site-nav .nav-link { color: var(--ink-muted); font-weight: 500; padding: .5rem .9rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--ink); }
.site-nav .nav-link.active { box-shadow: inset 0 -3px 0 var(--amber); }

/* ---- Buttons ---- */
.btn { border-radius: 14px; font-weight: 600; padding: .7rem 1.4rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn-amber { background: var(--amber); color: #1a1300; border: 0; box-shadow: 0 4px 0 var(--amber-edge); }
.btn-amber:hover, .btn-amber:focus { background: #ffc54d; color: #1a1300; }
.btn-amber:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-edge); }
.btn-amber.disabled { background: var(--amber); color: #1a1300; opacity: .55; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn:focus-visible, a:focus-visible, .accordion-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; box-shadow: none; }

/* ---- Sections ---- */
.hero { padding: 5rem 0 4rem; }
.hero-home { min-height: 650px; display: flex; align-items: center; overflow: hidden; }
.eyebrow { color: var(--teal); font-weight: 600; letter-spacing: .02em; margin-bottom: .75rem; display: flex; align-items: center; gap: .55rem; }
.eyebrow-dot { display: inline-block; width: .6rem; height: .6rem; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 .35rem rgba(46,196,182,.12); }
.display-title { font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: -.04em; margin-bottom: 1.25rem; }
.accent { color: var(--amber); }
.lead-muted { color: var(--ink-muted); font-size: 1.15rem; max-width: 40rem; }
.text-center .lead-muted { margin-left: auto; margin-right: auto; }
.small-muted, .text-muted-2 { color: var(--ink-muted); font-size: .95rem; }
.hero-art-wrap { position: relative; display: inline-block; padding: 4rem; }
.hero-art { width: min(320px, 62vw); height: auto; position: relative; z-index: 2; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); transform: rotate(5deg); }
.hero-orbit { position: absolute; inset: 10%; border: 1px solid rgba(255,182,39,.22); border-radius: 50%; transform: rotate(-20deg) scaleX(.7); }
.orbit-two { inset: 3%; transform: rotate(35deg) scaleX(.7); border-color: rgba(46,196,182,.2); }
.float-card { position: absolute; z-index: 3; background: rgba(28,37,56,.9); border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem; font-weight: 700; color: var(--amber); box-shadow: 0 14px 35px rgba(0,0,0,.25); }
.float-card small { display: block; color: var(--ink-muted); font-size: .68rem; font-weight: 400; white-space: nowrap; }
.float-card-top { top: 12%; right: 0; transform: rotate(5deg); }
.float-card-bottom { bottom: 10%; left: 0; color: var(--teal); transform: rotate(-5deg); }
.hero-proof { color: var(--ink-muted); font-size: .9rem; margin-top: 2rem; }
.hero-proof span { color: var(--amber); }

.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-kicker { color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .65rem; }
.section-title { font-size: clamp(2.25rem, 4vw, 3.2rem); letter-spacing: -.03em; margin-bottom: 2rem; }
.narrow { max-width: 820px; }
.page-head { padding: 4rem 0 2rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }

/* ---- Cards ---- */
.app-card {
  display: flex; flex-direction: column; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
}
.app-card h3 { font-size: 1.4rem; margin: .25rem 0 0; }
.app-card p { color: var(--ink-muted); margin: 0 0 .75rem; }
.app-card-empty { background: transparent; border-style: dashed; justify-content: center; }
.coming-mark { width: 2.6rem; height: 2.6rem; border: 1px solid var(--teal); border-radius: 50%; display: grid; place-items: center; color: var(--teal); font-size: 1.6rem; }
.app-icon { border-radius: 18px; }
.badge-soon {
  display: inline-flex; align-items: center; border: 1.5px solid var(--teal); color: var(--teal);
  border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 500;
}

.value { background: var(--surface-2); border-radius: var(--radius); padding: 1.5rem; }
.section-alt .value { background: var(--bg); }
.value-index { color: var(--amber); font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.value h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.value p { color: var(--ink-muted); margin: 0; }

.step { background: var(--bg); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.step-n {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--amber); color: #1a1300; font-weight: 700; margin-bottom: .75rem;
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--ink-muted); margin: 0; }

/* ---- Legal pages ---- */
.legal h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.legal p, .legal li { color: #d6dcea; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }

/* ---- FAQ ---- */
.accordion { --bs-accordion-bg: var(--surface); --bs-accordion-border-color: var(--line); --bs-accordion-color: var(--ink); --bs-accordion-active-bg: var(--surface-2); --bs-accordion-active-color: var(--ink); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-button { font-weight: 600; font-size: 1.05rem; color: var(--ink); background: var(--surface); }
.accordion-button::after { filter: invert(1); }
.accordion-body { color: var(--ink-muted); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-title { font-family: "Lexend", sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--amber); text-decoration: underline; }
.copyright { color: var(--ink-muted); font-size: .85rem; margin: 2.5rem 0 0; }

@media (max-width: 767.98px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .navbar-collapse { padding-bottom: .75rem; }
  .hero-art-wrap { padding: 2.75rem; }
  .float-card-top { right: -1rem; }
  .float-card-bottom { left: -1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-amber:active { transform: none; }
}
