/* ==========================================================================
   reasoner.dev -- Editorial Reasoning Engine
   Navy-Metallic Palette with Glitch-Disrupted Vintage Editorial Style
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A1929;
    color: #C8D0DC;
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* --- Geometric Abstract Decorative Shapes --- */
.geo-shape {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
}

.geo-shape-1 {
    width: 400px;
    height: 400px;
    background: #4A90D9;
    top: 10vh;
    right: -100px;
    transform: skew(-15deg, 5deg) rotate(12deg);
}

.geo-shape-2 {
    width: 250px;
    height: 600px;
    background: #D4A843;
    top: 50vh;
    left: -80px;
    transform: skew(10deg, -8deg) rotate(-5deg);
}

.geo-shape-3 {
    width: 350px;
    height: 350px;
    background: #4A90D9;
    bottom: 10vh;
    right: 5vw;
    transform: skew(-20deg, 10deg) rotate(25deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
}

.hero-kicker {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #D4A843;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    color: #C8D0DC;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: #8899AA;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Glitch Text Effect --- */
.glitch-text {
    text-shadow: 2px 0 #4A90D9, -2px 0 #D4A843;
    transition: text-shadow 0.15s ease;
}

.glitch-text:hover {
    animation: glitch-flicker 0.3s ease-in-out;
}

@keyframes glitch-flicker {
    0% {
        text-shadow: 2px 0 #4A90D9, -2px 0 #D4A843;
    }
    20% {
        text-shadow: -3px 0 #4A90D9, 3px 0 #D4A843;
    }
    40% {
        text-shadow: 4px 1px #4A90D9, -4px -1px #D4A843;
    }
    60% {
        text-shadow: -1px -1px #4A90D9, 1px 1px #D4A843;
    }
    80% {
        text-shadow: 3px 0 #4A90D9, -3px 0 #D4A843;
    }
    100% {
        text-shadow: 2px 0 #4A90D9, -2px 0 #D4A843;
    }
}

/* --- Ornamental Rule --- */
.ornamental-rule {
    border: none;
    border-top: 1px solid #8899AA;
    width: 80px;
    margin: 1.5rem auto;
    opacity: 0.5;
}

#hero .ornamental-rule {
    width: 120px;
    border-top-color: #D4A843;
    opacity: 0.6;
}

/* --- Diamond Separator --- */
.diamond-separator {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.diamond-separator::before {
    content: "\25C6";
    color: #4A90D9;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* --- Editorial Sections --- */
.editorial-section {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.editorial-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #C8D0DC;
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.body-text {
    color: #8899AA;
    margin-bottom: 1.5rem;
    text-indent: 1.5em;
}

.body-text:first-of-type {
    text-indent: 0;
}

/* --- Pull Quote --- */
.pull-quote {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.5rem 2rem 1.5rem 2.5rem;
    border-left: 3px solid #D4A843;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    color: #C8D0DC;
    line-height: 1.6;
    background: rgba(21, 34, 56, 0.5);
}

.quote-mark {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #D4A843;
    opacity: 0.4;
    position: absolute;
    top: 0.2rem;
    left: 0.6rem;
    line-height: 1;
}

/* --- Reasoning Cards --- */
.reasoning-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reasoning-card {
    background: #152238;
    border: 1px solid rgba(72, 144, 217, 0.15);
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.reasoning-card:hover {
    border-color: rgba(212, 168, 67, 0.4);
    transform: translateX(4px);
}

.card-number {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #4A90D9;
    opacity: 0.15;
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    line-height: 1;
}

.card-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #C8D0DC;
    margin-bottom: 0.6rem;
}

.card-text {
    color: #8899AA;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Evidence Grid --- */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.evidence-item {
    background: #152238;
    padding: 2rem 1rem;
    border: 1px solid rgba(72, 144, 217, 0.1);
    transition: border-color 0.3s ease;
}

.evidence-item:hover {
    border-color: rgba(212, 168, 67, 0.3);
}

.evidence-number {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #4A90D9;
    margin-bottom: 0.4rem;
}

.evidence-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8899AA;
}

/* --- CTA Block --- */
.cta-block {
    text-align: center;
    margin-top: 3rem;
}

.cta-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4A843;
    letter-spacing: 0.05em;
    text-shadow: 2px 0 #4A90D9, -2px 0 #D4A843;
    cursor: default;
    transition: text-shadow 0.15s ease;
}

.cta-text:hover {
    animation: glitch-flicker 0.3s ease-in-out;
}

/* --- Footer --- */
#footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    margin-top: 2rem;
}

#footer .ornamental-rule {
    width: 60px;
    border-top-color: #4A90D9;
    margin-bottom: 1rem;
}

.footer-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #8899AA;
    letter-spacing: 0.1em;
}

.footer-diamond::before {
    content: "\25C6";
    font-size: 0.5rem;
    color: #4A90D9;
    margin: 0 0.6rem;
    vertical-align: middle;
}

.footer-year {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #8899AA;
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
    opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .editorial-section {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .pull-quote {
        padding: 1rem 1.25rem 1rem 1.75rem;
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
