/* Homepage: complete toolkit overview and SynthLearn entry. */
.header > .container,
.hero > .container {
    max-width: 1360px;
}

.nav {
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.nav-links {
    margin-left: auto;
    gap: clamp(4px, 1.1vw, 18px);
}

.nav-links a {
    padding: 8px 10px;
    white-space: nowrap;
}

.nav-synth {
    order: 1;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 9px;
    padding: 7px 13px 7px 8px;
    border: 1px solid rgba(255, 233, 185, 0.8);
    border-radius: 13px;
    background: linear-gradient(115deg, #ffe6ad, #ffc77d 58%, #ffacb7);
    color: #352033;
    box-shadow: 0 0 24px rgba(255, 194, 119, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-synth:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(255, 194, 119, 0.42);
}

.nav-synth img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.nav-synth > span {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    white-space: nowrap;
}

.nav-synth small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.nav-synth svg {
    width: 16px;
    height: 16px;
}

.hero {
    padding-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    padding: 24px 0 32px;
}

.hero-text {
    min-width: 0;
}

.hero-title {
    font-size: clamp(42px, 4vw, 56px);
}

.hero-title-sub {
    font-size: 0.61em;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-downloads {
    gap: 12px;
}

.hero-downloads .download-btn {
    padding: 15px 19px;
    gap: 12px;
}

.hero-note {
    color: rgba(255, 255, 255, 0.6);
}

.hero-function-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(183, 193, 255, 0.24);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(22, 28, 54, 0.94), rgba(22, 16, 44, 0.93));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), 0 0 45px rgba(118, 102, 255, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    text-align: left;
}

.hero-function-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-function-eyebrow {
    color: #9daed1;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 2px;
}

.hero-function-heading h2 {
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
}

.hero-function-heading h2 > span {
    font-size: 36px;
    font-weight: 800;
    color: #64ddff;
    margin-right: 5px;
}

.hero-function-hint {
    color: #aab7d6;
    font-size: 11px;
    white-space: nowrap;
}

.hero-function-hint > span {
    margin-left: 3px;
    color: #8be5ff;
}

.hero-function-group {
    --tool-accent: #bd9bff;
    padding: 0;
    margin-bottom: 13px;
}

.hero-function-group[data-color="blue"] { --tool-accent: #7eb8ff; }
.hero-function-group[data-color="orange"] { --tool-accent: #ffc38b; }
.hero-function-group[data-color="green"] { --tool-accent: #6ee0bd; }

.hero-function-group h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--tool-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-function-group h3::before {
    content: "";
    width: 3px;
    height: 11px;
    border-radius: 2px;
    background: var(--tool-accent);
}

.hero-function-group h3 > span {
    color: #a4acc2;
    font-size: 10px;
    letter-spacing: 0;
}

.hero-function-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.hero-function-grid > li {
    min-width: 0;
}

.hero-function {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 38px;
    gap: 7px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: #e9ecfa;
    font-size: 12px;
    text-align: left;
    line-height: 1.4;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-function img {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 5px;
}

.hero-function:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--tool-accent);
    transform: translateY(-1px);
}

.hero-function-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 1px;
    color: #aebcd9;
    font-size: 11px;
}

.hero-function-more:hover {
    color: #8be5ff;
}

.nav-synth:focus-visible,
.hero-function:focus-visible,
.hero-function-more:focus-visible {
    outline: 2px solid #8be5ff;
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .nav {
        gap: 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        margin-left: 0;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-synth {
        margin-left: auto;
    }

    .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
        order: 2;
    }

    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-content {
        gap: 24px;
        text-align: left;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-downloads {
        justify-content: flex-start;
    }

    .hero-function-panel {
        padding: 18px;
    }

    .hero-function-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-function-group {
        margin-bottom: 8px;
    }

    .hero-function {
        min-height: 32px;
        gap: 5px;
        padding: 3px 5px;
        font-size: 11px;
    }

    .hero-function img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 36px;
        text-align: center;
    }

    .hero-text {
        max-width: 640px;
        margin: 0 auto;
    }

    .hero-downloads {
        justify-content: center;
    }

    .hero-function-panel {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
        padding: 24px;
    }

    .hero-function {
        font-size: 12px;
        padding: 6px 8px;
        gap: 8px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 8px;
    }

    .logo {
        gap: 7px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-synth {
        gap: 6px;
        padding: 6px 8px 6px 6px;
        border-radius: 10px;
    }

    .nav-synth img {
        width: 28px;
        height: 28px;
    }

    .nav-synth > span {
        font-size: 12px;
    }

    .nav-synth small,
    .nav-synth svg {
        display: none;
    }

    .hero {
        padding-top: var(--header-height);
        padding-bottom: 24px;
    }

    .hero-content {
        padding: 28px 0;
        gap: 28px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-title-sub {
        font-size: 0.57em;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-downloads {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-downloads .download-btn {
        min-width: 0;
        gap: 8px;
        padding: 12px 8px;
        font-size: 12px;
    }

    .hero-downloads .download-btn-primary:nth-child(3) {
        grid-column: 1 / -1;
    }

    .hero-note {
        font-size: 11px;
    }

    .hero-function-panel {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .hero-function-heading h2 {
        font-size: 17px;
    }

    .hero-function-heading h2 > span {
        font-size: 30px;
    }

    .hero-function-hint {
        font-size: 10px;
        max-width: 70px;
        text-align: right;
        white-space: normal;
    }

    .hero-function-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-function {
        min-height: 40px;
        padding: 6px;
        gap: 6px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-synth,
    .hero-function {
        transition: none;
    }
}
