/* ============================================================================
   Auto Attender AI — Redesign overlay
   Inspired by fountainlife.com: dark navy luxury, cyan-electric accent,
   restrained whitespace, premium-tech vibe. Layered ON TOP of style.css —
   remove the link tag in HTML to revert to the light theme.
   ============================================================================ */

:root {
    /* Override the bright light palette with a cool, deep dark stack. */
    --rd-bg-deep:        #060b1c;   /* deepest navy */
    --rd-bg:             #0a1428;   /* base background */
    --rd-bg-2:           #111c33;   /* one step lighter */
    --rd-glass:          rgba(15, 26, 51, 0.55);
    --rd-glass-strong:   rgba(15, 26, 51, 0.75);
    --rd-border:         rgba(120, 200, 255, 0.10);
    --rd-border-strong:  rgba(120, 200, 255, 0.25);
    --rd-text:           #e6eef9;
    --rd-text-mute:      #94a3b8;
    --rd-accent:         #00d9ff;   /* electric cyan — the brand voltage */
    --rd-accent-2:       #38bdf8;
    --rd-accent-warm:    #c8b86b;   /* gold for premium chips/badges */
    --rd-shadow-glow:    0 0 60px rgba(0, 217, 255, 0.18);
    --rd-shadow-soft:    0 12px 40px rgba(0, 0, 0, 0.45);
    --rd-radius:         16px;
    --rd-radius-lg:      24px;
}

/* ─── Base layer: dark canvas with a soft animated mesh ──────────────────── */

html, body {
    background: var(--rd-bg-deep);
    color: var(--rd-text);
}

body {
    /* Two soft radial-gradient lights in the corners + a deep base, like
       a clinical lab lit by cyan LEDs. The fixed attachment keeps the
       glow stationary while the page scrolls — feels architected, not
       decorative. */
    background:
        radial-gradient(ellipse at 15% 0%,    rgba(0,217,255,0.10),  transparent 55%),
        radial-gradient(ellipse at 85% 100%,  rgba(124,58,237,0.10), transparent 55%),
        radial-gradient(ellipse at 50% 50%,   rgba(8,16,38,1)        0%, var(--rd-bg-deep) 70%);
    background-attachment: fixed;
    color: var(--rd-text);
    font-feature-settings: "ss01", "cv11";
}

/* Faint grid lines, very low opacity — gives an "engineered" feel without
   being a 90s techno background. Pure CSS, no asset. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* Make sure all real content sits above the grid backdrop. */
header, nav, main, section, footer, .container { position: relative; z-index: 1; }

/* ─── Typography tweaks for the dark theme ───────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    color: var(--rd-text);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }

p { color: var(--rd-text-mute); }

a { color: var(--rd-accent); }
a:hover { color: var(--rd-accent-2); }

/* The brand text-gradient now runs on cyan rather than blue→violet. The
   dark backdrop makes a cool gradient sing where the original purple
   would look muddy. */
