* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #0A1F44;
    --blue-light: #132D5E;
    --yellow: #fbc708;
    --yellow-light: #fcd535;
    --white: #fdfdfd;
    --black: #111827;
    --grey: #4a628a;
    --grey-light: #F3F4F6;
    --radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--blue);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 31, 68, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--blue);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.nav-logo img {
    height: 32px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: var(--yellow);
    color: var(--blue);
    transition: transform .15s, box-shadow .15s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(251, 199, 8, 0.35);
}

/* ─── Hero ─── */

.hero {
    padding: 140px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    background: #fdfdfd;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fdf5d0;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: var(--blue);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--yellow);
}

.hero p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--yellow);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .18s;
}

.btn-accent {
    background: var(--yellow);
    color: var(--blue);
    box-shadow: 0 6px 24px rgba(251, 199, 8, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(251, 199, 8, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border: 2px solid rgba(10, 31, 68, 0.2);
}

.btn-ghost:hover {
    border-color: var(--blue);
    background: rgba(10, 31, 68, 0.03);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fdfdfd;
    border-radius: 24px;
    padding: 40px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 199, 8, 0.18) 0%, transparent 70%);
    z-index: 0;
}

.hero-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

/* ─── Stats strip ─── */

.stats-strip {
    background: var(--blue);
    padding: 50px 0;
    margin-bottom: 100px;
}

.stats-strip .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0 24px;
}

.hero-text {
    text-align: left;
}

.stat {
    text-align: left;
}

.stat-icon {
    font-size: 64px;
    font-weight: 900;
    color: var(--yellow);
    line-height: 0.5;
}

.stat h3 {
    font-size: 32px;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: -0.5px;
}

.stat p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

/* ─── Sections ─── */

section {
    padding: 100px 24px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #fdf5d0;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--blue);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--grey);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Features grid ─── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--grey-light);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid transparent;
    transition: all .2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(10, 31, 68, 0.08);
    border-color: rgba(10, 31, 68, 0.08);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--blue);
}

.feature-card p {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.6;
}

/* ─── Integrations ─── */

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.integration-badge {
    background: var(--grey-light);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--blue);
    transition: transform .15s;
}

.integration-badge:hover {
    transform: translateY(-2px);
}

.integration-badge .ico {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.integration-badge .ico-img {
    width: 36px;
    height: 36px;
    display: block;
    margin: 10px auto 8px;
    object-fit: contain;
}

/* ─── SDK section ─── */

#sdk {
    background: var(--blue);
}

#sdk .section-header h2 {
    color: var(--white);
}

#sdk .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

#sdk .section-header .chip {
    background: rgba(251, 199, 8, 0.22);
    color: var(--yellow-light);
}

.sdk-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.sdk-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.sdk-info p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 24px;
}

.sdk-features {
    list-style: none;
    display: grid;
    gap: 10px;
}

.sdk-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.sdk-features li svg {
    flex-shrink: 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius);
    padding: 28px 24px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e5e7eb;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block .c {
    color: #9ca3af;
}

.code-block .s {
    color: #fbbf24;
}

.code-block .k {
    color: #93c5fd;
}

.code-block .m {
    color: #34d399;
}

/* ─── Rich API ─── */

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.api-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 12px;
}

.api-info p {
    font-size: 15px;
    color: var(--grey);
    line-height: 1.65;
    margin-bottom: 20px;
}

.api-info .btn {
    margin-top: 12px;
}

/* ─── CTA Banner ─── */

.cta {
    background: linear-gradient(135deg, #0A1F44 0%, #132D5E 100%);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cta-text {
    text-align: left;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--yellow);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-text p {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 248, 220, 0.8);
    max-width: 460px;
    line-height: 1.45;
    margin: 0;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.cta-form input,
.cta-form textarea {
    width: 100%;
    max-width: 440px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cta-form input:focus,
.cta-form textarea:focus {
    border-color: var(--yellow);
}

.cta-form textarea {
    resize: vertical;
}

.cta-form-result {
    margin-top: 16px;
    font-size: 14px;
}

/* ─── Footer ─── */

footer {
    background: #060E1F;
    padding: 40px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

footer a {
    color: var(--yellow);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ─── Integrations bg ─── */
.integrations-bg {
    background: var(--grey-light);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        width: 160px;
    }

    .hero-visual::before {
        width: 240px;
        height: 240px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sdk-content,
    .api-content {
        grid-template-columns: 1fr;
    }

    .stats-strip .inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-form {
        align-items: center;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

/* ── Consent ── */
.consent-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 0;
}
.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent, #F59E0B);
    flex-shrink: 0;
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalIn 0.3s ease;
}
.modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.modal-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary, #0F4C81);
}
.modal-card p {
    font-size: 15px;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin-bottom: 24px;
}
.modal-card .btn {
    display: inline-block;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
