/* ===== AGENT-FAQ.CSS — Kreativ FAQ-side for LexiAgent ===== */

/* ===== HERO ===== */
.afq-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 32px;
    text-align: center;
    background: linear-gradient(135deg, #0f0a2e 0%, #1a1145 40%, #0d1b3e 100%);
}
[data-theme="light"] .afq-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 40%, #f5f0ff 100%);
}
.afq-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.afq-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: afq-float 12s ease-in-out infinite;
}
.afq-hero-orb--1 { width: 400px; height: 400px; background: #60a5fa; top: -100px; left: -100px; }
.afq-hero-orb--2 { width: 300px; height: 300px; background: #ec4899; bottom: -80px; right: -60px; animation-delay: -4s; }
.afq-hero-orb--3 { width: 200px; height: 200px; background: #60a5fa; top: 40%; left: 60%; animation-delay: -8s; }
[data-theme="light"] .afq-hero-orb { opacity: 0.15; }
@keyframes afq-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.afq-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

/* Hero split layout */
.afq-hero-split {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.afq-hero-text { text-align: center; }

/* Hero box */
.afq-hero-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.afq-hero-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #93c5fd, #34d399, #6ee7b7);
}
[data-theme="light"] .afq-hero-box {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(96, 165, 250, 0.15);
}
.afq-hero-box-icon { color: #93c5fd; margin-bottom: 1rem; }
.afq-hero-box-stat {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.afq-hero-box-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
}
[data-theme="light"] .afq-hero-box-label { color: #1e293b; }
.afq-hero-box-cats span {
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 100px;
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
    font-weight: 500;
}
[data-theme="light"] .afq-hero-box-cats span { background: rgba(96, 165, 250, 0.08); color: #3b82f6; }
.afq-hero-badge {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.25);
    margin-bottom: 1.5rem;
}
[data-theme="light"] .afq-hero-badge {
    background: rgba(96, 165, 250, 0.1);
    color: #3b82f6;
    border-color: rgba(96, 165, 250, 0.2);
}
.afq-hero-inner h1, .afq-hero-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
    line-height: 1.1;
}
.afq-hero-inner p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 2rem;
}
[data-theme="light"] .afq-hero-inner p { color: #64748b; }

/* Quick-nav pills (inline in hero) */
.afq-nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Pills bar — full width section */
.afq-pills-bar {
    padding: 16px 24px;
    background: rgba(96, 165, 250, 0.04);
    border-top: 1px solid rgba(96, 165, 250, 0.08);
    border-bottom: 1px solid rgba(96, 165, 250, 0.08);
    margin-bottom: 20px;
}
[data-theme="light"] .afq-pills-bar { background: #f1f5f9; border-color: #e2e8f0; }
.afq-pills-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.afq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.25s ease;
}
.afq-pill:hover, .afq-pill--active {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.3);
}
[data-theme="light"] .afq-pill {
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .afq-pill:hover, [data-theme="light"] .afq-pill--active {
    background: rgba(96, 165, 250, 0.1);
    color: #3b82f6;
    border-color: rgba(96, 165, 250, 0.25);
}

/* ===== TRUST BAR ===== */
.afq-trust-bar {
    padding: 24px;
    background: rgba(96, 165, 250, 0.06);
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}
[data-theme="light"] .afq-trust-bar {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.afq-trust-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.afq-trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.afq-trust-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(96,165,250,.15), rgba(139,92,246,.1));
    display: flex; align-items: center; justify-content: center;
    color: #93c5fd;
    flex-shrink: 0;
}
[data-theme="light"] .afq-trust-icon { color: #3b82f6; background: linear-gradient(135deg, rgba(96,165,250,.1), rgba(139,92,246,.05)); }
.afq-trust-text strong { display: block; font-size: 0.85rem; font-weight: 600; color: #e2e8f0; }
.afq-trust-text span { font-size: 0.75rem; color: #64748b; }
[data-theme="light"] .afq-trust-text strong { color: #1e293b; }

/* ===== SECTIONS ===== */
.afq-section { padding: 80px 24px; border-top: 1px solid rgba(96, 165, 250, 0.06); }
[data-theme="light"] .afq-section { border-top-color: #e2e8f0; }
.afq-section--alt { background: rgba(255, 255, 255, 0.02); }
[data-theme="light"] .afq-section--alt { background: #f8fafc; }

/* Split layout: FAQ + Building side by side */
.afq-split {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.afq-split--reverse { grid-template-columns: 320px 1fr; }
.afq-split--reverse .afq-split-content { order: 2; }
.afq-split--reverse .afq-split-visual { order: 1; }

/* Building scene */
.afq-building-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 2rem;
}
.afq-split-visual {
    align-self: center;
}
.afq-city-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    position: relative;
}
.afq-floor {
    position: absolute;
    bottom: -10px;
    width: 200px;
    height: 20px;
    background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(96,165,250,0.02));
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}
.afq-city-group--2 .afq-floor { width: 220px; }
.afq-city-group--3 .afq-floor { width: 240px; }
.afq-city-group--4 .afq-floor { width: 260px; }

.afq-bld { transform: scale(1.1); }
.afq-bld--sm { transform: scale(0.75); }
.afq-bld--xs { transform: scale(0.55); }
.afq-bld .cb-label { font-size: 0.6rem; }

/* Section header */
.afq-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.15);
}
.afq-section-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #60a5fa, #60a5fa);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
}
.afq-section-icon--green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3); }
.afq-section-icon--blue { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); }
.afq-section-icon--amber { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); }

