/* ==========================================================================
   LudoKhelo — public site stylesheet (LIVE)
   --------------------------------------------------------------------------
   This is THE stylesheet for every public marketing page and the login page.
   It is loaded by resources/views/layouts/public.blade.php, which puts
   `body.landing-body` on every `public.*` route AND `login`. Nothing else
   loads CSS for those pages, so anything not styled here is unstyled.

   Theme: premium black + gold. Near-black page, one accent (gold), glossy
   metal for gold surfaces (top highlight + dark bottom edge), glass-gloss for
   dark cards (hairline border + soft top sheen + one drop shadow).

   Written mobile-first: the base cascade targets ~360-430px phones on mobile
   data. Desktop layout starts at `@media (min-width: 861px)`. Effects stay
   cheap on purpose — no shadow stacks on scrolling lists, no blur filters,
   no animation on mobile except the two-property CTA transitions.
   ========================================================================== */

/* ===== TOKENS ===== */
:root {
  /* Blacks */
  --ink-950:#050508; --ink-900:#0a0b10; --ink-850:#0f1117; --ink-800:#14161f;
  --ink-750:#1b1e29; --ink-700:#242835; --ink-600:#2f3444; --ink-500:#454b60;
  /* Gold */
  --gold-50:#fffdf2; --gold-100:#fff6cf; --gold-200:#ffeda3; --gold-300:#ffe066;
  --gold-400:#ffd12e; --gold-500:#f7b500; --gold-600:#d18f00; --gold-700:#9a6800; --gold-800:#6b4700;
  /* Text */
  --text-strong:#ffffff; --text-body:#d7dae4; --text-muted:#9aa1b4; --text-faint:#6b7284;
  /* Semantic */
  --win:#2fd36b; --lose:#ff5a5a; --info:#4cc9f0; --warn:#ffb020;
  /* Shine primitives */
  --grad-gold: linear-gradient(180deg,#ffe98a 0%,#ffd12e 42%,#f0a500 100%);
  --grad-gold-hover: linear-gradient(180deg,#fff3b0 0%,#ffdb52 42%,#f7b500 100%);
  --grad-card: linear-gradient(180deg,rgba(255,255,255,.055) 0%,rgba(255,255,255,0) 42%);
  --grad-page: radial-gradient(120% 80% at 50% -10%, #171a24 0%, #0a0b10 55%);
  --bevel-gold: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(120,80,0,.35);
  --bevel-card: inset 0 1px 0 rgba(255,255,255,.06);
  --glow-gold: 0 6px 18px -6px rgba(247,181,0,.55), 0 0 0 1px rgba(255,209,46,.28);
  --glow-gold-lg: 0 10px 30px -8px rgba(247,181,0,.6), 0 0 0 1px rgba(255,209,46,.35);
  --shadow-card: 0 10px 26px -12px rgba(0,0,0,.85);
  --ring-gold: 0 0 0 2px rgba(255,209,46,.9);
  --r-sm:.5rem; --r-md:.85rem; --r-lg:1.15rem; --r-xl:1.5rem; --r-pill:999px;
}

/* ===== RESET / BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink-900);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255, 209, 46, .16);
}

/* Fixed page wash: a pseudo-element instead of background-attachment so the
   gradient never bands or re-rasterises while scrolling on Android. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--grad-page);
  pointer-events: none;
}

.landing-body {
  min-height: 100vh;
  color: var(--text-body);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.08;
}

h1 {
  margin-bottom: .85rem;
  font-size: clamp(2.05rem, 9vw, 3.1rem);
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: .6rem;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
}

h3 {
  margin-bottom: .45rem;
  font-size: 1.1rem;
  font-weight: 800;
}

h4 {
  margin-bottom: .35rem;
  font-size: .95rem;
}

p {
  margin-bottom: 0;
  color: var(--text-body);
}

strong {
  color: var(--text-strong);
  font-weight: 800;
}

/* Universal focus ring — box-shadow follows each element's own radius. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--ring-gold);
}

/* ===== SHARED: GOLD CTA (glossy metal pill, black label) ===== */
.landing-play,
.landing-board a,
.landing-cta-strip > a,
.landing-mobile-header a:last-child,
.primary-action,
.bypass-login-action,
.send-otp-action,
.verify-otp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.9rem;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: var(--r-pill);
  background-color: var(--gold-400);
  background-image: var(--grad-gold);
  color: var(--ink-950);
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--bevel-gold), var(--glow-gold);
  transition: background-image 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.landing-play:hover,
.landing-board a:hover,
.landing-cta-strip > a:hover,
.landing-mobile-header a:last-child:hover,
.primary-action:hover,
.bypass-login-action:hover,
.send-otp-action:hover,
.verify-otp-action:hover {
  background-image: var(--grad-gold-hover);
  box-shadow: var(--bevel-gold), var(--glow-gold-lg);
}

.landing-play:active,
.landing-board a:active,
.landing-cta-strip > a:active,
.landing-mobile-header a:last-child:active,
.primary-action:active,
.bypass-login-action:active,
.send-otp-action:active,
.verify-otp-action:active {
  transform: translateY(1px) scale(.985);
}

.landing-play:focus-visible,
.landing-board a:focus-visible,
.landing-cta-strip > a:focus-visible,
.landing-mobile-header a:last-child:focus-visible,
.primary-action:focus-visible,
.bypass-login-action:focus-visible,
.send-otp-action:focus-visible,
.verify-otp-action:focus-visible {
  box-shadow: var(--ring-gold), var(--glow-gold-lg);
}

.primary-action[disabled],
.bypass-login-action[disabled],
.send-otp-action[disabled],
.verify-otp-action[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--bevel-gold);
}

/* ===== SHARED: GOLD EYEBROW / KICKER ===== */
.landing-eyebrow,
.section-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 .35rem;
  padding: .38rem .8rem;
  border: 1px solid rgba(255, 209, 46, .32);
  border-radius: var(--r-pill);
  background: rgba(255, 209, 46, .07);
  color: var(--gold-200);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: var(--bevel-card);
}