.text-gradient {
    background: linear-gradient(120deg, #00d9ff 0%, #7dd3fc 40%, #c8b86b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section labels become cyan-on-dark micro-pills — the Fountain Life
   "MEDICAL-GRADE PRECISION" tag style. */
.section-label {
    color: var(--rd-accent);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}
.section-label::before {
    background: var(--rd-accent);
    box-shadow: 0 0 8px var(--rd-accent);
}

/* ─── Sections ──────────────────────────────────────────────────────────── */

.section,
.section-alt {
    background: transparent;
    color: var(--rd-text);
}

.section-dark {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
}

.section-dark p { color: var(--rd-text-mute); }

/* Hairline divider between major sections — subtle, premium. */
.section + .section::before,
.section + .section-alt::before,
.section-alt + .section::before {
    content: "";
    display: block;
    width: min(60%, 720px);
    height: 1px;
    margin: 0 auto -100px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* ─── Glass cards (the heart of the redesign) ──────────────────────────── */

/* Apply glass to every existing card-shaped block from style.css. We
   target the common class names rather than rewriting markup. */
.feature-card,
.use-case-card,
.benefit-card,
.testimonial,
.pricing-card,
.tier-card,
.tile,
.card,
.metric-card,
.industry-card,
.integration-card,
.workflow-step,
.faq-item,
.contact-form,
.cta-box,
form,
.industry-icon-card,
.process-step {
    background: var(--rd-glass);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius);
    color: var(--rd-text);
    box-shadow: var(--rd-shadow-soft);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover,
.use-case-card:hover,
.benefit-card:hover,
.testimonial:hover,
.pricing-card:hover,
.tier-card:hover,
.card:hover,
.metric-card:hover,
.industry-card:hover,
.integration-card:hover {
    transform: translateY(-6px);
    border-color: var(--rd-border-strong);
    box-shadow: var(--rd-shadow-soft), 0 0 40px rgba(0, 217, 255, 0.14);
}

/* Inner text colors inside glass cards. */
.feature-card *, .use-case-card *, .pricing-card *,
.benefit-card *, .testimonial *, .tier-card *, .card *,
.metric-card *, .faq-item * {
    color: inherit;
}
.feature-card h3, .feature-card h4,
.use-case-card h3, .use-case-card h4,
.pricing-card h3, .pricing-card h4,
.benefit-card h3, .benefit-card h4,
.tier-card h3, .tier-card h4,
.metric-card h3, .metric-card h4 { color: var(--rd-text); }

.feature-card p, .use-case-card p, .pricing-card p,
.benefit-card p, .testimonial p, .tier-card p,
.metric-card p, .faq-item p { color: var(--rd-text-mute); }

/* ─── Glass navbar ──────────────────────────────────────────────────────── */

.navbar {
    background: rgba(6, 11, 28, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--rd-border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}

.navbar.scrolled {
    background: rgba(6, 11, 28, 0.85);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.navbar a, .navbar .nav-links a {
    color: var(--rd-text);
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--rd-accent);
}

.nav-brand-icon {
    background: linear-gradient(135deg, var(--rd-accent), #7c3aed);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.45);
}

/* ─── Buttons: cyan voltage for primary, glass for secondary ───────────── */

.btn {
    border-radius: 999px;          /* fountainlife uses pill-shaped CTAs */
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(120deg, #00d9ff 0%, #38bdf8 60%, #818cf8 100%);
    color: #001018;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.35),
                inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 217, 255, 0.55),
                inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Cyan sweep highlight on hover — gives the button an "AI scanned" feel. */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}
.btn-primary:hover::after { left: 130%; }

.btn-secondary,
.btn-outline-light {
    background: rgba(255,255,255,0.04);
    color: var(--rd-text);
    border: 1px solid var(--rd-border-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover,
.btn-outline-light:hover {
    background: rgba(0,217,255,0.08);
    border-color: var(--rd-accent);
    color: var(--rd-accent);
    transform: translateY(-2px);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
    background: transparent;
    color: var(--rd-text);
    padding-top: 120px;
}

.hero h1 { color: var(--rd-text); }
.hero p, .hero-stat-label { color: var(--rd-text-mute); }

/* The phone mockup becomes a glass terminal on a softly glowing pad. */
.hero-phone,
.phone-screen {
    background: var(--rd-glass-strong);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--rd-border-strong);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55),
                0 0 80px rgba(0, 217, 255, 0.18);
}

.chat-bubble.ai {
    background: rgba(0, 217, 255, 0.10);
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: var(--rd-text);
}
.chat-bubble.caller {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--rd-border);
    color: var(--rd-text);
}

/* Floating badges around the hero phone — frosted, animated, with a
   soft float so the eye sees motion without the page actually moving. */
.hero-badge {
    background: var(--rd-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--rd-border-strong);
    color: var(--rd-text);
    border-radius: 999px;
    box-shadow: var(--rd-shadow-soft);
    animation: rdFloat 6s ease-in-out infinite;
}
.hero-badge i { color: var(--rd-accent); }
.hero-badge.badge-1 { animation-delay: -1.5s; }
.hero-badge.badge-2 { animation-delay: -3s;   }
.hero-badge.badge-3 { animation-delay: -4.5s; }

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

/* Hero stat numbers gradient-fill for emphasis. */
.hero-stat-number,
.hero-stat .number,
.metric-card .number,
.stat .value {
    background: linear-gradient(120deg, #00d9ff, #c8b86b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* A pulsing "AI online" dot for hero/persona blocks. Matches the
   "live system" feel fountainlife uses on their data widgets. */
.live-dot,
.phone-status::before,
.ai-status::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--rd-accent);
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(0,217,255,0.7);
    animation: rdPulse 2s infinite;
}
@keyframes rdPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,217,255,0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(0,217,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,217,255,0); }
}

/* ─── Forms ─────────────────────────────────────────────────────────────── */

input, textarea, select {
    background: rgba(255,255,255,0.04);
    color: var(--rd-text);
    border: 1px solid var(--rd-border-strong);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder {
    color: rgba(230, 238, 249, 0.4);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--rd-accent);
    box-shadow: 0 0 0 4px rgba(0,217,255,0.12);
    background: rgba(255,255,255,0.06);
}

label { color: var(--rd-text-mute); font-weight: 500; letter-spacing: 0.02em; }

/* ─── Pricing tier highlighting (the gold "premium" accent) ────────────── */

.pricing-card.featured,
.tier-card.featured,
.pricing-card.recommended,
.pricing-card.popular {
    border-color: var(--rd-accent-warm);
    background: linear-gradient(180deg,
                rgba(200,184,107,0.08) 0%,
                var(--rd-glass) 60%);
    box-shadow: 0 0 0 1px var(--rd-accent-warm) inset,
                0 30px 60px rgba(200,184,107,0.10),
                var(--rd-shadow-soft);
}
.pricing-card.featured .badge,
.tier-card.featured .badge {
    background: linear-gradient(120deg, var(--rd-accent-warm), #fde68a);
    color: #1a1100;
}

/* ─── Pricing card internals (dark-theme overrides) ─────────────────────
   The base styles in style.css set near-black colors (.amount = --dark,
   .pricing-features li = --gray-600) which become invisible on the
   redesign's glass cards. Force them onto the dark palette. */
.pricing-card { text-align: center; }
.pricing-card h4 { color: var(--rd-text); font-weight: 700; letter-spacing: -0.01em; }
.pricing-price .amount {
    /* Use the same cyan→gold gradient as hero stat numbers so the price
       reads as the focal point of each card. */
    background: linear-gradient(120deg, #00d9ff, #c8b86b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.pricing-price .period { color: var(--rd-text-mute); }
.pricing-features li {
    color: var(--rd-text-mute);
    border-bottom-color: rgba(120, 200, 255, 0.08);
}
.pricing-features li strong { color: var(--rd-text); font-weight: 600; }
.pricing-features li i { color: var(--rd-accent); }

/* Inline "Enterprise" callout on pricing.html uses background:var(--gray-100)
   inline — too light to read on. Override anything that uses gray-100 as a
   background inside the redesign theme: convert to a tinted glass panel. */
[style*="var(--gray-100)"],
[style*="background: var(--gray-100)"] {
    background:
        linear-gradient(135deg, rgba(0,217,255,0.06), rgba(124,58,237,0.05)),
        var(--rd-glass-strong) !important;
    border: 1px solid var(--rd-border-strong) !important;
    color: var(--rd-text) !important;
    box-shadow: var(--rd-shadow-soft) !important;
}
[style*="var(--gray-100)"] h2,
[style*="var(--gray-100)"] h3,
[style*="var(--gray-100)"] h4 { color: var(--rd-text) !important; }
[style*="var(--gray-100)"] p { color: var(--rd-text-mute) !important; }

/* Inline `style="color: var(--gray-500)"` on supporting copy is too dark
   on the dark theme — bump it to the lighter mute color. */
[style*="var(--gray-500)"] { color: var(--rd-text-mute) !important; }
[style*="var(--gray-300)"] { color: var(--rd-text) !important; }
[style*="var(--gray-600)"] { color: var(--rd-text-mute) !important; }

/* Contact-form headings + copy: the .contact-form box is glass-overridden
   but its <h3>/<p> still inherit light by default. Lock them in explicitly
   so future style.css edits can't reintroduce the dark-on-dark bug. */
.contact-form h3 { color: var(--rd-text); }
.contact-form p { color: var(--rd-text-mute); }
.contact-form .form-group label { color: var(--rd-text-mute); }
.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--rd-border-strong);
    color: var(--rd-text);
}
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder { color: rgba(148, 163, 184, 0.55); }
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--rd-accent);
    box-shadow: 0 0 0 3px rgba(0,217,255,0.12);
    background: rgba(255,255,255,0.06);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

footer {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
    border-top: 1px solid var(--rd-border);
    color: var(--rd-text-mute);
}
footer h3, footer h4, footer h5 { color: var(--rd-text); }
footer a { color: var(--rd-text-mute); }
footer a:hover { color: var(--rd-accent); }

/* ─── Scroll-reveal hook ─────────────────────────────────────────────────
   Pages can opt-in by adding class="reveal" on any element. main.js (or
   a tiny IntersectionObserver below) toggles .reveal--in to fade them
   in. If the JS isn't loaded, content still shows because of the
   no-script fallback below. */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.reveal--in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-badge { animation: none; }
    .live-dot, .phone-status::before, .ai-status::before { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ─── Responsive: ease the heaviest effects on small screens ───────────── */

@media (max-width: 768px) {
    body::before { background-size: 40px 40px; }      /* tighter grid */
    .feature-card, .use-case-card, .pricing-card,
    .benefit-card, .card { backdrop-filter: blur(10px); }
    .hero { padding-top: 96px; }
    h1 { font-size: clamp(2.25rem, 8vw, 3rem); }

    /* Disable the floating-badge animation on touch — battery + jitter. */
    .hero-badge { animation: none; }
}

@media (max-width: 480px) {
    .btn, .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
    .section { padding: 64px 0; }
}

/* ─── Safari fallback when backdrop-filter isn't supported ─────────────── */

@supports not (backdrop-filter: blur(10px)) {
    .feature-card, .use-case-card, .pricing-card, .benefit-card,
    .card, .navbar, .hero-phone, .phone-screen, .hero-badge,
    .btn-secondary, .btn-outline-light {
        background: var(--rd-bg-2);
    }
}

/* ─── Small fountain-life-style touches ────────────────────────────────── */

/* Gradient ring around feature icons */
.feature-icon, .benefit-icon, .step-number, .icon-wrap, .industry-icon {
    background: linear-gradient(135deg, rgba(0,217,255,0.2), rgba(124,58,237,0.2));
    border: 1px solid rgba(0,217,255,0.3);
    color: var(--rd-accent);
    box-shadow: 0 0 30px rgba(0,217,255,0.15);
}

/* Underline-on-hover for content links inside body copy */
p a, li a, .content a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s;
}
p a:hover, li a:hover, .content a:hover {
    background-size: 100% 1px;
}

/* Selection — cyan voltage when text is selected, like the Fountain
   Life data dashboards. */
::selection { background: rgba(0,217,255,0.35); color: #fff; }

/* ─── CTA section: blend with dark theme ─────────────────────────────────
   The original style.css paints .cta-section with --gradient-primary
   (blue→violet) which screams against the dark navy canvas. Replace
   with a subtle glass band so it reads as a continuation of the page
   rather than a banner from a different design system. */

.cta-section {
    background: linear-gradient(180deg,
                rgba(0, 217, 255, 0.04) 0%,
                rgba(124, 58, 237, 0.06) 100%) !important;
    border-top: 1px solid var(--rd-border);
    border-bottom: 1px solid var(--rd-border);
    color: var(--rd-text);
    padding: 96px 0 !important;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    /* Recolor the original radial blob so it tints, not glares. */
    background: radial-gradient(circle, rgba(0,217,255,0.10) 0%, transparent 70%) !important;
    width: 720px !important; height: 720px !important;
    top: -40% !important;
    left: -10% !important;
    filter: blur(20px);
}
.cta-section h2 {
    background: linear-gradient(120deg, #ffffff 0%, var(--rd-accent) 70%, var(--rd-accent-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}
.cta-section p {
    color: var(--rd-text-mute) !important;
    max-width: 640px;
    margin: 16px auto 28px !important;
}
.cta-section .btn-secondary,
.cta-section .btn {
    background: linear-gradient(120deg, #00d9ff 0%, #38bdf8 60%, #818cf8 100%) !important;
    color: #001018 !important;
    border: 0 !important;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.30),
                inset 0 1px 0 rgba(255,255,255,0.4) !important;
}
.cta-section .btn-secondary:hover,
.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 217, 255, 0.50),
                inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   PART I·b — Contrast fix: rewire the original gray scale for the dark
   theme. style.css defines --gray-100..--gray-600 for a white background
   (e.g. --gray-600 = #475569 = near-black). Body copy, lists, FAQ
   answers, footer text etc. all reach for those vars. On the dark
   navy backdrop they read as invisible blocks. Re-pointing the same
   variable names to lighter values fixes every site-wide use at once,
   no markup edits needed.
   ════════════════════════════════════════════════════════════════════════ */

:root {
    --gray-100: #1a2540;     /* was #f1f5f9 — used as section bg, now a dark glass tint */
    --gray-200: #243353;     /* was #e2e8f0 — borders */
    --gray-300: #d3dbe6;     /* was #cbd5e1 — secondary muted text on dark sections */
    --gray-400: #b6c0d1;     /* was #94a3b8 */
    --gray-500: #c2cbdb;     /* was #64748b — muted body */
    --gray-600: #d8dfeb;     /* was #475569 — primary body text on dark */
    --dark:    #060b1c;      /* re-anchor anything calling --dark */
    --dark-2:  #0a1428;
    --dark-3:  #111c33;
    --white:   #ffffff;
}

/* Belt-and-braces: any element still rendering near-black text gets
   forced to readable mute. Targets the common elements that didn't have
   their color set explicitly. */
li, dd, dt, blockquote, address,
.feature-card li, .pricing-card li, .use-case-card li, .benefit-card li,
.tier-card li, .industry-card li, .faq-item *,
.faq-answer, .feature-list li, .check-list li,
.benefit-list li, .perk li {
    color: var(--rd-text);
}

/* The check-circle icons in front of bullets need to read as cyan
   (the brand voltage), not the original dark blue. */
li .fa-check, li .fa-check-circle, li .fa-circle-check,
li .fa-circle-arrow-right, li i {
    color: var(--rd-accent);
}

/* Plain <ul>/<ol> spacing tweak for the dark theme so check-lists
   breathe a bit more. */
ul.feature-list, ul.check-list, ul.benefit-list,
.feature-card ul, .pricing-card ul, .tier-card ul, .use-case-card ul {
    list-style: none;
    padding-left: 0;
}
ul.feature-list li, ul.check-list li, ul.benefit-list li,
.feature-card ul li, .pricing-card ul li, .tier-card ul li,
.use-case-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    line-height: 1.55;
}

/* Anywhere the original CSS used `color: var(--dark)` (dark-on-light
   headlines), make sure the text actually shows on the dark canvas. */
[class*="title"], [class*="heading"], .feature-title, .card-title {
    color: var(--rd-text);
}

/* Tables that rely on default body color */
table, th, td { color: var(--rd-text); }
th { color: var(--rd-text); }
td { color: var(--rd-text-mute); }

/* ════════════════════════════════════════════════════════════════════════
   PART II — Live background, AI elements, motion polish
   ════════════════════════════════════════════════════════════════════════ */

/* ─── Aurora: slowly drifting gradient blobs, fixed behind content ────── */

.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: blur(80px) saturate(140%);
    opacity: 0.55;
}
.aurora__blob {
    position: absolute;
    width: 60vmax; height: 60vmax;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}
.aurora__blob--1 {
    background: radial-gradient(circle at 30% 30%, #00d9ff 0%, transparent 60%);
    top: -20%; left: -10%;
    animation: rdAuroraDrift1 26s ease-in-out infinite;
}
.aurora__blob--2 {
    background: radial-gradient(circle at 70% 30%, #7c3aed 0%, transparent 60%);
    top: 10%; right: -10%;
    animation: rdAuroraDrift2 32s ease-in-out infinite;
}
.aurora__blob--3 {
    background: radial-gradient(circle at 50% 50%, #c8b86b 0%, transparent 55%);
    bottom: -25%; left: 25%;
    animation: rdAuroraDrift3 38s ease-in-out infinite;
    opacity: 0.5;
}
@keyframes rdAuroraDrift1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(15vmax, 8vmax) scale(1.15); }
}
@keyframes rdAuroraDrift2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(-12vmax, 10vmax) scale(1.1); }
}
@keyframes rdAuroraDrift3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(8vmax, -10vmax) scale(1.2); }
}

