:root {
    --brand-950: #16102f;
    --brand-900: #1d1746;
    --brand-800: #2a2063;
    --brand-700: #362b88;
    --brand-600: #4a3aa8;
    --brand-500: #6654d3;
    --brand-400: #8f82ff;
    --brand-100: #efecff;
    --brand-50: #f7f6ff;
    --ink-950: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --line: #d7dff2;
    --surface-0: #f5f7fc;
    --surface-1: #ffffff;
    --surface-2: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 22px 55px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 24px 60px rgba(22, 16, 47, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink-950);
    background:
        radial-gradient(circle at top left, rgba(143, 130, 255, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(74, 58, 168, 0.12), transparent 32%),
        linear-gradient(180deg, #fbfcff 0%, var(--surface-0) 45%, #eef2fb 100%);
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.04em;
}

a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

svg,
img {
    display: block;
    max-width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.9);
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out,
        background-color 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(102, 84, 211, 0.12);
    background: rgba(255, 255, 255, 1);
}

textarea {
    min-height: 8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    box-shadow: 0 16px 30px rgba(54, 43, 136, 0.24);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(54, 43, 136, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink-950);
    border: 1px solid rgba(74, 58, 168, 0.16);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(74, 58, 168, 0.28);
}

.spinner {
    border: 2px solid rgba(102, 84, 211, 0.15);
    border-top: 2px solid var(--brand-600);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #047857;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

#billing-toggle {
    transition: background-color 0.2s ease-in-out;
}

#toggle-switch {
    transition: transform 0.2s ease-in-out;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-800);
    background: rgba(239, 236, 255, 0.9);
    border: 1px solid rgba(102, 84, 211, 0.18);
}

.section-label::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.surface-panel {
    position: relative;
    border-radius: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.95) 100%);
    box-shadow: var(--shadow-soft);
}

.surface-panel-dark {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid rgba(143, 130, 255, 0.18);
    background: linear-gradient(180deg, #1c153d 0%, #120f29 100%);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.dot-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(143, 130, 255, 0.18) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
    pointer-events: none;
}

.hero-panel {
    min-height: 30rem;
}

.chart-caption {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chart-caption-light {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-700);
    font-size: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.metric-chip strong {
    color: var(--ink-950);
}

.capability-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.92) 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.capability-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.08);
}

.capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(102, 84, 211, 0.16), rgba(239, 236, 255, 0.92));
    color: var(--brand-700);
}

.mini-insight {
    position: absolute;
    left: -1.5rem;
    bottom: 1.5rem;
    width: min(15rem, 78%);
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.dataset-card-premium {
    height: 100%;
    border-radius: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 255, 0.92) 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.process-band {
    border-radius: 2rem;
    border: 1px solid rgba(143, 130, 255, 0.16);
    background: linear-gradient(135deg, #17122f 0%, #23194e 50%, #2f2473 100%);
    box-shadow: 0 24px 60px rgba(22, 16, 47, 0.2);
}

.process-step {
    height: 100%;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    padding: 1.3rem;
}

.cta-banner {
    border-radius: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 236, 255, 0.92));
    box-shadow: var(--shadow-soft);
}

.nav-shell {
    border-radius: 1.7rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav-link:hover {
    color: var(--brand-800);
    background: rgba(239, 236, 255, 0.78);
}

.site-nav-link.is-active {
    color: var(--brand-800);
    background: rgba(239, 236, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(102, 84, 211, 0.12);
}

.mobile-nav-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mobile-nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.9rem);
    width: min(19rem, calc(100vw - 2rem));
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.95rem;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(16px);
}

.mobile-nav-link {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: #334155;
    font-weight: 600;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(239, 236, 255, 0.88);
    color: var(--brand-800);
}

.footer-panel {
    border-radius: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 255, 0.96) 100%);
    box-shadow: var(--shadow-soft);
}

.footer-link {
    color: #475569;
}

.footer-link:hover {
    color: var(--brand-800);
}

.float-safe {
    padding-bottom: 6rem;
}

@media (max-width: 1024px) {
    .mini-insight {
        position: static;
        width: auto;
        margin-top: 1rem;
    }

    .hero-panel {
        min-height: 0;
    }
}
