:root {
    --av-primary: #6366f1;
    --av-primary-dark: #4f46e5;
    --av-accent: #8b5cf6;
    --av-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --av-surface: #ffffff;
    --av-muted: #64748b;
    --av-border: rgba(15, 23, 42, 0.08);
    --av-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] {
    --av-surface: #0f172a;
    --av-muted: #94a3b8;
    --av-border: rgba(255, 255, 255, 0.08);
    --av-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.av-navbar {
    background: rgba(var(--bs-body-bg-rgb), 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--av-border);
}

.av-logo {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: var(--av-gradient);
    color: #fff;
    font-size: 0.9rem;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lang-chip:hover {
    border-color: var(--av-primary);
    transform: translateY(-1px);
}

.lang-chip-more {
    background: rgba(99, 102, 241, 0.08);
    color: var(--av-primary);
    font-weight: 600;
}

button.lang-chip,
.pg-lang-pick {
    cursor: pointer;
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lang-grid .lang-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
}

.hero-cta-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--av-muted);
}

.hero-cta-divider {
    opacity: 0.5;
}

/* Hero right visual */
.hero-visual {
    position: relative;
    min-height: 420px;
    padding: 1.5rem 0.5rem;
}

.hero-visual-glow {
    position: absolute;
    inset: 10% 5% 15% 10%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(99, 102, 241, 0.35), transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.28), transparent 50%);
    filter: blur(40px);
    animation: heroGlowPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
    border: 1px dashed rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    animation: heroOrbitSpin 24s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.hero-orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--av-gradient);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.hero-orbit-dot-1 { top: -5px; left: 50%; margin-left: -5px; }
.hero-orbit-dot-2 { bottom: 20%; right: -5px; animation: heroDotPulse 2s ease-in-out infinite; }
.hero-orbit-dot-3 { bottom: 20%; left: -5px; animation: heroDotPulse 2s ease-in-out infinite 0.6s; }

@keyframes heroOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; }
}

.hero-float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--av-border);
    background: rgba(var(--bs-body-bg-rgb), 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    font-size: 0.8rem;
}

.hero-float-card i {
    font-size: 1.25rem;
    color: var(--av-primary);
}

.hero-float-compat {
    top: 0;
    right: 0;
    animation: heroFloatA 5s ease-in-out infinite;
}

.hero-float-compat i { color: #ec4899; }

.hero-float-users {
    bottom: 12%;
    left: -0.5rem;
    animation: heroFloatB 6s ease-in-out infinite 0.5s;
}

.hero-float-value {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-float-label {
    font-size: 0.68rem;
    color: var(--av-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@keyframes heroFloatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes heroFloatB {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(6px) translateX(4px); }
}

.hero-api-panel {
    position: relative;
    z-index: 2;
    margin-top: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.25);
    animation: heroPanelIn 0.8s ease forwards;
}

@keyframes heroPanelIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-api-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: rgba(var(--bs-secondary-bg-rgb), 0.8);
    border-bottom: 1px solid var(--av-border);
}

.hero-api-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
}

