/* ============================================================
   r/MemeExchangeCommunism — Unified Stylesheet
   Shared across: index.html · giveaway.html · eula.html
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
──────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --orange:        #ff4500;
  --orange-h:      #e03d00;   /* hover */
  --orange-soft:   rgba(255, 69, 0, 0.10);
  --orange-line:   rgba(255, 69, 0, 0.22);

  /* Accent palette */
  --gold:          #f5c518;
  --green:         #22c997;
  --purple:        #a78bfa;
  --amber:         #f59e0b;

  /* Radius & motion */
  --r:             12px;
  --r-sm:          8px;
  --ease:          cubic-bezier(.22, 1, .36, 1);
  --ease-back:     cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Dark theme (default) ── */
[data-theme="dark"],
.theme-dark {
  --bg:    #0a0a0b;
  --bg1:   #0f0f11;
  --bg2:   #141416;
  --bg3:   #1a1a1e;
  --bg4:   #222228;
  --line:  rgba(255, 255, 255, 0.06);
  --line2: rgba(255, 255, 255, 0.03);
  --tx:    #f0f0f4;
  --tx2:   rgba(240, 240, 244, 0.52);
  --tx3:   rgba(240, 240, 244, 0.26);
  --tx4:   rgba(240, 240, 244, 0.10);
  --sh:    0 1px 2px rgba(0,0,0,.4), 0 8px 32px rgba(0,0,0,.25);
  --sh-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 64px rgba(0,0,0,.35);
  --glow:  rgba(255, 69, 0, 0.16);
}

/* ── Light theme ── */
[data-theme="light"],
.theme-light {
  --bg:    #fafafa;
  --bg1:   #f5f5f7;
  --bg2:   #ffffff;
  --bg3:   #f0f0f3;
  --bg4:   #e8e8ec;
  --line:  rgba(0, 0, 0, 0.07);
  --line2: rgba(0, 0, 0, 0.04);
  --tx:    #111113;
  --tx2:   rgba(17, 17, 19, 0.52);
  --tx3:   rgba(17, 17, 19, 0.28);
  --tx4:   rgba(17, 17, 19, 0.10);
  --sh:    0 1px 2px rgba(0,0,0,.05), 0 8px 32px rgba(0,0,0,.06);
  --sh-lg: 0 2px 4px rgba(0,0,0,.06), 0 24px 64px rgba(0,0,0,.08);
  --glow:  rgba(255, 69, 0, 0.08);
}

/* ── Warm/giveaway theme (used on giveaway.html) ── */
.theme-warm {
  --bg:    #f4ede6;
  --bg1:   #ede4dc;
  --bg2:   #ffffff;
  --bg3:   #faf7f5;
  --bg4:   #f0ebe6;
  --line:  rgba(0, 0, 0, 0.08);
  --line2: rgba(0, 0, 0, 0.04);
  --tx:    #1c1814;
  --tx2:   rgba(28, 24, 20, 0.55);
  --tx3:   rgba(28, 24, 20, 0.32);
  --sh:    0 1px 2px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.07);
  --sh-lg: 0 2px 4px rgba(0,0,0,.07), 0 24px 64px rgba(0,0,0,.09);
}

/* ────────────────────────────────────────────────────────────
   2. BASE RESET
──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: 'Geist', 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--orange);
  color: #fff;
}

::-webkit-scrollbar          { width: 4px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: var(--line); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ────────────────────────────────────────────────────────────
   3. LAYOUT PRIMITIVES
──────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ────────────────────────────────────────────────────────────
   4. NAVIGATION (shared across all pages)
──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 58px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 640px) { .nav-inner { padding: 0 20px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--tx);
  letter-spacing: -0.2px;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-back);
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-10deg) scale(1.1); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
}
@media (max-width: 700px) { .nav-center { display: none; } }

.nav-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx3);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
}
.nav-item:hover { color: var(--tx); background: var(--bg3); }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* Nav buttons */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--tx2);
  background: var(--bg2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-btn:hover {
  border-color: var(--orange-line);
  color: var(--orange);
  background: var(--orange-soft);
}
.nav-btn.primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.nav-btn.primary:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,69,0,.35);
}

