/* Biorhythm Calculator — scoped styles
   Design system: cosmic navy + purple accent + 3-cycle synth colors.
   Uses site-wide Orbitron + Inter, adds JetBrains Mono locally for data. */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

.bio-scope {
    --bio-mono: 'JetBrains Mono', 'Space Mono', ui-monospace, monospace;
    --bio-navy: #0a0a14;
    --bio-deep: #0d0d1f;
    --bio-indigo: #1e1b4b;
    --bio-purple: #a855f7;
    --bio-indigo-bright: #6366f1;
    --bio-phys: #ef4444;
    --bio-emo: #3b82f6;
    --bio-intel: #22c55e;
    --bio-intu: #a855f7;
    --bio-aes: #ec4899;
    --bio-self: #f59e0b;
    --bio-spi: #06b6d4;
    --bio-warn: #eab308;
    --bio-border: rgba(255,255,255,0.08);
    --bio-border-hover: rgba(255,255,255,0.20);
    --bio-glass: rgba(255,255,255,0.04);
    --bio-glass-2: rgba(255,255,255,0.06);
    --bio-text: rgba(255,255,255,0.92);
    --bio-muted: rgba(255,255,255,0.58);
    --bio-subtle: rgba(255,255,255,0.38);
}

/* ────────── HERO ────────── */
.bio-hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    padding: 140px 0 100px;
    background:
        linear-gradient(160deg, rgba(10,10,20,0.80) 0%, rgba(13,13,31,0.72) 45%, rgba(30,27,75,0.88) 100%),
        url('/biorhythm-calculator/hero-bg.webp') center/cover no-repeat;
}

.bio-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(168,85,247,0.20), transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 80%, rgba(99,102,241,0.18), transparent 60%);
    pointer-events: none;
}

.bio-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.bio-hero-eyebrow {
    display: inline-block;
    font-family: var(--bio-mono);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
    padding: 8px 18px;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(168,85,247,0.35);
    background: rgba(168,85,247,0.08);
    backdrop-filter: blur(8px);
}

.bio-hero-title {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: 1.02;
    color: #fff;
    margin: 0 0 1rem;
    text-shadow: 0 0 40px rgba(168,85,247,0.35);
}
.bio-hero-title em {
    display: block;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bio-hero-lead {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.bio-hero-cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.bio-btn {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.bio-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 0 30px rgba(168,85,247,0.45), 0 10px 40px rgba(99,102,241,0.25);
}
.bio-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(168,85,247,0.6); }
.bio-btn-ghost {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.20);
}
.bio-btn-ghost:hover { border-color: rgba(255,255,255,0.40); color: #fff; }

/* ─── Animated hero waves ─── */
.bio-hero-waves {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 140px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.bio-hero-waves svg {
    position: absolute; left: 0; top: 0;
    width: 200%;
    height: 100%;
    animation: bio-wave-slide 30s linear infinite;
}
@keyframes bio-wave-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .bio-hero-waves svg { animation: none; }
}

/* Hero stats */
.bio-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 580px;
    margin: 2.5rem auto 0;
}
.bio-hero-stat {
    padding: 14px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    text-align: center;
}
.bio-hero-stat-value {
    font-family: var(--bio-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.bio-hero-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* ────────── SECTION COMMON ────────── */
.bio-section {
    padding: 80px 0;
    position: relative;
}
.bio-section-head { text-align: center; margin-bottom: 3rem; }
.bio-eyebrow {
    display: inline-block;
    font-family: var(--bio-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.75rem;
}
.bio-section-title {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
}
.bio-section-sub {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    color: rgba(255,255,255,0.62);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.bio-glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--bio-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ────────── CALCULATOR CARD ────────── */
.bio-calc-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px;
}
.bio-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 640px) {
    .bio-calc-grid { grid-template-columns: 1fr; }
}
.bio-field label {
    display: block;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    margin-bottom: 8px;
}
.bio-input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--bio-mono);
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    transition: border-color 0.2s;
    color-scheme: dark;
}
.bio-input:focus {
    outline: none;
    border-color: rgba(168,85,247,0.6);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.bio-field-row { display: flex; gap: 8px; }
.bio-today-btn {
    padding: 0 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.bio-today-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* Partner row */
.bio-partner-wrap { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }
.bio-partner-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.bio-partner-label {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.72);
}
.bio-partner-toggle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.bio-partner-toggle:hover { border-color: rgba(255,255,255,0.4); }
.bio-partner-toggle.is-active {
    border-color: rgba(168,85,247,0.6);
    color: #c4b5fd;
    background: rgba(168,85,247,0.12);
}
.bio-partner-input-wrap.is-hidden { display: none; }

/* Options */
.bio-options {
    display: flex; flex-wrap: wrap; gap: 14px;
    padding-top: 20px; margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    align-items: center;
}
.bio-check {
    display: inline-flex; gap: 10px; align-items: center;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.62);
    cursor: pointer;
}
.bio-check input {
    width: 18px; height: 18px;
    accent-color: var(--bio-purple);
}
.bio-csv-link {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    background: transparent;
    border: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s;
}
.bio-csv-link:hover { color: rgba(255,255,255,0.85); }