.hero-api-dot:nth-child(1) { background: #ef4444; }
.hero-api-dot:nth-child(2) { background: #eab308; }
.hero-api-dot:nth-child(3) { background: #22c55e; }

.hero-api-title {
    margin-left: 0.5rem;
    font-size: 0.72rem;
    font-family: ui-monospace, monospace;
    color: var(--av-muted);
    flex: 1;
}

.hero-api-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: heroLivePulse 1.5s ease-in-out infinite;
}

@keyframes heroLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-api-body {
    padding: 1rem;
    background: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    line-height: 1.55;
}

[data-bs-theme="dark"] .hero-api-body {
    background: #020617;
}

.hero-api-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    color: #94a3b8;
}

.hero-api-label .badge {
    font-size: 0.6rem;
}

.hero-code-line {
    margin: 0;
    color: #e2e8f0;
    white-space: pre-wrap;
    opacity: 0;
    transform: translateX(-8px);
    animation: heroCodeIn 0.5s ease forwards;
}

.hero-code-1 { animation-delay: 0.4s; }
.hero-code-2 { animation-delay: 0.7s; }
.hero-code-3 { animation-delay: 1s; }
.hero-code-4 { animation-delay: 1.6s; }
.hero-code-5 { animation-delay: 1.9s; }

@keyframes heroCodeIn {
    to { opacity: 1; transform: translateX(0); }
}

.hc-key { color: #7dd3fc; }
.hc-str { color: #86efac; }
.hc-num { color: #fbbf24; }

.hero-api-arrow {
    text-align: center;
    padding: 0.35rem 0;
    color: var(--av-primary);
    animation: heroArrowBounce 2s ease-in-out infinite 1.2s;
}

.hero-api-arrow i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

@keyframes heroArrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(4px); opacity: 1; }
}

.hero-api-response {
    padding-top: 0.25rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: 0.35rem;
}

.hero-api-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.72rem;
    color: var(--av-muted);
    border-top: 1px solid var(--av-border);
    background: rgba(var(--bs-secondary-bg-rgb), 0.5);
}

.hero-api-footer i {
    color: var(--av-primary);
}

.hero-integration-card {
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.integration-badge {
    background: var(--av-gradient);
    color: #fff;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.integration-endpoint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(var(--bs-secondary-bg-rgb), 0.6);
    font-size: 0.85rem;
}

.integration-endpoint code {
    font-size: 0.8rem;
}

.api-calls-note {
    padding-top: 1rem;
    border-top: 1px solid var(--av-border);
}

.api-call-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
    font-size: 0.875rem;
}

.api-call-pill code {
    font-size: 0.85rem;
    color: var(--av-primary);
}

.hero-section {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.12), transparent 50%);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gradient-text {
    background: var(--av-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary {
    background: var(--av-gradient);
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.05);
    background: var(--av-gradient);
}

.av-card {
    border: 1px solid var(--av-border);
    border-radius: 1rem;
    background: var(--av-surface);
    box-shadow: var(--av-shadow);
}

.av-card-hover:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
    font-size: 0.875rem;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.arch-box {
    width: min(100%, 320px);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
    text-align: center;
    font-weight: 600;
}

.arch-arrow {
    color: var(--av-muted);
    font-size: 1.25rem;
}

.pricing-card.popular {
    border: 2px solid var(--av-primary);
    position: relative;
}

.pricing-card .badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.docs-sidebar {
    position: sticky;
    top: 5rem;
}

.docs-sidebar .nav-link {
    color: var(--av-muted);
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.docs-sidebar .nav-link.active,
.docs-sidebar .nav-link:hover {
    color: var(--av-primary);
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

[data-bs-theme="dark"] .code-block {
    background: #020617;
}

.playground-response-wrap {
    min-height: 200px;
}

.playground-response {
    min-height: 200px;
    max-height: 400px;
    overflow: auto;
}

.playground-response.is-loading {
    opacity: 0.35;
    pointer-events: none;
}

.playground-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 0.75rem;
    z-index: 2;
}

[data-bs-theme="dark"] .playground-loading {
    background: rgba(15, 23, 42, 0.82);
}

.playground-loading-inner {
    text-align: center;
    padding: 1.5rem;
}

#pg-run:disabled {
    opacity: 0.85;
    cursor: wait;
}

.playground-flow-notice {
    border-left-width: 4px;
}

.dashboard-stat {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
}

.api-key-display {
    font-family: monospace;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.av-footer {
    border-top: 1px solid var(--av-border);
    background: var(--av-surface);
}

.av-footer a {
    color: var(--av-muted);
    text-decoration: none;
}

.av-footer a:hover {
    color: var(--av-primary);
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
}

.stat-chart-placeholder {
    height: 220px;
    border-radius: 0.75rem;
    border: 1px dashed var(--av-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--av-muted);
}

.analytics-chart-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}

.analytics-chart-wrap-sm {
    height: 220px;
}

.analytics-range-toggle .btn.active {
    background: var(--av-primary);
    border-color: var(--av-primary);
    color: #fff;
}

.page-analytics .analytics-endpoint-list code {
    max-width: 180px;
}

.dashboard-billing-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-billing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--av-border);
}

.dashboard-billing-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-billing-row dt {
    margin: 0;
    font-size: 0.875rem;
    color: var(--av-muted);
    font-weight: 500;
}

.dashboard-billing-row dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.integration-snippet {
    max-height: 320px;
    overflow: auto;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre;
}

/* Typography & sections */
.section-title {
    letter-spacing: -0.02em;
}

.section-subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-alt {
    background: rgba(var(--bs-secondary-bg-rgb), 0.45);
}

.lead-sm {
    font-size: 1.05rem;
}

.tracking-wide {
    letter-spacing: 0.08em;
}

/* Subtle animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.btn-glow {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-glow:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

/* Flow diagram v2 */
.arch-diagram-v2 .arch-box-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: min(100%, 340px);
    padding: 0.9rem 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.arch-diagram-v2 .arch-box-step:hover {
    transform: scale(1.02);
    border-color: var(--av-primary);
}

.arch-box-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-color: var(--av-primary) !important;
}

.arch-connector {
    width: 2px;
    height: 1.25rem;
    background: var(--av-gradient);
    border-radius: 2px;
    opacity: 0.6;
}

