/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
    background: #121212;
    color: #E8EAED;
    font-size: 14px;
    font-weight: 400;
    line-height: 21.02px;
    letter-spacing: 0.16px;
    overflow-x: hidden;
}

/* Global variables */
:root {
    --logo-height: 32px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(241, 243, 244, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 14px 0;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 73px;
    padding-right: 100px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #E8EAED;
    gap: 0;
}

.Applied-LLMs-logo {
    height: var(--logo-height);
    display: flex;
    align-items: center;
}

.Applied-LLMs-logo img {
    display: block;
    height: var(--logo-height);
    width: auto;
    max-width: 100%;
}

.Applied-LLMs-logo svg {
    display: block;
    height: var(--logo-height);
    width: auto;
}

.Applied-LLMs-text {
    font-size: 16.734px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.1px;
    margin-left: 0;
}

.site-selector {
    width: 44px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    display: flex;
    gap: 0;
    margin-left: 59px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 37px;
    padding: 9px 16px 10px 16px;
    border-radius: 1000px;
    text-decoration: none;
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(241, 243, 244, 0.1);
    color: #E8EAED;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 12px;
    border-radius: 1000px;
    background: rgba(241, 243, 244, 0.1);
    backdrop-filter: blur(2px);
    text-decoration: none;
    color: #E8EAED;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: rgba(241, 243, 244, 0.15);
    color: #E8EAED;
}

.search-button {
    width: 48px;
    height: 36px;
    border-radius: 1000px;
    background: rgba(241, 243, 244, 0.1);
    backdrop-filter: blur(2px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: rgba(241, 243, 244, 0.15);
}

/* Main Content */
.main-content {
    margin-top: 64px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 0;
}

.hero-container {
    display: flex;
    width: 1440px;
    padding: 0 72px;
    margin: 0 auto;
    position: relative;
    min-height: 1200px;
}

.hero-content {
    width: 624px;
    padding: 72px 0 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 1200px;
    position: relative;
}

.hero-cta-link {
    display: inline-flex;
    padding: 8.5px 10px 8.48px 17px;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 7.8px;
    border-radius: 100px;
    border: 1px solid rgba(241, 243, 244, 0.1);
    backdrop-filter: blur(5px);
    position: absolute;
    left: 174px;
    top: 68px;
    width: 130px;
    height: 38px;
    text-decoration: none;
    color: #E8EAED;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    transition: all 0.2s ease;
}

.hero-cta-link:hover {
    background: rgba(241, 243, 244, 0.1);
    color: #E8EAED;
}

.cta-text {
    position: absolute;
    left: 17px;
    top: 9px;
}

.cta-icon {
    position: absolute;
    left: 102px;
    top: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 18px;
    letter-spacing: 0.1px;
}

.hero-title {
    width: 612px;
    height: 53px;
    color: #E8EAED;
    font-size: 40px;
    font-weight: 500;
    line-height: 43.68px;
    letter-spacing: -0.84px;
    position: absolute;
    left: 0;
    top: 75px;
    margin: 0;
}

.hero-meta {
    display: flex;
    gap: 16px;
    position: absolute;
    left: 0;
    top: 148px;
}

.hero-date, .hero-category {
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: 0.16px;
}

.hero-video-container {
    width: 624px;
    height: 624px;
    position: absolute;
    left: 0;
    top: 214px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    border: 1px solid rgba(241, 243, 244, 0.1);
}

.video-border {
    display: flex;
    width: 624px;
    height: 624px;
    padding: 1px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(241, 243, 244, 0.1);
}

.video-wrapper {
    width: 622px;
    height: 622px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.2);
}

/* News Grid */
.news-grid {
    width: 624px;
    position: absolute;
    right: 72px;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-article {
    width: 624px;
    height: 176px;
    position: relative;
    padding-bottom: 24px;
}

.article-title {
    color: #E8EAED;
    font-size: 31px;
    font-weight: 500;
    line-height: 33.92px;
    letter-spacing: -0.51px;
    margin: 0 0 16px 0;
    max-width: 400px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.article-date, .article-category {
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: 0.16px;
}

.article-link {
    display: inline-flex;
    padding: 7.5px 12px 7.48px 0;
    align-items: flex-start;
    gap: 7.8px;
    border-radius: 3px;
    text-decoration: none;
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    transition: all 0.2s ease;
}

.article-link:hover {
    color: #E8EAED;
}

.article-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 18px;
    letter-spacing: 0.1px;
}

.article-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 176px;
    height: 176px;
    border-radius: 16px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 624px;
    height: 1px;
    background: rgba(241, 243, 244, 0.1);
}

.section-divider {
    width: 100vw;
    height: 1px;
    background: rgba(241, 243, 244, 0.1);
    position: absolute;
    bottom: 0;
    left: -50vw;
    margin-left: 50%;
}

/* Building Section */
.building-section {
    padding: 64px 0;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
    position: relative;
}

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

.section-title {
    color: #E8EAED;
    font-size: 40px;
    font-weight: 500;
    line-height: 43.68px;
    letter-spacing: -0.84px;
    margin: 0;
}

.section-cta {
    display: inline-flex;
    padding: 8.5px 10px 8.48px 17px;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 7.8px;
    border-radius: 100px;
    border: 1px solid rgba(241, 243, 244, 0.1);
    backdrop-filter: blur(5px);
    width: 138px;
    height: 38px;
    text-decoration: none;
    color: #E8EAED;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    transition: all 0.2s ease;
}

.section-cta:hover {
    background: rgba(241, 243, 244, 0.1);
    color: #E8EAED;
}

.models-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.carousel-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100px;
    height: 44px;
    padding: 4px;
    justify-content: center;
    align-items: flex-start;
    border-radius: 1000px;
    background: rgba(241, 243, 244, 0.1);
    z-index: 10;
}

