/* ─── Scrollbar ─── */
html {
    scrollbar-width: thin;
    scrollbar-color: #3b9eff rgba(4, 29, 74, 0.35);
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(4, 29, 74, 0.25);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6bb8ff 0%, #3b9eff 100%);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6bb8ff;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* ─── Base & iframe ─── */
.site-gradient {
    background: linear-gradient(180deg, #093482 0%, #062a66 42%, #041d4a 100%) !important;
}

.embed-page.site-gradient {
    background-attachment: scroll;
}

.embed-page {
    overflow-x: hidden;
}

/* ─── Ambient background ─── */
.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59, 158, 255, 0.35) 0%, transparent 70%);
    top: -8%;
    right: -5%;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(26, 91, 184, 0.4) 0%, transparent 70%);
    bottom: 20%;
    left: -8%;
    animation-delay: -6s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 193, 75, 0.12) 0%, transparent 70%);
    top: 45%;
    left: 40%;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -20px) scale(1.05); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Typography ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3b9eff;
    background: linear-gradient(135deg, rgba(59, 158, 255, 0.15), rgba(59, 158, 255, 0.05));
    border: 1px solid rgba(59, 158, 255, 0.25);
    border-radius: 9999px;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b9eff;
    box-shadow: 0 0 12px #3b9eff;
}

.section-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(148, 163, 184, 0.95);
}

.hero-title {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, #c7e4ff 55%, #6bb8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Cards ─── */
.glass-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%, rgba(59,158,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.glass-card:hover {
    border-color: rgba(59, 158, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px -8px rgba(59, 158, 255, 0.2);
    transform: translateY(-2px);
}

.glass-card-premium {
    background: linear-gradient(160deg, rgba(59, 158, 255, 0.12) 0%, rgba(4, 29, 74, 0.6) 50%, rgba(9, 52, 130, 0.4) 100%);
    border-color: rgba(59, 158, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(59, 158, 255, 0.15), 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 80px -20px rgba(59, 158, 255, 0.35);
}

.glass-card-premium:hover {
    transform: translateY(-4px) scale(1.01);
}

/* ─── Hero ─── */
.hero-section {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem 0.5rem 0.75rem;
    border-radius: 9999px;
    background: rgba(4, 29, 74, 0.5);
    border: 1px solid rgba(59, 158, 255, 0.3);
    box-shadow: 0 0 30px -5px rgba(59, 158, 255, 0.25);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b9eff;
    box-shadow: 0 0 0 0 rgba(59, 158, 255, 0.6);
    animation: pulseRing 2s ease infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(59, 158, 255, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(59, 158, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 158, 255, 0); }
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5ec4ff 0%, #3b9eff 50%, #2a7fd4 100%);
    color: #020f28;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(59, 158, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(59, 158, 255, 0.5);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 158, 255, 0.4);
}

/* Dashboard mock */
.dashboard-mock {
    background: linear-gradient(165deg, rgba(2, 15, 40, 0.9) 0%, rgba(9, 52, 130, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 158, 255, 0.1);
}

.mock-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #3b9eff, rgba(59, 158, 255, 0.3));
    animation: barGrow 1.2s ease forwards;
    transform-origin: left;
}

@keyframes barGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ─── Stats ─── */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(59, 158, 255, 0.15), transparent 70%);
}

.stat-value {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #3b9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Benefits bento ─── */
.benefit-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 158, 255, 0.25), rgba(59, 158, 255, 0.05));
    border: 1px solid rgba(59, 158, 255, 0.3);
    color: #6bb8ff;
    box-shadow: 0 8px 24px -8px rgba(59, 158, 255, 0.4);
}

.benefit-card-featured {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .benefit-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ─── Pricing ─── */
.pricing-tier {
    position: relative;
}

.pricing-rate {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #fff, #3b9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #020f28;
    background: linear-gradient(135deg, #f0c14b, #e8a820);
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(240, 193, 75, 0.4);
}

/* ─── Timeline steps ─── */
.steps-track {
    position: relative;
}

@media (min-width: 1024px) {
    .steps-track::before {
        content: '';
        position: absolute;
        top: 2.5rem;
        left: 12%;
        right: 12%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(59, 158, 255, 0.4), rgba(59, 158, 255, 0.4), transparent);
    }
}

.step-num {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(59, 158, 255, 0.2);
}

.step-num-active {
    color: transparent;
    background: linear-gradient(180deg, rgba(59, 158, 255, 0.6), rgba(59, 158, 255, 0.15));
    -webkit-background-clip: text;
    background-clip: text;
}

/* ─── FAQ ─── */
.faq-item {
    transition: box-shadow 0.3s ease;
}

.faq-item.faq-open {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 158, 255, 0.2);
}

.faq-trigger {
    transition: background 0.2s ease;
}

.faq-open .faq-icon {
    transform: rotate(180deg);
    color: #3b9eff;
}

/* ─── Form ─── */
.form-shell {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(4, 29, 74, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.5);
}

.input-field {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 15, 40, 0.5);
    padding: 0.875rem 1rem;
    color: #fff;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.input-field:focus {
    outline: none;
    border-color: rgba(59, 158, 255, 0.5);
    background: rgba(2, 15, 40, 0.75);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.15);
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-pill:hover {
    border-color: rgba(59, 158, 255, 0.35);
    background: rgba(59, 158, 255, 0.08);
}

/* ─── Divider ─── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-enter {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-enter-delay-1 { animation-delay: 0.1s; opacity: 0; }
.hero-enter-delay-2 { animation-delay: 0.2s; opacity: 0; }
.hero-enter-delay-3 { animation-delay: 0.35s; opacity: 0; }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.trust-chip svg {
    color: #3b9eff;
    flex-shrink: 0;
}
