/* =========================================================
   The Deal Dragon — global stylesheet
   Aesthetic: Stripe-meets-Skyrim
   Restraint in type & layout; ornament lives in imagery.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color */
  --ink-0:        #07070d;
  --ink-1:        #0a0a14;
  --ink-2:        #11111c;
  --ink-3:        #1a1a2e;
  --ink-4:        #232340;
  --line:         rgba(212, 160, 23, 0.18);
  --line-strong:  rgba(212, 160, 23, 0.42);

  --text:         #e8e6df;
  --text-mute:    #a8a497;
  --text-dim:     #6e6a5e;

  --gold:         #d4a017;
  --gold-bright:  #f5c542;
  --gold-soft:    rgba(245, 197, 66, 0.12);
  --emerald:      #2da053;
  --violet:       #7e3ff2;
  --crimson:      #cc2936;
  --crimson-hot:  #e8404d;

  /* Type */
  --font-display: "Cinzel", "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Inter", "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (clamp-driven, calm by default) */
  --text-xs:    clamp(0.72rem, 0.69rem + 0.15vw, 0.78rem);
  --text-sm:    clamp(0.84rem, 0.81rem + 0.18vw, 0.92rem);
  --text-base:  clamp(0.98rem, 0.95rem + 0.18vw, 1.06rem);
  --text-lg:    clamp(1.12rem, 1.05rem + 0.32vw, 1.28rem);
  --text-xl:    clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --text-2xl:   clamp(1.9rem, 1.5rem + 1.6vw, 2.85rem);
  --text-3xl:   clamp(2.6rem, 1.9rem + 3vw, 4.5rem);
  --text-hero:  clamp(3rem, 2.1rem + 4.4vw, 6rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 10px 30px -10px rgba(0,0,0,0.65);
  --shadow-gold: 0 0 0 1px rgba(245,197,66,0.22), 0 18px 48px -18px rgba(212,160,23,0.45);

  --container:  1200px;
  --container-wide: 1360px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-bright); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #fff; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--ink-0); }

/* Backgrounds — subtle parchment-grain noise + radial ember glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(212,160,23,0.07), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(126,63,242,0.05), transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-hero); letter-spacing: -0.015em; line-height: 1.04; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); letter-spacing: 0; }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; }
p  { margin: 0 0 var(--space-4); color: var(--text); }
small, .text-sm { font-size: var(--text-sm); color: var(--text-mute); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.display { font-family: var(--font-display); }
.lead { font-size: var(--text-lg); color: var(--text-mute); line-height: 1.55; max-width: 56ch; }

/* Gold gradient text accent for hero words */
.gold-text {
  background: linear-gradient(180deg, #f8dd7a 0%, #d4a017 60%, #a47a0e 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 30px rgba(212,160,23,0.15);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-sm { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }

.grid { display: grid; gap: var(--space-6); }
.grid-3 { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-deals { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 7, 13, 0.92);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.6);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #fff;
}
.brand:hover { color: var(--gold-bright); }
.brand svg { width: 32px; height: 32px; color: var(--gold-bright); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold);
}

