/* ============================================
   RAG Landing Page — Version B (Non-Technical)
   Aligned with GuruCloudAI design system
   ============================================ */

/* ── Hero ───────────────────────────────────── */
.rag-hero {
    background: #0a0710;
    padding: 140px 0 120px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.rag-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.18) 0%, rgba(96, 165, 250, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.rag-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.rag-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: rag-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes rag-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.rag-hero-title {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    color: #fff;
}

.rag-hero-trust-text {
    color: #fff;
}

.rag-hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.rag-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ── Hero Scrolling Words Animation ──────────── */
.rag-scroll-wrapper {
    display: inline-block;
    position: relative;
    height: 1.15em;
    overflow: hidden;
    vertical-align: bottom;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    /* width set dynamically by JS per word */
}

.rag-scroll-words {
    display: flex;
    flex-direction: column;
    position: relative;
}

.rag-scroll-word {
    height: 1.15em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #8b5cf6;
    font-weight: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: absolute;
    width: auto;
    left: 0;
    top: 0;
}

.rag-scroll-word.active {
    opacity: 1;
    transform: translateY(0);
    position: absolute; /* keep absolute so wrapper width stays fixed */
}

.rag-scroll-word.exit-up {
    opacity: 0;
    transform: translateY(-30px);
    position: absolute;
}

/* ── Trust Row ──────────────────────────────── */
.rag-trust-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.rag-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
}

.rag-trust-icon {
    color: #10b981;
    font-weight: 900;
    font-size: 1.1rem;
}

/* ── Gradient Text ──────────────────────────── */
.rag-gradient-text {
    color: #8b5cf6;
}

.rag-gradient-text-bad {
    color: #ef4444;
}

/* ── Buttons ────────────────────────────────── */
.rag-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.65);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.rag-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.rag-btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.rag-btn-primary:hover {
    background: #8b5cf6;
    transform: translateY(-2px);
    color: #fff;
}

.rag-btn-outline-form {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.rag-btn-outline-form:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
}

/* ── Section Base ──────────────────────────── */
.rag-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.rag-section-dark {
    background: #13101a;
    color: #e2e8f0;
}

.rag-section-darker {
    background: #0a0710;
    color: #e2e8f0;
}

.rag-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.rag-section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ── Section separators ──────────────────────── */

/* ── Scroll fade-up animations ──────────────── */
.rag-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.rag-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.rag-fade-d1 { transition-delay: 0.12s; }
.rag-fade-d2 { transition-delay: 0.24s; }
.rag-fade-d3 { transition-delay: 0.36s; }

/* ── Why Chatbots Fail — Side-by-side compare ── */
.rag-failure-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 860px) {
    .rag-failure-compare {
        grid-template-columns: 1fr;
    }
}

.rag-failure-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.rag-failure-col > p:not(.rag-compare-sub) {
    flex-grow: 1;
}

.rag-failure-col.rag-bad-side {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.2);
}

.rag-failure-col.rag-good-side {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.rag-compare-label {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.rag-bad-label {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.rag-good-label {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.rag-failure-col h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.rag-failure-col p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.rag-failure-col strong {
    color: #fff;
}

.rag-compare-sub {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
    margin-top: 4px;
}

.rag-failure-list {
    margin-top: 8px;
}

.rag-failure-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: #fca5a5;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rag-good-list .rag-failure-item {
    color: #e9d5ff;
}

.rag-fail-icon {
    flex-shrink: 0;
    color: #ef4444;
    font-weight: 800;
    font-size: 1rem;
}

.rag-success-icon {
    flex-shrink: 0;
    color: #8b5cf6;
    font-weight: 800;
    font-size: 1rem;
}

/* ── Benefit Cards ──────────────────────────── */
.rag-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 0 auto;
    align-items: stretch;
}

.rag-benefit-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.rag-benefit-card > p:not(.rag-benefit-punchline) {
    flex-grow: 1;
}

.rag-benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
}

.rag-benefit-icon {
    font-size: 1.8rem;
    margin-bottom: 18px;
    color: #8b5cf6;
    display: block;
}

.rag-benefit-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.rag-benefit-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.rag-benefit-punchline {
    padding: 14px 18px;
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid #8b5cf6;
    border-radius: 6px;
    color: #e9d5ff !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.rag-benefit-punchline strong {
    color: #fff;
}

/* ── Case Study Card ────────────────────────── */
.rag-case-card {
    margin: 0 auto;
    background: rgba(139, 92, 246, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
}

.rag-case-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.rag-case-card .rag-section-title {
    color: #fff;
}

.rag-case-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 24px;
}

.rag-case-problem {
    text-align: left;
    max-width: 720px;
    margin: 32px auto;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rag-case-problem h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 800;
}

.rag-case-problem p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.rag-case-problem p:last-child {
    margin-bottom: 0;
}

.rag-case-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 32px 0;
    margin: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rag-case-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rag-case-metric-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.rag-case-metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ── Enhanced Testimonial ───────────────────── */
.rag-testimonial-highlight {
    position: relative;
    margin-top: 32px;
    padding: 44px 28px 36px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    text-align: center;
}

.rag-testimonial-quote-mark {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    line-height: 1;
    color: #8b5cf6;
    opacity: 0.5;
    font-family: Georgia, serif;
    pointer-events: none;
}

.rag-testimonial-featured {
    background: none !important;
    border-left: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none;
}

.rag-testimonial-featured p {
    font-size: 1.35rem !important;
    line-height: 1.85 !important;
    color: #fff !important;
    font-style: italic;
    max-width: none;
    margin: 0 auto !important;
}

.rag-testimonial-featured footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.05rem;
}

