/* ============================================================
   Hexadu — shared stylesheet
   Single source of truth for all pages. Edit tokens here.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Palette — sampled from the hero artwork */
  --bg-deep:      #1a0d3e;
  --bg-mid:       #2a1259;
  --bg-panel:     #20104a;
  --bg-panel-2:   #2c1860;
  --gold:         #ffb524;
  --gold-bright:  #ffd24a;
  --gold-deep:    #e8870a;
  --amber-glow:   #ff9d1e;
  --ink:          #f4eefe;
  --ink-soft:     #c9b8ec;
  --ink-dim:      #9a87c4;
  --line:         rgba(255, 181, 36, 0.16);
  --line-soft:    rgba(201, 184, 236, 0.12);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --maxw: 1080px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-gold: 0 8px 30px rgba(255, 157, 30, 0.35);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

html { background: var(--bg-deep); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,157,30,0.18), transparent 60%),
    radial-gradient(900px 700px at 85% 20%, rgba(124,77,255,0.20), transparent 55%),
    var(--bg-deep);
  background-repeat: no-repeat;
  background-color: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Subtle hex texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(60deg, var(--gold) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-60deg, var(--gold) 0 1px, transparent 1px 28px);
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(20, 10, 48, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 39px; filter: drop-shadow(0 2px 8px rgba(255,157,30,0.5)); }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.brand span b { color: var(--gold-bright); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-bright); }

/* ---------- Footer ---------- */
footer.site {
  margin-top: 90px;
  border-top: 1px solid var(--line-soft);
  background: rgba(15, 7, 38, 0.55);
}
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 32px 24px; max-width: var(--maxw); margin: 0 auto; }
.foot .brand span { font-size: 1.05rem; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-copy { color: var(--ink-dim); font-size: 0.85rem; width: 100%; padding-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #3a1d00; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(255,157,30,0.5); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ---------- Generic content page (privacy / terms / support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 60px 24px 0; position: relative; z-index: 1; }
.doc h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.doc .updated { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 40px; }
.doc h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--gold-bright); margin: 38px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--gold-bright); }
.doc strong { color: var(--ink); }
.callout {
  background: linear-gradient(135deg, rgba(255,181,36,0.10), rgba(124,77,255,0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--ink); }

/* ---------- Reveal animation ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 0.85rem; }
  .nav-links a { font-size: 0.85rem; }
  .brand span { font-size: 1.1rem; }
}