/* ===== SIDEBAR & MOBILE HEADER ===== */
.landing-sidebar {
  display: none;
}

.landing-mark {
  display: inline-flex;
  align-items: center;
}

.landing-mark img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--ink-800);
  box-shadow: 0 0 0 1px var(--ink-700), var(--bevel-card);
}

.landing-sidebar nav {
  display: grid;
  gap: .3rem;
  margin-top: 2.25rem;
}

.landing-sidebar nav a {
  padding: .6rem .8rem;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: color 150ms ease, background-color 150ms ease;
}

.landing-sidebar nav a:hover {
  background: rgba(255, 209, 46, .06);
  color: var(--gold-200);
}

.landing-sidebar nav a.is-active {
  background: rgba(255, 209, 46, .1);
  color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 46, .22), var(--bevel-card);
}

.landing-play {
  margin-top: auto;
  width: 100%;
}

.landing-mobile-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--ink-750);
  background-color: var(--ink-850);
  background-image: var(--grad-card);
  box-shadow: 0 1px 0 rgba(255, 209, 46, .12), 0 6px 16px -12px rgba(0, 0, 0, .9);
}

.landing-mobile-header img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.landing-mobile-header a:last-child {
  min-height: 2.4rem;
  padding: .5rem .9rem;
  font-size: .74rem;
}

/* Legacy shell header (non-landing branch of the layout) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--ink-750);
  background-color: var(--ink-850);
  background-image: var(--grad-card);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--ink-800);
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--ink-700);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: .55rem .95rem;
  border: 1px solid var(--ink-600);
  border-radius: var(--r-pill);
  background: var(--ink-800);
  color: var(--gold-200);
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--bevel-card);
}

.menu-button:hover {
  border-color: rgba(255, 209, 46, .4);
  color: var(--gold-300);
}

.site-nav,
#site-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  font-size: .92rem;
  font-weight: 800;
}

.site-nav[data-site-nav] {
  padding-bottom: .35rem;
}

/* Id selector repeated so the open state still outranks the collapsed
   `#site-nav` rule above (id specificity beats a plain class). */
