/* Hierarchical Reasoning Model Page Styles */

.hrm_main {
    background: linear-gradient(180deg, #f9f8f4, #fff7e8 43.2%, #effaea 77.2%);
}

/* Hero Section */
.hrm_hero {
    padding: 13vw 11.4vw 6vw 11.4vw;
    text-align: center;
}

.hrm_hero_content h1 {
    font-weight: 500;
    font-size: 3vw;
    line-height: 1.3;
    color: #1a1a1a;
}

.hrm_hero_content p {
    font-size: 1.2vw;
    color: #2B2B2B;
    margin-top: 1.5vw;
    max-width: 60vw;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section */
.hrm_stats {
    padding: 0 11.4vw 4vw 11.4vw;
}

.hrm_stats h2 {
    font-weight: 500;
    font-size: 2vw;
    text-align: center;
    margin-bottom: 2vw;
}

.hrm_stats_wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
    max-width: 60vw;
    margin: 0 auto;
}

.hrm_stat_card {
    background: linear-gradient(135deg, #f9f8f4 0%, #f0f1e2 100%);
    border-radius: 1vw;
    padding: 2vw;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.hrm_stat_card .stat_value {
    display: block;
    font-size: 2.2vw;
    font-weight: 600;
    color: #789165;
}

.hrm_stat_card .stat_label {
    display: block;
    font-size: 0.9vw;
    color: #666;
    margin-top: 0.5vw;
}

/* Tab Navigation */
.hrm_tabs_section {
    padding: 2vw 11.4vw;
}

.hrm_tabs_wrap {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #f9f8f4;
    border-radius: 0.7vw;
    padding: 0.3vw;
    max-width: fit-content;
    margin: 0 auto;
}

.hrm_tab {
    padding: 0.8vw 2vw;
    font-size: 1vw;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5vw;
    color: #2B2B2B;
    transition: all 0.2s ease;
}

.hrm_tab:hover {
    background: #fff;
    color: #1E1614;
}

.hrm_tab.active {
    background: #1E1614;
    color: #fff;
}

/* Tab Content */
.hrm_tab_content {
    display: none;
    padding: 0 11.4vw 4vw 11.4vw;
}

.hrm_tab_content.active {
    display: block;
}

.hrm_tab_content h2 {
    font-weight: 500;
    font-size: 2vw;
    text-align: center;
    margin-bottom: 2vw;
}

/* SVG Diagram */
.hrm_diagram_wrap {
    background: #f9f8f4;
    border-radius: 1.3vw;
    padding: 2vw;
    margin-bottom: 2vw;
}

.hrm_svg_diagram {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.svg_text_title {
    font-size: 16px;
    font-weight: 600;
    fill: #1a1a1a;
}

.svg_text_bold {
    font-size: 12px;
    font-weight: 600;
    fill: #1a1a1a;
}

.svg_text_sm {
    font-size: 10px;
    fill: #666;
}

.svg_text_mono {
    font-size: 10px;
    font-family: monospace;
    fill: #444;
}

.svg_text_mono_sm {
    font-size: 9px;
    font-family: monospace;
    fill: #444;
}

/* Component Cards Grid */
.hrm_components_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5vw;
}

.hrm_component_card {
    border-radius: 1vw;
    padding: 1.8vw;
}

.hrm_component_card h3 {
    font-size: 1.2vw;
    font-weight: 600;
    margin-bottom: 0.5vw;
}

.hrm_component_card p {
    font-size: 0.95vw;
    line-height: 1.5;
    margin-bottom: 0.8vw;
}

.hrm_component_card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hrm_component_card ul li {
    font-size: 0.9vw;
    line-height: 1.6;
    padding-left: 1vw;
    position: relative;
}

.hrm_component_card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.hrm_card_green {
    background: linear-gradient(135deg, #e5f1de 0%, #d8eace 100%);
}

.hrm_card_green h3 {
    color: #3d5a30;
}

.hrm_card_green p,
.hrm_card_green ul li {
    color: #5a7a4a;
}

.hrm_card_gold {
    background: linear-gradient(135deg, #fcf3e1 0%, #f5e8d0 100%);
}

.hrm_card_gold h3 {
    color: #8b6914;
}

.hrm_card_gold p,
.hrm_card_gold ul li {
    color: #a68a3d;
}

.hrm_card_light {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.hrm_card_light h3 {
    color: #2e7d32;
}

.hrm_card_light p {
    color: #388e3c;
}

.code_tags {
    display: flex;
    gap: 1vw;
}

.code_tags code {
    background: rgba(255, 255, 255, 0.5);
    padding: 0.3vw 0.8vw;
    border-radius: 0.4vw;
    font-size: 0.85vw;
    font-family: monospace;
}

/* Info Boxes */
.hrm_info_box {
    border-radius: 1vw;
    padding: 1.5vw 2vw;
    margin-bottom: 1.5vw;
}

.hrm_info_box h4 {
    font-size: 1.1vw;
    font-weight: 600;
    margin-bottom: 0.8vw;
}

.hrm_info_box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hrm_info_box ul li {
    font-size: 0.9vw;
    line-height: 1.6;
    padding-left: 1vw;
    position: relative;
}

.hrm_info_box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.hrm_info_box p {
    font-size: 0.95vw;
    line-height: 1.5;
}

.hrm_info_box .small_text {
    font-size: 0.85vw;
    margin-top: 0.5vw;
}

.hrm_info_blue {
    background: #e5f1de;
    border: 1px solid #c8e6c9;
}

.hrm_info_blue h4 {
    color: #3d5a30;
}

.hrm_info_blue ul li,
.hrm_info_blue p {
    color: #5a7a4a;
}

.hrm_info_red {
    background: #ffe5e5;
    border: 1px solid #ef9a9a;
}

.hrm_info_red h4 {
    color: #c62828;
}

.hrm_info_red p {
    color: #d32f2f;
}

.hrm_info_green {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.hrm_info_green h4 {
    color: #2e7d32;
}

.hrm_info_green ul li,
.hrm_info_green p {
    color: #388e3c;
}

/* Two Column Layout */
.hrm_two_col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5vw;
}

.comparison_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5vw;
    font-size: 0.95vw;
}

.mono_text {
    font-family: monospace;
    font-weight: 600;
}

/* Features Section */
.hrm_features {
    padding: 4vw 11.4vw;
    background: #fff;
}

.hrm_features h2 {
    font-weight: 500;
    font-size: 2vw;
    text-align: center;
    margin-bottom: 2vw;
}

.hrm_features_list {
    max-width: 55vw;
    margin: 0 auto;
}

.hrm_feature_item {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
    padding: 1.2vw 1.5vw;
    background: #f9f8f4;
    border-radius: 0.8vw;
    margin-bottom: 1vw;
    transition: all 0.2s ease;
}

.hrm_feature_item:hover {
    background: #f0f1e2;
}

.feature_dot {
    width: 1.5vw;
    height: 1.5vw;
    min-width: 1.5vw;
    background: #789165;
    border-radius: 50%;
    margin-top: 0.2vw;
}

.feature_content h4 {
    font-size: 1vw;
    font-weight: 600;
    display: inline;
}

.feature_content p {
    font-size: 0.95vw;
    color: #666;
    display: inline;
    margin-left: 0.3vw;
}

/* Performance Section */
.hrm_performance {
    padding: 4vw 11.4vw;
}

.hrm_performance h2 {
    font-weight: 500;
    font-size: 2vw;
    text-align: center;
    margin-bottom: 2vw;
}

.hrm_performance_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vw;
    max-width: 60vw;
    margin: 0 auto;
}

.hrm_perf_card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vw 2vw;
    background: linear-gradient(135deg, #e5f1de 0%, #d8eace 100%);
    border-radius: 0.8vw;
}

.perf_info .perf_metric {
    font-size: 1vw;
    font-weight: 600;
    margin: 0;
}

.perf_info .perf_note {
    font-size: 0.8vw;
    color: #666;
    margin: 0;
}

.perf_value {
    font-size: 1.8vw;
    font-weight: 600;
    color: #789165;
}

.perf_footer {
    text-align: center;
    margin-top: 1.5vw;
    font-size: 1vw;
    color: #666;
}

/* Brain Correspondence Section */
.hrm_brain {
    padding: 4vw 11.4vw;
    background: #fff;
}

.hrm_brain h2 {
    font-weight: 500;
    font-size: 2vw;
    text-align: center;
    margin-bottom: 2vw;
}

.hrm_brain_list {
    max-width: 55vw;
    margin: 0 auto;
}

.hrm_brain_item {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
    padding: 1.2vw 1.5vw;
    background: #fcf3e1;
    border-radius: 0.8vw;
    margin-bottom: 1vw;
}

.brain_dot {
    width: 1.5vw;
    height: 1.5vw;
    min-width: 1.5vw;
    background: #D4B375;
    border-radius: 50%;
    margin-top: 0.2vw;
}

.brain_content h4 {
    font-size: 1vw;
    font-weight: 600;
    display: inline;
}

.brain_content p {
    font-size: 0.95vw;
    color: #666;
    display: inline;
    margin-left: 0.3vw;
}

/* Implementation Section */
.hrm_implementation {
    padding: 4vw 11.4vw 8vw 11.4vw;
}

.hrm_implementation h2 {
    font-weight: 500;
    font-size: 2vw;
    text-align: center;
    margin-bottom: 2vw;
    color: #fff;
}

.hrm_code_block {
    background: #1E1614;
    border-radius: 1.3vw;
    padding: 3vw;
    max-width: 60vw;
    margin: 0 auto;
    overflow-x: auto;
}

.hrm_code_block pre {
    margin: 0;
    background: transparent;
}

.hrm_code_block code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95vw;
    line-height: 1.8;
    display: block;
    white-space: pre;
}

/* Mobile Responsive */
@media (max-width: 500px) {
    .hrm_hero {
        padding: 43vw 5vw 15vw 5vw;
    }

    .hrm_hero_content h1 {
        font-size: 7vw;
    }

    .hrm_hero_content p {
        font-size: 4vw;
        margin-top: 5vw;
        max-width: 100%;
    }

    .hrm_stats {
        padding: 0 5vw 10vw 5vw;
    }

    .hrm_stats h2 {
        font-size: 5.5vw;
        margin-bottom: 6vw;
    }

    .hrm_stats_wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
        max-width: 100%;
    }

    .hrm_stat_card {
        border-radius: 4vw;
        padding: 6vw 4vw;
    }

    .hrm_stat_card .stat_value {
        font-size: 7vw;
    }

    .hrm_stat_card .stat_label {
        font-size: 3.2vw;
        margin-top: 2vw;
    }

    .hrm_tabs_section {
        padding: 5vw;
        overflow-x: auto;
    }

    .hrm_tabs_wrap {
        width: max-content;
        border-radius: 3vw;
        padding: 1vw;
    }

    .hrm_tab {
        padding: 3vw 5vw;
        font-size: 3.5vw;
        border-radius: 2vw;
        white-space: nowrap;
    }

    .hrm_tab_content {
        padding: 0 5vw 10vw 5vw;
    }

    .hrm_tab_content h2 {
        font-size: 5.5vw;
        margin-bottom: 6vw;
    }

    .hrm_diagram_wrap {
        border-radius: 4vw;
        padding: 4vw;
        overflow-x: auto;
    }

    .hrm_svg_diagram {
        min-width: 600px;
    }

    .hrm_components_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .hrm_component_card {
        border-radius: 4vw;
        padding: 6vw;
    }

    .hrm_component_card h3 {
        font-size: 4.5vw;
        margin-bottom: 2vw;
    }

    .hrm_component_card p {
        font-size: 3.5vw;
        margin-bottom: 3vw;
    }

    .hrm_component_card ul li {
        font-size: 3.3vw;
        padding-left: 4vw;
    }

    .code_tags {
        gap: 3vw;
    }

    .code_tags code {
        padding: 2vw 4vw;
        font-size: 3vw;
        border-radius: 2vw;
    }

    .hrm_two_col {
        grid-template-columns: 1fr;
        gap: 4vw;
    }

    .hrm_info_box {
        border-radius: 4vw;
        padding: 5vw 6vw;
        margin-bottom: 4vw;
    }

    .hrm_info_box h4 {
        font-size: 4.2vw;
        margin-bottom: 3vw;
    }

    .hrm_info_box ul li {
        font-size: 3.3vw;
        padding-left: 4vw;
    }

    .hrm_info_box p {
        font-size: 3.3vw;
    }

    .hrm_info_box .small_text {
        font-size: 3vw;
        margin-top: 2vw;
    }

    .comparison_row {
        font-size: 3.3vw;
        margin-bottom: 2vw;
    }

    .hrm_features,
    .hrm_brain {
        padding: 10vw 5vw;
    }

    .hrm_features h2,
    .hrm_brain h2 {
        font-size: 5.5vw;
        margin-bottom: 6vw;
    }

    .hrm_features_list,
    .hrm_brain_list {
        max-width: 100%;
    }

    .hrm_feature_item,
    .hrm_brain_item {
        gap: 4vw;
        padding: 5vw 6vw;
        border-radius: 4vw;
        margin-bottom: 3vw;
    }

    .feature_dot,
    .brain_dot {
        width: 5vw;
        height: 5vw;
        min-width: 5vw;
        margin-top: 0.5vw;
    }

    .feature_content h4,
    .brain_content h4 {
        font-size: 3.8vw;
        display: block;
    }

    .feature_content p,
    .brain_content p {
        font-size: 3.3vw;
        display: block;
        margin-left: 0;
        margin-top: 2vw;
    }

    .hrm_performance {
        padding: 10vw 5vw;
    }

    .hrm_performance h2 {
        font-size: 5.5vw;
        margin-bottom: 6vw;
    }

    .hrm_performance_grid {
        grid-template-columns: 1fr;
        gap: 4vw;
        max-width: 100%;
    }

    .hrm_perf_card {
        padding: 5vw 6vw;
        border-radius: 4vw;
    }

    .perf_info .perf_metric {
        font-size: 4vw;
    }

    .perf_info .perf_note {
        font-size: 3vw;
    }

    .perf_value {
        font-size: 6vw;
    }

    .perf_footer {
        margin-top: 5vw;
        font-size: 3.5vw;
    }

    .hrm_implementation {
        padding: 10vw 5vw 20vw 5vw;
    }

    .hrm_implementation h2 {
        font-size: 5.5vw;
        margin-bottom: 6vw;
        color: #1a1a1a;
    }

    .hrm_code_block {
        border-radius: 4vw;
        padding: 6vw;
        max-width: 100%;
    }

    .hrm_code_block code {
        font-size: 2.8vw;
        line-height: 2;
    }
}

/* Tablet Responsive */
@media (min-width: 501px) and (max-width: 1024px) {
    .hrm_hero {
        padding: 20vw 8vw 10vw 8vw;
    }

    .hrm_hero_content h1 {
        font-size: 4.5vw;
    }

    .hrm_hero_content p {
        font-size: 2vw;
        max-width: 80%;
    }

    .hrm_stats,
    .hrm_tab_content,
    .hrm_tabs_section,
    .hrm_features,
    .hrm_performance,
    .hrm_brain,
    .hrm_implementation {
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .hrm_stats h2,
    .hrm_tab_content h2,
    .hrm_features h2,
    .hrm_performance h2,
    .hrm_brain h2,
    .hrm_implementation h2 {
        font-size: 3vw;
    }

    .hrm_stats_wrap {
        max-width: 80%;
    }

    .hrm_stat_card .stat_value {
        font-size: 3.5vw;
    }

    .hrm_stat_card .stat_label {
        font-size: 1.4vw;
    }

    .hrm_tab {
        font-size: 1.5vw;
        padding: 1.2vw 3vw;
    }

    .hrm_components_grid {
        gap: 2vw;
    }

    .hrm_component_card h3 {
        font-size: 1.8vw;
    }

    .hrm_component_card p,
    .hrm_component_card ul li {
        font-size: 1.4vw;
    }

    .hrm_features_list,
    .hrm_brain_list {
        max-width: 75%;
    }

    .feature_content h4,
    .brain_content h4 {
        font-size: 1.5vw;
    }

    .feature_content p,
    .brain_content p {
        font-size: 1.4vw;
    }

    .hrm_performance_grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 80%;
    }

    .perf_info .perf_metric {
        font-size: 1.5vw;
    }

    .perf_value {
        font-size: 2.5vw;
    }

    .hrm_code_block {
        max-width: 80%;
    }

    .hrm_code_block code {
        font-size: 1.4vw;
    }
}
