/* soning.stream - Grainy-Textured Reasoning Stream */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --stream-dark: #1A1A24;
    --reasoning-blue: #1E2A3E;
    --reasoning-plum: #2E1A3E;
    --neon-teal: #00E5C8;
    --soft-amber: #FFB347;
    --insight-pink: #FF69B4;
    --cream-light: #F0E8E0;
    --dim-stream: #7A7A8A;
}
body {
    background: var(--stream-dark);
    color: var(--cream-light);
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.85;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
}

/* Stream Ribbon */
.stream-ribbon {
    position: fixed;
    left: calc(50% - 375px - 20px);
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--neon-teal) 20%, var(--neon-teal) 80%, transparent);
    opacity: 0.3;
    z-index: 1;
    animation: ribbonPulse 3s ease-in-out infinite;
}
@keyframes ribbonPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; box-shadow: 0 0 8px var(--neon-teal); }
}

/* Hero */
#hero {
    text-align: center;
    padding: 6rem 2rem 3rem;
}
.hero-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--cream-light);
    text-shadow: 0 0 20px rgba(0,229,200,0.3);
}
.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--dim-stream);
    margin-top: 0.5rem;
}

/* Stream */
#stream {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Stream Cards */
.stream-card {
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.card-blue {
    background: var(--reasoning-blue);
}
.card-plum {
    background: var(--reasoning-plum);
}
.timestamp {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--dim-stream);
    display: block;
    margin-bottom: 0.75rem;
}
.card-heading {
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--soft-amber);
    margin-bottom: 0.75rem;
}
.card-body {
    font-size: 1.05rem;
    color: var(--cream-light);
    opacity: 0.9;
}

/* Neon Insight */
.neon-insight {
    color: var(--neon-teal);
    text-shadow: 0 0 10px rgba(0,229,200,0.4);
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(122,122,138,0.15);
}
.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--dim-stream);
}

/* Responsive */
@media (max-width: 800px) {
    .stream-ribbon { display: none; }
}
@media (max-width: 600px) {
    .stream-card { padding: 1.5rem; }
}
