:root {
    --bg-primary: #050816;
    --bg-secondary: #0b1023;
    --bg-card: rgba(255, 255, 255, 0.07);
    --bg-card-strong: rgba(255, 255, 255, 0.11);
    --text-primary: #ffffff;
    --text-secondary: #a7b0c6;
    --text-muted: #747e98;
    --border: rgba(255, 255, 255, 0.12);
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --accent: #22c55e;
    --danger: #fb7185;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
    --radius: 8px;
    --font-body: "Inter", sans-serif;
    --font-display: "Plus Jakarta Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.request-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}

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

.request-modal-backdrop {
    background: rgba(3, 7, 18, .78);
    inset: 0;
    position: absolute;
}

.request-modal-content {
    background: #101a35;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    max-width: 520px;
    padding: 36px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.request-modal-content h2 { font-size: 28px; margin: 0 0 10px; }
.request-modal-content > div > p { color: var(--text-muted); margin: 0 0 24px; }
.request-modal-close { background: transparent; border: 0; color: var(--text-muted); cursor: pointer; font-size: 30px; line-height: 1; position: absolute; right: 18px; top: 14px; }
.request-field { margin-bottom: 18px; }
.request-field label { display: block; font-weight: 600; margin-bottom: 8px; }
.request-field label span { color: var(--text-muted); font-size: 13px; font-weight: 400; }
.request-field input, .request-field textarea { background: rgba(5, 11, 28, .72); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: inherit; padding: 12px; width: 100%; }
.request-field input:focus, .request-field textarea:focus { border-color: var(--primary); outline: none; }
.request-field-error, .request-form-error { color: #ff8f9e; display: block; font-size: 13px; margin-top: 6px; min-height: 18px; }
.request-honeypot { left: -10000px; position: absolute; }
.request-success { text-align: center; }
.request-success i { color: var(--success); font-size: 48px; margin-bottom: 16px; }

.number-summary { display: grid; gap: 13px; }
.number-summary strong { color: var(--text); font-family: var(--font-heading); font-size: 20px; }
.number-summary span { color: var(--text-muted); }

.policy-page { min-height: calc(100vh - 180px); padding: 150px 0 90px; }
.policy-content { max-width: 840px; }
.policy-content h1 { font-size: clamp(34px, 5vw, 54px); margin: 24px 0 12px; }
.policy-content h2 { font-size: 22px; margin: 36px 0 10px; }
.policy-content p { color: var(--text-muted); line-height: 1.75; }
.policy-content a { color: var(--primary); }
.policy-updated { font-size: 14px; }
.policy-back { align-items: center; color: var(--text-muted); display: inline-flex; gap: 8px; }

@media (max-width: 520px) {
    .request-modal { padding: 12px; }
    .request-modal-content { padding: 30px 22px; }
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

pre {
    margin: 0;
    white-space: pre-wrap;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 112px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--bg-primary);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 8, 22, 0.7);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.92);
    border-bottom-color: var(--border);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.navbar-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
}

.navbar-logo-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.42);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.2);
}

.btn-outline {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background: #fff;
    color: #101426;
}

.btn-sm {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 14px;
}

.btn-lg {
    min-height: 54px;
    padding: 16px 24px;
}

.btn-block {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 132px;
    overflow: hidden;
}

