/* =========================================================
   5 Dragons Hub — Vaporwave / Synthwave Theme
   Space Mono · #87ff71 / #01cdfe / #192617
   ========================================================= */


/* ---------- Reset & Custom Properties ------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #87ff71;
  --cyan:    #01cdfe;
  --ink:     #192617;
  --ink-mid: #1e2e1a;
  --ink-lt:  #253320;
  --white:   #f0ffe8;
  --muted:   #7aab6e;
  --pink:    #ff71ce;
  --purple:  #b967ff;
  --grad-hero: linear-gradient(160deg, #2d0057 0%, #0d2b45 40%, #192617 100%);
  --grad-sunset: linear-gradient(180deg, #ff71ce 0%, #01cdfe 45%, #b967ff 100%);
  --font-main: 'Space Mono', 'Courier New', Courier, monospace;
  --radius-card: 28px;
  --shadow-card: 0 4px 32px rgba(1,205,254,0.15), 0 1px 6px rgba(0,0,0,0.5);
  --header-h: 64px;
  --max-read: 780px;
  --col-side: 220px;
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--ink);
  color: var(--white);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Utilities ----------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Scrollbar ----------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ---------- Page Wrapper -------------------------------- */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(25, 38, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135, 255, 113, 0.18);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Prevent header from overflowing on narrow screens */
  min-width: 0;
  width: 100%;
}

/* Brand — tap target enlarged via padding, visual stays 36×36 */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px;
  margin: -4px;
  min-width: 44px;
  min-height: 44px;
}
.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--green);
}
.brand-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  text-shadow: none;
}

/* Desktop nav */
.primary-nav {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.primary-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav ol::-webkit-scrollbar { display: none; }
.primary-nav li { flex-shrink: 0; }
.primary-nav li a {
  display: block;
  padding: 0 0.7rem;
  line-height: var(--header-h);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}
.primary-nav li a:hover,
.primary-nav li a[aria-current="page"] {
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}

/* CTA buttons */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.cta-signup {
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--green);
  box-shadow: 0 0 12px rgba(135,255,113,0.4);
}
.cta-signup:hover {
  background: transparent;
  color: var(--green);
}
.cta-login {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.cta-login:hover {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 12px rgba(1,205,254,0.4);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--muted);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle .toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO — HOME
   ========================================================= */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--grad-hero);
  /* Prevent hero content from causing horizontal scroll */
  max-width: 100%;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

/* Scanlines effect */
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Retro grid */
.hero-grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background-image:
    linear-gradient(rgba(1,205,254,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(40deg) scaleY(2.5);
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 600px;
  /* Use percentage padding on mobile to avoid overflow */
  padding: 4rem 3rem 4rem 2rem;
  margin-left: auto;
  /* Ensure it doesn't push past the viewport */
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.25em 0.75em;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px var(--cyan);
}
.hero-h1 {
  font-size: clamp(1.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
  text-shadow: 0 0 30px rgba(135,255,113,0.6), 0 0 60px rgba(135,255,113,0.3);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  /* Prevent long words from overflowing */
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--white);
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.75rem;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(135,255,113,0.5);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.hero-bg-numeral {
  position: absolute;
  z-index: 0;
  bottom: -0.15em;
  left: -0.1em;
  font-size: clamp(8rem, 22vw, 28rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135,255,113,0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  /* Keep it from causing horizontal scroll */
  overflow: hidden;
}
.hero-bg-numeral.small {
  font-size: clamp(4rem, 12vw, 14rem);
  right: 2rem;
  left: auto;
  bottom: -0.1em;
  -webkit-text-stroke: 1px rgba(1,205,254,0.12);
}

/* =========================================================
   INNER HERO STRIP
   ========================================================= */
.inner-hero-strip {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--grad-hero);
  border-bottom: 1px solid rgba(135,255,113,0.12);
  max-width: 100%;
}

.inner-hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.inner-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.inner-hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d0057 0%, #0d2b45 60%, #192617 100%);
  z-index: 0;
}

.inner-hero-copy {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem 2.5rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  /* Prevent long titles from overflowing */
  overflow-wrap: break-word;
  word-break: break-word;
}
.inner-hero-copy h1 {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(135,255,113,0.5);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* =========================================================
   BYLINE
   ========================================================= */
.byline {
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}
.byline time { color: var(--muted); }

.stage-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.stage-awareness  { background: rgba(1,205,254,0.15); color: var(--cyan); border: 1px solid var(--cyan); }
.stage-consideration { background: rgba(135,255,113,0.15); color: var(--green); border: 1px solid var(--green); }
.stage-decision   { background: rgba(255,113,206,0.15); color: var(--pink); border: 1px solid var(--pink); }

/* =========================================================
   MAIN CONTENT SECTIONS
   ========================================================= */
#main-content {
  flex: 1;
  /* Prevent children from causing horizontal overflow */
  overflow-x: hidden;
}

/* content-section: sidebar-left + content-main */
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  /* Prevent overflow */
  overflow-x: hidden;
}

