/* Design System & Variables (Aleo-inspired) */
:root {
    /* greys — exactly three background levels */
    --bg-page: #0a0a0d;
    --bg-surface: #141418;
    --bg-card: #18181d;
    /* borders */
    --border-color: #2a2a31;
    --border-subtle: #222228;
    /* text — exactly two levels plus one bright heading value */
    --text-body: #d8d8de;
    --text-muted: #9b9ba6;
    --text-strong: #f2f2f5;
    /* headings, strong, logo-white */
    /* red — exactly two shades, with strict roles */
    --red-deep: #9d0a1b;
    /* ONLY borders, badges, background tints */
    --red-active: #c8102e;
    /* ONLY active/interactive states and red text */
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Courier, monospace;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: var(--bg-page);
}

body {
    background: radial-gradient(circle at 50% 0%, #1a0f12 0%, var(--bg-page) 60%);
    background-attachment: fixed;
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
}

/* -------------------------------------------------------------
   Intro Loader Animation
   ------------------------------------------------------------- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #08080c;
    background-image: radial-gradient(#2d0f12 1.2px, transparent 1.2px);
    background-size: 18px 18px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.intro-title {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 2.5rem;
    color: #9d0a1b;
    text-transform: uppercase;
    letter-spacing: 0.8em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.95);
    animation: tracking-in 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.3s forwards;
    padding-left: 0.8em;
    /* Offset for letter-spacing centering */
}

.saddle-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    pointer-events: none;
    z-index: 1;
}

/* SVG Line Drawing Keyframes & Styles */
.manifold-line {
    fill: none;
    stroke-width: 1;
}

.manifold-line.stable-1,
.manifold-line.stable-2 {
    stroke: #9d0a1b;
    /* Muted deep burgundy grey turned red */
    opacity: 0.5;
}

.manifold-line.unstable-1,
.manifold-line.unstable-2 {
    stroke: #9d0a1b;
    /* Active unstable manifolds */
    opacity: 0.7;
}

.hyperbola-path {
    fill: none;
    stroke: #9d0a1b;
    stroke-width: 1.2;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    opacity: 0.8;
}

.left-branch,
.right-branch {
    animation: draw-line 2.5s ease-out 1.2s forwards;
}

.top-branch,
.bottom-branch {
    stroke: #c8102e;
    animation: draw-line 2.5s ease-out 1.6s forwards;
}

/* Elliptic Curve Large */
.ecc-path-large {
    fill: none;
    stroke: #c8102e;
    stroke-width: 1.5;
    filter: drop-shadow(0px 0px 4px rgba(200, 16, 46, 0.4));
    opacity: 0.35;
}

.ecc-path-large.loop {
    stroke-dasharray: 1300;
    stroke-dashoffset: 1300;
    animation: draw-line 3.5s cubic-bezier(0.22, 0.61, 0.36, 1) 1.5s forwards;
}

.ecc-path-large.branch {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw-line 3.5s cubic-bezier(0.22, 0.61, 0.36, 1) 1.9s forwards;
}

/* Finite Field Point Grid */
.fq-point {
    fill: #a0a0b0;
    opacity: 0;
    animation: fade-in-point 1.5s ease 0.6s forwards;
}

/* Orbiting Cryptographic Formulas */
.formula-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    fill: var(--red-active);
    text-shadow: 0 0 6px rgba(200, 16, 46, 0.4);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.formula-1 {
    offset-path: path('M 600,400 m -520,0 a 520,340 0 1,0 1040,0 a 520,340 0 1,0 -1040,0');
    offset-rotate: 0deg;
    animation: formula-fade-in 1.5s ease 2.2s forwards, formula-orbit 24s linear 2.2s infinite;
    font-size: 0.95rem;
    font-weight: 500;
}

.formula-2 {
    offset-path: path('M 600,400 C 200,150 100,650 600,400 C 1100,150 1000,650 600,400');
    offset-rotate: 0deg;
    animation: formula-fade-in 1.5s ease 2.5s forwards, formula-orbit 32s linear 2.5s infinite;
    font-weight: 700;
    font-size: 0.9rem;
}