.hero-bg,
.hero-bg-gradient,
.hero-bg-pattern,
.hero-shape {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-gradient {
    background:
        radial-gradient(circle at 20% 12%, rgba(124, 58, 237, 0.28), transparent 32%),
        radial-gradient(circle at 82% 24%, rgba(6, 182, 212, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(5, 8, 22, 0.1), var(--bg-primary));
}

.hero-bg-pattern {
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.hero-shape {
    width: 210px;
    height: 210px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.22;
    animation: float 7s ease-in-out infinite;
}

.hero-shape-1 {
    top: 18%;
    left: 6%;
    background: var(--primary);
}

.hero-shape-2 {
    top: 22%;
    right: 10%;
    background: var(--secondary);
    animation-delay: 1.4s;
}

.hero-shape-3 {
    top: 68%;
    left: 52%;
    background: var(--danger);
    animation-delay: 2.4s;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 70px;
}

.hero-badge,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary-light);
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
}

.hero-title,
.section-title {
    margin: 22px 0 0;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-title {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 78px);
}

.section-title {
    font-size: clamp(34px, 4.5vw, 56px);
}

.text-gradient {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle,
.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

.hero-subtitle {
    max-width: 660px;
    margin: 24px 0 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
    max-width: 640px;
}

.hero-stat {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 16px;
    backdrop-filter: blur(12px);
}

.hero-stat-value {
    min-height: 34px;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
}

.hero-stat-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.api-window,
.code-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(10, 15, 34, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.api-window {
    position: absolute;
    top: 58px;
    left: 16px;
    right: 0;
    overflow: hidden;
}

.api-window-top {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.api-window-top span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fb7185;
}

.api-window-top span:nth-child(2) {
    background: #fbbf24;
}

.api-window-top span:nth-child(3) {
    background: #22c55e;
}

.api-window-body {
    padding: 24px;
}

.api-window pre,
.code-card pre {
    color: #d6e1ff;
    font-size: 15px;
    line-height: 1.8;
}

.code-line {
    margin-bottom: 16px;
    color: var(--secondary);
    font-weight: 800;
}

.muted {
    color: var(--text-secondary);
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 190px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    animation: float 5s ease-in-out infinite;
}

.float-card-1 {
    top: 18px;
    right: 18px;
}

.float-card-2 {
    bottom: 70px;
    left: 0;
    animation-delay: 1.5s;
}

.float-icon,
.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: #fff;
}

.float-icon.secondary,
.feature-icon.accent {
    background: var(--gradient-secondary);
}

.feature-icon.success {
    background: var(--gradient-accent);
}

.float-card span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.float-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.trust-strip {
    position: relative;
    z-index: 2;
    border-block: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.trust-grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 800;
}

.trust-grid i {
    color: var(--secondary);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-subtitle {
    max-width: 680px;
    margin: 18px auto 0;
}

.align-left {
    margin-left: 0;
    text-align: left;
}

.features-grid,
.scenarios-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card,
.scenario-card,
.pricing-card,
.faq-list details {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
}

.feature-card {
    padding: 28px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.scenario-card:hover,
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.36);
    background: var(--bg-card-strong);
}

.feature-card h3,
.scenario-card h3,
.pricing-card h3 {
    margin: 20px 0 10px;
    font-family: var(--font-display);
    font-size: 22px;
}

.feature-card p,
.scenario-card p,
.pricing-card p,
.faq-list p,
.cta-card p {
    margin: 0;
    color: var(--text-secondary);
}

.scenarios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scenario-card {
    padding: 28px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.scenario-card span {
    color: var(--secondary);
    font-family: var(--font-display);
    font-weight: 900;
}

.api-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
    align-items: center;
    gap: 54px;
}

.check-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.check-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 800;
}

.check-list i,
.pricing-card li i {
    color: var(--accent);
}

.code-card {
    overflow: hidden;
}

.code-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding: 14px;
}

.code-tabs span {
    border-radius: 8px;
    padding: 7px 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 900;
}

.code-tabs .active {
    background: rgba(124, 58, 237, 0.18);
    color: #fff;
}

.code-card pre {
    padding: 24px;
}

.pricing-card {
    position: relative;
    padding: 30px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.pricing-card.featured {
    border-color: rgba(124, 58, 237, 0.65);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.18), rgba(255, 255, 255, 0.07));
}

.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 999px;
    background: var(--gradient-primary);
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
}

.price {
    margin: 24px 0;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
}

.price span {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 800;
}

.pricing-card ul {
    display: grid;
    gap: 13px;
    min-height: 190px;
    margin: 0 0 28px;
    padding: 0;
    color: var(--text-secondary);
    list-style: none;
}

.pricing-card li {
    display: flex;
    gap: 10px;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-list details {
    margin-bottom: 12px;
    padding: 0 22px;
}

.faq-list summary {
    cursor: pointer;
    padding: 20px 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
}

.faq-list p {
    padding-bottom: 20px;
}

.final-cta {
    padding-top: 68px;
}

.cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        var(--gradient-primary);
    padding: 46px;
    box-shadow: 0 24px 80px rgba(124, 58, 237, 0.28);
}

.cta-card .section-badge {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cta-card h2 {
    margin: 18px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.82);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-secondary);
}

.footer-content p {
    margin: 0;
}

.footer-content a:last-child {
    color: #fff;
    font-weight: 800;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    transform: translateX(34px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@media (max-width: 980px) {
    .reveal-right {
        transform: translateY(26px);
    }

    .navbar-menu {
        position: fixed;
        top: 78px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: rgba(8, 12, 28, 0.98);
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .navbar-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 14px 12px;
    }

    .mobile-toggle {
        display: block;
    }

    .navbar-actions .btn {
        display: none;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-visual {
        min-height: 470px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .cta-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .section {
        padding: 78px 0;
    }

    .hero {
        padding-top: 112px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 16px;
    }

    .hero-cta,
    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats,
    .features-grid,
    .scenarios-grid,
    .pricing-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 430px;
    }

    .api-window {
        left: 0;
        top: 44px;
    }

    .api-window-body,
    .code-card pre {
        padding: 18px;
    }

    .api-window pre,
    .code-card pre {
        font-size: 12px;
    }

    .float-card {
        min-width: 168px;
    }

    .float-card-1 {
        top: 0;
        right: 0;
    }

    .float-card-2 {
        bottom: 28px;
    }

    .pricing-card ul {
        min-height: 0;
    }

    .cta-card {
        padding: 28px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 390px) {
    .navbar-logo {
        font-size: 17px;
    }

    .navbar-logo-icon {
        width: 34px;
        height: 34px;
    }

    .hero-title {
        font-size: 37px;
    }

    .btn-lg {
        padding-inline: 16px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .float-card {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 12px;
    }
}