/* ─── Neural-network canvas layer (drawn by effects.js) ────────────────── */

.neural-net {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

/* ─── AI orb: a breathing sphere with internal scanning rings ──────────── */

.ai-orb {
    --orb: 240px;
    width: var(--orb); height: var(--orb);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0ea5e9 30%, #0c4a6e 65%, #0a1428 100%);
    box-shadow:
        0 0 0 1px rgba(0,217,255,0.25),
        0 0 80px 10px rgba(0,217,255,0.35),
        inset 0 0 60px rgba(0,217,255,0.25),
        inset 0 -30px 80px rgba(0,0,0,0.45);
    animation: rdOrbBreathe 5s ease-in-out infinite;
}

/* Scanning ring inside the orb. */
.ai-orb::before, .ai-orb::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    animation: rdOrbRing 8s linear infinite;
}
.ai-orb::after {
    inset: 22%;
    border-color: rgba(0,217,255,0.55);
    border-top-color: transparent;
    border-right-color: transparent;
    animation-duration: 4s;
}

/* A soft caustic highlight on the upper-left, fakes glass glare. */
.ai-orb__glare {
    position: absolute;
    top: 8%; left: 14%;
    width: 32%; height: 22%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.6), transparent 70%);
    filter: blur(4px);
    pointer-events: none;
}