/* Theme toggle button */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--tx3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  color: var(--tx);
  border-color: var(--orange-line);
  background: var(--orange-soft);
}

/* ────────────────────────────────────────────────────────────
   5. TYPOGRAPHY HELPERS
──────────────────────────────────────────────────────────── */
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}

.heading {
  font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--tx);
  margin-bottom: 14px;
}
.heading em { color: var(--orange); font-style: italic; }

.serif-heading {
  font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  font-weight: 700;
}

.subhead {
  font-size: 16px;
  font-weight: 300;
  color: var(--tx2);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ────────────────────────────────────────────────────────────
   6. BUTTONS
──────────────────────────────────────────────────────────── */
.btn,
.hero-cta,
.bsub {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  font-family: inherit;
}

.btn-solid,
.hero-cta.solid {
  background: var(--orange);
  color: #fff;
}
.btn-solid:hover,
.hero-cta.solid:hover {
  background: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,69,0,.38);
}

.btn-outline,
.hero-cta.outline {
  background: transparent;
  color: var(--tx);
  border: 1px solid var(--line);
}
.btn-outline:hover,
.hero-cta.outline:hover {
  border-color: var(--orange-line);
  color: var(--orange);
  background: var(--orange-soft);
}

/* Giveaway submit button */
.bsub {
  background: var(--orange);
  color: #fff;
  padding: 13px clamp(1.5rem, 4vw, 2.2rem);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 3px 16px var(--orange-soft);
}
.bsub:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255,69,0,.38); }
.bsub:active { transform: translateY(0); }
.bsub.loading { opacity: 0.75; pointer-events: none; }

/* Clear button */
.bclr {
  background: none;
  border: none;
  color: var(--tx3);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

/* ────────────────────────────────────────────────────────────
   7. CARDS (general)
──────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.card:hover {
  border-color: var(--orange-line);
  transform: translateY(-2px);
  box-shadow: var(--sh), 0 0 0 1px var(--orange-line);
}

.glass-card {
  background: rgba(21, 25, 28, 0.8);
  border: 1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  border-radius: var(--r);
}

/* ────────────────────────────────────────────────────────────
   8. STATS BAR
──────────────────────────────────────────────────────────── */
.stats-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg1);
  transition: background 0.35s;
}

.stats-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 640px) {
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
}

/* Stats grid used on giveaway page */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:nth-child(1),
  .stats-grid .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stats-grid .stat:nth-child(2) { border-right: none; }
}

.stat {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  position: relative;
  cursor: default;
  transition: background 0.2s;
  overflow: hidden;
  background: var(--bg2);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.stat:hover { background: var(--bg3); }
.stat:hover::after { transform: scaleX(1); }

.stat-icon { color: var(--orange); margin-bottom: 10px; opacity: 0.85; }
.si        { font-size: 1rem; margin-bottom: 5px; opacity: 0.65; }

.stat-n,
.sv {
  font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 36px);
  color: var(--tx);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-l,
.sl {
  font-size: 11px;
  font-weight: 500;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ────────────────────────────────────────────────────────────
   9. SECTION SCAFFOLDING
──────────────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }

@media (max-width: 640px) { .section { padding: 60px 0; } }

/* ────────────────────────────────────────────────────────────
   10. SCROLL REVEAL ANIMATIONS
──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.in { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right.in { opacity: 1; transform: none; }

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.stagger.in > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0.04s; }
.stagger.in > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.08s; }
.stagger.in > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger.in > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.16s; }
.stagger.in > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.20s; }
.stagger.in > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.in > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: 0.28s; }
.stagger.in > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: 0.32s; }
.stagger.in > *:nth-child(9)  { opacity: 1; transform: none; transition-delay: 0.36s; }
.stagger.in > *:nth-child(n+10){ opacity: 1; transform: none; transition-delay: 0.40s; }

/* Giveaway question reveal */
.q {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.q.vis { opacity: 1; transform: none; }

/* ────────────────────────────────────────────────────────────
   11. CHIP / TAG SYSTEM
──────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid;
  margin-top: 12px;
}

.chip-milestone { color: var(--gold);   border-color: rgba(245,197,24,.3);  background: rgba(245,197,24,.08); }
.chip-rank      { color: var(--purple); border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.08); }
.chip-launch    { color: var(--green);  border-color: rgba(34,201,151,.3);  background: rgba(34,201,151,.08); }
.chip-origin    { color: var(--orange); border-color: var(--orange-line);   background: var(--orange-soft); }

/* Badge pill (hero eyebrow) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
}

/* Amendment tag (rules section) */
.amendment-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 4px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  color: var(--amber);
}

/* Footer badges */
.footer-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid;
}
.footer-badge.top50   { color: var(--purple); border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.08); }
.footer-badge.founded { color: var(--tx3);    border-color: var(--line); }