.formula-3 {
    offset-path: path('M 600,400 m -480,0 a 480,280 0 1,0 960,0 a 480,280 0 1,0 -960,0');
    offset-rotate: 0deg;
    animation: formula-fade-in 1.5s ease 2.8s forwards, formula-orbit 28s linear 2.8s infinite;
}

.formula-4 {
    offset-path: path('M 600,400 m -350,0 a 350,220 0 1,0 700,0 a 350,220 0 1,0 -700,0');
    offset-rotate: 0deg;
    animation: formula-fade-in 1.5s ease 1.8s forwards, formula-orbit 20s linear 1.8s infinite;
    font-size: 1.05rem;
    font-weight: 700;
}

.formula-5 {
    offset-path: path('M 600,400 C 200,150 100,650 600,400 C 1100,150 1000,650 600,400');
    offset-rotate: 0deg;
    animation: formula-fade-in 1.5s ease 3.2s forwards, formula-orbit 38s linear 3.2s infinite;
}

@keyframes formula-fade-in {
    to {
        opacity: 0.75;
    }
}

@keyframes formula-orbit {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

.saddle-point {
    fill: #c8102e;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: pop-point 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3.5s forwards;
}

.intro-tagline {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.25rem;
    color: #f2f2f5;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
    /* Offset for letter-spacing centering */
    margin-top: 2.5rem;
    opacity: 0;
    transform-origin: center top;
    animation: fade-in 1s ease 0.5s forwards, tagline-grow 4.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.intro-zcash-address {
    position: absolute;
    top: 150px;
    right: 60px;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--red-active);
    text-shadow: 0 0 8px rgba(200, 16, 46, 0.7), 0 0 15px rgba(200, 16, 46, 0.4);
    letter-spacing: 0.05em;
    z-index: 10000;
    opacity: 0;
    animation: fade-in 1s ease 0.5s forwards, zcash-glow-pulse 4s infinite 1.5s;
}

.intro-zcash-caret {
    display: inline-block;
    color: var(--red-active);
    font-family: sans-serif;
    margin-left: 2px;
    font-weight: 400;
    text-shadow: 0 0 8px rgba(200, 16, 46, 0.7);
    animation: soft-blink 1s infinite alternate;
}

.intro-rsa-formula {
    position: absolute;
    bottom: 150px;
    left: 60px;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--red-active);
    text-shadow: 0 0 8px rgba(200, 16, 46, 0.7), 0 0 15px rgba(200, 16, 46, 0.4);
    letter-spacing: 0.05em;
    z-index: 10000;
    opacity: 0;
    animation: fade-in 1s ease 0.5s forwards, zcash-glow-pulse 4s infinite 1.5s;
}

.intro-rsa-caret {
    display: inline-block;
    color: var(--red-active);
    font-family: sans-serif;
    margin-left: 2px;
    font-weight: 400;
    text-shadow: 0 0 8px rgba(200, 16, 46, 0.7);
    animation: soft-blink 1s infinite alternate;
}

@keyframes zcash-glow-pulse {

    0%,
    100% {
        opacity: 0.9;
        text-shadow: 0 0 8px rgba(200, 16, 46, 0.7), 0 0 15px rgba(200, 16, 46, 0.4);
    }

    48% {
        opacity: 0.85;
        text-shadow: 0 0 6px rgba(200, 16, 46, 0.5), 0 0 10px rgba(200, 16, 46, 0.3);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 14px rgba(200, 16, 46, 0.9), 0 0 25px rgba(200, 16, 46, 0.5);
    }

    52% {
        opacity: 0.9;
        text-shadow: 0 0 8px rgba(200, 16, 46, 0.7), 0 0 15px rgba(200, 16, 46, 0.4);
    }

    75% {
        opacity: 0.95;
        text-shadow: 0 0 9px rgba(200, 16, 46, 0.75), 0 0 18px rgba(200, 16, 46, 0.45);
    }
}

@keyframes tagline-grow {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(2);
    }
}

/* -------------------------------------------------------------
   Main App Container Layout
   ------------------------------------------------------------- */
#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    opacity: 1;
    transition: opacity 0.6s ease-in-out 0.2s;
}

#app-container.hidden {
    opacity: 0;
}

#app-container.no-transition {
    transition: none !important;
}

