/* ===== ANEM HQ — Shared Styles ===== */

/* THEME VARIABLES */
:root {
    --bg: #050505;
    --bg-card: rgba(15,15,15,0.9);
    --bg-card-hover: rgba(15,15,15,1);
    --bg-grid: rgba(255,255,255,0.03);
    --bg-radial1: rgba(255,255,255,0.05);
    --bg-radial2: rgba(255,255,255,0.04);
    --text: #ededed;
    --text-muted: #999;
    --text-faint: #888;
    --text-fainter: #666;
    --text-faintest: #444;
    --heading: #fff;
    --border: #222;
    --border-light: rgba(255,255,255,0.06);
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-bg: rgba(139,92,246,0.15);
    --accent-border: rgba(139,92,246,0.3);
    --accent-glow: rgba(139,92,246,0.08);
    --accent-glow-end: rgba(139,92,246,0.02);
    --nav-dropdown-bg: rgba(10,10,10,0.98);
    --nav-mobile-bg: rgba(5,5,5,0.98);
    --nav-dropdown-hover: rgba(139,92,246,0.1);
    --input-bg: rgba(15,15,15,0.9);
    --input-border: #333;
    --input-option-bg: #111;
    --check-color: #ccc;
    --legal-text: #bbb;
    --red: #ef4444;
    --green: #4ade80;
    --green-bg: rgba(34,197,94,0.1);
    --green-border: rgba(34,197,94,0.3);
}

[data-theme="light"] {
    --bg: #f8f8fa;
    --bg-card: #fff;
    --bg-card-hover: #fff;
    --bg-grid: rgba(0,0,0,0.03);
    --bg-radial1: rgba(0,0,0,0.02);
    --bg-radial2: rgba(0,0,0,0.015);
    --text: #1a1a1a;
    --text-muted: #555;
    --text-faint: #666;
    --text-fainter: #888;
    --text-faintest: #bbb;
    --heading: #111;
    --border: #ddd;
    --border-light: rgba(0,0,0,0.08);
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-bg: rgba(124,58,237,0.08);
    --accent-border: rgba(124,58,237,0.2);
    --accent-glow: rgba(124,58,237,0.06);
    --accent-glow-end: rgba(124,58,237,0.01);
    --nav-dropdown-bg: #fff;
    --nav-mobile-bg: rgba(248,248,250,0.98);
    --nav-dropdown-hover: rgba(124,58,237,0.06);
    --input-bg: #fff;
    --input-border: #ccc;
    --input-option-bg: #fff;
    --check-color: #333;
    --legal-text: #555;
    --red: #dc2626;
    --green: #16a34a;
    --green-bg: rgba(22,163,74,0.08);
    --green-border: rgba(22,163,74,0.2);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

/* BACKGROUND */
body {
    background:
        repeating-linear-gradient(
            90deg,
            var(--bg-grid) 0px,
            var(--bg-grid) 1px,
            transparent 1px,
            transparent 80px
        ),
        repeating-linear-gradient(
            0deg,
            var(--bg-grid) 0px,
            var(--bg-grid) 1px,
            transparent 1px,
            transparent 80px
        ),
        radial-gradient(circle at 20% 20%, var(--bg-radial1), transparent 40%),
        radial-gradient(circle at 80% 0%, var(--bg-radial2), transparent 45%),
        var(--bg);

    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
.hero {
    margin-top: -1.5cm;
}

/* PAGE WRAPPER */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-light { display: none; }
.logo-dark { display: inline; }

[data-theme="light"] .logo-light { display: inline; }
[data-theme="light"] .logo-dark { display: none; }

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--heading);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--heading);
}

.nav-links a.active {
    color: var(--heading);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-faint);
    stroke-width: 2;
    fill: none;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===== TECHNOLOGY PARTNERS LOGO SWITCHING ===== */
.partner-logo-light { display: block; }
.partner-logo-dark { display: none; }

[data-theme="light"] .partner-logo-light { display: block; }
[data-theme="light"] .partner-logo-dark { display: none; }

[data-theme="dark"] .partner-logo-light { display: none; }
[data-theme="dark"] .partner-logo-dark { display: block; }

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown > a::after {
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 1px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-dropdown-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-faint) !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--nav-dropdown-hover);
    color: var(--accent) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--heading);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: var(--heading);
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--heading);
    line-height: 1.3;
}

h4 {
    font-size: 1.1rem;
    color: var(--heading);
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section + .section {
    border-top: 1px solid var(--border-light);
}

.section-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-faint);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 640px;
    margin-bottom: 40px;
}

/* ===== HERO ===== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    margin-bottom: 20px;
    max-width: 800px;
}

.hero .highlight {
    color: var(--accent);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 800px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-fainter);
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--text-faintest);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-bg);
    border: 1px solid rgba(139,92,246,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.card-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--heading);
}

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

/* ===== GRID LAYOUTS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* ===== FEATURE CARD (solid dark - matching Old Chatbot card) ===== */
.feature-card {
    background: #0a0a0a;  /* Solid dark background */
    border: 1px solid #222;
    border-radius: 16px;
    padding: 36px;
}


/* ===== STATUS BADGE ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

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

/* ===== SPLIT LAYOUT ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-content h2 {
    margin-bottom: 16px;
}

.split-content p {
    margin-bottom: 24px;
}

/* ===== CHECK LIST ===== */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--check-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.check-list li::before {
    content: "\2713";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card:hover {
    border-color: var(--accent-border);
}

.testimonial-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--heading);
    font-size: 1.1rem;
}

.testimonial-services {
    font-size: 0.85rem;
    color: var(--accent);
}

.testimonial-quote {
    color: var(--legal-text);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 600;
}

.testimonial-badge::before {
    content: "\2713";
    font-size: 0.75rem;
}

/* ===== EMAIL PREVIEW (cold email mockup) ===== */
.email-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.email-mockup-bar {
    background: var(--bg-grid);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-fainter);
}

.email-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.email-mockup-dot.red { background: #ef4444; }
.email-mockup-dot.yellow { background: #f59e0b; }
.email-mockup-dot.green { background: #22c55e; }

.email-mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-subject {
    font-size: 0.9rem;
    color: var(--check-color);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-grid);
    border: 1px solid var(--border-light);
}

.email-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-fainter);
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.2s;
}

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

.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--text-fainter);
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-faint);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-section h2 {
    margin-bottom: 8px;
}

.cta-section p {
    max-width: 560px;
    margin-bottom: 12px;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    margin-bottom: 12px;
}

.legal-content .last-updated {
    color: var(--text-fainter);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--accent);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--legal-text);
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    color: var(--legal-text);
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content strong {
    color: var(--text);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--check-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select option {
    background: var(--input-option-bg);
    color: var(--text);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-fainter);
}

.form-note a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}


.footer-brand p {
    color: var(--text-fainter);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 360px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-fainter);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-faintest);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent-hover);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero {
        padding: 60px 0 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--nav-mobile-bg);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        position: relative;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: var(--bg-grid);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        min-width: 0;
        padding: 6px 0;
        margin-top: 4px;
    }

    .nav-dropdown-menu a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .nav-dropdown > a::after {
        border-top: 4px solid currentColor;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 40px 0;
    }
}

