/* ═══════════════════════════════════════════════════════════
   Shared Design Tokens — Landing ↔ Dashboard
   Extracted from features.css for cross-page consistency.
   ═══════════════════════════════════════════════════════════ */

/* ── Gradient primary (shared across landing + dashboard) ── */
:root {
    --gradient-primary: linear-gradient(135deg, var(--color-brand, #4f46e5) 0%, var(--primary-color, #6366f1) 58%, var(--color-focus, #818cf8) 100%);
    --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-premium:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Semantic landing layer. Keep page components on the same Indigo system as
   the product while allowing channel colors to remain intentionally distinct. */
body.landing-page,
.public-assistant-scope.landing-page {
    --landing-accent: var(--color-brand, #4f46e5);
    --landing-accent-hover: var(--color-brand-hover, #4338ca);
    --landing-accent-soft: var(--color-brand-soft, #eef2ff);
    --landing-text: var(--color-text-strong, #f8fafc);
    --landing-muted: var(--color-text-muted, #94a3b8);
    --landing-surface: var(--color-surface, #111827);
    --landing-border: var(--color-border, rgba(148, 163, 184, 0.2));
    --landing-focus: var(--color-focus, #818cf8);
    --landing-focus-ring: var(--color-focus-ring, rgba(99, 102, 241, 0.28));
    --landing-copy: var(--color-text, #e2e8f0);
    --landing-subtle: var(--color-text-subtle, #7f8da3);
    --landing-contrast: var(--color-brand-contrast, #ffffff);
    --landing-panel: color-mix(in srgb, var(--landing-surface) 72%, transparent);
    --landing-panel-soft: color-mix(in srgb, var(--landing-surface) 46%, transparent);
    --landing-border-subtle: color-mix(in srgb, var(--landing-muted) 18%, transparent);
    --landing-surface-raised: color-mix(in srgb, var(--landing-surface) 88%, var(--landing-text) 12%);
    --landing-surface-overlay: color-mix(in srgb, var(--landing-surface) 90%, transparent);
    --landing-inset-highlight: color-mix(in srgb, var(--landing-text) 7%, transparent);
    --landing-shadow: color-mix(in srgb, #000 28%, transparent);
    --landing-positive: var(--color-success, #10b981);
    --landing-positive-soft: color-mix(in srgb, var(--landing-positive) 14%, transparent);
    --landing-mock-frame: color-mix(in srgb, var(--landing-surface) 82%, #080b16 18%);
    --landing-mock-screen: color-mix(in srgb, var(--landing-surface) 64%, #05070c 36%);
    --landing-mock-inbound: var(--landing-surface-raised);
    --landing-mock-outbound: color-mix(in srgb, var(--landing-positive) 22%, var(--landing-surface));
    --landing-mock-outbound-text: var(--landing-text);
    --landing-mock-shadow: color-mix(in srgb, var(--landing-shadow) 88%, transparent);
    --landing-brand-text: var(--landing-focus);
    --landing-brand-border: color-mix(in srgb, var(--landing-accent) 28%, transparent);
    --landing-brand-soft: color-mix(in srgb, var(--landing-accent) 10%, transparent);
    --landing-brand-glow: color-mix(in srgb, var(--landing-accent) 24%, transparent);
    --landing-gradient-text: linear-gradient(115deg,
        var(--landing-brand-text) 4%,
        var(--landing-focus) 52%,
        var(--color-info, #60a5fa) 100%);
    --landing-gutter: clamp(1.5rem, 4vw, 4.5rem);
    --landing-max: 120rem;
}

html[data-theme='light'] body.landing-page,
html[data-theme='light'] .public-assistant-scope.landing-page {
    --landing-mock-frame: color-mix(in srgb, var(--landing-surface) 82%, var(--landing-copy) 18%);
    --landing-mock-screen: color-mix(in srgb, var(--landing-surface) 92%, var(--landing-accent-soft) 8%);
    --landing-mock-inbound: color-mix(in srgb, var(--landing-surface) 90%, var(--landing-copy) 10%);
    --landing-mock-outbound: color-mix(in srgb, var(--landing-positive) 18%, var(--landing-surface));
    --landing-mock-outbound-text: var(--landing-text);
    --landing-mock-shadow: color-mix(in srgb, var(--landing-shadow) 62%, transparent);
}

/* ── Gradient text utility ─────────────────────────────── */
.f-gradient-text,
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Premium badge pills ───────────────────────────────── */
.f-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color, #6366f1);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ── Premium button system ─────────────────────────────── */
.f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition-premium);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.f-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
}

.f-btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* ── Scroll reveal animation base ──────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Bi-directional exit states (for scroll-away) ──────── */
[data-reveal].exit-top {
    opacity: 0;
    transform: translateY(-20px);
}

[data-reveal].exit-bottom {
    opacity: 0;
    transform: translateY(30px);
}

/* ── Card hover lift (standardized) ────────────────────── */
.card-hover-lift {
    transition: var(--transition-premium);
}

.card-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* ── Section header polish ─────────────────────────────── */
.f-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.f-section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 16px 0 12px;
}

.f-section-header p {
    font-size: 17px;
    color: var(--text-secondary, #64748b);
    max-width: 560px;
    margin: 0 auto;
}
