/* ChatModel SaaS - Landing Page Stylesheet */
:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #06b6d4;
    --accent: #10b981;
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --bg: #070913;
    --bg-ambient: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
    --card-bg: rgba(15, 23, 42, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-heading: #f8fafc;
    --text-body: #94a3b8;
    --nav-bg: rgba(7, 9, 19, 0.85);
    --demo-box-bg: #0f172a;
    --demo-header-bg: #1e293b;
    --demo-input-bg: #0f172a;
    --demo-bot-bubble: #1e293b;
    --demo-bot-text: #e2e8f0;
    --toggle-bg: rgba(255, 255, 255, 0.1);
    --toggle-border: #334155;
    --footer-border: rgba(255, 255, 255, 0.08);
    --pricing-popular-bg: rgba(99, 102, 241, 0.12);
    --form-box-bg: #0f172a;
    --input-bg: #1e293b;
    --input-border: #334155;
}

/* Light Theme Variables */
html[data-theme="light"] {
    --bg: #f8fafc;
    --bg-ambient: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-heading: #0f172a;
    --text-body: #475569;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --demo-box-bg: #ffffff;
    --demo-header-bg: #f1f5f9;
    --demo-input-bg: #f8fafc;
    --demo-bot-bubble: #f1f5f9;
    --demo-bot-text: #1e293b;
    --toggle-bg: #e2e8f0;
    --toggle-border: #cbd5e1;
    --footer-border: #e2e8f0;
    --pricing-popular-bg: #eff6ff;
    --form-box-bg: #f8fafc;
    --input-bg: #f8fafc;
    --input-border: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ambient-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: var(--bg-ambient);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navbar */
nav {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--primary-glow);
    flex-shrink: 0;
}

.desktop-nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-portal {
    background: var(--toggle-bg);
    border: 1px solid var(--card-border);
    color: var(--text-heading);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-portal:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px -6px var(--primary-glow);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px var(--primary-glow);
    filter: brightness(1.1);
}

.theme-switch-btn {
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    color: var(--text-heading);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-switch-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background-color: var(--text-heading);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Slide Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 99;
    padding: 16px 20px 22px 20px;
    animation: slideDown 0.25s ease;
}

.mobile-nav-drawer.active {
    display: block;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-heading);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
    background: var(--toggle-bg);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    border-color: var(--card-border);
    color: var(--primary);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--card-border);
    margin: 12px 0 16px 0;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: #10b981;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px 0;
    text-align: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.15;
    letter-spacing: -1.5px;
    max-width: 950px;
    margin: 0 auto 24px auto;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #4f46e5 40%, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 720px;
    margin: 0 auto 36px auto;
}

/* Value Proposition Grid */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.3rem;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 12px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 40px 0 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: var(--pricing-popular-bg);
    box-shadow: 0 20px 50px -10px var(--primary-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 24px;
    min-height: 42px;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-features li {
    font-size: 0.92rem;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Live Demo Section */
.demo-section-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 900px) {
    .demo-section-wrapper {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 32px;
    }
}

.demo-chat-box {
    background: var(--demo-box-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.demo-chat-header {
    background: var(--demo-header-bg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s ease;
}

.demo-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.demo-msg.bot {
    background: var(--demo-bot-bubble);
    color: var(--demo-bot-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.demo-msg.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.demo-input-bar {
    padding: 14px 16px;
    background: var(--demo-header-bg);
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--card-border);
    transition: background 0.3s ease;
}

.form-control {
    width: 100%;
    background: var(--demo-input-bg);
    border: 1px solid var(--card-border);
    padding: 12px 16px;
    border-radius: 24px;
    color: var(--text-heading);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, background 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Dedicated Subdomain Live Finder & Service Showcase */
.domain-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.domain-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.domain-feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    nav {
        padding: 14px 0;
    }

    .desktop-nav-links,
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        font-size: 1.18rem;
    }

    .logo-badge {
        width: 32px;
        height: 32px;
        font-size: 1.05rem;
    }

    .hero {
        padding: 36px 0 24px 0;
    }

    .hero h1 {
        font-size: 2.1rem;
        letter-spacing: -0.5px;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero div[style*="display: flex; gap: 16px; justify-content: center;"] {
        flex-direction: column;
        align-items: center;
        gap: 12px !important;
    }

    .hero div[style*="display: flex; gap: 16px; justify-content: center;"] a {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }

    .domain-features-grid,
    .benefits-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .pricing-card {
        padding: 28px 18px;
    }

    .demo-section-wrapper {
        padding: 20px 14px;
        border-radius: 18px;
        gap: 20px;
        margin-bottom: 40px;
    }

    .demo-chat-box {
        height: 380px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .plan-price {
        font-size: 2.1rem;
    }
    .benefit-card {
        padding: 20px 16px;
    }
}

/* Inquiry Section Styles */
.inquiry-section-wrapper {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.85));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 80px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

html[data-theme="light"] .inquiry-section-wrapper {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.inquiry-form-card {
    background: var(--form-box-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.inquiry-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.inquiry-group {
    margin-bottom: 16px;
}

.inquiry-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.inquiry-input {
    width: 100%;
    height: 44px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 0 14px;
    color: var(--text-heading);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.inquiry-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.inquiry-textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-heading);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    box-sizing: border-box;
}

.inquiry-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

@media (max-width: 900px) {
    .inquiry-section-wrapper {
        grid-template-columns: 1fr;
        padding: 28px 18px;
        gap: 24px;
    }
    .inquiry-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .inquiry-form-card {
        padding: 22px 16px;
    }
}

/* FAQ Accordion Section */
.faq-section {
    margin-bottom: 80px;
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px -5px var(--primary-glow);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--toggle-bg);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px 24px;
}

footer {
    border-top: 1px solid var(--footer-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}
