.hero {
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 16px 70px;
}

.hero-inner {
    width: min(680px, 100%);
}

.hero-image {
    width: min(250px, 45vw);
    margin-bottom: 26px;
}

.hero-title {
    margin: 0 0 12px;
    font-size: clamp(3.4rem, 6vw, 4.7rem);
    line-height: 1;
    font-weight: 700;
    color: #f2c75c;
}

body.theme-light .hero-title {
    color: #5ca9df;
}

.hero-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: #d2d3d7;
}

body.theme-light .hero-subtitle {
    color: #555a62;
}

.highlight {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-scroll-button {
    margin-top: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-chevron {
    display: block;
    width: 14px;
    height: 14px;
    border-right: 2px solid #d7dadf;
    border-bottom: 2px solid #d7dadf;
    transform: rotate(45deg);
    transition: border-color 180ms ease;
}

.hero-chevron-second {
    margin-top: -7px;
}

.hero-scroll-button:hover .hero-chevron,
.hero-scroll-button:focus-visible .hero-chevron {
    border-color: #ffffff;
}

body.theme-light .hero-chevron {
    border-color: #8b9198;
}

body.theme-light .hero-scroll-button:hover .hero-chevron,
body.theme-light .hero-scroll-button:focus-visible .hero-chevron {
    border-color: #4e5560;
}

/* Generator Section */
.generator-section {
    display: flex;
    justify-content: center;
    padding: 40px 16px 0;
}

.generator-card {
    background: #f2ca58;
    width: min(1280px, 100%);
    border-radius: 16px;
    padding: 54px 56px;
    display: flex;
    flex-direction: column;
}

body.theme-light .generator-card {
    background: #5ca9df;
}

.generator-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0 0 42px;
    text-align: center;
    color: #25282e;
}

body.theme-light .generator-title {
    color: #ffffff;
}

.generator-columns {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.generator-left {
    flex: 1;
    max-width: 400px;
    color: #25282e;
}

body.theme-light .generator-left {
    color: #ffffff;
}

.form-group {
    margin-bottom: 26px;
}

.label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.label-row .label {
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-count {
    width: 240px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 2px;
}

.generate-btn {
    background: #2a3240;
    color: #ffffff;
    border: none;
    padding: 11px 42px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

body.theme-light .generate-btn {
    background: #ffffff;
    color: #2e343d;
}

/* Generator Right */
.generator-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.export-link {
    color: #5ca9df;
    text-decoration: none;
    font-size: 0.9rem;
    align-self: flex-end;
    margin-bottom: 4px;
}

.export-link:hover {
    text-decoration: underline;
}

/* Password List */
.password-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 320px;
}

.password-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-row input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    background: #ffffff;
    color: #25282e;
    min-width: 0;
}

.icon-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: #f0f0f0;
}

/* Add Another Button */
.add-btn {
    background: #ffffff;
    border: 2px solid #5ca9df;
    color: #5ca9df;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.add-btn:hover {
    background: #5ca9df;
    color: #ffffff;
}

/* Info Button */
.info-btn {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* Generator Image */
.generator-image {
    width: min(320px, 100%);
    margin-top: auto;
    align-self: flex-end;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    width: min(560px, 90vw);
    max-height: 80vh;
    overflow-y: auto;
    color: #25282e;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-x {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 16px;
}

.modal-body h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
}

.modal-body p {
    margin: 0;
    font-size: 0.9rem;
    color: #555a62;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.close-btn {
    background: #2a3240;
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 40px;
    }

    .generator-card {
        padding: 36px 28px;
    }

    .generator-columns {
        flex-direction: column;
        gap: 32px;
    }

    .generator-left {
        max-width: none;
    }

    .generator-title {
        text-align: left;
    }

    .password-list {
        max-width: 100%;
    }

    .generator-image {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 10px 20px 56px;
    }

    .hero-image {
        width: min(300px, 72vw);
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-chevron {
        width: 12px;
        height: 12px;
    }

    .hero-chevron-second {
        margin-top: -6px;
    }

    .generator-section {
        padding: 24px 0 0;
    }

    .generator-card {
        width: 100%;
        border-radius: 0;
        padding: 34px 22px 22px;
    }

    .generator-title {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .password-count {
        width: 100%;
    }

    .generate-btn {
        width: 100%;
    }

    .generator-right {
        justify-content: center;
    }

    .generator-image {
        width: min(300px, 80vw);
    }
}