.afq-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}
.afq-section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ===== FAQ ITEMS ===== */
.afq-faq-list { display: flex; flex-direction: column; gap: 8px; }

.afq-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}
.afq-item:hover {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.04);
}
.afq-item.is-open {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.06);
    box-shadow: 0 4px 24px rgba(96, 165, 250, 0.1);
}
[data-theme="light"] .afq-item {
    border-color: #e2e8f0;
    background: #fff;
}
[data-theme="light"] .afq-item:hover {
    border-color: rgba(96, 165, 250, 0.3);
    background: #fafafe;
}
[data-theme="light"] .afq-item.is-open {
    border-color: #60a5fa;
    background: #f5f3ff;
    box-shadow: 0 4px 24px rgba(96, 165, 250, 0.08);
}

.afq-q {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 14px;
    text-align: left;
    transition: all 0.2s ease;
}
.afq-q-num {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 28px;
    opacity: 0.6;
}
.afq-q-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.4;
}
[data-theme="light"] .afq-q-text { color: #334155; }
.afq-item.is-open .afq-q-text { color: #e2e8f0; }
[data-theme="light"] .afq-item.is-open .afq-q-text { color: #1e293b; }

.afq-q-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(96, 165, 250, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.afq-item.is-open .afq-q-icon {
    background: #60a5fa;
    color: #fff;
    transform: rotate(45deg);
}

.afq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 20px 0 62px;
}
.afq-item.is-open .afq-a {
    max-height: 400px;
    padding: 0 20px 20px 62px;
}
.afq-a p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #94a3b8;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}
[data-theme="light"] .afq-a p { color: #475569; border-top-color: rgba(96, 165, 250, 0.08); }

/* ===== CTA ===== */
.afq-cta {
    padding: 80px 24px;
    background: linear-gradient(135deg, #1a1145 0%, #0f0a2e 100%);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .afq-cta {
    background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
}
.afq-cta::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.08);
    filter: blur(100px);
    top: -200px; right: -200px;
}
.afq-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.afq-cta-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.75rem;
}
.afq-cta-content p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0 0 2rem;
}
[data-theme="light"] .afq-cta-content p { color: #64748b; }

.afq-cta-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }
.afq-cta-btn, .afq-cta-btn-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 16px 36px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.afq-cta-btn--green {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #0f172a !important;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35);
}
.afq-cta-btn--green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.5);
    background: linear-gradient(135deg, #6ee7b7, #34d399);
}

/* Logo-gradient text (matches header logo: indigo → green) */
.afq-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 30%, #34d399 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .afq-split, .afq-split--reverse { grid-template-columns: 1fr; gap: 1.5rem; }
    .afq-split--reverse .afq-split-content { order: 1; }
    .afq-split--reverse .afq-split-visual { order: 2; }
    .afq-split-visual { display: none; }
}
@media (max-width: 768px) {
    .afq-hero { padding: 96px 20px 60px; }
    .afq-hero-inner h1 { font-size: 2.2rem; }
    .afq-hero-split { grid-template-columns: 1fr; gap: 2rem; }
    .afq-hero-text { text-align: center; }
    .afq-hero-visual { display: none; }
    .afq-trust-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .afq-trust-item { justify-content: flex-start; padding-left: 1rem; }
    .afq-section { padding: 48px 20px; }
    .afq-section-header h2 { font-size: 1.3rem; }
    .afq-a { padding: 0 16px 0 48px; }
    .afq-item.is-open .afq-a { padding: 0 16px 16px 48px; }
    .afq-nav-pills { gap: 6px; }
    .afq-pill { font-size: 0.7rem; padding: 6px 12px; }
    .afq-cta-content h2 { font-size: 1.6rem; }
    .afq-cta-actions { flex-direction: column; }
}
@media (max-width: 480px) {
    .afq-hero-inner h1 { font-size: 1.8rem; }
    .afq-section-icon { width: 40px; height: 40px; border-radius: 10px; }
    .afq-section-icon svg { width: 22px; height: 22px; }
    .afq-q { padding: 14px 16px; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .afq-hero-orb { animation: none; }
    .afq-a { transition: none; }
    .afq-q-icon { transition: none; }
    .afq-item { transition: none; }
}