/* ────────────────────────────────────────────────────────────
   12. FORM ELEMENTS (giveaway.html)
──────────────────────────────────────────────────────────── */
/* Progress bar */
.pwrap {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  border-bottom: none;
  padding: 1.1rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ptrack {
  flex: 1;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.pfill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.ptxt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  min-width: 58px;
  text-align: right;
}

/* Form header bar */
.fhead {
  background: var(--orange);
  padding: clamp(1.4rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}
.fhead::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.fhead h2 {
  font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: #fff;
  margin-bottom: 0.35rem;
  position: relative;
}
.fhead p  { font-size: 0.85rem; color: rgba(255,255,255,.78); position: relative; }

/* Form body */
.fbody {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden;
}

/* Question rows */
.q {
  padding: clamp(1.2rem, 3vw, 1.7rem) clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.q:last-of-type { border-bottom: none; }

.ql {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  color: var(--tx);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.req { color: var(--orange); }

/* Text inputs & textareas */
.field {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--tx);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field::placeholder { color: var(--tx3); }
.field:focus {
  border-color: var(--orange);
  background: var(--bg2);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
textarea.field { min-height: 90px; resize: vertical; line-height: 1.55; }

/* Radio / checkbox options */
.opts { display: flex; flex-direction: column; gap: 7px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--bg3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  user-select: none;
}
.opt:hover { border-color: rgba(200,191,184,.6); background: var(--bg2); }
.opt:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 0 0 3px rgba(255,69,0,.08);
}
.opt input  { width: 17px; height: 17px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; }
.otxt       { font-size: 0.9rem; font-weight: 500; }
.on         { color: var(--orange); font-weight: 700; margin-right: 2px; }

/* EULA notice box inside form */
.eulabox {
  background: var(--orange-soft);
  border: 1.5px solid var(--orange-line);
  border-radius: 9px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.eulabox p { font-size: 0.83rem; color: var(--tx2); margin-bottom: 0.4rem; line-height: 1.5; }
.eulabox a { color: var(--orange); text-decoration: none; font-weight: 600; }

/* Submit bar */
.sbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.4rem clamp(1.2rem, 3vw, 2rem);
  background: var(--bg1);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .sbar { flex-direction: column-reverse; align-items: stretch; }
  .bsub { justify-content: center; width: 100%; }
}

/* Validation error */
.errmsg {
  display: none;
  background: rgba(192,57,43,.08);
  border: 1.5px solid rgba(192,57,43,.25);
  border-radius: 9px;
  padding: 0.9rem 1.2rem;
  margin: 0 clamp(1.2rem, 3vw, 2rem) 1rem;
  font-size: 0.85rem;
  color: #c0392b;
  line-height: 1.5;
}

/* Spinner */
.spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bdot { width: 8px; height: 8px; background: rgba(255,255,255,.7); border-radius: 50%; }

/* Success state */
#success {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(2rem, 6vw, 4rem) 2rem;
  text-align: center;
}
.sring {
  width: 64px; height: 64px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem;
  font-size: 1.6rem;
}
#success h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}
#success p { color: var(--tx2); font-size: 0.93rem; line-height: 1.6; }

/* ────────────────────────────────────────────────────────────
   13. FAQ ACCORDION
──────────────────────────────────────────────────────────── */
.faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) { .faq-cols { grid-template-columns: 1fr; } }

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover,
.faq-item.open { border-color: var(--orange-line); }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--tx);
  transition: color 0.2s;
}
.faq-btn:hover,
.faq-item.open .faq-btn { color: var(--orange); }

