/* ============================================================
   Halo - site styles
   Palette lifted from the bot's own card renderer (theme.go):
   scarlet cloak, heavenly blonde gold, warm near-black. One
   committed dark identity - it's the bot's whole look, so the
   site wears it too rather than offering a washed-out light mode.
   ============================================================ */

/* ---- self-hosted variable fonts (no CDN at runtime) ---- */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-display: swap; font-style: normal;
}
@font-face {
  font-family: "Hanken";
  src: url("fonts/hanken.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; font-style: normal;
}
@font-face {
  font-family: "JBMono";
  src: url("fonts/jbmono.woff2") format("woff2");
  font-weight: 100 800; font-display: swap; font-style: normal;
}

:root {
  --ink:      #0f0708;   /* deepest ground */
  --bg:       #160a0b;   /* canvas, warm near-black */
  --bg-2:     #1c0e10;
  --panel-1:  #211012;
  --panel-2:  #2a1417;
  --hair:     #3a1c1e;   /* hairline */
  --hair-2:   #522328;

  --scarlet:  #dc262e;   /* primary accent - use sparingly */
  --scarlet-lo:#b01f28;
  --ember:    #ef5340;
  --gold:     #f7ce5b;   /* the halo highlight */
  --gold-deep:#e0a94a;

  --paper:    #f4e7cf;   /* warmest text */
  --text:     #ecd9cf;   /* body text, warm off-white */
  --text-2:   #c9a9a1;   /* secondary */
  --text-3:   #9d7a75;   /* muted */
  --text-4:   #6f5450;   /* faint */

  --font-display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JBMono", "Cascadia Code", ui-monospace, "Consolas", monospace;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --r: 16px; --r-sm: 10px; --r-lg: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--scarlet-lo) transparent; /* firefox */
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- custom scrollbar (webkit) ---- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--scarlet-lo), #7a1a20);
  border: 3px solid var(--ink);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--scarlet), var(--scarlet-lo)); }
::-webkit-scrollbar-corner { background: var(--ink); }

::selection { background: rgba(247,206,91,0.28); color: var(--paper); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glow + grain, fixed behind everything. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 82% -8%, rgba(220,38,46,0.20), transparent 58%),
    radial-gradient(820px 520px at 6% 2%, rgba(247,206,91,0.07), transparent 55%),
    radial-gradient(900px 900px at 50% 130%, rgba(176,31,40,0.16), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe08a; }
img, svg { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- type scale ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }
.cmd {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.86em;
  color: var(--gold); background: rgba(247,206,91,0.09);
  border: 1px solid rgba(247,206,91,0.16);
  padding: 0.08em 0.42em; border-radius: 6px; white-space: nowrap;
}

/* ---- buttons ---- */
.btn {
  --_bg: transparent; --_fg: var(--text); --_bd: var(--hair-2);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 650; font-size: 15px;
  color: var(--_fg); background: var(--_bg); border: 1px solid var(--_bd);
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  --_fg: #1c0708; --_bd: transparent;
  background: linear-gradient(180deg, #ffe497, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 10px 30px -8px rgba(247,206,91,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(247,206,91,0.62), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-outline { --_bd: var(--hair-2); background: rgba(255,255,255,0.015); }
.btn-outline:hover { --_bd: var(--scarlet); color: var(--paper); background: rgba(220,38,46,0.08); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(18,8,9,0.7); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgba(58,28,30,0.6); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { color: var(--paper); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(247,206,91,0.35), 0 0 20px -4px rgba(220,38,46,0.6);
  background: radial-gradient(circle at 50% 32%, var(--gold), var(--scarlet) 78%);
}
.brand .halo-mark { display: grid; place-items: center; background: transparent; box-shadow: none; }
.brand .halo-mark svg { width: 100%; height: 100%; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--text-2); font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.nav-links a:not(.btn):hover { color: var(--paper); background: rgba(255,255,255,0.04); }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- hero ---- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tagline { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-2); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 13px 6px 10px; margin-bottom: 26px; }
.tagline .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 1px var(--gold); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--text-2); max-width: 46ch; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-foot { margin-top: 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-4); }
.hero-foot b { color: var(--text-3); font-weight: 500; }

/* discord embed mock - styled to match what /aura actually posts in Discord,
   down to Discord's dark-theme greys, so the hero isn't overselling the look. */