/* Header */
.site-header {
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(10, 10, 13, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.3em;
}

.logo-red {
    color: var(--red-active);
}

.logo-white {
    color: var(--text-strong);
}

.header-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex-grow: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar-nav {
    position: relative;
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background: #111116;
    /* Solid dark color */
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-muted);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
}

.nav-item:hover {
    color: var(--text-strong);
    border-color: rgba(200, 16, 46, 0.4);
    background: rgba(200, 16, 46, 0.05);
    box-shadow: 0 0 15px rgba(200, 16, 46, 0.15);
    transform: translateX(4px);
}

.nav-item.active {
    color: var(--text-strong);
    border-color: var(--red-active);
    background-color: rgba(200, 16, 46, 0.1);
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.2);
}

.nav-num {
    color: var(--red-active);
    font-weight: 700;
}

.sidebar-footer {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Content Viewport */
.content-viewport {
    padding: 48px 64px;
    overflow-y: auto;
    background-color: transparent;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    max-width: 1040px;
    margin: 0 auto;
}

/* Running text blocks */
.text-block,
.lead-text,
.contact-info p {
    max-width: 720px;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: none;
}

/* HOME tab styles inherited from .tab-content */

/* Typography & Content styling */
.section-title {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
    padding-bottom: 15px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-strong);
    position: relative;
    border-bottom: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--red-active), transparent);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-strong);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-strong);
    margin-bottom: 3rem;
    line-height: 1.65;
}

.text-block p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
}

.text-block strong {
    color: var(--text-strong);
    font-weight: 500;
}

strong {
    color: var(--text-strong);
    font-weight: 500;
}

blockquote {
    border-left: 2px solid var(--red-deep);
    padding: 16px 24px;
    margin: 2rem 0;
    font-style: normal;
    color: var(--text-body);
    background-color: rgba(200, 16, 46, 0.05);
}



/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2rem;
}

.info-card {
    background: rgba(24, 24, 29, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
    border-color: rgba(200, 16, 46, 0.5);
    background: rgba(30, 15, 20, 0.6);
    box-shadow: 0 8px 32px rgba(200, 16, 46, 0.15), inset 0 0 0 1px rgba(200, 16, 46, 0.2);
    transform: translateY(-4px);
}

.info-card h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #f2f2f5;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* Two-Column Layout for Verticals */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 2rem;
}

.column-header {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--red-active);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