/* ────────── CHART ────────── */
.bio-chart-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px;
}
.bio-chart-svg { width: 100%; height: auto; min-width: 480px; }
#bioChart {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
}
.bio-chart-legend {
    display: flex; flex-wrap: wrap; gap: 14px 20px;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    align-items: center;
}
.bio-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.bio-legend-swatch {
    width: 18px; height: 3px; border-radius: 2px; display: inline-block;
}
.bio-legend-name {
    font-family: var(--bio-mono); font-size: 0.75rem;
}
.bio-legend-len {
    font-size: 0.72rem; color: rgba(255,255,255,0.38);
    font-family: var(--bio-mono);
}
.bio-legend-meta { margin-left: auto; }
.bio-legend-meta + .bio-legend-meta { margin-left: 0; }
.bio-legend-line {
    width: 20px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px;
}
.bio-legend-crit {
    width: 20px; height: 14px; border-radius: 3px;
    background: rgba(234,179,8,0.20);
    border: 1px dashed rgba(234,179,8,0.5);
}

/* ────────── PHASE CARDS ────────── */
.bio-phase-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bio-phase-card {
    padding: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--bio-border);
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.bio-phase-card:hover {
    transform: translateY(-3px);
    border-color: var(--phase-color, rgba(255,255,255,0.2));
    box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 24px color-mix(in srgb, var(--phase-color, #fff) 25%, transparent);
}
.bio-phase-head {
    display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.bio-phase-head-left { flex: 1; min-width: 0; }
.bio-phase-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bio-phase-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.bio-phase-name {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: 1.05rem; font-weight: 700; color: #fff;
}
.bio-phase-badge-core {
    font-size: 0.65rem; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    padding: 2px 8px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
}
.bio-phase-governs {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
    margin: 0 0 0 22px;
}
.bio-phase-head-right { text-align: right; flex-shrink: 0; }
.bio-phase-percent {
    font-family: var(--bio-mono);
    font-size: 1.6rem; font-weight: 700; line-height: 1; margin-bottom: 6px;
}
.bio-phase-badge {
    display: inline-block;
    font-family: var(--bio-mono);
    font-size: 0.7rem;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid;
}
.bio-phase-badge-critical       { background: rgba(234,179,8,0.15);  color: #fde047; border-color: rgba(234,179,8,0.4); }
.bio-phase-badge-high-positive  { background: rgba(34,197,94,0.15);  color: #86efac; border-color: rgba(34,197,94,0.4); }
.bio-phase-badge-rising         { background: rgba(59,130,246,0.15); color: #93c5fd; border-color: rgba(59,130,246,0.4); }
.bio-phase-badge-falling        { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.4); }
.bio-phase-badge-low-negative   { background: rgba(239,68,68,0.15);  color: #fca5a5; border-color: rgba(239,68,68,0.4); }

.bio-phase-bar {
    position: relative;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
}
.bio-phase-bar-fill {
    position: absolute; top: 0; height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease, left 0.6s ease;
}
.bio-phase-bar-center {
    position: absolute; top: 0; left: 50%;
    width: 1px; height: 100%;
    background: rgba(255,255,255,0.35);
}
.bio-phase-guidance {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.88rem; line-height: 1.6;
    color: rgba(255,255,255,0.72);
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: none;
}
.bio-phase-card.is-expanded .bio-phase-guidance { display: block; }
.bio-phase-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.32);
    margin: 10px 0 0;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
}

/* ────────── CRITICAL DAYS ────────── */
.bio-crit-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bio-crit-card {
    padding: 18px;
    background: rgba(234,179,8,0.04);
    border: 1px solid rgba(234,179,8,0.3);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.bio-crit-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(234,179,8,0.15), transparent 60%);
    pointer-events: none;
    animation: bio-crit-pulse 4s ease-in-out infinite;
}
@keyframes bio-crit-pulse {
    0%,100% { opacity: 0.6; }
    50%     { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .bio-crit-card::before { animation: none; }
}
.bio-crit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; position: relative; z-index: 1; }
.bio-crit-icon { font-size: 1.1rem; color: #fde047; }
.bio-crit-date {
    font-family: var(--bio-mono);
    font-size: 0.88rem; font-weight: 700; color: #fde047;
}
.bio-crit-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; position: relative; z-index: 1; }
.bio-crit-tag {
    font-family: var(--bio-mono);
    font-size: 0.72rem;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid;
}
.bio-crit-note {
    font-size: 0.78rem; color: rgba(255,255,255,0.55);
    margin: 0; position: relative; z-index: 1;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
}
.bio-no-critical {
    text-align: center;
    font-style: italic;
    color: rgba(255,255,255,0.48);
    font-family: var(--font-secondary, 'Inter'), sans-serif;
}

/* ────────── BEST DAY ────────── */
.bio-best-card {
    max-width: 560px; margin: 0 auto; padding: 28px;
}
.bio-best-card label {
    display: block;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.9rem; color: rgba(255,255,255,0.72);
    margin-bottom: 10px;
}
.bio-select {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--bio-mono);
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color-scheme: dark;
    margin-bottom: 16px;
}
.bio-best-box {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px;
    background: rgba(168,85,247,0.10);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 12px;
}
.bio-best-icon {
    font-size: 1.5rem; color: #c4b5fd;
    line-height: 1;
}
.bio-best-text { flex: 1; }
.bio-best-date {
    font-family: var(--bio-mono);
    font-weight: 700;
    color: #d8b4fe;
    margin: 0 0 4px;
    font-size: 0.95rem;
}
.bio-best-reason {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}
.bio-best-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.32);
    font-style: italic;
    margin-top: 12px;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
}