.dc-shot { font-family: var(--font-body); }
.dc-msg { display: flex; gap: 16px; background: #313338; border: 1px solid rgba(0,0,0,0.35); border-radius: 14px; padding: 16px 18px; box-shadow: 0 44px 90px -46px rgba(0,0,0,0.95); transition: transform .4s ease; }
.dc-msg:hover { transform: translateY(-4px); }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: radial-gradient(circle at 50% 32%, var(--gold), var(--scarlet) 80%); }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.dc-name { color: #f2f3f5; font-weight: 600; font-size: 15px; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; padding: 1px 4px 0; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.02em; position: relative; top: -1px; }
.dc-time { color: #949ba4; font-size: 11px; }
.dc-embed { background: #2b2d31; border-left: 4px solid #cd7f32; border-radius: 4px; padding: 13px 16px 16px; }
.dc-author { color: #f2f3f5; font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dc-author .ic { width: 20px; height: 20px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 30%, #7a3a3f, #3a1c1e); }
.dc-score { color: #fff; font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dc-score span { color: #f7ce5b; }
.dc-tier { color: #fff; font-weight: 700; font-size: 19px; line-height: 1.35; margin-top: 2px; }
.dc-flavor { color: #dbdee1; font-style: italic; font-size: 14px; margin-top: 2px; }
.dc-field { margin-top: 13px; min-width: 0; }
.dc-fname { color: #f2f3f5; font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.dc-break { display: grid; gap: 4px; }
.dc-break .r { font-size: 13.5px; color: #dbdee1; }
.dc-break .code { font-family: var(--font-mono); font-size: 12px; background: #1e1f22; color: #f7ce5b; padding: 1px 6px; border-radius: 4px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.dc-row2 { display: flex; gap: 40px; }
.dc-footer { color: #949ba4; font-size: 12px; margin-top: 13px; }
.dc-caption { margin-top: 15px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-4); }

/* ---- section scaffold ---- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scarlet); font-weight: 600; }
.sec-head { max-width: 62ch; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin: 14px 0 0; }
.sec-head p { color: var(--text-2); font-size: clamp(15.5px, 1.6vw, 18px); margin: 16px 0 0; max-width: 54ch; }

/* ---- features: mixed bento ---- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; }
.f {
  grid-column: span 2; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-1), #190c0e);
  border: 1px solid var(--hair); border-radius: var(--r);
  padding: 24px; transition: border-color .25s ease, transform .2s ease, background .25s ease;
}
.f:hover { border-color: var(--hair-2); transform: translateY(-3px); background: linear-gradient(180deg, var(--panel-2), #190c0e); }
.f.wide { grid-column: span 3; }
.f.tall { grid-row: span 2; }
.f.full { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; }
.f.full .ic { margin-bottom: 0; flex: none; }
.f.full .ft { min-width: 0; }
.f .ic { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; }
.f .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f h3 { font-size: 19px; color: var(--paper); }
.f p { color: var(--text-2); font-size: 14.5px; margin: 8px 0 0; }
.f .cmd { margin-top: 2px; }

/* ---- tier ladder ---- */
.tiers { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.tier {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 16px;
  padding: 13px 18px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent 70%);
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: background .2s ease, border-color .2s ease;
}
.tier::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--scarlet)); }
.tier:hover { border-color: var(--hair); background: linear-gradient(90deg, rgba(255,255,255,0.045), transparent 75%); }
.tier .em { font-size: 20px; text-align: center; }
.tier .nm { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--paper); }
.tier .fl { color: var(--text-3); font-size: 13.5px; }
.tier .bd { font-family: var(--font-mono); font-size: 12px; color: var(--c, var(--text-3)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier .txt { min-width: 0; }
.tier .txt .fl { display: block; margin-top: 1px; }
.tiers-note { margin-top: 18px; color: var(--text-3); font-size: 14px; }
.tiers-note b { color: var(--gold); font-weight: 500; }

/* ---- games terminal ---- */
.games-wrap { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.terminal { background: #120708; border: 1px solid var(--hair-2); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9); }
.terminal .bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--hair); background: #180a0c; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal .bar i:nth-child(1) { background: #e0504a; } .terminal .bar i:nth-child(2) { background: var(--gold-deep); } .terminal .bar i:nth-child(3) { background: #6f5450; }
.terminal .bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-4); }
.terminal .lines { padding: 18px 18px 20px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; }
.terminal .lines .l { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal .lines .p { color: var(--scarlet); } /* prompt */
.terminal .lines .c { color: var(--gold); }    /* command */
.terminal .lines .o { color: var(--text-3); }   /* output */
.terminal .lines .win { color: #7ee081; }
.terminal .lines .lose { color: var(--ember); }
.games-copy .glist { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.games-copy .glist li { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); border: 1px solid var(--hair); border-radius: 8px; padding: 5px 11px; }
.games-copy .glist li b { color: var(--gold); font-weight: 500; }

/* ---- premium ---- */
.premium-panel {
  margin-top: 8px; position: relative; overflow: hidden;
  border: 1px solid var(--hair-2); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(560px 280px at 88% -20%, rgba(247,206,91,0.16), transparent 62%),
    linear-gradient(180deg, #23110f, var(--ink));
}
.premium-panel .pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #1c0708; background: linear-gradient(180deg, #ffe497, var(--gold)); padding: 5px 12px; border-radius: 999px; }
.premium-panel h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 18px 0 0; }
.premium-panel > p { color: var(--text-2); max-width: 52ch; margin: 14px 0 0; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.perks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--text); }
.perks svg { width: 22px; height: 22px; color: var(--gold); stroke: currentColor; fill: none; stroke-width: 1.6; margin-top: 1px; }
.perks b { color: var(--gold); font-weight: 600; }
.premium-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.premium-cta .note { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); max-width: 40ch; line-height: 1.6; }

/* ---- closing CTA ---- */
.closer { text-align: center; }
.closer .wrap { display: flex; flex-direction: column; align-items: center; }
.closer h2 { font-size: clamp(30px, 5vw, 52px); }
.closer p { color: var(--text-2); margin: 16px 0 30px; font-size: 17px; }
.closer .halo-ring { width: 64px; height: 64px; margin-bottom: 26px; filter: drop-shadow(0 0 18px rgba(247,206,91,0.5)); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--hair); padding: 54px 0; margin-top: 30px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer .about { max-width: 320px; }
.footer .about .brand { margin-bottom: 14px; }
.footer .about p { color: var(--text-3); font-size: 13.5px; margin: 0; }
.footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .cols h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); margin: 0 0 14px; font-weight: 600; }
.footer .cols nav { display: flex; flex-direction: column; gap: 10px; }
.footer .cols a { color: var(--text-2); font-size: 14px; }
.footer .cols a:hover { color: var(--gold); }
.legal-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--text-4); font-size: 12.5px; font-family: var(--font-mono); }

/* ---- doc pages (terms / privacy) ---- */
.doc { padding: clamp(44px, 6vw, 72px) 0 20px; }
.doc .wrap { max-width: 78ch; }
.doc .back { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.doc h1 { font-size: clamp(32px, 5vw, 50px); margin: 18px 0 0; }
.doc .updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-4); margin: 14px 0 0; }
.doc .intro { color: var(--text-2); font-size: 17px; margin: 18px 0 0; }
.toc { margin: 34px 0 0; background: linear-gradient(180deg, var(--panel-1), #190c0e); border: 1px solid var(--hair); border-radius: var(--r); padding: 20px 24px; }
.toc h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); margin: 0 0 12px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin: 5px 0; color: var(--text-2); font-size: 14px; }
.doc-body { margin-top: 8px; }
.doc-body h2 { font-size: 22px; color: var(--paper); margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--hair); }
.doc-body h2:first-child { border-top: 0; padding-top: 0; }
.doc-body h3 { font-family: var(--font-display); font-size: 17px; color: var(--gold); margin: 22px 0 0; font-weight: 700; }
.doc-body p, .doc-body li { color: var(--text-2); font-size: 15.5px; }
.doc-body p { margin: 12px 0 0; }
.doc-body ul { margin: 12px 0 0; padding-left: 22px; }
.doc-body li { margin: 7px 0; }
.doc-body strong { color: var(--paper); font-weight: 600; }
.callout { margin: 22px 0 0; background: rgba(247,206,91,0.06); border: 1px solid var(--hair-2); border-left: 3px solid var(--gold); border-radius: var(--r-sm); padding: 16px 20px; }
.callout p { margin: 0; color: var(--paper); }
.doc-foot { margin: 40px 0 0; }

/* ---- responsive ---- */
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .dc-shot { max-width: 460px; }
  .games-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .f, .f.wide { grid-column: span 2; }
  .f.tall { grid-row: span 1; }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .f, .f.wide { grid-column: span 2; }
  .perks { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 26px 1fr; }
  .tier .bd { display: none; }
  .toc ol { columns: 1; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