@keyframes rdOrbBreathe {
    0%,100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(0,217,255,0.25), 0 0 80px 10px rgba(0,217,255,0.35), inset 0 0 60px rgba(0,217,255,0.25), inset 0 -30px 80px rgba(0,0,0,0.45); }
    50%     { transform: scale(1.04); box-shadow: 0 0 0 1px rgba(0,217,255,0.4),  0 0 110px 15px rgba(0,217,255,0.5),  inset 0 0 80px rgba(0,217,255,0.35), inset 0 -30px 90px rgba(0,0,0,0.45); }
}
@keyframes rdOrbRing {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─── Voice waveform visualizer (12 cyan bars, breathing) ──────────────── */

.wave-viz { display: inline-flex; align-items: center; gap: 4px; height: 36px; }
.wave-viz span {
    display: block;
    width: 3px;
    background: linear-gradient(180deg, #00d9ff, #38bdf8);
    border-radius: 2px;
    height: 8px;
    animation: rdWaveBar 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0,217,255,0.5);
}
.wave-viz span:nth-child(1)  { animation-delay: -1.10s; }
.wave-viz span:nth-child(2)  { animation-delay: -0.95s; }
.wave-viz span:nth-child(3)  { animation-delay: -0.80s; }
.wave-viz span:nth-child(4)  { animation-delay: -0.65s; }
.wave-viz span:nth-child(5)  { animation-delay: -0.50s; }
.wave-viz span:nth-child(6)  { animation-delay: -0.35s; }
.wave-viz span:nth-child(7)  { animation-delay: -0.20s; }
.wave-viz span:nth-child(8)  { animation-delay: -0.05s; }
.wave-viz span:nth-child(9)  { animation-delay:  0.10s; }
.wave-viz span:nth-child(10) { animation-delay:  0.25s; }
.wave-viz span:nth-child(11) { animation-delay:  0.40s; }
.wave-viz span:nth-child(12) { animation-delay:  0.55s; }
@keyframes rdWaveBar {
    0%,100% { height:  8px; }
    50%     { height: 32px; }
}

/* ─── Marquee logo / tech-stack strip ──────────────────────────────────── */

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    border-top: 1px solid var(--rd-border);
    border-bottom: 1px solid var(--rd-border);
    padding: 28px 0;
    background: rgba(255,255,255,0.02);
}
.marquee__track {
    display: flex;
    gap: 64px;
    animation: rdMarquee 38s linear infinite;
    width: max-content;
}
.marquee__item {
    color: var(--rd-text-mute);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.marquee__item i { color: var(--rd-accent); }
@keyframes rdMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── 3D tilt prep — JS sets --rx/--ry on hover ────────────────────────── */

.feature-card, .use-case-card, .pricing-card, .benefit-card,
.tier-card, .industry-card, .metric-card {
    transform: perspective(1000px)
               rotateX(var(--rx, 0deg))
               rotateY(var(--ry, 0deg))
               translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}

/* Inner content lifts toward camera on tilt for parallax depth. */
.feature-card > *, .pricing-card > *, .use-case-card > * { transform: translateZ(20px); }

/* ─── Animated gradient border (used on premium cards) ─────────────────── */

.glow-border {
    position: relative;
    z-index: 0;
}
.glow-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #00d9ff, #7c3aed, #c8b86b, #00d9ff);
    animation: rdConicSpin 6s linear infinite;
    filter: blur(0.5px);
}
.glow-border::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background: var(--rd-bg-2);
}
@keyframes rdConicSpin {
    to { transform: rotate(360deg); }
}