.site-nav.is-open,
#site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: .7rem .9rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: var(--ink-800);
  color: var(--text-body);
  text-align: center;
}

.site-nav a:hover {
  border-color: rgba(255, 209, 46, .35);
  color: var(--gold-200);
}

/* ===== MAIN COLUMN ===== */
.landing-main {
  padding: 1.1rem 1.05rem 2.5rem;
}

/* ===== LANDING HERO ===== */
.landing-hero {
  position: relative;
  display: grid;
  gap: 1.6rem;
  max-width: 90rem;
  padding-top: 1rem;
}

/* Ambient gold bloom behind the hero — one soft radial, never animated. */
.landing-hero::before {
  content: "";
  position: absolute;
  top: -7rem;
  left: 50%;
  z-index: 0;
  width: min(34rem, 130%);
  height: 24rem;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(247, 181, 0, .2) 0%, rgba(247, 181, 0, .07) 42%, rgba(247, 181, 0, 0) 70%);
  pointer-events: none;
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

.landing-copy h1 {
  margin: .9rem 0 1.35rem;
  font-size: clamp(2.05rem, 9.2vw, 3.15rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--gold-100); /* fallback for browsers without background-clip:text */
}

.landing-copy h1 em {
  font-style: inherit;
  color: var(--gold-300);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .landing-copy h1 {
    background-image: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .landing-copy h1 em {
    background-image: var(--grad-gold-hover);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ===== ACTION CARDS & BOARD ===== */
.landing-action-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.landing-action-cards a {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background-color: var(--ink-800);
  background-image: var(--grad-card);
  color: var(--text-strong);
  box-shadow: var(--bevel-card), var(--shadow-card);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}

.landing-action-cards a:hover {
  border-color: rgba(255, 209, 46, .45);
  box-shadow: var(--bevel-card), var(--glow-gold);
  transform: translateY(-2px);
}

.landing-action-cards a:active {
  transform: translateY(1px) scale(.985);
}

.landing-action-cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}

.landing-action-cards span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.4rem .5rem .75rem;
  background: linear-gradient(rgba(5, 5, 8, 0), rgba(5, 5, 8, .92));
  color: var(--gold-100);
  font-size: .88rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}

.landing-board {
  position: relative;
  overflow: hidden;
  height: 15rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-xl);
  background: var(--ink-800);
  box-shadow: var(--bevel-card), var(--shadow-card);
}

.landing-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(5, 5, 8, 0) 35%, rgba(5, 5, 8, .8));
  pointer-events: none;
}

.landing-board a {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
}

.landing-board a:active {
  transform: translateX(-50%) translateY(1px) scale(.985);
}

/* ===== ABOUT & SPARK ===== */
.landing-about {
  display: grid;
  gap: 1.5rem;
  max-width: 90rem;
  margin: 2rem auto 0;
  padding: 1.35rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background-color: var(--ink-800);
  background-image: var(--grad-card);
  box-shadow: var(--bevel-card), var(--shadow-card);
}

.landing-spark {
  margin: 0 0 .2rem;
  color: var(--gold-400);
  font-size: 1.3rem;
  line-height: 1;
}

.landing-about h2 {
  margin: .3rem 0 .9rem;
  font-size: clamp(1.55rem, 6.5vw, 2.2rem);
}

.landing-about p {
  color: var(--text-body);
  line-height: 1.75;
}

.landing-about-links {
  display: grid;
  gap: .6rem;
  align-content: start;
}

.landing-about-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: var(--ink-750);
  color: var(--text-strong);
  font-size: .95rem;
  font-weight: 800;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.landing-about-links a:hover {
  border-color: rgba(255, 209, 46, .4);
  background: var(--ink-700);
}

.landing-about-links span {
  color: var(--gold-300);
  font-size: 1.05rem;
  line-height: 1;
}

/* ===== CONTENT PAGES ===== */
.landing-content-hero {
  max-width: 66rem;
  padding: .75rem 0 1.75rem;
}

.landing-content-hero h1 {
  margin: .9rem 0 1rem;
  max-width: 22ch;
  font-size: clamp(1.95rem, 8.4vw, 2.9rem);
  letter-spacing: -.04em;
  line-height: 1.06;
  text-transform: uppercase;
}