/* ────────── COMPATIBILITY ────────── */
.bio-compat-card { max-width: 680px; margin: 0 auto; padding: 28px; }
.bio-compat-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.bio-compat-title {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0;
}
.bio-compat-overall { text-align: center; }
.bio-compat-overall-value {
    font-family: var(--bio-mono);
    font-size: 2rem; font-weight: 700; line-height: 1;
}
.bio-compat-overall-label {
    font-size: 0.72rem; letter-spacing: 0.10em;
    color: rgba(255,255,255,0.5); margin-top: 4px;
    text-transform: uppercase;
}
.bio-compat-rows { display: flex; flex-direction: column; gap: 18px; }
.bio-compat-row-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.bio-compat-cycle { font-size: 0.9rem; font-weight: 600; }
.bio-compat-row-meta { display: flex; gap: 10px; align-items: center; }
.bio-compat-pct {
    font-family: var(--bio-mono);
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}
.bio-compat-label {
    font-size: 0.75rem; color: rgba(255,255,255,0.42);
}
.bio-compat-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.bio-compat-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.7s ease;
}
.bio-compat-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    margin: 18px 0 0;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
}
#bioCompatSection.is-hidden { display: none; }

/* ────────── CYCLE REFERENCE GRID ────────── */
.bio-cycles-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1080px; margin: 0 auto;
}
.bio-cycle-ref {
    padding: 24px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--bio-border);
    border-radius: 16px;
    border-top: 3px solid var(--cycle-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bio-cycle-ref:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px color-mix(in srgb, var(--cycle-color) 20%, transparent);
}
.bio-cycle-ref-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
}
.bio-cycle-ref-name {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--cycle-color);
    margin: 0;
}
.bio-cycle-ref-len {
    font-family: var(--bio-mono);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.bio-cycle-ref-governs {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.88rem; line-height: 1.6;
    color: rgba(255,255,255,0.68);
    margin: 0;
}
.bio-cycle-ref-tag {
    display: inline-block;
    font-size: 0.65rem; letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    text-transform: uppercase;
    font-family: var(--bio-mono);
}

/* ────────── HISTORY / SCIENCE ────────── */
.bio-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    max-width: 1080px; margin: 0 auto;
}
.bio-info-card {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--bio-border);
    border-radius: 18px;
    position: relative; overflow: hidden;
}
.bio-info-card::before {
    content: attr(data-ord);
    position: absolute;
    top: -18px; right: -8px;
    font-family: var(--bio-mono);
    font-size: 6rem; font-weight: 700;
    color: rgba(168,85,247,0.10);
    line-height: 1;
    pointer-events: none;
}
.bio-info-card h3 {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: 1.2rem; font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    position: relative; z-index: 1;
}
.bio-info-card p {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.92rem; line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin: 0;
    position: relative; z-index: 1;
}