.arch-connector span {
    display: none;
}

/* Why developer cards */
.why-card .why-icon {
    font-size: 1.75rem;
    line-height: 1;
}

/* API example panels */
.api-example-card {
    overflow: hidden;
}

.api-example-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--av-border);
    background: rgba(var(--bs-secondary-bg-rgb), 0.5);
}

.api-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.api-dot-green { background: #22c55e; }
.api-dot-yellow { background: #eab308; }
.api-dot-red { background: #ef4444; }

.json-code {
    font-size: 0.82rem;
    line-height: 1.6;
}

.json-key { color: #7dd3fc; }
.json-string { color: #86efac; }
.json-bool { color: #fbbf24; }
.json-num { color: #c4b5fd; }

/* Business benefits */
.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.benefit-list li i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.monetize-stat {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--av-border);
    background: var(--bs-body-bg);
}

/* Trust metrics */
.trust-metric-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Use case cards */
.use-case-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* CTA section */
.cta-section {
    background:
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1), transparent 70%);
}

/* Pricing */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-cost-per {
    font-size: 0.8rem;
    color: var(--av-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    display: inline-block;
}

.pricing-card-free {
    border-style: dashed;
}

.pricing-profit-note {
    border-left: 4px solid var(--av-primary);
}

.pricing-enterprise-card {
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(139, 92, 246, 0.06));
}

.border-dashed {
    border-style: dashed !important;
}

/* Quick start steps */
.quick-start-steps {
    counter-reset: step;
}

.quick-start-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
}

.quick-start-step::before {
    counter-increment: step;
    content: counter(step);
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--av-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Copy button */
.copy-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem 0.75rem 0 0;
}

.code-header + .code-block {
    border-radius: 0 0 0.75rem 0.75rem;
    margin-top: 0;
}

/* Docs */
.docs-content h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2rem;
    padding-top: 1rem;
    scroll-margin-top: 6rem;
}

.docs-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.docs-toc-card {
    position: sticky;
    top: 5rem;
}

.param-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--av-muted);
}

/* Dashboard */
.dashboard-hero-stat {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
    height: 100%;
}

.dashboard-hero-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.usage-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--av-border);
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: var(--av-gradient);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.dashboard-action-grid .btn {
    padding: 0.85rem 1rem;
}

/* Playground */
.endpoint-desc {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.06);
    border-left: 3px solid var(--av-primary);
    font-size: 0.9rem;
}

.sample-response-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--av-muted);
}

/* App mockups / social proof */
.app-mockup {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-mockup:hover {
    transform: translateY(-6px);
}

.app-mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
}

.mockup-oracle { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.mockup-astra { background: linear-gradient(135deg, #0d9488, #0891b2); }
.mockup-prediction { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.app-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.app-mockup-body {
    padding: 1rem;
    min-height: 200px;
    background: var(--bs-body-bg);
}

.chat-bubble {
    max-width: 92%;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
}

.chat-bubble-user {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.12);
    border-bottom-right-radius: 0.25rem;
    text-align: right;
}

.chat-bubble-ai {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-bottom-left-radius: 0.25rem;
}

.chat-bubble.typing {
    display: flex;
    gap: 4px;
    padding: 0.85rem 1rem;
    width: fit-content;
}

.chat-bubble.typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--av-muted);
    animation: typingDot 1.2s infinite;
}

.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.prediction-body {
    text-align: center;
}

.prediction-chart-ring {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid var(--av-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--av-primary);
    background: rgba(99, 102, 241, 0.08);
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--av-border);
}

.prediction-item span { color: var(--av-muted); }

.prediction-highlight {
    margin-top: 0.75rem;
    padding: 0.6rem;
    border-radius: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 600;
}

[data-bs-theme="dark"] .prediction-highlight {
    color: #4ade80;
}

.bg-primary-subtle {
    background: rgba(99, 102, 241, 0.1) !important;
}

/* FAQ accordion */
.faq-accordion .accordion-button {
    font-weight: 600;
    background: var(--av-surface);
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--av-primary);
    background: rgba(99, 102, 241, 0.06);
}

@media (max-width: 991.98px) {
    .hero-visual {
        min-height: 380px;
        max-width: 480px;
        margin: 0 auto;
    }
    .hero-float-users { left: 0; }
}

@media (max-width: 767.98px) {
    .hero-section { padding-top: 3rem; }
    .trust-badge { font-size: 0.78rem; padding: 0.4rem 0.75rem; }
    .quick-start-steps { flex-direction: column; }
    .hero-visual { min-height: 360px; padding: 1rem 0; }
    .hero-float-compat { right: 0; top: -0.5rem; }
    .hero-orbit { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
}