/* Sidebar left */
.sidebar-left {
  width: var(--col-side);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: flex-start;
}
.sidebar-inner {
  background: var(--ink-mid);
  border: 1px solid rgba(135,255,113,0.14);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.sidebar-heading {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
  text-shadow: 0 0 6px rgba(1,205,254,0.4);
}
.sidebar-nav {
  list-style: none;
  margin-top: 0.75rem;
}
.sidebar-nav li {
  border-bottom: 1px solid rgba(135,255,113,0.08);
}
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.4;
  min-height: 44px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sidebar-nav a:hover { color: var(--green); }

/* Content main */
.content-main {
  flex: 1;
  min-width: 0;
  /* Critical: prevents flex child from overflowing */
  overflow-x: hidden;
}

/* =========================================================
   BODY CONTENT TYPOGRAPHY
   ========================================================= */
.body-content {
  max-width: var(--max-read);
  overflow-x: hidden;
}
.body-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
  margin: 2.5rem 0 0.3rem;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(135,255,113,0.25);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}
.body-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 2rem 0 0.5rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}
.body-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  margin: 1.5rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.body-content p {
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: break-word;
}
.body-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(1,205,254,0.4);
  text-underline-offset: 3px;
  transition: color var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}
.body-content a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}
.body-content ul, .body-content ol {
  margin: 0.5rem 0 1.25rem 1.5rem;
  color: var(--white);
}
.body-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}
.body-content strong { color: var(--green); font-weight: 700; }
.body-content em { color: var(--pink); font-style: italic; }
.body-content blockquote {
  border-left: 3px solid var(--cyan);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(1,205,254,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--white);
  font-style: italic;
  overflow-wrap: break-word;
}
.body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Tables scroll within their container, not the page */
  max-width: 100%;
}
.body-content th {
  background: var(--ink-mid);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(135,255,113,0.15);
  text-align: left;
}
.body-content td {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(135,255,113,0.08);
  color: var(--white);
  vertical-align: top;
}
.body-content tr:nth-child(even) td { background: rgba(135,255,113,0.03); }
.body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(1,205,254,0.1);
}

/* Heading + subtitle pattern */
.body-content h2 + p.subtitle,
.faq-intro h2 + p.subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  margin-top: 0.25rem;
}

/* =========================================================
   SUBTITLE SUBHEADING (global)
   ========================================================= */
p.subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* =========================================================
   CARDS SECTION (home)
   ========================================================= */
.cards-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  overflow-x: hidden;
}
.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 12px rgba(135,255,113,0.3);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.section-deco {
  margin: 0 0 1.25rem;
}
.deco-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--green);
}

