.intro-main {
    overflow-y: auto;
    padding: 0;
}

/* Hero: fills viewport */
.intro-hero {
    min-height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10vw;
    position: relative;
}

.intro-hero-inner {
    width: 100%;
}

.intro-hero h1 {
    font-size: 32px;
    color: #cdd6f4;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
}

.intro-hero p {
    font-size: 16px;
    color: #6c7086;
    line-height: 1.6;
    margin-bottom: 28px;
}

.intro-start-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #89b4fa;
    color: #1e1e2e;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
    box-shadow: 0 2px 12px rgba(137, 180, 250, 0.25);
}

.intro-start-btn:hover {
    background: #74c7ec;
}

.intro-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 10vw;
    font-size: 12px;
    color: #45475a;
    animation: intro-pulse 2s ease-in-out infinite;
}

@keyframes intro-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Content blocks below the fold */
.intro-blocks {
    max-width: 700px;
    margin: 0 auto;
}

.intro-block {
    padding: 32px 0;
}

.intro-block + .intro-block {
    border-top: 1px solid #313244;
}

.intro-block h2 {
    font-size: 20px;
    color: #cdd6f4;
    margin-bottom: 14px;
    font-weight: 700;
}

.intro-block > p {
    font-size: 15px;
    color: #a6adc8;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Side-by-side script + policy */
.intro-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0 16px;
}

.intro-pair-card {
    background: #181825;
    border: 1px solid #313244;
    border-radius: 8px;
    overflow: hidden;
}

.intro-pair-label {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #585b70;
    background: #11111b;
    border-bottom: 1px solid #313244;
}

.intro-code {
    padding: 14px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: #cdd6f4;
    margin: 0;
    overflow-x: auto;
}

.intro-code .c { color: #6c7086; }
.intro-code .k { color: #cba6f7; }
.intro-code .fn { color: #a6e3a1; }
.intro-code .s { color: #f9e2af; }

/* Result line (legacy) */
.intro-result {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.intro-result span {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

.intro-result code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
}

.intro-result-ok {
    color: #a6e3a1;
    background: rgba(166, 227, 161, 0.06);
}

.intro-result-deny {
    color: #f38ba8;
    background: rgba(243, 139, 168, 0.06);
}

/* Script output panel — split layout */
.intro-output {
    background: #11111b;
    border: 1px solid #313244;
    border-radius: 8px;
    overflow: hidden;
}

.intro-output-label {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #585b70;
    background: #181825;
    border-bottom: 1px solid #313244;
}

.intro-output-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.intro-output-left {
    padding: 12px 14px;
    border-right: 1px solid #313244;
}

.intro-output-left pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
    color: #cdd6f4;
    white-space: pre-wrap;
    word-break: break-word;
}

.intro-output-right {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.intro-output-right .out-annotation {
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.intro-output-right .out-annotation .out-icon {
    flex-shrink: 0;
    font-size: 13px;
}

.intro-output-right .out-annotation .out-text {
    color: #a6adc8;
}

.intro-output-right .out-annotation.ok .out-icon { color: #a6e3a1; }
.intro-output-right .out-annotation.ok .out-text { color: #a6adc8; }
.intro-output-right .out-annotation.err .out-icon { color: #f38ba8; }
.intro-output-right .out-annotation.err .out-text { color: #a6adc8; }

.intro-output .out-ok { color: #a6e3a1; }
.intro-output .out-err { color: #f38ba8; }

.out-annotation-spacer {
    height: 1.2em;
}

/* Bottom CTA */
.intro-bottom-cta {
    border-top: 1px solid #313244;
    display: flex;
    gap: 10px;
    padding-top: 32px !important;
    justify-content: center;
}

.intro-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #89b4fa;
    color: #1e1e2e;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.intro-btn:hover { background: #74c7ec; }

.intro-btn.secondary {
    background: #313244;
    color: #cdd6f4;
}

.intro-btn.secondary:hover { background: #45475a; }