/* Solutions List */
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-item {
    background: rgba(24, 24, 29, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-item:hover {
    border-color: rgba(200, 16, 46, 0.5);
    background: rgba(30, 15, 20, 0.6);
    box-shadow: 0 8px 32px rgba(200, 16, 46, 0.15), inset 0 0 0 1px rgba(200, 16, 46, 0.2);
    transform: translateY(-4px);
}

.solution-item h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.solution-item p {
    font-size: 0.95rem;
    color: var(--text-body);
}

.solution-item .tracer-sample-note {
    margin-top: 0.85rem;
    color: var(--text-muted);
}

.tracer-sample-copy {
    width: 100%;
    margin-top: 0.8rem;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    background: rgba(8, 8, 12, 0.72);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: copy;
    text-align: left;
}

.tracer-sample-copy:hover,
.tracer-sample-copy:focus-visible {
    border-color: rgba(200, 16, 46, 0.65);
    outline: none;
}

.tracer-sample-copy code {
    min-width: 0;
    color: var(--text-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.tracer-sample-copy span {
    flex: 0 0 auto;
    color: var(--red-active);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* Publications */
.pub-card {
    background: rgba(24, 24, 29, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pub-card:hover {
    border-color: rgba(200, 16, 46, 0.5);
    background: rgba(30, 15, 20, 0.6);
    box-shadow: 0 8px 32px rgba(200, 16, 46, 0.15), inset 0 0 0 1px rgba(200, 16, 46, 0.2);
    transform: translateY(-4px);
}

.pub-tag,
.status-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background-color: rgba(255, 255, 255, 0.06);
    color: #f2f2f5;
    padding: 4px 10px;
    letter-spacing: 0.15em;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-block;
    margin-bottom: 15px;
}

.pub-card h4 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 5px;
}

.pub-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.pub-desc {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* Contact Grid */
.contact-grid {
    max-width: 720px;
}

.contact-info p {
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-line {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.detail-label {
    width: 140px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.detail-value {
    color: var(--text-body);
    font-weight: 400;
    font-size: 0.95rem;
}



/* -------------------------------------------------------------
   Animations Keyframes
   ------------------------------------------------------------- */
@keyframes tracking-in {
    0% {
        letter-spacing: 0.4em;
        opacity: 0;
        transform: scale(0.98);
    }

    100% {
        letter-spacing: 0.8em;
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}



@keyframes fade-in-point {
    to {
        opacity: 0.6;
    }
}

@keyframes float-formula {
    0% {
        opacity: 0;
        transform: translateY(10px) rotate(-3deg);
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes pop-point {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* -------------------------------------------------------------
   Responsive Media Queries
   ------------------------------------------------------------- */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow-y: auto;
    }

    body {
        height: auto;
    }

    #app-container {
        height: auto;
    }

    .sidebar-nav {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 24px 40px;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .cards-grid,
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .nav-item {
        padding: 12px 16px;
        flex: 1 1 calc(33% - 10px);
        min-width: 150px;
        justify-content: center;
    }

    .content-viewport {
        padding: 40px;
    }


}

@media (max-width: 600px) {
    .site-header {
        padding: 0 20px;
        height: 60px;
    }

    .sidebar-nav {
        padding: 20px;
    }

    .nav-item {
        flex: 1 1 100%;
    }

    .content-viewport {
        padding: 30px 20px;
    }

    .intro-title {
        font-size: 1.8rem;
        letter-spacing: 0.4em;
    }

    .intro-tagline {
        font-size: 0.95rem;
    }

    .intro-zcash-address {
        top: 110px;
        right: 20px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Version Badge */
.version-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    margin-left: 10px;
    letter-spacing: 0.1em;
    opacity: 0.8;
    vertical-align: middle;
}

/* Intro Skip Hint */
.intro-skip-hint {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #a0a0b0;
    opacity: 0;
    letter-spacing: 0.2em;
    z-index: 10000;
    animation: fade-in 1s ease 1s forwards;
    cursor: pointer;
    pointer-events: auto;
}

.intro-skip-hint:hover {
    color: #f5f5f7;
}

/* Pub Soon */
.pub-soon {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 15px;
    letter-spacing: 0.05em;
}

/* Library styling */
.library-sections {
    display: flex;
    flex-direction: column;
    gap: 45px;
    margin-top: 2.5rem;
}

.library-group {
    margin-bottom: 10px;
}

.library-group-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-strong);
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--red-deep);
    padding-left: 15px;
    text-transform: uppercase;
}

/* Prefers Reduced Motion Query */
@media (prefers-reduced-motion: reduce) {
    #intro-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: none !important;
    }

    #app-container {
        opacity: 1 !important;
        transition: none !important;
    }

    .ecc-path-large,
    .manifold-line,
    .hyperbola-path,
    .fq-point,
    .saddle-point,
    .intro-title,
    .intro-tagline {
        animation: none !important;
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
        transform: none !important;
        scale: 1 !important;
    }

    .formula-text {
        animation: none !important;
        opacity: 0.75 !important;
        offset-path: none !important;
        position: absolute !important;
    }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: #3a3a42;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555562;
}

/* Links */
a {
    color: var(--text-body);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
}

a:hover {
    color: #f2f2f5;
    text-decoration-color: #f2f2f5;
}

/* Thesis Line */
#thesis-line {
    font-family: "Playwrite US Trad", cursive;
    font-weight: 200;
    /* Thin calligraphic weight */
    font-size: clamp(0.85rem, 1.2vw, 1.15rem);
    /* Increased size to fit exactly 2 lines on desktop */
    line-height: 1.7;
    /* Line height for readability */
    color: #f2f2f5;
    text-shadow: none;
    /* No shadow / thin strokes */
    width: 56%;
    /* Epigraph width */
    max-width: 560px;
    /* Cap width to prevent line length growing too long */
    margin: 24px 0 0 auto;
    /* Pushed to the right */
    text-align: left;
    /* Characters stay left-aligned */
    min-height: clamp(3.0rem, 4.2vw, 4.0rem);
    /* Bounded height for 2 lines */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #thesis-line {
        width: 88%;
        /* Slightly wider on mobile */
        margin-left: auto;
        /* Still pushed to the right */
        min-height: 4.8rem;
        /* Space for 3 lines on mobile */
    }
}

.thesis-author {
    font-family: "Playwrite US Trad", cursive;
    font-weight: 200;
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    /* Scaled up in proportion to the quote */
    color: rgba(242, 242, 245, 0.65);
    /* Subtle color for author signature */
    width: 56%;
    max-width: 560px;
    margin: 12px 0 0 auto;
    /* Align with quote block, space below it */
    text-align: right;
    /* Right-aligned under the left-aligned quote */
    opacity: 0;
    transition: opacity 1.5s ease;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .thesis-author {
        width: 88%;
        margin-left: auto;
    }
}

/* Typewriter character fade-in for smooth unrolling */
#thesis-line .char {
    display: inline;
    animation: char-fade-in 0.08s ease forwards;
}

@keyframes char-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.thesis-caret {
    display: inline-block;
    color: #9b9ba6;
    font-family: sans-serif;
    margin-left: 2px;
    animation: soft-blink 1s infinite alternate;
}

@keyframes soft-blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Glossary Styles */
#tab-glossary .section-title {
    color: var(--red-active);
}

.glossary-search-box {
    position: relative;
    margin: 28px 0 18px;
    max-width: 720px;
}

.glossary-search-box input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    /* Strict square style */
    color: var(--text-strong);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.glossary-search-box input::placeholder {
    color: var(--text-muted);
}

.glossary-search-box input:focus {
    outline: none;
    border-color: var(--red-active);
    box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.25);
}

.glossary-search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
}

/* Category Filter Chips */
.glossary-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    max-width: 720px;
}

