/* ============================================
   AHA CRM v3 — Dark Modern SaaS (PipelineAI-style)
   ============================================ */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --border: #1f1f2e;
    --border-light: #2a2a3a;
    --text: #e2e2e8;
    --text-muted: #8888a0;
    --text-dim: #5a5a70;
    --white: #ffffff;
    --blue: #407bff;
    --blue-glow: rgba(64, 123, 255, 0.15);
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.15);
    --red: #f87171;
    --orange: #fbbf24;
    --r: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 100px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--white);
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
img { max-width: 100%; }
a { text-decoration: none; color: var(--blue); }

/* ---- Utilities ---- */
.section-header { margin-bottom: 56px; }
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 12px;
}
.text-blue {
    background: linear-gradient(135deg, #6ea8ff, #0d58ff, #407bff, #6ea8ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 10px auto 0;
}

/* ---- NAV ---- */
#mainNav {
    padding: 14px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1050;
    transition: 0.3s;
}
#mainNav.scrolled { background: rgba(10, 10, 15, 0.98); }
#mainNav .navbar-brand img { height: 42px; }
.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: -0.02em;
    display: block;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}
.brand-text-wrap {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.brand-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
#mainNav .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    transition: 0.2s;
}
#mainNav .nav-link:hover { color: var(--white); }
#mainNav .nav-link.active { color: var(--white); font-weight: 600; }
.btn-nav-cta {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    border-radius: var(--r-full) !important;
    background: var(--blue) !important;
    color: var(--white) !important;
    border: none !important;
    text-decoration: none !important;
}
.btn-nav-cta:hover {
    background: #5a8fff !important;
    color: var(--white) !important;
    text-decoration: none !important;
}

/* ---- BUTTONS ---- */
.btn-primary {
    background: var(--blue);
    border: none;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--r-full);
    font-size: 0.9rem;
    color: var(--white) !important;
    transition: 0.3s;
    box-shadow: 0 0 24px var(--blue-glow);
    text-decoration: none;
}
.btn-primary:hover {
    background: #5a8fff;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(64, 123, 255, 0.3);
    text-decoration: none;
}
.btn-outline-light {
    border: 1.5px solid var(--border-light);
    color: var(--text);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--r-full);
    font-size: 0.9rem;
    background: transparent;
    transition: 0.3s;
}
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: transparent; }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* ---- HERO ---- */
.hero-section {
    padding: 130px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(64,123,255,0.18) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 40%, rgba(13,88,255,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 40%, rgba(110,168,255,0.1) 0%, transparent 50%),
                var(--bg);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    width: 1600px;
    height: 1600px;
    background: radial-gradient(circle, rgba(64,123,255,0.14) 0%, rgba(13,88,255,0.06) 30%, transparent 55%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section h1 { margin-bottom: 20px; position: relative; z-index: 2; }
.hero-highlight { font-size: clamp(2.4rem, 5vw, 3.8rem); display: block; padding-bottom: 0.1em; }
.hero-tagline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
    opacity: 0.85;
}
.hero-punch {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}
.hero-subtitle {
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 28px;
    color: var(--text);
    position: relative;
    z-index: 2;
}
.hero-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}
.hero-stat { text-align: center; }
.hero-stat .stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.02em;
}
.hero-stat .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ---- FEATURES ---- */
.features-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse at 70% 30%, rgba(64,123,255,0.08) 0%, transparent 50%),
                var(--bg);
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    height: 100%;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}
.feature-icon {
    width: 48px; height: 48px;
    background: var(--blue-glow);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature-icon i { color: var(--blue); font-size: 1.1rem; }
.feature-icon.hot { background: rgba(248, 113, 113, 0.2); }
.feature-icon.hot i { color: #ff5555; }
.feature-icon.warm { background: rgba(251, 191, 36, 0.2); }
.feature-icon.warm i { color: #ffb020; }
.feature-icon.cold { background: rgba(64, 123, 255, 0.2); }
.feature-icon.cold i { color: #5a9fff; }
.feature-card h3 { margin-bottom: 8px; color: var(--white); }
.feature-card p { font-size: 0.88rem; margin: 0; }
.section-note { font-size: 0.88rem; color: var(--text-muted); font-style: italic; max-width: 500px; margin: 0 auto; }

/* ---- SCREENSHOT SECTION ---- */
.screenshot-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 50% 80%, rgba(64,123,255,0.1) 0%, transparent 50%),
                var(--bg);
}
.screenshot-section .container { width: 100%; }
.screenshot-section .section-header { margin-bottom: 28px; }
.screenshot-wrapper {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--blue-glow);
}
.screenshot-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(64,123,255,0.3), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.screenshot-img {
    width: 100%;
    display: block;
    border-radius: var(--r-xl);
}

/* ---- DEMO SECTION ---- */
.demo-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse at 30% 50%, rgba(13,88,255,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(110,168,255,0.06) 0%, transparent 40%),
                var(--bg);
}
.demo-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    overflow: hidden;
}
.demo-step {
    padding: 28px 32px;
}
.demo-step.suggestion {
    background: rgba(79, 140, 255, 0.03);
    border-top: 1px solid var(--border);
}
.demo-step-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    display: block;
    margin-bottom: 8px;
}
.demo-step-label i { margin-right: 4px; color: var(--blue); }
.demo-step-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text);
    margin: 0;
}
.demo-divider {
    text-align: center;
    padding: 12px 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}
