/* ============================================================
   Section Layouts
   Page-wide section backgrounds, grids, header, hero,
   footer, and contact-info layout structures.
   ============================================================ */

/* ---- Header ---- */

header {
    background: var(--secondary);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    letter-spacing: -.01em;
}

.logo span {
    color: var(--gs);
}

nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

nav a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    padding: .5rem 1rem;
    font-weight: 500;
    font-size: .9rem;
    border-radius: 6px;
    transition: all .2s;
}

nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: .5rem 1.25rem;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

/* ---- Hero ---- */

.hero {
    background: linear-gradient(160deg, #0f172a 0%, #1a1a3e 40%, #16213e 60%, #1e293b 100%);
    color: #fff;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, .12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, .08) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, .06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--gs), var(--gm), var(--ge));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: .85;
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust span {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: .35rem 1rem;
    border-radius: 20px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .8);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gs), var(--ge));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: .85rem;
    opacity: .7;
    margin-top: .2rem;
}

/* ---- Cost Comparison Section ---- */

#comparison {
    background: var(--secondary);
    color: #fff;
}

#comparison .section-title h2 {
    color: #fff;
}

#comparison .section-title p {
    color: rgba(255, 255, 255, .7);
}

/* ---- Problem Section ---- */

#problem {
    background: #fff;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

/* ---- Solutions Section ---- */

#solutions {
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

/* ---- API Compatibility Section ---- */

#api-compat {
    background: #fff;
    border-top: 1px solid var(--border);
}

/* ---- Models Section ---- */

#models {
    background: var(--secondary);
    color: #fff;
}

#models .section-title h2 {
    color: #fff;
}

#models .section-title p {
    color: rgba(255, 255, 255, .6);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}

/* ---- Pricing Section ---- */

#pricing {
    background: var(--bg-light);
}

/* ---- Security Section ---- */

#security {
    background: var(--bg-light);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ---- Experience Section ---- */

#experience {
    background: linear-gradient(135deg, #0f172a 0%, #1a1a3e 100%);
    color: #fff;
}

#experience .section-title h2 {
    color: #fff;
}

#experience .section-title p {
    color: rgba(255, 255, 255, .6);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* ---- News Section ---- */

#news {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

/* ---- Blog Section ---- */

#blog {
    background: var(--bg-light);
}

/* ---- Contact Section ---- */

#contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: .75rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: .95rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ---- Footer ---- */

footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, .6);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    margin-bottom: .75rem;
    display: inline-block;
}

.footer-brand p {
    font-size: .88rem;
    line-height: 1.6;
    max-width: 320px;
    color: rgba(255, 255, 255, .5);
}

.footer-col h5 {
    color: #fff;
    font-size: .9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    font-size: .85rem;
    padding: .3rem 0;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--gs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .82rem;
}