/* ─── Hero AI persona card variant ─────────────────────────────────────── */

.ai-persona {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: var(--rd-glass-strong);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--rd-border-strong);
    border-radius: var(--rd-radius-lg);
    box-shadow: var(--rd-shadow-soft), 0 0 80px rgba(0, 217, 255, 0.2);
}
.ai-persona__name {
    font-size: 1.25rem; font-weight: 700; color: var(--rd-text);
    letter-spacing: 0.02em;
}
.ai-persona__status {
    font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--rd-accent);
    display: inline-flex; align-items: center; gap: 8px;
}
.ai-persona__status::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--rd-accent);
    box-shadow: 0 0 0 0 rgba(0,217,255,0.7);
    animation: rdPulse 2s infinite;
}

/* ─── Counter animation hook (JS sets data-count, reveals digit-stable) ─ */

.counter { font-variant-numeric: tabular-nums; }

/* ─── Trace lines: thin gradient line under section labels for AI feel ── */

.trace::after {
    content: "";
    display: block;
    width: 80px; height: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--rd-accent), transparent);
    border-radius: 2px;
}

/* ─── Hero section gets the orb by default if .hero-visual is empty ───── */

.hero-visual:empty::before {
    content: "";
    display: block;
    width: 280px; height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0ea5e9 30%, #0c4a6e 65%, #0a1428 100%);
    box-shadow: 0 0 80px 10px rgba(0,217,255,0.4),
                inset 0 0 60px rgba(0,217,255,0.25);
    animation: rdOrbBreathe 5s ease-in-out infinite;
}

/* ─── Reduced-motion: kill the heavy decoration ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .aurora__blob, .ai-orb, .ai-orb::before, .ai-orb::after,
    .wave-viz span, .marquee__track, .glow-border::before,
    .ai-persona__status::before, .hero-visual:empty::before {
        animation: none !important;
    }
    .neural-net { display: none; }
}

/* ─── Mobile: cool down the heavy stuff ────────────────────────────────── */

@media (max-width: 768px) {
    .aurora { filter: blur(60px); opacity: 0.4; }
    .neural-net { opacity: 0.3; }
    .ai-orb { --orb: 180px; }
    .feature-card > *, .pricing-card > *, .use-case-card > * { transform: none; }
    .feature-card, .use-case-card, .pricing-card, .benefit-card,
    .tier-card, .industry-card, .metric-card {
        transform: none;  /* disable tilt on touch */
    }
}