.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-grid > li > article.card {
  background: var(--ink-mid);
  border: 1px solid rgba(135,255,113,0.12);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.card-grid > li > article.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(135,255,113,0.2), 0 2px 8px rgba(0,0,0,0.5);
}
.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}
.card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.card h3 a:hover { color: var(--cyan); }
.card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}
.card-date {
  font-size: 0.72rem;
  color: rgba(135,255,113,0.45);
  letter-spacing: 0.05em;
}
.read-more {
  font-size: 0.75rem;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.read-more:hover { color: var(--green); }

/* =========================================================
   ARTICLE FOOTER
   ========================================================= */
.article-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(135,255,113,0.1);
}
.updated-note {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(135,255,113,0.08);
}
.updated-note time { color: var(--cyan); }

/* =========================================================
   FAQ LAYOUT
   ========================================================= */
.faq-hero {
  background: linear-gradient(140deg, #0d2b45 0%, #2d0057 60%, #192617 100%);
  justify-content: flex-start;
}
.faq-intro {
  margin-bottom: 2.5rem;
}
.faq-intro h2 {
  font-size: 1.3rem;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(1,205,254,0.35);
  margin-bottom: 0.25rem;
}
.faq-body {
  counter-reset: faq;
}

/* =========================================================
   AUTHOR SECTION (about page)
   ========================================================= */
.author-section {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--ink-mid);
  border: 1px solid rgba(1,205,254,0.18);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.author-fig {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.author-glyph {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-main);
}
.author-body { flex: 1; min-width: 0; }
.author-name {
  font-size: 1.15rem;
  color: var(--green);
  text-shadow: 0 0 8px rgba(135,255,113,0.3);
  margin-bottom: 0.25rem;
  overflow-wrap: break-word;
}
.author-credentials {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}
.author-bio {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.7;
  overflow-wrap: break-word;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-mid);
  border-top: 1px solid rgba(135,255,113,0.12);
  margin-top: auto;
  overflow-x: hidden;
}

/* Footer CTA block */
.footer-cta-block {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(135,255,113,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(135,255,113,0.08);
}
.footer-cta-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 16px rgba(135,255,113,0.4);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.footer-cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer body */
.footer-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.footer-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
  transition: color var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}
.footer-nav a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(135,255,113,0.08);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(135,255,113,0.35);
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
}
.footer-trust {
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.footer-trust a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
  transition: color var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}
.footer-trust a:hover { color: var(--green); }

/* Responsible Gambling notice */
.rg-notice {
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(1,205,254,0.1);
  padding: 1rem 1.5rem;
  text-align: center;
}
.rg-notice p {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .card-grid > li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .card-grid.is-visible > li {
    opacity: 1;
    transform: none;
  }
  .card-grid.is-visible > li:nth-child(2) { transition-delay: 0.08s; }
  .card-grid.is-visible > li:nth-child(3) { transition-delay: 0.16s; }
  .card-grid.is-visible > li:nth-child(4) { transition-delay: 0.24s; }
  .card-grid.is-visible > li:nth-child(5) { transition-delay: 0.32s; }
  .card-grid.is-visible > li:nth-child(6) { transition-delay: 0.40s; }
}

/* =========================================================
   GLITCH ANIMATION (hero h1)
   ========================================================= */