.landing-content-hero > p:not(.landing-eyebrow) {
  max-width: 52rem;
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.7;
}

.landing-content-note {
  max-width: 52rem;
  margin-top: 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 209, 46, .16);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(255, 209, 46, .07);
  color: var(--text-body);
  line-height: 1.65;
  box-shadow: var(--bevel-card);
}

.landing-content-note strong {
  color: var(--gold-200);
}

.landing-article-section {
  display: grid;
  gap: .9rem;
  max-width: 72rem;
}

.landing-article-card {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background-color: var(--ink-800);
  background-image: var(--grad-card);
  box-shadow: var(--bevel-card);
}

.landing-card-number {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold-400);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.landing-article-card h2,
.landing-article-card h3 {
  margin: 0 0 .55rem;
  color: var(--text-strong);
  font-size: clamp(1.2rem, 4.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.landing-article-card p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.75;
}

.landing-cta-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  max-width: 72rem;
  margin-top: 1.75rem;
  padding: 1.35rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background-color: var(--ink-850);
  background-image: var(--grad-card), radial-gradient(90% 140% at 100% 0%, rgba(247, 181, 0, .16) 0%, rgba(247, 181, 0, 0) 62%);
  box-shadow: var(--bevel-card), var(--shadow-card);
}

.landing-cta-strip h2 {
  margin: .55rem 0 0;
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
}

.landing-cta-strip > a {
  min-height: 3.1rem;
  font-size: .92rem;
}

/* ===== LOGIN ===== */
.landing-login-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 88rem;
}

.landing-login-shell {
  max-width: 42rem;
  padding: 1rem 0 1.5rem;
}

.landing-login-shell > h1 {
  margin: .9rem 0;
  font-size: clamp(1.95rem, 8.4vw, 2.9rem);
  letter-spacing: -.04em;
  line-height: 1.06;
  text-transform: uppercase;
}

.landing-login-shell > .lead {
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.7;
}

.login-card {
  width: 100%;
  max-width: 30rem;
  margin-top: 1.35rem;
  padding: 1.15rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background-color: var(--ink-800);
  background-image: var(--grad-card);
  box-shadow: var(--bevel-card), var(--shadow-card);
}

.login-card label,
label {
  display: block;
  margin-bottom: .45rem;
  color: var(--text-body);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phone-field {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 3.25rem;
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  background: var(--ink-900);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.phone-field:focus-within {
  border-color: var(--gold-400);
  box-shadow: var(--ring-gold);
}

.phone-field span {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 .9rem;
  border-right: 1px solid var(--ink-600);
  background: var(--ink-750);
  color: var(--gold-300);
  font-weight: 900;
  letter-spacing: .02em;
}

.phone-field input,
#phone,
#name,
#otp {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  font-weight: 700;
}

.phone-field input,
#phone {
  padding: 0 .95rem;
}

.phone-field input:focus-visible,
#phone:focus-visible {
  box-shadow: none; /* the wrapper shows the ring */
}

.phone-field input::placeholder,
#name::placeholder,
#otp::placeholder {
  color: var(--text-faint);
  font-weight: 600;
}

/* Standalone OTP-flow inputs (markup currently absent, queried by site.js) */
#name,
#otp {
  min-height: 3.25rem;
  padding: 0 .95rem;
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  background: var(--ink-900);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

#name:focus,
#otp:focus {
  border-color: var(--gold-400);
  box-shadow: var(--ring-gold);
}

#otp {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .38em;
  text-align: center;
}

.otp-step {
  display: grid;
  gap: .75rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ink-700);
}

/* Keep progressive-disclosure sections hidden until the previous step succeeds. */
.otp-step[hidden],
.display-name-step[hidden] {
  display: none;
}

.login-card .primary-action,
.login-card .bypass-login-action,
.otp-step .send-otp-action,
.otp-step .verify-otp-action {
  width: 100%;
  margin-top: .85rem;
  min-height: 3.25rem;
  font-size: .95rem;
}

.otp-step .send-otp-action,
.otp-step .verify-otp-action {
  margin-top: 0;
}