/* ────────── FOUNDERS TIMELINE ────────── */
.bio-founders {
    max-width: 880px; margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bio-founder {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(168,85,247,0.08), rgba(255,255,255,0.02));
    border: 1px solid var(--bio-border);
    border-left: 3px solid var(--bio-purple);
    border-radius: 14px;
}
@media (max-width: 640px) {
    .bio-founder { grid-template-columns: 1fr; gap: 8px; }
}
.bio-founder-year {
    font-family: var(--bio-mono);
    font-weight: 700;
    color: #c4b5fd;
    font-size: 1.1rem;
}
.bio-founder-name {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-weight: 700; font-size: 1rem; color: #fff;
    margin: 0 0 6px;
}
.bio-founder-desc {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.6;
    margin: 0;
}

/* ────────── FAQ (reuse global but scoped tweaks) ────────── */
.bio-scope .faq-section { background: transparent; }

/* ────────── WORKED EXAMPLE TABLE ────────── */
.bio-example-wrap { max-width: 820px; margin: 0 auto; }
.bio-example-meta {
    display: flex; flex-wrap: wrap; gap: 12px 28px;
    padding: 14px 20px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 12px;
    margin-bottom: 18px;
}
.bio-example-meta > div {
    font-family: var(--bio-mono);
    font-size: 0.85rem;
}
.bio-example-meta span { color: rgba(255,255,255,0.5); margin-right: 6px; }
.bio-example-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--bio-border);
    border-radius: 14px;
    overflow: hidden;
}
.bio-example-table th,
.bio-example-table td {
    padding: 12px 18px;
    text-align: left;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bio-example-table th {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.02);
    text-transform: uppercase;
}
.bio-example-table td:nth-child(2),
.bio-example-table td:nth-child(3) {
    font-family: var(--bio-mono);
}
.bio-example-table tr:last-child td { border-bottom: none; }

/* ────────── CTA ────────── */
.bio-cta {
    max-width: 720px; margin: 0 auto;
    padding: 48px 36px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(168,85,247,0.20), transparent 70%),
        linear-gradient(180deg, rgba(30,27,75,0.45), rgba(10,10,20,0.3));
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}
.bio-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 90%, rgba(99,102,241,0.15), transparent 50%);
    pointer-events: none;
}
.bio-cta > * { position: relative; z-index: 1; }
.bio-cta h2 {
    font-family: var(--font-primary, 'Orbitron'), sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}
.bio-cta p {
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    color: rgba(255,255,255,0.68); line-height: 1.7;
    margin: 0 0 24px;
}

/* ────────── DISCLAIMER ────────── */
.bio-disclaimer {
    max-width: 820px; margin: 0 auto;
    padding: 20px 24px;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.20);
    border-radius: 12px;
    font-family: var(--font-secondary, 'Inter'), sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
}
.bio-disclaimer strong { color: #fca5a5; font-weight: 600; }

/* ────────── MOBILE ADJUSTMENTS ────────── */
@media (max-width: 768px) {
    .bio-hero { padding: 110px 0 70px; min-height: 78vh; }
    .bio-section { padding: 60px 0; }
    .bio-calc-card { padding: 24px; }
    .bio-chart-wrap { padding: 18px; }
    .bio-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .bio-hero-stat { padding: 10px 6px; }
    .bio-hero-stat-value { font-size: 1.25rem; }
}
