/* ============================================
   ReactiveTinnitus.org — Stylesheet
   Theme: Clinical Authority + Human Compassion
   Palette: Deep Navy | Teal | Warm White | Amber
   ============================================ */

/* --- RESET & ROOT --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --navy-deep:   #050d1a;
  --navy-dark:   #0a1628;
  --navy-mid:    #0f2040;
  --navy-light:  #162d55;
  --teal:        #2ec4b6;
  --teal-dim:    #1a8a80;
  --teal-glow:   rgba(46, 196, 182, 0.15);
  --amber:       #f4a942;
  --amber-dim:   #c4843a;
  --red-signal:  #e05555;
  --white:       #f5f0eb;
  --white-dim:   #c8c2bb;
  --white-ghost: rgba(245, 240, 235, 0.08);
  --text-body:   #b8b0a8;
  --text-head:   #e8e2db;
  --border:      rgba(46, 196, 182, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;
  --font-mono:    'Source Code Pro', monospace;

  /* Spacing */
  --section-pad: 7rem 0;
  --container-max: 1160px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-head);
  line-height: 1.2;
}

strong { color: var(--white); font-weight: 700; }
em { color: var(--teal); font-style: italic; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- CONTAINERS --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow { max-width: 820px; }

/* --- NAV --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-rt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 700;
}
.logo-org { color: var(--teal); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: 2.5rem;
  margin-right: auto;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--white-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(22, 45, 85, 0.9) 0%, var(--navy-deep) 70%);
}

#waveCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--teal-dim);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.75rem;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.8s 0.1s ease both;
}
.hero-title em {
  color: var(--teal);
  font-style: italic;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.4s ease both;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.3);
}
.btn-ghost {
  border: 1px solid rgba(245, 240, 235, 0.3);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--white);
  background: var(--white-ghost);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: fadeSlideUp 1s 1s ease both;
  opacity: 0.5;
}
.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s infinite;
}

/* --- SECTIONS --- */
.section { padding: var(--section-pad); }

.section-dark  { background: var(--navy-dark); }
.section-mid   { background: var(--navy-deep); }
.section-cta   { background: var(--navy-mid);  position: relative; overflow: hidden; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 680px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

/* --- CARDS TRIO --- */
.cards-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(46, 196, 182, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* --- PROSE BLOCKS --- */
.prose-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.prose-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.prose-marker {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: rgba(46, 196, 182, 0.2);
  font-weight: 400;
  line-height: 1;
  padding-top: 0.4rem;
}

.prose-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.prose-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
}

/* --- THRESHOLD DIAGRAM --- */
.threshold-diagram {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.threshold-diagram.visible {
  opacity: 1;
  transform: translateY(0);
}

.threshold-chart {
  position: relative;
  height: 340px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem 3rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.threshold-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  display: flex;
  align-items: center;
}
.threshold-line-danger  { top: 12%;  background: rgba(224, 85, 85, 0.5); }
.threshold-line-warning { top: 38%;  background: rgba(244, 169, 66, 0.5); }
.threshold-line-safe    { top: 64%;  background: rgba(46, 196, 182, 0.4); }

.threshold-line-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1rem;
  white-space: nowrap;
}
.threshold-line-danger  .threshold-line-label { color: var(--red-signal); }
.threshold-line-warning .threshold-line-label { color: var(--amber); }
.threshold-line-safe    .threshold-line-label { color: var(--teal); }

.threshold-bars {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  height: 240px;
}

.t-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.t-bar {
  width: 64px;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
  position: relative;
  transition: height 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.t-bar-bad  { background: linear-gradient(to top, rgba(224,85,85,0.8), rgba(224,85,85,0.3)); border: 1px solid rgba(224,85,85,0.4); }
.t-bar-mid  { background: linear-gradient(to top, rgba(244,169,66,0.8), rgba(244,169,66,0.3)); border: 1px solid rgba(244,169,66,0.4); }
.t-bar-good { background: linear-gradient(to top, rgba(46,196,182,0.8), rgba(46,196,182,0.3)); border: 1px solid rgba(46,196,182,0.4); }

.t-bar-label {
  position: absolute;
  bottom: -2.8rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-align: center;
  color: var(--white-dim);
  line-height: 1.3;
  white-space: nowrap;
}
.t-bar-label small {
  display: block;
  color: var(--text-body);
  font-size: 0.55rem;
}

.threshold-key {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.key-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-dim);
}
.key-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.key-danger  { background: var(--red-signal); }
.key-warning { background: var(--amber); }
.key-safe    { background: var(--teal); }

/* --- TWO COL --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.col-block {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.col-block.visible {
  opacity: 1;
  transform: translateY(0);
}
.col-block:nth-child(2) { transition-delay: 0.15s; }

.col-block-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.col-title-medical { color: var(--red-signal); }
.col-title-human   { color: var(--amber); }

.impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.impact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.impact-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 0.1rem;
}
.impact-red   { background: rgba(224,85,85,0.15); color: var(--red-signal); }
.impact-amber { background: rgba(244,169,66,0.15); color: var(--amber); }

.impact-list strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.impact-list p {
  font-size: 0.85rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

/* --- PULL QUOTE --- */
.pull-quote {
  border-left: 3px solid var(--teal);
  padding: 1.5rem 2rem;
  background: var(--navy-mid);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-head);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pull-quote.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESOURCES GRID --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.resource-card {
  display: block;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}
.resource-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.resource-card:nth-child(2) { transition-delay: 0.1s; }
.resource-card:nth-child(3) { transition-delay: 0.2s; }
.resource-card:nth-child(4) { transition-delay: 0.3s; }

.resource-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(46, 196, 182, 0.1);
  transform: translateY(-3px);
}

.resource-card-top { margin-bottom: 0.75rem; }
.resource-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}