.nav-cta { display: inline-flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: var(--radius);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-text { display: none; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-0);
    border-top: 1px solid var(--line);
    padding: var(--space-2) 0;
  }
  .site-header.menu-open .nav-links a {
    padding: var(--space-4) clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink-0);
  box-shadow: 0 0 0 1px rgba(255, 220, 130, 0.4) inset, 0 8px 24px -10px rgba(212,160,23,0.6);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffe488, var(--gold-bright));
  box-shadow: 0 0 0 1px rgba(255, 230, 150, 0.6) inset, 0 14px 36px -12px rgba(245,197,66,0.75);
  color: var(--ink-0);
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 24px -12px rgba(88,101,242,0.55);
}
.btn-discord:hover { background: #6e7bff; color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--gold-bright); color: #fff; background: var(--gold-soft); }

.btn-ghost { background: transparent; color: var(--text-mute); padding: 0.5rem 0.8rem; }
.btn-ghost:hover { color: #fff; }

.btn-sm { padding: 0.55rem 1rem; font-size: var(--text-xs); }
.btn-lg { padding: 1.05rem 1.7rem; font-size: var(--text-base); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink-0) 0%, rgba(7,7,13,0.6) 35%, rgba(7,7,13,0.2) 55%, transparent 80%),
    linear-gradient(180deg, rgba(7,7,13,0.3) 0%, transparent 30%, var(--ink-1) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner { padding-block: clamp(var(--space-16), 12vw, var(--space-32)); }
.hero h1 { max-width: 18ch; margin-bottom: var(--space-6); }
.hero .lead { margin-bottom: var(--space-8); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Torch flicker — applied to a single decorative dot */
.torch {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd073 0%, rgba(255,140,40,0.6) 40%, transparent 70%);
  filter: blur(2px);
  animation: torch 3.5s ease-in-out infinite;
  pointer-events: none;
}
.torch-1 { top: 18%; left: 6%; }
.torch-2 { top: 72%; left: 92%; animation-delay: -1.2s; animation-duration: 4.4s; }
@keyframes torch {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  35%      { opacity: 0.55; transform: scale(0.94); }
  60%      { opacity: 0.92; transform: scale(1.06); }
  78%      { opacity: 0.7;  transform: scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .torch { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section heading block ---------- */
.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-12);
  text-align: center;
}
.section-head.left { text-align: left; margin-inline: 0; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head p { color: var(--text-mute); font-size: var(--text-lg); margin: 0 auto; max-width: 60ch; }
.section-head.left p { margin: 0; }

.divider-rune {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3);
  margin: 0 auto var(--space-6);
  color: var(--gold);
}
.divider-rune::before, .divider-rune::after {
  content: "";
  height: 1px;
  width: clamp(40px, 8vw, 80px);
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.divider-rune svg { width: 16px; height: 16px; }

/* ---------- Deal cards ---------- */
.deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.deal-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-gold);
}
.deal-card__media {
  aspect-ratio: 1 / 1;
  position: relative;
  background: var(--ink-3);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.deal-card__media-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: rgba(245, 197, 66, 0.85);
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
/* Gradient backgrounds for placeholder card art */
.bg-gaming { background: radial-gradient(circle at 30% 30%, rgba(45,160,83,0.35), transparent 60%), linear-gradient(135deg, #1a2e1f, #0e1a13); }
.bg-pokemon { background: radial-gradient(circle at 70% 30%, rgba(204,41,54,0.35), transparent 60%), linear-gradient(135deg, #2a1418, #14080b); }
.bg-retro { background: radial-gradient(circle at 40% 60%, rgba(245,197,66,0.28), transparent 60%), linear-gradient(135deg, #2a2310, #14110a); }
.bg-slabs { background: radial-gradient(circle at 60% 40%, rgba(126,63,242,0.35), transparent 60%), linear-gradient(135deg, #1c1432, #110b1f); }
.bg-needoh { background: radial-gradient(circle at 50% 50%, rgba(245,197,66,0.18), transparent 60%), linear-gradient(135deg, #1f1a14, #100c08); }

.lane-chip {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.32rem 0.65rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(7,7,13,0.78);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.lane-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); }
.lane-chip.gaming .dot { background: var(--emerald); }
.lane-chip.pokemon .dot { background: var(--crimson-hot); }
.lane-chip.retro .dot  { background: var(--gold-bright); }
.lane-chip.slabs .dot  { background: var(--violet); }
.lane-chip.needoh .dot { background: #ffb84a; }

.discount-flag {
  position: absolute; top: 12px; right: 12px;
  padding: 0.3rem 0.55rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(204,41,54,0.7);
}

.deal-card__body {
  padding: var(--space-5, 1.15rem) var(--space-5, 1.15rem) var(--space-6);
  display: flex; flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.deal-card h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}
.deal-card__hook { color: var(--text-mute); font-size: var(--text-sm); margin: 0; }
.deal-card__price {
  display: flex; align-items: baseline; gap: var(--space-2);
  font-family: var(--font-display);
}
.deal-card__price .now {
  font-size: 1.5rem;
  color: var(--gold-bright);
  font-weight: 700;
}
.deal-card__price .was {
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-decoration: line-through;
}
.deal-card__cta {
  margin-top: auto;
}

/* ---------- Value props "Why" section ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}
.why-card {
  padding: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26,26,46,0.55), rgba(10,10,20,0.55));
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--gold-soft), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.why-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(245,197,66,0.18), rgba(212,160,23,0.06));
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  margin-bottom: var(--space-4);
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}
.why-card p { color: var(--text-mute); margin: 0; }

/* ---------- Hoard community split section ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.split-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-3);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.member-stat {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.5rem 0.85rem;
  background: rgba(245,197,66,0.08);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--space-6);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(45,160,83,0.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,160,83,0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(45,160,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,160,83,0); }
}

.social-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.social-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7,7,13,0.6);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 500;
}
.social-pill:hover { border-color: var(--gold-bright); color: #fff; background: var(--gold-soft); }
.social-pill svg { width: 16px; height: 16px; }

/* ---------- Newsletter ---------- */
.newsletter {
  margin-top: var(--space-12);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  background:
    radial-gradient(circle at 80% 20%, rgba(126,63,242,0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(212,160,23,0.18), transparent 50%),
    linear-gradient(180deg, rgba(26,26,46,0.6), rgba(10,10,20,0.85));
  text-align: center;
}
.newsletter h2 { margin-bottom: var(--space-3); }
.newsletter p { color: var(--text-mute); margin: 0 auto var(--space-6); max-width: 52ch; }
.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  background: rgba(7,7,13,0.85);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s var(--ease);
}
.newsletter-form input[type="email"]:focus { border-color: var(--gold-bright); }
.newsletter-form input::placeholder { color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-0);
  border-top: 1px solid var(--line);
  padding-block: var(--space-16) var(--space-8);
  margin-top: var(--space-24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h5 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 var(--space-4);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-grid a { color: var(--text-mute); font-size: var(--text-sm); }
.footer-grid a:hover { color: #fff; }
.footer-tagline { color: var(--text-mute); font-size: var(--text-sm); margin-top: var(--space-3); max-width: 32ch; }

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs); color: var(--text-dim);
}
.disclosure {
  background: rgba(7,7,13,0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-mute);
  line-height: 1.55;
}

/* ---------- Filter bar (deals page) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-12);
}
.filter-chip {
  padding: 0.55rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-mute);
  transition: all .2s var(--ease);
}
.filter-chip:hover { color: #fff; border-color: var(--line-strong); }
.filter-chip.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.load-more {
  display: flex; justify-content: center; margin-top: var(--space-12);
}

/* ---------- About: channels + how we make money ---------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.channel-card {
  padding: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-2), rgba(7,7,13,0.6));
  display: flex; flex-direction: column; gap: var(--space-3);
}
.channel-card .crest {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(245,197,66,0.16), rgba(126,63,242,0.06));
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  margin-bottom: var(--space-2);
}
.channel-card h3 { font-size: 1.4rem; margin: 0; }
.channel-card .handle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.channel-card p { color: var(--text-mute); margin: 0; }

.disclosure-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  background: linear-gradient(180deg, var(--ink-2), rgba(7,7,13,0.6));
}

/* ---------- Join page tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.tier-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--ink-2), rgba(7,7,13,0.6));
  overflow: hidden;
}
.tier-card.is-premium {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 20% 0%, rgba(212,160,23,0.18), transparent 50%),
    linear-gradient(180deg, var(--ink-3), rgba(7,7,13,0.7));
}
.tier-card .tier-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.tier-card .price-row {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #fff;
  margin: var(--space-2) 0 var(--space-4);
}
.tier-card .price-row small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-mute);
  font-weight: 500;
  margin-left: var(--space-2);
}
.tier-card ul {
  list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.tier-card li {
  display: flex; gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
}
.tier-card li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--gold-bright);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
}
.tier-card .cta-block { margin-top: auto; }

.locked {
  position: relative;
  opacity: 0.92;
}
.coming-soon-badge {
  position: absolute; top: var(--space-6); right: var(--space-6);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  border: 1px solid var(--violet);
  background: rgba(126,63,242,0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-block: var(--space-24);
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

/* ---------- Reveal animation ----------
   Default state: VISIBLE. JS adds .js-reveal to hide and animate.
   This means no-JS users (and crawlers/screenshot tools) always see content. */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted       { color: var(--text-mute); }
.mt-0        { margin-top: 0; }
.mb-0        { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
