﻿/* ------------------------------- HERO --------------------------------- */

.api-hero {
    display: flex;
    flex-direction: column;
    margin: 20px 1rem 0px 1rem;
    align-items: center;
    overflow: hidden;
    position: relative;
    gap: 1.5rem;

}
.api-hero-header h1 {
    text-align: center;
    font-size: 9vw;
    font-weight: 600;
    color: var(--clr-var-header);
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    max-width: 20ch;
}
.second-line-hero h2 {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--clr-var-subheader);
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.api-hero-button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 15px;
}
/* Start Generation Here */
@media (min-width: 460px) {
    .api-hero {
        align-items: flex-start;
    }
    .api-hero-header h1 {
        text-align: left;
        font-size: 2.7rem;
    }
    .second-line-hero h2 {
        text-align: left;
    }
    .api-hero-button-container {
		flex-direction: row;
		column-gap: 20px;
	}
}
@media (min-width: 768px) {
    .api-hero-header h1 {
        text-align: left;
        font-size: 3.8rem;
    }
}
/* End Generation Here */


/* ------------------------------- DEMO VIDEOS SECTION --------------------------------- */
.demo-top-menu {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding: 1rem;
}

.demo-top-menu::-webkit-scrollbar {
    display: none;
}

/* Center tabs when they fit, allow scroll when they don't */
@media (min-width: 768px) {
    .demo-top-menu {
        justify-content: center;
    }
}

/* Ensure scrolling works on smaller screens */
@media (max-width: 767px) {
    .demo-top-menu {
        justify-content: flex-start;
        padding: 0 1.5rem;
    }
}

.demo-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-button);
    padding: 0.8rem 0.2rem;
    color: var(--clr-white-70);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    scroll-snap-align: start;
}

.demo-tab:first-child {
    margin-left: 0;
}

.demo-tab:last-child {
    margin-right: 0;
}

.demo-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.demo-tab img {
    width: var(--fs-p);
    height: auto;
    opacity: 0.7;
}

.demo-tab:hover {
    color: var(--clr-white-80);
}
.demo-tab:hover::after {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}
.demo-tab:hover img {
    opacity: 0.8;
}

.demo-tab.active {
    color: var(--clr-white);
}
.demo-tab.active::after {
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
}
.demo-tab.active img {
    opacity: 1;
}
.hero-image {
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
}
.hero-image-wrapper {
    position: relative;
    width: calc(100% - 2rem);
    height: auto;
    overflow: hidden;
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 1rem;
}

/* ------------------------------- SPLIT SECTION --------------------------------- */
.split-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 80px 0;
    padding: 1rem 1rem 0 1rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    position: relative;
}

.split-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.split-half h3 {
    font-size: var(--fs-p);
    font-weight: 600;
    color: var(--clr-white);
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.split-half p {
    font-size: var(--fs-p);
    font-weight: 400;
    color: var(--clr-white-80);
    margin: 0;
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

.split-image-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 1rem;
}

.split-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
}

/* Desktop view - side by side */
@media (min-width: 768px) {
    .split-section {
        flex-direction: row;
        gap: 0;
        margin: 100px 0;
        align-items: stretch;
        padding: 2rem 1rem 0 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .split-half {
        padding: 0 2rem;
        align-items: flex-start;
        position: relative;
        border-top: none;
    }
    
    .split-half:first-child {
        padding-left: 0;
    }
    
    .split-half:first-child::after {
        content: '';
        position: absolute;
        right: 0;
        top: -2rem;
        bottom: 0;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .split-half:last-child {
        padding-right: 0;
    }
    
    .split-half h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .split-section {
        /* margin: 120px 0; */
        padding: 3rem 1rem 0 1rem;
    }
    
    .split-half {
        padding: 0 3rem;
    }
    
    .split-half:first-child {
        padding-left: 0;
    }
    
    .split-half:first-child::after {
        top: -3rem;
    }
    
    .split-half:last-child {
        padding-right: 0;
    }
    
    .split-half h2 {
        font-size: 3rem;
    }
}

/* ------------------------------- ANSWERS SECTION --------------------------------- */
.answers-section {
    display: flex;
    flex-direction: column;
    /* gap: 3rem; */
    margin: 80px 0;
    padding: 0 1rem;
}

.answers-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.answers-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clr-white);
    margin: 0;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}

.answers-header h2 {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--clr-white-80);
    margin: 0;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    max-width: 40ch;
}

.answers-screenshot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.answers-screenshot img {
    width: 100%;
    height: auto;
}

.enterprise-security {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 80px 0;
    padding: 0 1rem;
}

.enterprise-security-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.enterprise-security-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.enterprise-security-copy h1 {
    font-size: 1.5rem;
    color: var(--clr-white);
    margin: 0 0 0.75rem 0;
    line-height: 1.1;
}

.enterprise-security-copy p {
    color: var(--clr-white-80);
    margin: 2rem 0 2rem 0;
    max-width: 460px;
}

.enterprise-security-cta {
    margin-top: 0.5rem;
}

.enterprise-security-media img {
    width: 100%;
    height: auto;
}

.enterprise-security-features {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .enterprise-security-hero {
        grid-template-columns: 1.2fr 1fr;
    }
    .enterprise-security-copy h1 {
        font-size: 2rem;
    }
}

.answers-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* Mobile view - single column with horizontal borders between items */
.feature-item:not(:last-child) {
    padding-bottom: 2rem;
    /* margin-bottom: 2rem; */
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.feature-svg-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--clr-white-70);
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--clr-white-70);
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.feature-item p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--clr-white-70);
    margin: 0;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Tablet view */
@media (min-width: 768px) {
    
    .answers-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: 3rem;
    }
    
    .answers-header h1 {
        font-size: 2rem;
        flex: 1;
    }
    
    .answers-header h2 {
        flex: 1;
        text-align: left;
    }
    
    .answers-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding-top: 0rem;
    }
    
    /* Remove mobile borders */
    .feature-item:not(:last-child) {
        /* padding-bottom: 0; */
        margin-bottom: 0;
    }
    
    .feature-item:not(:last-child)::after {
        display: none;
    }
    
    /* 2x2 grid borders */
    .feature-item {
        padding: 2rem;
    }
    
    /* Vertical border for right column items */
    .feature-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Horizontal border for top row items */
    .feature-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Desktop view */
@media (min-width: 1024px) {
    .answers-header h1 {
        font-size: 2rem;
    }
    
    .answers-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding-top: 3rem;
    }
    
    /* Remove all borders on desktop */
    .feature-item {
        border: none;
        padding: 0;
    }
    
    .feature-item:nth-child(odd),
    .feature-item:nth-child(-n+2) {
        border: none;
    }
}

/* ------------------------------- FEATURE CARDS SECTION --------------------------------- */
.feature-cards-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 80px 0;
    padding: 0 1rem;
}

.feature-cards-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.feature-cards-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clr-white);
    margin: 0;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}

.feature-cards-header p {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--clr-white-80);
    margin: 0;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    max-width: 60ch;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 2rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card p {
    text-align: center;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    max-width: 360px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.05);
}

/* Tablet view */
@media (min-width: 768px) {
    .feature-cards-section {
        margin: 100px 0;
    }
    
    .feature-cards-header h2 {
        font-size: 2rem;
    }
    
    .feature-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
}

/* Desktop view */
@media (min-width: 1024px) {
    .feature-cards-section {
        margin: 120px 0;
    }
    
    .feature-cards-header h2 {
        font-size: 2rem;
    }

}