.glossary-filters .chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 0;
    /* Strict square style */
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.glossary-filters .chip:hover {
    color: var(--text-strong);
    border-color: var(--text-muted);
}

.glossary-filters .chip[aria-pressed="true"] {
    background-color: rgba(200, 16, 46, 0.07);
    color: var(--text-strong);
    border-color: var(--red-active);
}

.glossary-filters .chip:focus-visible {
    outline: 2px solid var(--red-active);
    outline-offset: 2px;
}

.glossary-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Groups and Entries */
.cat-group {
    margin-bottom: 38px;
}

.cat-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    margin: 0 0 18px;
}

.entry {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.entry:last-child {
    border-bottom: none;
}

.entry .term {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: var(--text-strong);
    font-weight: 700;
    margin: 0 0 6px;
}

.entry .def {
    margin: 0;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.glossary-empty {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 30px 0;
    text-align: center;
    display: none;
}

/* Match Highlighting */
#tab-glossary mark {
    background: rgba(200, 16, 46, 0.15);
    color: var(--red-active);
    padding: 0 2px;
    border-radius: 0;
}

/* -------------------------------------------------------------
   Lab Home Page Styles
   ------------------------------------------------------------- */
.lab-hero {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lab-hero .lab-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-strong);
    margin: 0 0 12px 0;
}

.lab-hero .lab-subtitle {
    font-family: var(--font-mono);
    color: var(--text-strong);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin: 0;
}

.lab-hero .lab-description {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.8;
    margin: 2rem 0 0;
}

