.inter-font {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    font-family: "Inter" !important;
    font-size: 16px; /* Base font size */
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    padding-left: 1.25rem;
}

.logo img {
    height: 2.5rem;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 1.875rem;
    align-items: center;
    margin-right: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-links a.get-started {
    background-color: rgb(36, 72, 104);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 4rem;
}

.hero-slogan {
    font-size: 5rem;
    line-height: 6.875rem;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 6.25rem;
    margin-bottom: 3.75rem;
    color: #000000;
}

.hero-slogan-embedding {
    font-family: inherit;
    background-image: linear-gradient(
        to right,
        rgb(45, 71, 101),
        rgb(108, 194, 183)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-details {
    font-size: 1.375rem;
    width: 60%;
    max-width: 60%;
    line-height: 1.6;
    margin-bottom: 3.75rem;
}

.hero-details-embedding {
    font-weight: 600;
    background-image: linear-gradient(
        to right,
        rgb(45, 71, 101),
        rgb(108, 194, 183)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background-color: rgb(36, 72, 104);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(36, 72, 104, 0.85);
}

.product-image {
    width: 75vw;
    height: auto;
    max-width: none;
    display: block;
    margin: 5.625rem auto 0 auto;
}

.partners-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.75rem 1.25rem;
    background-color: #ffffff;
    margin-top: 10rem;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.partners-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 3.75rem;
}

.logos-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.partners-logos {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content;
    /* animation: scroll 40s linear infinite; */
}

.partners-logos img {
    height: 2.25rem;
    object-fit: contain;
    flex: 1 0 auto;
    max-width: calc(25% - 1.875rem);
    margin: 0 40px;
}

.partners-logos img[src*="Gemini_logo"] {
    transform: translateY(-0.3125rem);
}

.feature-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 1.25rem;
    background-color: #ffffff;
    margin-top: 10rem;
}

.feature-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.feature-details {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgb(146, 146, 146);
    margin-bottom: 3.75rem;
    width: 50%;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 62.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.custom-feature-card {
    grid-column-start: 1;
    grid-column-end: 3;
    place-items: center;
}

.feature-card:hover {
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
}

.feature-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-card-header img {
    height: 2rem;
    margin-right: 1rem;
}

.feature-card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #000;
}

.feature-card-details {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

.workflow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 1.25rem;
    background-color: #ffffff;
    margin-top: 10rem;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.workflow-title {
    font-size: 3.75rem;
    font-weight: 500;
    margin-bottom: 1.875rem;
}

.workflow-details {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgb(146, 146, 146);
    margin-top: 1.25rem;
    margin-bottom: 3.75rem;
    width: 70%;
    max-width: 70%;
    text-align: center;
}

.workflow-image-container {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.workflow-image {
    flex: 0 0 45%;
    max-height: 25rem;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}

.workflow-text-content {
    flex: 0 0 55%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.workflow-summary {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #777;
    font-weight: 500;
    width: 90%;
    margin: 0 auto 1.5rem;
    text-align: left;
    padding: 0 3.125rem 1rem 3.125rem;
}

.workflow-keypoints {
    list-style: none;
    padding-left: 0;
    width: 90%;
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workflow-keypoints li {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #999;
    font-weight: 500;
    text-align: left;
}

.keypoint-icon {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    margin-right: 0.625rem;
}

.workflow-buttons {
    display: flex;
    justify-content: center;
    gap: 0.125rem;
    background-color: rgba(36, 72, 104, 0.1);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 2.5rem;
}

.workflow-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: rgb(106, 106, 106);
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workflow-button:hover {
    background-color: rgba(36, 72, 104, 0.3);
    color: white;
}

.workflow-button.active {
    background-color: rgba(36, 72, 104, 0.85);
    color: white;
    border-radius: 0.375rem;
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(1.25rem);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.workflow-image-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    width: 100%;
}

.workflow-image {
    width: 45%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
}

.fade-out-down {
    animation: fadeOutDown 0.2s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.2s ease forwards;
}

.subscribe-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 1.25rem;
    background-color: #ffffff;
    margin-top: 10rem;
}

.subscribe-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1.875rem;
}

.subscribe-details {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgb(146, 146, 146);
    margin-bottom: 2.5rem;
}

.subscribe-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 0.625rem;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 2;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    background-color: #ffffff;
    box-shadow: none;
    outline: none;
    width: 20vw;
}

#subscribeButton {
    flex: 1;
    padding: 0 1.25rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    background-color: rgb(36, 72, 104);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-policy {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1.2rem;
    width: 30%;
    color: #555;
}

.input-wrapper button:hover {
    background-color: rgba(36, 72, 104, 0.85);
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 3.75rem 1.25rem 6.25rem;
    font-family: "Inter";
    width: 30%;
    margin: 10rem auto 0;
    color: #555;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 11.25rem;
    text-align: center;
    width: 100%;
}

.social-icons img {
    height: 1.5rem;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.copyright {
    font-size: 0.875rem;
    color: #777;
}

.footer-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #444;
}

.footer-content {
    padding-top: 0.4375rem;
    font-size: 0.875rem;
    color: #777;
    line-height: 1.5;
}

.footer-content:hover {
    color: #000;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0.5rem);
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2.5rem 3.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.2),
        0 -0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 31.25rem;
    position: relative;
    animation: fadeIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-content label {
    font-size: 0.875rem;
    color: #333;
    font-weight: 500;
}

.modal-content input,
.modal-content select {
    padding: 0.625rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}

.modal-content select:not(.browser-default) {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9375rem center;
    padding-right: 2.25rem;
    border-color: #aaa;
}

.modal-content h2 {
    text-align: center;
}

.modal-content label span {
    color: rgb(211, 118, 100);
}

.modal-submit {
    margin-top: 1.25rem;
    align-self: flex-end;
}

/* 订阅状态样式（仅修改placeholder颜色和边框） */
.success-state {
    border-color: #6abf69 !important;
}

.success-state::-webkit-input-placeholder {
    color: #6abf69 !important;
}

.error-state {
    border-color: #d9534f !important;
}

.error-state::-webkit-input-placeholder {
    color: #d9534f !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.625rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.partners-logos {
    display: flex;
    flex-wrap: nowrap;
    /* animation: scroll 40s linear infinite; */
}

.modal-overlay.modal-active {
    display: flex;
}

.privacy-link-in-modal {
    font-size: 0.75rem;
    color: #777;
    text-align: center;
    margin-top: 0.625rem;
}

.privacy-link-in-modal a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600; /* Slightly bolder */
}

.modal-overlay {
    z-index: 1000;
}

.modal-overlay.modal-active {
    display: flex;
}

/* Ensure privacy modal is on top */
.modal-overlay:has(> .modal-content > h2:contains("Privacy Policy")) {
    z-index: 1001;
}

.footer-privacy-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.footer-privacy-link:hover {
    text-decoration: underline;
}

.form-footer {
    display: flex;
    justify-content: flex-end; /* Aligns button to the right */
    align-items: center;
    margin-top: 1.25rem; /* Increased margin */
    gap: 1.25rem; /* Adds space between link and button */
}

body.modal-open {
    overflow: hidden;
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
    .hero-slogan {
        font-size: 4rem;
        line-height: 5rem;
        margin-top: 4rem;
        margin-bottom: 2.5rem;
    }

    .hero-details {
        width: 80%;
        max-width: 80%;
        font-size: 1.2rem;
    }

    .workflow-section,
    .partners-section,
    .feature-section,
    .footer {
        width: 90%;
        margin-top: 10rem;
        padding-bottom: 0;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.875rem;
    }

    .custom-feature-card {
        grid-column-start: initial;
        grid-column-end: initial;
        place-items: initial;
    }

    .workflow-image-container {
        flex-direction: column;
        align-items: center;
    }

    .workflow-image,
    .workflow-text-content {
        width: 100%;
        flex: none;
    }

    .workflow-summary {
        padding: 0 1rem 1rem 1rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 2rem;
        height: 2rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
        margin-right: 1.25rem;
    }

    .hamburger span {
        width: 2rem;
        height: 0.25rem;
        background: #333;
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.mobile-menu-open {
        display: flex;
    }

    .nav-links a {
        font-size: 2rem;
        margin: 1rem 0;
    }

    .product-image {
        width: 90%;
    }
    .workflow-image {
        width: 80%;
    }
    .workflow-keypoints {
        margin: 0 auto;
        width: 80%;
    }
    .feature-details,
    .subscribe-details,
    .subscribe-policy {
        width: 80%;
    }
    .subscribe-form input,
    #subscribeButton {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .hero-slogan {
        font-size: 2.5rem;
        line-height: 3.5rem;
        white-space: normal;
    }

    .hero-details {
        width: 90%;
        max-width: 90%;
        font-size: 1.1rem;
    }

    .feature-title,
    .workflow-title,
    .subscribe-title {
        font-size: 2.2rem;
    }

    .workflow-details {
        max-width: 90%;
        margin-top: 0;
        margin-bottom: 2.25rem;
    }

    .workflow-image-container {
        margin-top: 0;
        gap: 0.25rem;
    }

    .workflow-buttons {
        flex-wrap: wrap;
        margin-bottom: 0.25rem;
    }

    /* .partners-logos {
        gap: 3rem;
    } */

    .subscribe-form {
        flex-direction: column;
    }

    .footer {
        margin-top: 4rem;
        padding-bottom: 4rem;
    }

    .product-image {
        width: 95%;
    }
    .workflow-image {
        width: 85%;
    }
    .workflow-details,
    .feature-details,
    .subscribe-details,
    .subscribe-policy {
        width: 90%;
    }
    .workflow-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .workflow-button {
        flex-basis: calc(33.333% - 1rem);
    }
    .workflow-keypoints {
        width: 90%;
        padding-left: 1rem;
    }
    .subscribe-form input,
    #subscribeButton {
        width: 62vw;
        margin: 0 auto;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }
    .subscribe-form input,
    #subscribeButton {
        width: 62vw;
        box-sizing: border-box;
        padding: 0.75rem 1.25rem;
        min-height: 3rem; /* Ensure same height */
    }
    .workflow-section,
    .feature-section,
    .partners-section,
    .subscribe-section,
    .footer {
        margin-top: 6rem; /* Unify section spacing for mobile */
    }
}

.hamburger {
    display: none;
}