.nav-btn {
    display: flex;
    width: 46px;
    height: 36px;
    padding: 6px 11px;
    justify-content: center;
    align-items: center;
    border-radius: 1000px;
    border: none;
    background: none;
    cursor: pointer;
    color: #9AA0A6;
    transition: all 0.2s ease;
}

.nav-btn.active {
    background: rgba(241, 243, 244, 0.15);
    color: #E8EAED;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 24px;
}

.models-grid {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.models-grid::-webkit-scrollbar {
    display: none;
}

.model-card {
    width: 270px;
    min-width: 270px;
    height: 546px;
    border-top: 1px solid rgba(241, 243, 244, 0.1);
    padding-top: 37px;
    position: relative;
    scroll-snap-align: start;
}

.model-icon {
    width: 100px;
    height: 100px;
    padding: 1px;
    border-radius: 24px;
    border: 1px solid rgba(241, 243, 244, 0.1);
    background: linear-gradient(180deg, rgba(0, 86, 207, 0.1) 0%, rgba(0, 86, 207, 0.2) 100%), #202124;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 64px;
}

.model-name {
    color: #E8EAED;
    font-size: 32px;
    font-weight: 500;
    line-height: 33.92px;
    letter-spacing: -0.51px;
    margin: 0 0 8px 0;
}

.model-description {
    color: #9AA0A6;
    font-size: 19px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: -0.08px;
    margin: 0 0 32px 0;
    max-width: 250px;
}

.model-try-section {
    margin-bottom: 120px;
}

.try-label {
    color: #9AA0A6;
    font-size: 9px;
    font-weight: 400;
    line-height: 14.5px;
    letter-spacing: 0.11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.try-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.try-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    transition: all 0.2s ease;
}

.try-link:hover {
    color: #E8EAED;
}

.try-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 18px;
}

.model-learn-more {
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.model-learn-more:hover {
    color: #E8EAED;
    text-decoration: underline;
}

/* Research Section */
.research-section {
    padding: 64px 0;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
    position: relative;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
    max-width: 1296px;
}

.research-article {
    width: 624px;
    height: 176px;
    position: relative;
    padding-bottom: 24px;
}

.research-article.large {
    height: 138px;
}

.research-title {
    color: #E8EAED;
    font-size: 23px;
    font-weight: 500;
    line-height: 25.92px;
    letter-spacing: -0.14px;
    margin: 0 0 16px 0;
    max-width: 400px;
}

.research-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.research-date, .research-category {
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: 0.16px;
}

.research-link {
    display: inline-flex;
    padding: 7.5px 12px 7.48px 0;
    align-items: flex-start;
    gap: 7.8px;
    border-radius: 3px;
    text-decoration: none;
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.11px;
    transition: all 0.2s ease;
}

.research-link:hover {
    color: #E8EAED;
}

.research-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 18px;
    letter-spacing: 0.1px;
}

.research-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 176px;
    height: 176px;
    border-radius: 16px;
    overflow: hidden;
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: #171717;
    color: #E8EAED;
    padding: 37px 0 0 0;
    border-top: 1px solid rgba(241, 243, 244, 0.1);
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 32px;
    align-items: start;
}

.footer-follow {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 32px;
}

.follow-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 25.38px;
    letter-spacing: 0.19px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-link {
    width: 28px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(241, 243, 244, 0.1);
}

.footer-mission {
    margin-bottom: 48px;
}