.login-card p {
  margin: .8rem 0 0;
  color: var(--text-body);
  font-size: .92rem;
}

.auth-message {
  min-height: 1.2rem;
  margin: .8rem 0 0;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 800;
}

.auth-message:not(:empty) {
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
}

.auth-message.is-error {
  color: var(--lose);
  background: rgba(255, 90, 90, .1);
}

.auth-message.is-success {
  color: var(--win);
  background: rgba(47, 211, 107, .1);
}

.landing-login-art {
  display: none;
}

.landing-login-art img {
  width: 100%;
  height: min(36rem, 68vh);
  object-fit: cover;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .55));
  mask-image: radial-gradient(ellipse 76% 78% at 50% 50%, rgba(0, 0, 0, 1) 57%, rgba(0, 0, 0, .88) 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 76% 78% at 50% 50%, rgba(0, 0, 0, 1) 57%, rgba(0, 0, 0, .88) 70%, rgba(0, 0, 0, 0) 100%);
}

/* ===== LEGACY SHARED PRIMITIVES =====
   Only reachable through the non-landing branch of layouts/public.blade.php
   (currently unused, since every public route + login gets .landing-body).
   Kept alive, re-skinned dark + gold, so any page that stops opting into the
   landing shell still renders on-theme instead of unstyled. */
.hero,
.page-hero,
.section,
.login-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 2rem 0;
}

.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem 0;
}

.page-hero {
  padding: 2rem 0 1.25rem;
}

.login-shell {
  max-width: 840px;
}

.lead {
  max-width: 700px;
  color: var(--text-body);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .7rem 1.2rem;
  border: 1px solid var(--ink-600);
  border-radius: var(--r-pill);
  background: var(--ink-800);
  color: var(--gold-200);
  font-weight: 800;
}

.secondary-action:hover {
  border-color: rgba(255, 209, 46, .4);
  color: var(--gold-300);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-xl);
  background-color: var(--ink-850);
  background-image: var(--grad-card), radial-gradient(70% 60% at 70% 25%, rgba(247, 181, 0, .22) 0%, rgba(247, 181, 0, 0) 70%);
  box-shadow: var(--bevel-card), var(--shadow-card);
}

.board-orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 209, 46, .22);
  border-radius: 50%;
}

.feature-tile {
  position: absolute;
  width: 10.5rem;
  padding: .9rem;
  border: 1px solid var(--ink-600);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06);
  color: var(--text-strong);
  font-size: .9rem;
  font-weight: 800;
}

.tile-one { top: 16%; left: 8%; }
.tile-two { top: 42%; right: 8%; }
.tile-three { bottom: 14%; left: 18%; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  margin-top: 1.35rem;
}

.info-card,
.article-card,
.cta-strip,
.mini-list div {
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background-color: var(--ink-800);
  background-image: var(--grad-card);
  box-shadow: var(--bevel-card);
}

.info-card {
  padding: 1.15rem;
}

.info-card span {
  display: block;
  margin-bottom: .6rem;
  color: var(--gold-400);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.info-card p,
.article-card p,
.split-section p,
.mini-list span {
  color: var(--text-body);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.mini-list {
  display: grid;
  gap: .75rem;
}

.mini-list div {
  padding: .95rem;
}

.mini-list strong,
.mini-list span {
  display: block;
}

.article-section {
  display: grid;
  gap: .9rem;
  padding-top: 0;
}

.article-card {
  padding: 1.15rem;
}

.cta-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
}

/* ===== FOOTER (renders on every page, landing included) ===== */
.site-footer {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem 1.05rem 1.25rem;
  border-top: 1px solid var(--ink-750);
  background-color: var(--ink-950);
  background-image: var(--grad-card);
  box-shadow: inset 0 1px 0 rgba(255, 209, 46, .14);
}

.footer-brand-col p {
  max-width: 34rem;
  margin: .75rem 0 0;
  color: var(--text-body);
  font-size: .92rem;
  line-height: 1.65;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-strong);
  font-size: 1.02rem;
  font-weight: 900;
}

.footer-logo img {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--ink-850);
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--ink-700);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: .45rem;
}

