/* AGENTS intro — TOPKEK-adjacent terminal aesthetic */

:root {
    --agents-bg: #111111;
    --agents-accent: #4caf50;
    --agents-accent-soft: #81c784;
    --agents-text: #e8f5e9;
    /* Hero title opacity/scale — JS reads this via getComputedStyle (`waitForHeroTransition` safety margin). */
    --agents-hero-reveal-duration: 5s;
    --agents-line-emphasis: #ff5252;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.agents-intro-page {
    margin: 0;
    min-height: 100vh;
    background: var(--agents-bg);
    color: var(--agents-text);
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    line-height: 1.55;
    letter-spacing: 0.04em;
}

.agents-back {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    color: var(--agents-accent-soft);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(76, 175, 80, 0.45);
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.45);
}

.agents-back:hover {
    color: #b8efba;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.35);
}

.agents-back:focus-visible {
    outline: 1px solid var(--agents-accent);
    outline-offset: 2px;
}

.agents-intro-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.25rem 2.5rem;
    text-align: center;
}

.agents-intro-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.65s ease-out;
}

.agents-text-stack {
    max-width: 38rem;
    width: 100%;
}

.agents-line {
    margin: 0;
    min-height: 1.6em;
    text-transform: uppercase;
    color: var(--agents-accent-soft);
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.25);
}

.agents-line-primary {
    font-size: 1.05em;
}

.agents-line-secondary {
    margin-top: 1.25rem;
    font-size: 0.95em;
}

.agents-line .agents-line-highlight {
    color: var(--agents-line-emphasis);
    font-weight: 700;
    text-shadow: 0 0 14px rgba(255, 82, 82, 0.45);
}

.agents-hero-title {
    margin: 2.5rem 0 0;
    padding: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(2.75rem, 11vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--agents-accent);
    text-shadow:
        0 0 24px rgba(76, 175, 80, 0.45),
        0 0 48px rgba(76, 175, 80, 0.2);
    opacity: 0;
    transform: scale(0.88);
    transform-origin: center center;
    transition:
        opacity var(--agents-hero-reveal-duration) ease-out,
        transform var(--agents-hero-reveal-duration) ease-out;
    will-change: opacity, transform;
}

.agents-hero-title.agents-hero-title--visible {
    opacity: 1;
    transform: scale(1);
}

.agents-cta {
    margin-top: 2.5rem;
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--agents-accent);
    color: var(--agents-accent);
    background: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 750ms ease,
        transform 750ms ease,
        color 150ms ease,
        border-color 150ms ease,
        background 150ms ease;
}

.agents-cta.agents-cta--visible {
    opacity: 1;
    transform: translateY(0);
}

.agents-cta:hover {
    color: #b8efba;
    border-color: #81c784;
    background: rgba(76, 175, 80, 0.12);
}

.agents-cta:focus-visible {
    outline: 1px solid var(--agents-accent);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .agents-intro-main {
        padding-top: 3.5rem;
    }

    .agents-line-secondary {
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --agents-hero-reveal-duration: 0.2s;
    }

    .agents-intro-column {
        transition-duration: 0.01ms;
    }

    .agents-hero-title {
        will-change: auto;
    }

    .agents-cta {
        transition-duration: 0.01ms;
    }
}
