/* ═══════════════════ RESONANCE PAGE ═══════════════════ */

.r-page { color: var(--text); }

/* HERO */
.r-hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.r-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
}

.r-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(125,249,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(213,180,255,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,9,20,0.55) 0%, rgba(5,9,20,0.85) 100%);
}

.r-hero__copy {
  position: relative;
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  max-width: 65rem;
}

.r-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(125, 249, 255, 0.3);
}

.r-hero__headline {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.r-hero__lede {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 56rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.r-hero__lede strong { color: var(--text); font-weight: 600; }

.r-hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.r-hero__meta a {
  color: var(--cyan);
  border-bottom: 1px dashed rgba(125,249,255,0.4);
}

.r-hero__meta a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.r-hero__meta .dot { opacity: 0.5; }

/* SECTION */
.r-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

/* SPECTRA GRID */
.spectra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.spectrum-card {
  --c: var(--cyan);
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.spectrum-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, var(--c) 0%, transparent 60%);
  opacity: 0.08;
  transition: opacity 0.4s;
}

.spectrum-card:hover {
  transform: translateY(-4px);
  border-color: var(--c);
}

.spectrum-card:hover::before { opacity: 0.15; }

.spectrum-card__header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spectrum-card__num { color: var(--c); font-weight: 700; }

.spectrum-card__name {
  margin-top: 0.7rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.spectrum-card__range {
  display: grid;
  gap: 0.15rem;
  margin: 0.8rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.range-value { color: var(--c); }
.range-orders { color: var(--text-muted); font-size: 0.72rem; }

.spectrum-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  margin-bottom: 1rem;
}

.spectrum-card__bars .bar {
  flex: 1;
  height: 100%;
  background: var(--c);
  opacity: 0.5;
  border-radius: 1px;
  animation: bar-pulse 2.4s ease-in-out infinite;
}

.spectrum-card__bars .bar:nth-child(1) { animation-delay: 0.0s; height: 30%; }
.spectrum-card__bars .bar:nth-child(2) { animation-delay: 0.15s; height: 60%; }
.spectrum-card__bars .bar:nth-child(3) { animation-delay: 0.3s;  height: 80%; }
.spectrum-card__bars .bar:nth-child(4) { animation-delay: 0.45s; height: 100%; }
.spectrum-card__bars .bar:nth-child(5) { animation-delay: 0.6s;  height: 70%; }
.spectrum-card__bars .bar:nth-child(6) { animation-delay: 0.75s; height: 90%; }
.spectrum-card__bars .bar:nth-child(7) { animation-delay: 0.9s;  height: 50%; }
.spectrum-card__bars .bar:nth-child(8) { animation-delay: 1.05s; height: 25%; }

@keyframes bar-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50%      { opacity: 0.85; transform: scaleY(1.05); }
}

.spectrum-card__visible {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.7rem;
}

.spectrum-card__ai {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.ai-label {
  color: var(--c);
  font-weight: 600;
  margin-right: 0.3em;
}

.spectrum-card__note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-soft);
  border-top: 1px solid rgba(145,169,255,0.08);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
  font-style: italic;
}

/* ARGUMENT */
.argument-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.argument-text p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.argument-text p strong { color: var(--text); font-weight: 600; }

.argument-pull {
  margin-top: 2rem !important;
  padding: 1.5rem;
  border-left: 2px solid var(--cyan);
  background: rgba(125,249,255,0.04);
  color: var(--text) !important;
  font-size: 1.1rem !important;
  line-height: 1.5 !important;
}

.cmp-stack {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.cmp-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.4rem 1rem;
  font-family: var(--font-mono);
}

.cmp-label {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  font-weight: 700;
}

.cmp-bar {
  grid-column: 2;
  grid-row: 1;
  height: 12px;
  border-radius: 6px;
  background: rgba(145,169,255,0.06);
  overflow: hidden;
  position: relative;
}

.cmp-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  width: 0;
  animation: cmp-grow 1.2s 0.2s ease-out forwards;
}

.cmp-fill--narrow { --target-w: 20%; background: linear-gradient(90deg, #7df9ff, #7df9ff); box-shadow: 0 0 14px rgba(125,249,255,0.4); }
.cmp-fill--mm     { --target-w: 22%; background: linear-gradient(90deg, #7df9ff, #a5ff7d); box-shadow: 0 0 14px rgba(165,255,125,0.3); }
.cmp-fill--full   { --target-w: 100%; background: linear-gradient(90deg, #7df9ff 0%, #a5ff7d 25%, #d5b4ff 50%, #ffb47d 75%, #ff7da8 100%); box-shadow: 0 0 22px rgba(213,180,255,0.5); }

@keyframes cmp-grow {
  from { width: 0; }
  to   { width: var(--target-w); }
}

.cmp-text {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cmp-caption {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* SEED PANEL */
.seed-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  border: 1px solid rgba(213,180,255,0.18);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(213,180,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(125,249,255,0.04) 0%, transparent 60%),
    var(--surface);
}

.seed-panel__left p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.seed-panel__left p strong { color: var(--text); font-weight: 600; }

.seed-pull {
  margin-top: 1.4rem !important;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--violet);
  background: rgba(213,180,255,0.06);
  color: var(--text) !important;
  font-size: 1.08rem !important;
  line-height: 1.5 !important;
}

.seed-waveform {
  width: 100%;
  height: auto;
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

/* ARC */
.arc__intro {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 50rem;
  margin: 0.6rem 0 2rem;
}

/* CTA */
.r-cta {
  text-align: center;
  border: 1px solid rgba(213,180,255,0.2);
  border-radius: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(125,249,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 100%, rgba(213,180,255,0.06) 0%, transparent 55%),
    var(--surface);
}

/* RESPONSIVE */
@media (max-width: 880px) {
  .argument-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .seed-panel { grid-template-columns: 1fr; gap: 2rem; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-label { grid-row: 1; }
  .cmp-bar { grid-row: 2; }
  .cmp-text { grid-row: 3; }
}
