.hero_section {
    margin-top: -2vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 70%, transparent 100%);
}

.hero_section.compact {
    height: 25vh;
}

.hero_inner {
    width: 90%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    padding: 3rem 0;
}

.hero_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--background_panel);
    color: var(--text_secondary);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: var(--text_font);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0px;
}

.hero_title {
    font-family: var(--header_font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text_primary);
    line-height: 1.2;
}

.hero_subtitle {
    font-family: var(--text_font);
    font-size: 1rem;
    color: var(--text_secondary);
    line-height: 1.6;
    max-width: 480px;
}

.hero_actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero_illustration {
    flex-shrink: 0;
}

.hero_img_wrapper {
    width: 180px;
    height: 180px;
    background-color: var(--background_panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    padding: 10px;
    position: relative;
}

.hero_img_wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    z-index: -1;
    pointer-events: none;
}

.dev_avatar_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
}

.code_editor_wrapper {
    width: 100%;
    max-width: 480px;
    background-color: var(--background_panel, #1e1e1e);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    position: relative;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.code_editor_wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    z-index: -1;
    pointer-events: none;
}

.code_header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code_header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.code_header .dot.red { background-color: #ff5f56; }
.code_header .dot.yellow { background-color: #ffbd2e; }
.code_header .dot.green { background-color: #27c93f; }

.file_name {
    margin-left: 8px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text_secondary, #888);
}

.code_container {
    display: flex;
    overflow-x: auto;
    background-color: #1e1e1e;
}

.line_numbers {
    padding: 14px 12px;
    text-align: right;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.15);
}

.code_body {
    padding: 14px;
    margin: 0;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #d4d4d4;
    flex: 1;
    white-space: pre;
}

/* --- EXACT COLOR MAPPING MATCHING YOUR IMAGE --- */
.code_body .local { color: #569cd6; }          /* Darker / cyan blue for 'local' */
.code_body .variable { color: #9cdcfe; }       /* Lighter blue for vars / args / self */
.code_body .keyword { color: #c586c0; }        /* Purple-ish for keywords (function, if, return, end, true) */
.code_body .classword { color: #4ec9b0; }      /* Green for classnames (TestExtension) */
.code_body .function { color: #dcdcaa; }       /* Yellow for functions and methods */
.code_body .string { color: #ce9178; }         /* Orange for strings */
.code_body .number { color: #b5cea8; }         /* Numeric values */

@media (min-width: 1024px) {
    .code_editor_wrapper {
        width: 520px;
    }
}

@media (min-width: 768px) {
    .hero_inner {
        width: 88%;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .hero_title {
        font-size: 2.3rem;
    }

    .hero_subtitle {
        font-size: 1.05rem;
        max-width: 520px;
    }

    .hero_img_wrapper {
        width: 220px;
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .hero_section {
        height: 50vh;
    }

    .hero_inner {
        width: 60%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 4rem;
        padding: 5rem 1vw;
    }

    .hero_content {
        align-items: flex-start;
    }

    .hero_subtitle {
        text-align: left;
        font-size: 1.1rem;
        max-width: 540px;
    }

    .hero_title {
        font-size: 3rem;
    }

    .hero_actions {
        justify-content: flex-start;
    }

    .hero_img_wrapper {
        width: 260px;
        height: 260px;
    }
}