.rag-testimonial-featured footer strong {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── Live Demo Widget ───────────────────────── */
.widget-demo-frame {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.widget-demo-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.widget-demo-dot.r { background: #ef4444; }
.widget-demo-dot.y { background: #f59e0b; }
.widget-demo-dot.g { background: #10b981; }

.widget-demo-url {
    color: #64748b;
    font-size: 0.78rem;
    margin-left: 12px;
}

.widget-demo-body {
    padding: 24px;
}

.widget-demo-iframe-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #fff;
}

.widget-demo-iframe-wrap iframe {
    width: 100%;
    height: 520px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .widget-demo-iframe-wrap iframe {
        height: 420px;
    }
}

.widget-demo-suggestions {
    margin-top: 20px;
    text-align: center;
}

.widget-demo-try-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.widget-demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.demo-chip {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: default;
    transition: all 0.3s;
}

.demo-chip:hover {
    border-color: rgba(6, 182, 212, 0.4);
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
}

/* ── Demo Section — black bg + linework canvas ── */
.rag-section-demo {
    background: #000;
    position: relative;
}

.rag-demo-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.rag-section-demo .container {
    position: relative;
    z-index: 1;
}

/* ── CTA / Consultation Section ─────────────── */
.rag-cta-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.rag-cta-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.rag-cta-microcopy {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    margin-top: 20px;
}

/* ── Consultation Embed ────────────────────── */
.rag-consultation-embed {
    max-width: 860px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px 44px;
}

.rag-consult-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.rag-consult-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.rag-consult-step.active,
.rag-consult-step.completed {
    opacity: 1;
}

.rag-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s;
}

.rag-consult-step.active .rag-step-num {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

.rag-consult-step.completed .rag-step-num {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
    color: #fff;
}

.rag-consult-step.completed {
    cursor: pointer;
}

.rag-consult-step.completed:hover .rag-step-num {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.rag-consult-step.completed:hover .rag-step-label {
    color: #e2e8f0;
}

.rag-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.rag-consult-step.active .rag-step-label {
    color: #e2e8f0;
}

.rag-consult-step-line {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 12px;
}

.rag-consult-form-step {
    display: none;
}

.rag-consult-form-step.active {
    display: block;
}

.rag-consult-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.rag-consult-step-sub {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.rag-consult-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.rag-consult-field {
    margin-bottom: 20px;
}

.rag-consult-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    text-align: left;
}

.rag-field-optional {
    font-weight: 400;
    color: #64748b;
}

.rag-consult-field input,
.rag-consult-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.rag-consult-field input:focus,
.rag-consult-field textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.rag-consult-field input::placeholder,
.rag-consult-field textarea::placeholder {
    color: #475569;
}

.rag-consult-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

.rag-consult-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.rag-consult-option-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.rag-consult-option-card.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

.rag-option-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
    transition: all 0.25s;
}

.rag-consult-option-card.selected .rag-option-check {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #fff;
}

.rag-option-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.rag-option-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 12px;
}

.rag-option-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #8b5cf6;
    display: block;
    margin-top: 8px;
}

.rag-consult-credit {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    margin-bottom: 8px;
}

.rag-consult-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.rag-consult-meeting-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.rag-meeting-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.rag-meeting-sep {
    color: #475569;
}

.rag-consult-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #94a3b8;
}

.rag-consult-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: rag-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes rag-spin {
    to { transform: rotate(360deg); }
}

/* ── FAQ ─────────────────────────────────────── */
.rag-faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.rag-faq-heading {
    position: sticky;
    top: 100px;
}

.rag-faq-list {
    margin: 0;
}

.rag-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.rag-faq-item[open] {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.rag-faq-item:not([open]):hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
}

.rag-faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s;
}

