/* === PersivAI Assist — Themed to PersivXDemo === */
:root {
    --primary: #1a1f2e;
    --secondary: #2D8FA8;
    --surface: #f6f8fa;
    --white: #ffffff;
    --border: #eee;
    --text: #0a0f1a;
    --text-muted: #555;
    --text-dim: #888;
    --radius: 16px;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Urbanist', sans-serif;
}

/* === Base overrides for this page === */
body {
    background: linear-gradient(160deg, #f0f4f8 0%, #e8eef4 50%, #f6f8fa 100%) !important;
    padding-top: 130px !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Hero === */
.hero {
    position: relative;
    padding: 60px 0 40px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-grid, .hero-glow { display: none; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    border: 1px solid rgba(45, 143, 168, 0.2);
    background: rgba(45, 143, 168, 0.04);
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary), #5bb8d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}

/* === Buttons (matching PersivXDemo actionButtons) === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 143, 168, 0.3);
}

.btn-ghost {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid #e0e4ea;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #fafafa;
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
    width: 100%;
    justify-content: center;
    border-radius: 10px;
}

.btn-outline:hover {
    background: rgba(45, 143, 168, 0.06);
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* === Hero Proof === */
.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--primary);
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.hero-proof::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(45,143,168,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 36px 32px;
    flex: 1;
    position: relative;
}

.proof-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(91,184,208,0.2), transparent);
}

.proof-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.proof-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.proof-divider { display: none; }

/* === Section Common === */
.section-label {
    width: max-content;
    margin: 0 auto 16px;
    border: thin solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    background: rgba(45, 143, 168, 0.04);
    border-color: rgba(45, 143, 168, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text);
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.7;
}

/* === Problem Section === */
.problem-section {
    padding: 60px 0;
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.problem-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all 0.3s ease;
    text-align: left;
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

.problem-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.problem-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Features Section === */
.features-section {
    padding: 80px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary), transparent);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    border-color: rgba(45, 143, 168, 0.15);
}

.feature-card.feature-highlight {
    background: linear-gradient(180deg, #fff 40%, var(--surface) 100%);
    border-color: rgba(45, 143, 168, 0.15);
}

.feature-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Modules Section === */
.modules-section {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.module-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s ease;
    text-align: left;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    border-color: rgba(45, 143, 168, 0.2);
}

.module-card-wide {
    grid-column: span 3;
    text-align: center;
    background: linear-gradient(180deg, #fff 40%, var(--surface) 100%);
    border-color: rgba(45, 143, 168, 0.15);
}

.module-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.module-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    background: rgba(45, 143, 168, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.module-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.module-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === How It Works === */
.how-section {
    padding: 80px 0;
    text-align: center;
}

.steps-grid {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 36px;
}

.step-card {
    flex: 1;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    border-color: rgba(45, 143, 168, 0.15);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5bb8d0, var(--secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), #5bb8d0);
    flex-shrink: 0;
    opacity: 0.4;
}

/* === Stats Section === */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    background: var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.stats-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 10% 50%, rgba(45,143,168,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 90% 50%, rgba(45,143,168,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.stat-card {
    text-align: center;
    padding: 44px 32px;
    flex: 1;
    position: relative;
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(91,184,208,0.2), transparent);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

/* === Tech Section === */
.tech-section {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.tech-item {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s ease;
    text-align: left;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
    border-color: rgba(45, 143, 168, 0.15);
}

.tech-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tech-item h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.tech-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Pricing Section === */
.pricing-section {
    padding: 80px 0;
    text-align: center;
}

.pricing-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
    align-items: start;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-single {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.pricing-single .pricing-card {
    max-width: 520px;
    width: 100%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    align-items: start;
}

.pricing-card {
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.pricing-popular {
    border-color: var(--secondary);
    background: linear-gradient(180deg, #fff 40%, var(--surface) 100%);
    box-shadow: 0 12px 36px rgba(45, 143, 168, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-tier {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features {
    text-align: left;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid #f0f0f0;
    padding-left: 20px;
    position: relative;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-card {
    padding: 70px 40px;
    border-radius: var(--radius);
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(45,143,168,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    position: relative;
}

.cta-card > p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    line-height: 1.7;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 14px;
    position: relative;
}

.cta-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: white;
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
    backdrop-filter: blur(10px);
}

.cta-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.cta-input:focus {
    border-color: var(--secondary);
}

.cta-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    position: relative;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .features-grid, .modules-grid, .tech-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .module-card-wide { grid-column: span 2; }
    .stats-grid { flex-wrap: wrap; }
    .stat-card { min-width: 50%; }
}

@media (max-width: 768px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-proof { flex-direction: column; border-radius: 12px; }
    .proof-item::after { display: none; }
    .problem-grid, .features-grid, .modules-grid, .tech-grid, .pricing-grid, .pricing-grid-two {
        grid-template-columns: 1fr;
    }
    .module-card-wide { grid-column: span 1; }
    .steps-grid { flex-direction: column; gap: 12px; }
    .step-connector { width: 2px; height: 24px; }
    .stats-grid { flex-direction: column; }
    .stat-card { min-width: 100%; }
    .stat-card:not(:last-child)::after { display: none; }
    .pricing-popular { transform: none; }
    .pricing-popular:hover { transform: translateY(-3px); }
    .cta-form { max-width: 100%; }
    .cta-card { padding: 48px 24px; }
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.problem-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.problem-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.problem-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.features-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.features-grid .fade-in:nth-child(5) { transition-delay: 0.32s; }
.features-grid .fade-in:nth-child(6) { transition-delay: 0.4s; }
.stats-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* === Thank You Overlay === */
.thankyou-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thankyou-overlay.visible {
    opacity: 1;
}

.thankyou-card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: thankyouPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: scale(0.8);
}

@keyframes thankyouPop {
    to { transform: scale(1); }
}

.thankyou-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5bb8d0, var(--secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.thankyou-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.thankyou-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.thankyou-card .btn {
    min-width: 140px;
}