.lab-section-header {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-section-header::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

.product-card {
    background: rgba(10, 10, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--red-active);
    background: rgba(24, 24, 29, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.1);
}

.product-id {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.product-card h3 {
    color: var(--text-strong);
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.product-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.core-principle-box {
    line-height: 1.7;
    padding: 30px 40px;
    background: rgba(200, 16, 46, 0.02);
    border-left: 3px solid var(--red-active);
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.intro-formula-top-left {
    position: absolute;
    top: 60px;
    left: 60px;
    font-family: var(--font-mono);
    font-size: 1.725rem;
    color: var(--red-active);
    text-shadow: 0 0 6px rgba(200, 16, 46, 0.4);
    z-index: 10000;
    opacity: 0;
    animation: slide-top-left 4.5s cubic-bezier(0.1, 0.8, 0.25, 1) 0.8s forwards;
}

.intro-formula-bottom-right {
    position: absolute;
    bottom: 60px;
    right: 60px;
    font-family: var(--font-mono);
    font-size: 1.725rem;
    color: var(--red-active);
    text-shadow: 0 0 6px rgba(200, 16, 46, 0.4);
    z-index: 10000;
    opacity: 0;
    animation: slide-bottom-right 4.5s cubic-bezier(0.1, 0.8, 0.25, 1) 0.8s forwards;
}

@keyframes slide-top-left {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(22vw, 22vh);
    }
}

@keyframes slide-bottom-right {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translate(-22vw, -22vh);
    }
}

/* Fibonacci Simulation Section */
.instability-quotes {
    display: block;
    margin-top: 1.5rem;
}

.instability-quote {
    margin: 0 0 0.7rem;
    padding: 0;
}

.instability-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.55;
}

.instability-quote figcaption {
    margin-top: 0.05rem;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.45;
}

.instability-quote a {
    color: inherit;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 2px;
}

.instability-quote a:hover {
    color: var(--text-primary);
}

.dynamics-intro {
    margin-top: 2rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

.dynamics-intro p {
    margin-bottom: 1rem;
}

.dynamics-intro p:last-child {
    margin-bottom: 0;
}

.fibonacci-interactive-section {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease-in-out;
}

.fibonacci-interactive-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.dynamics-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin: 1.5rem 0;
}

.dynamics-panel {
    min-width: 0;
    border: 1px solid var(--border-color);
    background: #0d0d11;
    border-radius: 8px;
    overflow: hidden;
}

.dynamics-panel-header {
    height: 38px;
    padding: 0 13px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.08em;
}

.dynamics-panel-header span:first-child {
    color: var(--text-strong);
    font-weight: 700;
}

.video-container {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    background-color: #0d0d11;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 8 / 5;
}

.fibonacci-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.market-chart {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    background: radial-gradient(circle at 72% 28%, rgba(94, 47, 109, 0.09), transparent 46%), #100d18;
}

#zMarketCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.zec-terminal-header {
    min-height: 48px;
    padding: 7px 12px;
    border-bottom: 1px solid #292435;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #100d18;
}

.zec-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.zec-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f4b728;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
}

.zec-identity strong,
.zec-identity span,
.zec-market-stats,
.zec-interval {
    font-family: var(--font-mono);
}

.zec-identity strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.79rem;
    line-height: 1.1;
}

.zec-identity div > span {
    display: block;
    margin-top: 3px;
    color: #8e899c;
    font-size: 0.6rem;
}

.zec-identity b {
    color: #35d890;
    font-weight: 600;
}

.zec-interval {
    color: #cbc6d5;
    font-size: 0.69rem;
    font-weight: 700;
    border: 1px solid #322c40;
    border-radius: 5px;
    padding: 4px 7px;
}

.zec-market-stats {
    min-height: 34px;
    padding: 0 12px;
    border-bottom: 1px solid #292435;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 8px;
    color: #8e899c;
    background: #100d18;
    font-size: 0.58rem;
}

.zec-market-stats strong {
    color: #e7e3ed;
    font-weight: 600;
}

.market-change,
.market-step {
    position: absolute;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
}

.market-change {
    top: 9px;
    left: 12px;
    color: #35d890;
    text-shadow: 0 0 12px rgba(53, 216, 144, 0.18);
}

.market-step {
    right: 12px;
    bottom: 68px;
    color: var(--text-muted);
}

@media (max-width: 520px) {
    .zec-market-stats {
        font-size: 0.52rem;
    }
}

@media (max-width: 900px) {
    .dynamics-pair {
        grid-template-columns: 1fr;
    }
}

.code-explanation-box {
    margin-top: 1.5rem;
    max-width: 680px;
}

.code-block {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 1.2rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.5;
    margin-top: 1rem;
}

.code-block code {
    font-family: var(--font-mono);
}

.fibonacci-description {
    max-width: 680px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.fibonacci-description p {
    margin-bottom: 1rem;
}

.fibonacci-description p:last-child {
    margin-bottom: 0;
}

/* Ticker/Marquee Styles */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: rgba(200, 16, 46, 0.05);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin: 1.5rem 0 2.5rem 0;
    display: flex;
}