@keyframes glitch-shift {
  0%   { clip-path: inset(10% 0 80% 0); transform: translate(-4px, 0); }
  20%  { clip-path: inset(60% 0 20% 0); transform: translate(4px, 0); }
  40%  { clip-path: inset(30% 0 50% 0); transform: translate(-2px, 0); }
  60%  { clip-path: inset(80% 0 5%  0); transform: translate(2px, 0); }
  80%  { clip-path: inset(5%  0 70% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(10% 0 80% 0); transform: translate(0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-h1 {
    position: relative;
  }
  .hero-h1::before,
  .hero-h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    opacity: 0;
  }
  .hero-home:hover .hero-h1::before {
    color: var(--pink);
    opacity: 0.7;
    animation: glitch-shift 0.4s steps(1) infinite;
    text-shadow: none;
  }
  .hero-home:hover .hero-h1::after {
    color: var(--cyan);
    opacity: 0.5;
    animation: glitch-shift 0.4s steps(1) infinite reverse;
    text-shadow: none;
  }
}

/* =========================================================
   RESPONSIVE — TABLET ≤1024px
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --col-side: 180px;
  }
  .primary-nav li a {
    padding: 0 0.5rem;
    font-size: 0.68rem;
  }
  .hero-copy {
    padding: 3rem 2rem;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE ≤768px
   ========================================================= */
@media (max-width: 768px) {
  /* Show toggle, hide nav by default */
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(25,38,23,0.98);
    border-bottom: 1px solid rgba(135,255,113,0.18);
    padding: 0.5rem 0 1rem;
    z-index: 99;
    /* Prevent nav dropdown from causing horizontal scroll */
    overflow-x: hidden;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ol {
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
  }
  .primary-nav li {
    width: 100%;
  }
  .primary-nav li a {
    line-height: 1;
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(135,255,113,0.07);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
  }

  /* Header: single row, no wrapping */
  .header-inner {
    flex-wrap: nowrap;
    padding: 0 0.5rem;
    gap: 0.35rem;
    overflow: hidden;
  }
  .brand-link   { order: 0; flex-shrink: 0; }
  .nav-toggle   { order: 1; flex-shrink: 0; }
  .header-ctas  {
    order: 2;
    margin-left: auto;
    gap: 0.3rem;
    flex-shrink: 0;
    /* Prevent ctas from overflowing */
    overflow: hidden;
  }

  .cta {
    font-size: 0.6rem;
    padding: 0 0.45rem;
    min-height: 44px;
    letter-spacing: 0.03em;
    /* Prevent text from overflowing button */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
  }

  /* Content layout: sidebar above content on mobile */
  .content-section {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    overflow-x: hidden;
    width: 100%;
  }
  .sidebar-left {
    width: 100%;
    position: static;
    max-width: 100%;
  }
  .sidebar-inner {
    max-width: 100%;
  }
  .content-main {
    width: 100%;
    max-width: 100%;
  }
  .body-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Hero */
  .hero-home {
    min-height: 100svh;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
  }
  .hero-copy {
    text-align: left;
    padding: 1.5rem 1rem 4rem;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    /* Ensure copy doesn't push beyond viewport */
    overflow: hidden;
  }
  .hero-bg-numeral {
    /* Use a fixed px size on mobile to avoid overflow */
    font-size: 7rem;
    left: -0.05em;
  }
  .hero-bg-numeral.small {
    font-size: 4.5rem;
    right: 0.25rem;
    left: auto;
  }

  /* Inner hero */
  .inner-hero-strip {
    min-height: 160px;
    overflow: hidden;
  }
  .inner-hero-copy {
    padding: 1.5rem 1rem 1.25rem;
    overflow: hidden;
  }
  .inner-hero-copy h1 {
    font-size: 1.15rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }
  .cards-section {
    padding: 2rem 1rem;
    overflow-x: hidden;
  }

  /* Author */
  .author-section {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }

  /* Footer CTA */
  .footer-cta-btns { flex-direction: column; align-items: center; }
  .footer-cta-block { padding: 2rem 1rem 1.5rem; }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .footer-body {
    padding: 1.5rem 1rem;
    overflow-x: hidden;
  }

  /* RG notice */
  .rg-notice {
    padding: 1rem;
  }
  .rg-notice p {
    display: block;
    min-height: auto;
  }

  /* Footer nav wrap */
  .footer-nav ol {
    gap: 0.25rem 0.5rem;
  }
}

/* =========================================================
   PRIVACY / ABOUT PLAIN PAGES
   ========================================================= */
.privacy-hero {
  background: linear-gradient(150deg, #1a0040 0%, #0d2b45 55%, #192617 100%);
}
.about-hero {
  background: linear-gradient(150deg, #0d2b45 0%, #1a0040 55%, #192617 100%);
}
.privacy-body a {
  color: var(--cyan);
  text-decoration: underline;
}
.privacy-body h2 {
  color: var(--cyan);
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}