.rag-faq-item summary:hover {
    color: #8b5cf6;
}

.rag-faq-item summary::-webkit-details-marker {
    display: none;
}

.rag-faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #8b5cf6;
    font-weight: 300;
    transition: transform 0.2s;
}

.rag-faq-item[open] summary::after {
    content: '\2212';
}

.rag-faq-item p {
    padding: 0 24px 20px;
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .rag-hero {
        padding: 60px 0 50px;
    }
    .rag-section {
        padding: 64px 0;
    }
    .rag-trust-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .rag-case-card {
        padding: 32px 24px;
    }
    .rag-consultation-embed {
        padding: 24px 18px;
    }
    .rag-consult-field-row {
        grid-template-columns: 1fr;
    }
    .rag-consult-options {
        grid-template-columns: 1fr;
    }
    .rag-step-label {
        display: none;
    }
    .rag-faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .rag-faq-heading {
        position: static;
        text-align: center;
    }
}

/* ── Hide Genie/KB/DreamScape from nav on RAG page ── */
[data-ad-page="rag"] .utility-bar__link--product {
    display: none !important;
}
[data-ad-page="rag"] .utility-bar__link--product + .utility-bar__sep {
    display: none !important;
}

/* ── Footer: match hero bg on RAG page ────────── */
[data-ad-page="rag"] .site-footer {
    background: #0a0710 !important;
    border-top: 2px solid rgba(139, 92, 246, 0.4) !important;
}
[data-ad-page="rag"] .site-footer h6 {
    color: #8b5cf6 !important;
}
[data-ad-page="rag"] .site-footer .bi-cloud-fill {
    color: #8b5cf6 !important;
}
[data-ad-page="rag"] .site-footer button {
    border-color: #8b5cf6 !important;
}
[data-ad-page="rag"] .site-footer a[href="mailto:salter@gurucloudai.com"] {
    transition: color 0.2s ease;
}
[data-ad-page="rag"] .site-footer a[href="mailto:salter@gurucloudai.com"]:hover {
    color: #8b5cf6 !important;
}

/* ── Nav overrides (RAG page only) ────────── */
[data-ad-page="rag"] .utility-bar {
    background: rgba(10, 7, 16, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 24px;
}

[data-ad-page="rag"] .utility-bar__brand-bubble {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

[data-ad-page="rag"] .utility-bar__brand {
    font-size: 1.05rem;
}

[data-ad-page="rag"] .utility-bar__links-bubble {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 24px;
}

[data-ad-page="rag"] .utility-bar__link {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    background: none;
}

[data-ad-page="rag"] .utility-bar__link:hover {
    color: #e2e8f0;
    background: none;
}

[data-ad-page="rag"] .utility-bar__link--active {
    color: #e2e8f0;
}

[data-ad-page="rag"] .utility-bar__sep {
    display: none;
}

[data-ad-page="rag"] .utility-bar__cta {
    background: #8b5cf6;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

[data-ad-page="rag"] .utility-bar__cta:hover {
    background: #7c4ee6;
    color: #fff;
    transform: translateY(-1px);
}

/* Sign In as outline CTA */
[data-ad-page="rag"] .utility-bar__link--signin {
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #8b5cf6 !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

[data-ad-page="rag"] .utility-bar__link--signin:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1) !important;
    color: #a78bfa !important;
}

/* Dropdown styling to match dark theme */
[data-ad-page="rag"] .utility-bar__dropdown {
    background: rgba(10, 7, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile overrides */
@media (max-width: 992px) {
    [data-ad-page="rag"] .utility-bar__links-bubble {
        background: rgba(10, 7, 16, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 8px;
        gap: 2px;
    }
    [data-ad-page="rag"] .utility-bar__link {
        padding: 10px 14px;
        border-radius: 8px;
    }
    [data-ad-page="rag"] .utility-bar__link:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    [data-ad-page="rag"] .utility-bar__sep {
        display: block;
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }
}

/* ── Remove gap above footer ──────────────── */
.saas-page .site-footer.mt-5 {
    margin-top: 0 !important;
    background: #0a0710;
}

/* Tighten last section before footer */
.rag-section:last-of-type {
    padding-bottom: 60px;
}