.mission-title {
    color: #E8EAED;
    font-size: 30px;
    font-weight: 500;
    line-height: 33.92px;
    letter-spacing: -0.51px;
    max-width: 311px;
    margin: 0;
}

/* Ensure intro sections span full width above the two columns */
.footer-follow,
.footer-mission {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Make the newsletter column fill its grid area */
.footer-column:last-of-type {
    justify-self: stretch; /* let the newsletter column fill its grid area */
}

.column-title {
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: 0.16px;
    margin-bottom: 8px;
}

.column-description {
    color: #9AA0A6;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: 0.16px;
    margin-bottom: 24px;
}

.model-links, .science-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-link, .science-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E8EAED;
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: -0.08px;
    text-decoration: none;
    padding: 2px 0;
    transition: all 0.2s ease;
}

.model-link:hover, .science-link:hover {
    color: #9AA0A6;
}

.learn-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.learn-link {
    color: #E8EAED;
    font-size: 19px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: -0.08px;
    text-decoration: none;
    padding: 2px 0;
    transition: all 0.2s ease;
}

.learn-link:hover {
    color: #9AA0A6;
}

.newsletter-section {
    max-width: 340px;
    display: flex;
    flex-direction: column;
    margin-top: -16px; /* lift section so description aligns with links row */
    align-self: stretch; /* fill the column width for consistent alignment */
    align-items: flex-start; /* left-align inner content */
    width: 100%;
}

.newsletter-description {
    color: #5F6368;
    font-size: 12px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: 0.16px;
    order: 1;               /* place description above the input */
    margin-top: 0;
    margin-bottom: 4px;     /* tight space above input */
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    order: 2;               /* form below description */
    width: 100%;
}

.form-disclaimer {
    color: #5F6368;
    font-size: 9px;
    font-weight: 400;
    line-height: 14.5px;
    letter-spacing: 0.11px;
}

.privacy-link {
    color: #5F6368;
    text-decoration: underline;
}

.form-input-container {
    display: flex;
    height: 48px;
    padding: 12px 20px 12px 24px;
    justify-content: flex-start;
    align-items: center;
    border-radius: 9999px;
    background: #202124;
    position: relative;
    margin-top: 0; /* input sits naturally under description */
    width: 100%;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #9AA0A6;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.1px;
    outline: none;
}

.email-input::placeholder {
    color: #9AA0A6;
}

.submit-button {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9AA0A6;
    position: absolute;
    right: 20px;
    top: 12px;
}

.submit-icon {
    font-size: 12px;
    line-height: 24px;
    letter-spacing: 0.1px;
}

.footer-bottom {
    margin-top: 48px;
}

.footer-divider {
    width: 100vw;
    height: 1px;
    background: rgba(241, 243, 244, 0.1);
    margin-left: -72px;
    margin-bottom: 32px;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 72px;
    padding-bottom: 32px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.footer-link {
    color: #9AA0A6;
    font-size: 17px;
    font-weight: 400;
    line-height: 25.38px;
    letter-spacing: 0.19px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #E8EAED;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .hero-container,
    .building-section,
    .research-section,
    .footer-content {
        max-width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .nav-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 624px;
        margin: 0 auto;
    }
    
    .news-grid {
        position: static;
        width: 100%;
        max-width: 624px;
        margin: 40px auto 0;
    }
    
    .models-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-items: center;
    }
    
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .nav-right {
        gap: 8px;
    }
    
    .nav-button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .hero-content,
    .news-grid,
    .research-article {
        width: 100%;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 36px;
        width: 100%;
    }
    
    .article-title,
    .research-title {
        font-size: 24px;
        line-height: 28px;
        max-width: calc(100% - 200px);
    }
    
    .section-title {
        font-size: 32px;
        line-height: 36px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
        margin-left: 0;
    }

    /* Stack footer columns on small screens */
    .footer-content {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-container,
    .building-section,
    .research-section,
    .footer-content,
    .footer-bottom-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Reset alignment nudge on mobile */
    .form-input-container {
        margin-top: 0;
    }

    /* Reset newsletter alignment on mobile for clean stacking */
    .newsletter-section {
        margin-top: 0;
        align-items: flex-start;
        align-self: stretch;
    }

    /* Let the last footer column span full width on mobile */
    .footer-column:last-of-type {
        justify-self: stretch;
    }

    .article-image,
    .research-image {
        width: 120px;
        height: 120px;
    }
    
    .article-title,
    .research-title {
        max-width: calc(100% - 140px);
        font-size: 20px;
        line-height: 24px;
    }
    
    .model-card {
        width: 100%;
        min-width: auto;
    }
}

/* Override: hide Start Building section without removing markup */
.building-section {
  display: none !important;
}