.resource-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.resource-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.resource-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.05em;
}

/* --- CTA --- */
.cta-block {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4rem;
  text-align: center;
  background: var(--navy-dark);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cta-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-wave-left,
.cta-wave-right {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-wave-left {
  top: -100px; left: -100px;
  background: rgba(46, 196, 182, 0.06);
}
.cta-wave-right {
  bottom: -100px; right: -100px;
  background: rgba(244, 169, 66, 0.05);
}

.cta-block h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}
.cta-block p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  margin-top: 1rem;
}
.cta-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}
.cta-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-step p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

/* --- TREATMENT SECTION --- */
.treatment-intro {
  margin-bottom: 2.5rem;
}

.treatment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.treatment-card {
  background: var(--navy-mid);
  border-radius: 8px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.treatment-card-caution {
  border-top: 3px solid var(--amber-dim);
}
.treatment-card-danger {
  border-top: 3px solid var(--red-signal);
}
.treatment-card-full {
  margin-bottom: 2.5rem;
}
.treatment-card-danger:hover {
  border-color: var(--red-signal);
  box-shadow: 0 12px 32px rgba(224, 85, 85, 0.1);
}
.treatment-card:hover {
  border-color: var(--amber);
}

.treatment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.treatment-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--white-dim);
  text-transform: uppercase;
}

.treatment-verdict {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.verdict-caution {
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  background: rgba(244, 169, 66, 0.07);
}
.verdict-danger {
  color: var(--red-signal);
  border: 1px solid rgba(224, 85, 85, 0.4);
  background: rgba(224, 85, 85, 0.07);
}

.treatment-card > p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.treatment-warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(224, 85, 85, 0.06);
  border: 1px solid rgba(224, 85, 85, 0.2);
  border-radius: 6px;
  padding: 1rem;
}
.treatment-warning-danger {
  background: rgba(224, 85, 85, 0.08);
  border-color: rgba(224, 85, 85, 0.3);
}
.treatment-warning-danger p:first-child {
  margin-bottom: 0.75rem;
}
.treatment-warning-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--red-signal);
  margin-top: 0.05rem;
}
.treatment-warning p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

.treatment-statement {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 2rem;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  align-items: stretch;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.treatment-statement.visible {
  opacity: 1;
  transform: translateY(0);
}

.treatment-statement-bar {
  background: linear-gradient(to bottom, var(--teal), var(--amber-dim));
  border-radius: 4px;
  align-self: stretch;
}

.treatment-statement-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.treatment-statement-body p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .treatment-grid {
    grid-template-columns: 1fr;
  }
  .treatment-statement {
    grid-template-columns: 1fr;
  }
  .treatment-statement-bar {
    height: 4px;
    width: 100%;
  }
}

/* --- FOOTER --- */
.site-footer {
  background: #03080f;
  border-top: 1px solid rgba(46, 196, 182, 0.1);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-tagline {
  color: var(--text-body);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.7;
}
.footer-founder {
  font-size: 0.92rem;
  color: rgba(200, 195, 188, 0.75);
  margin-top: 0.8rem;
  font-style: italic;
}
.footer-founder-link {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 196, 182, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.footer-founder-link:hover {
  color: var(--white);
  border-bottom-color: var(--teal);
}
.footer-links h4,
.footer-disclaimer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-body);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }
.footer-disclaimer p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(200,195,188,0.4);
  margin: 0;
}

/* --- ANIMATIONS --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* --- DISCORD NAV BUTTON --- */
.discord-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  flex-shrink: 0;
  margin-left: 2.5rem;
}
.discord-btn:hover {
  background: rgba(88, 101, 242, 0.3);
  border-color: rgba(88, 101, 242, 0.7);
  color: #fff;
  transform: translateY(-1px);
}
.discord-icon {
  width: 18px;
  height: 18px;
  color: #fff;
  flex-shrink: 0;
}
.discord-text {
  color: #fff;
}

/* Discord resource card */
.resource-card-discord {
  border-top: 2px solid rgba(88, 101, 242, 0.5);
}
.resource-card-discord:hover {
  border-color: rgba(88, 101, 242, 0.9);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.12);
}
.resource-card-discord .resource-tag {
  color: #7289da;
  border-color: rgba(88, 101, 242, 0.4);
}
.resource-card-discord .resource-link {
  color: #7289da;
}
.resource-discord-icon {
  width: 18px;
  height: 18px;
  color: #7289da;
  vertical-align: middle;
  margin-right: 0.4rem;
  display: inline-block;
}
.resource-card-discord h3 {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .discord-btn { display: none; }
}

/* --- ANIMATE ON SCROLL --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .cards-trio {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cta-steps {
    grid-template-columns: 1fr;
  }
  .cta-block {
    padding: 2.5rem 1.5rem;
  }
  .prose-block {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .prose-marker {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 13, 26, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: flex;
    z-index: 200;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .threshold-bars {
    gap: 0.75rem;
  }
  .t-bar {
    width: 44px;
  }
}