.ticker {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    width: 100%;
}

.ticker-content {
    flex-shrink: 0;
    display: inline-block;
    padding-right: 2rem;
    animation: marquee-scroll 25s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--red-active);
    letter-spacing: 0.15em;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   OLGA VOICE ASSISTANT MODAL & WIDGET (BLACK RABBITS LAB THEME)
   ========================================================================== */
.olga-hidden {
    display: none !important;
}

.olga-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.olga-modal-card {
    width: 580px;
    max-width: 95vw;
    background: rgba(18, 18, 23, 0.95);
    border: 1px solid rgba(200, 16, 46, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(200, 16, 46, 0.15);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.olga-modal-header {
    height: 48px;
    background: rgba(10, 10, 14, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.olga-avatar-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--red-active);
    font-weight: 600;
}

.olga-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-active);
    box-shadow: 0 0 10px var(--red-active);
}

.olga-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.olga-close-btn:hover {
    color: #fff;
}

.olga-modal-card.olga-modal-split {
    width: 1220px;
    max-width: 94vw;
}

.olga-modal-split-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
    align-items: stretch;
}

@media (max-width: 960px) {
    .olga-modal-split-body {
        grid-template-columns: 1fr;
    }
}

.olga-description-stage {
    background: #0d0d12;
    border: 1px solid rgba(200, 16, 46, 0.3);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
    height: 100%;
}

.olga-status-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--red-active);
    letter-spacing: 0.12em;
    font-weight: 700;
}

.olga-dev-title {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFF;
    margin: 0;
    line-height: 1.3;
}

.olga-dev-lead {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.55;
    margin: 0;
}

.olga-feature-box {
    background: rgba(200, 16, 46, 0.06);
    border: 1px solid rgba(200, 16, 46, 0.22);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.olga-feature-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--red-active);
    margin: 0;
    font-family: var(--font-sans);
}

.olga-feature-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.olga-feature-text strong {
    color: var(--text-strong);
}

.olga-demo-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.olga-demo-hint .hint-icon {
    color: var(--red-active);
    font-weight: 700;
    font-size: 1rem;
}

.olga-controls-stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    justify-content: space-between;
}

.olga-demo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-strong);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.olga-demo-header .demo-badge {
    background: rgba(200, 16, 46, 0.2);
    color: var(--red-active);
    border: 1px solid rgba(200, 16, 46, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.olga-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.olga-greeting-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
}

.olga-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8102E 0%, #800A1D 100%);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.olga-greeting-text strong {
    display: block;
    font-size: 0.95rem;
    color: #FFF;
    margin-bottom: 2px;
}

.olga-greeting-text p {
    font-size: 0.85rem;
    color: var(--text-body);
    font-style: italic;
}

.olga-dictation-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(12, 12, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.olga-mic-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.olga-mic-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8102E 0%, #7A0A1C 100%);
    border: none;
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.olga-mic-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.6);
}

.olga-mic-button.recording {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

.olga-mic-pulse {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200, 16, 46, 0.3);
    z-index: 1;
    opacity: 0;
}

.olga-mic-button.recording + .olga-mic-pulse,
.olga-mic-pulse.active {
    animation: olga-pulse 1.6s infinite ease-out;
}

@keyframes olga-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}

.olga-status-bar {
    text-align: center;
    margin: 10px 0 6px 0;
}

.olga-status-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-body);
    font-family: var(--font-mono);
}

.olga-timer {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--red-active);
}

.olga-visualizer-box {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.olga-output-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.olga-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.olga-output-actions {
    display: flex;
    gap: 6px;
}

.olga-btn {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.olga-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-body);
    border-color: rgba(255, 255, 255, 0.1);
}

.olga-btn-secondary:hover {
    background: rgba(200, 16, 46, 0.2);
    border-color: rgba(200, 16, 46, 0.4);
    color: #FFF;
}

.olga-btn-ghost {
    background: transparent;
    color: var(--text-dim);
}
.olga-btn-ghost:hover {
    color: var(--red-active);
}

#olgaOutputText {
    width: 100%;
    height: 120px;
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #FFF;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}
#olgaOutputText:focus {
    border-color: rgba(200, 16, 46, 0.6);
}