.demo-suggestion-content {}
.suggestion-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 8px;
}
.suggestion-date i { margin-right: 4px; }
.suggestion-msg {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    padding: 12px 16px;
    background: var(--blue-glow);
    border-radius: 8px;
    border-left: 3px solid var(--blue);
    margin-bottom: 14px;
}
.suggestion-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.suggestion-actions .action-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}
.suggestion-actions .action-btn:hover { border-color: var(--blue); color: var(--blue); }
.suggestion-actions .action-btn i { margin-right: 4px; }
.suggestion-actions .action-btn.accept { background: var(--green); color: var(--bg); border-color: var(--green); }

/* ---- COMPARISON ---- */
.comparison-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse at 40% 60%, rgba(13,88,255,0.08) 0%, transparent 50%),
                var(--bg);
}
.comparison-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table thead th {
    padding: 16px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.comparison-table thead th.aha-col { color: var(--blue); }
.comparison-table tbody td {
    padding: 14px 20px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:first-child { font-weight: 500; color: var(--white); }
.comparison-table tbody td i.fa-check-circle { color: var(--green); font-size: 1.1rem; }
.comparison-table tbody td .no { color: var(--red); font-size: 0.8rem; font-weight: 500; }
.comparison-table tbody td .no-icon { color: var(--red); font-size: 1.1rem; margin-right: 4px; }

/* ---- PRICING ---- */
.pricing-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse at 50% 20%, rgba(64,123,255,0.1) 0%, transparent 50%),
                var(--bg);
}
.pricing-toggle {
    display: inline-flex;
    background: var(--bg-card);
    border-radius: var(--r-full);
    padding: 4px;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}
.pricing-toggle .toggle-btn {
    padding: 10px 22px;
    border-radius: var(--r-full);
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.pricing-toggle .toggle-btn.active { background: var(--blue); color: var(--white); }
.pricing-toggle .toggle-btn .badge-save {
    background: var(--green);
    color: var(--bg);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 700;
}
.pricing-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 36px 28px;
    border: 1px solid var(--border);
    height: 100%;
    transition: 0.3s;
    position: relative;
    text-align: center;
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}
.pricing-card.featured {
    border-color: var(--blue);
    box-shadow: 0 0 40px var(--blue-glow);
}
.pricing-card .popular-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: var(--white); font-size: 0.65rem; font-weight: 700;
    padding: 4px 14px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: 0.3px;
}
.pricing-card .plan-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.pricing-card .plan-price { font-size: 2.8rem; font-weight: 900; font-family: 'Poppins', sans-serif; line-height: 1; margin-bottom: 2px; color: var(--white); }
.pricing-card .plan-period { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 24px; }
.pricing-card .plan-features { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.pricing-card .plan-features li {
    padding: 7px 0; font-size: 0.85rem; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.pricing-card .plan-features li.disabled { color: var(--text-dim); }
.pricing-card .plan-features li i.fa-check { color: var(--green); font-size: 0.65rem; }
.pricing-card .plan-features li i.fa-xmark { color: var(--text-dim); font-size: 0.65rem; }
.pricing-card .btn-plan { width: 100%; padding: 12px; font-size: 0.85rem; border-radius: var(--r-full); }
.pricing-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 28px; }

/* ---- TESTIMONIALS ---- */
.testimonials-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse at 60% 40%, rgba(110,168,255,0.07) 0%, transparent 50%),
                var(--bg);
}
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    height: 100%;
    transition: 0.3s;
}
.testimonial-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
}
.testimonial-card .quote {
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text);
}
.testimonial-card .author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    margin: 0;
}