.faq-chev {
  width: 17px; height: 17px;
  color: var(--tx3);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), color 0.2s;
}
.faq-item.open .faq-chev { transform: rotate(180deg); color: var(--orange); }

.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.38s var(--ease); }
.faq-item.open .faq-body { max-height: 500px; }

.faq-inner {
  padding: 14px 18px 16px;
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.75;
  font-weight: 300;
  border-top: 1px solid var(--line2);
}
.faq-inner a { color: var(--orange); }
.faq-inner a:hover { text-decoration: underline; }

/* ────────────────────────────────────────────────────────────
   14. SOCIAL CARDS
──────────────────────────────────────────────────────────── */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 900px) { .socials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .socials-grid { grid-template-columns: 1fr; } }

.soc-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.soc-card::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, var(--orange-soft), transparent);
  transition: opacity 0.3s;
}
.soc-card:hover { border-color: var(--orange-line); transform: translateY(-3px); box-shadow: var(--sh); }
.soc-card:hover::after { opacity: 1; }

.soc-card-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx3);
  transition: all 0.25s;
  position: relative; z-index: 1;
}
.soc-card:hover .soc-card-icon { background: var(--orange); border-color: var(--orange); color: #fff; }

.soc-card-name   { font-weight: 700; font-size: 14px; color: var(--tx); position: relative; z-index: 1; }
.soc-card-handle { font-size: 12px; color: var(--tx3); font-weight: 400; position: relative; z-index: 1; font-family: monospace; }

/* Email contact row */
.email-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.email-row:hover { border-color: var(--orange-line); }
.email-row svg { color: var(--tx3); flex-shrink: 0; }
.email-row-label { font-size: 12px; color: var(--tx3); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.email-row-val   { font-size: 14px; color: var(--tx2); font-family: monospace; }
.email-row a { color: inherit; text-decoration: none; }
.email-row a:hover { color: var(--orange); }

/* ────────────────────────────────────────────────────────────
   15. FOOTER (shared)
──────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg1);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  transition: background 0.35s var(--ease);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px)  { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px)  { .footer-inner { grid-template-columns: 1fr; gap: 28px; } .footer { padding: 40px 0 32px; } }
@media (max-width: 640px)  { .footer-inner { padding: 0 20px; } }

.footer-brand { font-weight: 800; font-size: 16px; color: var(--tx); margin-bottom: 10px; letter-spacing: -0.2px; }
.footer-brand em {
  color: var(--orange);
  font-style: italic;
  font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
}
.footer-tagline { font-size: 13px; color: var(--tx3); line-height: 1.7; font-weight: 300; max-width: 240px; margin-bottom: 16px; }
.footer-founded { font-size: 11px; color: var(--tx3); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.footer-col h5 {
  font-weight: 700;
  font-size: 12px;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--tx2); text-decoration: none; transition: color 0.18s; font-weight: 400; }
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 640px) { .footer-bottom { padding: 20px 20px 0; } }
.footer-copy   { font-size: 12px; color: var(--tx3); font-weight: 300; }
.footer-badges { display: flex; gap: 8px; }

/* EULA-page footer */
.eula-footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--tx3);
  font-size: 0.875rem;
}
.eula-footer .brand-text { font-style: italic; font-weight: 600; color: var(--orange); }

/* ────────────────────────────────────────────────────────────
   16. EULA / LEGAL PAGE STYLES (eula.html)
──────────────────────────────────────────────────────────── */
/* Grid background texture for the EULA page */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Legal content area */
.legal-section h2 {
  font-family: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--tx);
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
}
.legal-section p,
.legal-section li { color: var(--tx2); margin-bottom: 1rem; }

/* Meta grid inside legal card */
.legal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .legal-meta-grid { grid-template-columns: 1fr; gap: 1rem; } }

.legal-meta h3 { color: var(--tx); font-weight: 600; margin-bottom: 0.5rem; }
.legal-meta p  { font-size: 0.875rem; color: var(--tx2); }

/* Notice box inside legal content */
.legal-notice {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: 0.75rem;
}
.legal-notice .notice-label {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.legal-notice p { font-size: 0.875rem; color: var(--tx); margin: 0; }
.legal-notice a { color: var(--orange); text-decoration: underline; }