.footer-col h4 {
  margin: 0 0 .3rem;
  color: var(--gold-200);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 700;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-750);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: .78rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-action-cards a {
    aspect-ratio: 4 / 3;
  }

  .landing-cta-strip,
  .cta-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .landing-cta-strip > a {
    flex: 0 0 auto;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 861px) {
  /* Shell: fixed sidebar replaces the mobile header */
  .landing-mobile-header {
    display: none;
  }

  .landing-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 16rem;
    height: 100vh;
    padding: 1.85rem 1.2rem;
    border-right: 1px solid var(--ink-700);
    background-color: var(--ink-850);
    background-image: var(--grad-card);
    box-shadow: 1px 0 0 rgba(255, 209, 46, .08), var(--shadow-card);
  }

  .landing-sidebar nav {
    margin-top: 2.75rem;
    gap: .35rem;
  }

  .landing-main {
    padding: 2.5rem 3rem 3.5rem calc(16rem + 3rem);
  }

  .landing-body .site-footer {
    grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr);
    padding-left: calc(16rem + 3rem);
    padding-right: 3rem;
  }

  /* Legacy header goes horizontal */
  .site-header {
    padding: .9rem 2.5rem;
  }

  .menu-button {
    display: none;
  }

  .site-nav,
  #site-nav {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: .35rem;
  }

  /* Home */
  .landing-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .85fr);
    gap: 3rem;
    align-items: center;
    min-height: 32rem;
    padding-top: 0;
  }

  .landing-hero::before {
    top: -10rem;
    left: 22%;
    width: min(46rem, 80%);
    height: 34rem;
  }

  .landing-copy h1 {
    font-size: clamp(3rem, 4.8vw, 4.6rem);
    margin: 1.3rem 0 2rem;
  }

  .landing-action-cards {
    display: flex;
    gap: 1.15rem;
  }

  .landing-action-cards a {
    width: 12rem;
    height: 12rem;
    aspect-ratio: auto;
    flex: 0 0 auto;
  }

  .landing-action-cards span {
    font-size: 1rem;
  }

  .landing-board {
    height: 25rem;
  }

  .landing-board a {
    bottom: 1.5rem;
  }

  .landing-about {
    grid-template-columns: 1.5fr .7fr;
    gap: 2rem;
    padding: 2.25rem;
  }

  /* Content */
  .landing-content-hero {
    padding: 1.5rem 0 2.5rem;
  }

  .landing-content-hero h1 {
    font-size: clamp(2.6rem, 4.6vw, 4.1rem);
    max-width: 16ch;
  }

  .landing-content-hero > p:not(.landing-eyebrow) {
    font-size: 1.15rem;
  }

  .landing-article-card {
    padding: 1.85rem;
  }

  .landing-cta-strip {
    padding: 2rem;
  }

  /* Login */
  .landing-login-layout {
    grid-template-columns: minmax(20rem, .9fr) minmax(22rem, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    min-height: calc(100vh - 8rem);
  }

  .landing-login-shell {
    padding: 3rem 0;
  }

  .landing-login-shell > h1 {
    font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  }

  .landing-login-art {
    display: block;
  }

  .login-card {
    max-width: 34rem;
    padding: 1.5rem;
  }

  /* Legacy primitives */
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 3rem;
    padding: 4rem 0;
  }

  .hero-card {
    min-height: 26rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: .85fr 1.15fr;
  }

  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr);
    gap: 2rem;
    padding: 2.25rem 2.5rem 1.25rem;
  }
}

@media (min-width: 1200px) {
  .landing-main {
    padding-right: 4.5rem;
  }

  .landing-copy h1 {
    font-size: clamp(3.4rem, 4.8vw, 5rem);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .landing-action-cards a:hover,
  .landing-action-cards a:active,
  .landing-play:active,
  .landing-cta-strip > a:active,
  .landing-mobile-header a:last-child:active,
  .primary-action:active,
  .bypass-login-action:active,
  .send-otp-action:active,
  .verify-otp-action:active {
    transform: none;
  }

  .landing-board a:active {
    transform: translateX(-50%);
  }
}