/* ---- FINAL CTA ---- */
.final-cta-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 50%, rgba(64,123,255,0.12) 0%, transparent 50%),
                var(--bg);
}
.final-cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(64,123,255,0.06) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.final-cta-section h2 { margin-bottom: 14px; position: relative; z-index: 2; }
.final-cta-section .cta-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 2;
}
.final-cta-section .btn { position: relative; z-index: 2; }
.final-cta-section .cta-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 14px;
    position: relative;
    z-index: 2;
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--bg);
    padding: 56px 0 24px;
    border-top: 1px solid var(--border);
}
.footer-contact { padding-bottom: 40px; }
.footer-contact-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}
.footer-contact-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.contact-info-item i { color: var(--blue); font-size: 0.9rem; }
.contact-info-item a { color: var(--text); font-size: 0.9rem; transition: 0.2s; }
.contact-info-item a:hover { color: var(--blue); }
.footer-form .form-control {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    padding: 12px 16px;
    font-size: 0.88rem;
    transition: 0.2s;
}
.footer-form .form-control::placeholder { color: var(--text-dim); }
.footer-form .form-control:focus {
    background: var(--bg-card-hover);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
    color: var(--white);
    outline: none;
}
.footer-divider { border-color: var(--border); margin: 0 0 40px; opacity: 1; }
.site-footer .footer-brand p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.7; }
.site-footer .footer-heading {
    color: var(--text-muted); font-weight: 700; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px;
}
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a { color: var(--text-dim); font-size: 0.82rem; transition: 0.2s; }
.site-footer .footer-links a:hover { color: var(--blue); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.72rem; color: var(--text-dim); margin: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
    .hero-section { padding: 140px 0 80px; }
    .hero-stats { gap: 40px; }
    #mainNav .navbar-collapse {
        background: var(--bg-card);
        padding: 16px;
        border-radius: var(--r-lg);
        margin-top: 8px;
        border: 1px solid var(--border);
    }
}
@media (max-width: 767.98px) {
    .hero-section { padding: 120px 0 60px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat .stat-number { font-size: 1.6rem; }
    .pricing-card { max-width: 320px; margin: 0 auto; }
    .comparison-table-wrapper { overflow-x: auto; }
    .comparison-table { min-width: 500px; }
}

/* ---- INNER PAGES ---- */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(64,123,255,0.14) 0%, transparent 55%),
                var(--bg);
}
.page-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 500px; margin: 10px auto 0; }
.page-content {
    padding: 60px 0 100px;
}
.page-content h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 14px; }
.page-content a:not(.btn) { color: var(--blue); }
.page-content a:not(.btn):hover { text-decoration: underline; }

/* About list */
.about-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.about-list li {
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.about-list li:last-child { border-bottom: none; }
.about-list li strong { color: var(--white); }

/* Legal content */
.legal-content h2 { font-size: 1.1rem; }
.legal-content p { font-size: 0.9rem; }

/* Contact form */
.contact-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-form .form-control {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    padding: 12px 16px;
    font-size: 0.88rem;
    transition: 0.2s;
}
.contact-form .form-control::placeholder { color: var(--text-dim); }
.contact-form .form-control:focus {
    background: var(--bg-card-hover);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
    color: var(--white);
    outline: none;
}
.contact-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    margin-top: 32px;
}
.contact-info-box h3 { font-size: 1rem; margin-bottom: 16px; }
.contact-info-box .contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.contact-info-box .contact-info-item i { color: var(--blue); font-size: 0.9rem; }
.contact-info-box .contact-info-item a,
.contact-info-box .contact-info-item span { color: var(--text); font-size: 0.88rem; }
.contact-info-box .contact-info-item a:hover { color: var(--blue); }
