/* --- General Setup & Variables --- */
:root {
    --bg-color: #0d0c22;
    --card-bg: #13122c;
    --primary-gradient: linear-gradient(98.37deg, #8A2BE2 0%, #4A90E2 100%);
    --secondary-color: #8987b1;
    --text-color: #dcdce6;
    --heading-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', sans-serif;
    --glow-color: rgba(74, 144, 226, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; }
html { scroll-behavior: smooth; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
img { max-width: 100%; display: block; }
a { color: var(--text-color); text-decoration: none; }
.d-none { display: none !important; }
.mt-3 { margin-top: 1rem; }
.invert-text { filter: invert(1); }

/* --- Background Glow Effect --- */
.background-glow { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, var(--glow-color) 0%, rgba(13, 12, 34, 0) 60%); animation: rotateGlow 20s linear infinite; z-index: -1; }
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Header & Navigation --- */
header { position: sticky; top: 0; width: 100%; padding: 20px 0; z-index: 1000; background: rgba(13, 12, 34, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: var(--heading-color); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a:hover { color: var(--heading-color); }
.nav-buttons { display: flex; gap: 15px; }
.menu-toggle { display: none; background: none; border: none; color: var(--heading-color); cursor: pointer; }

/* --- Buttons --- */
.btn { padding: 10px 24px; border-radius: 9999px; font-weight: 600; transition: all 0.3s ease; border: 1px solid transparent; }
.btn-primary { background: var(--primary-gradient); color: white; }
.btn-primary:hover { box-shadow: 0 0 15px rgba(138, 43, 226, 0.6), 0 0 30px rgba(74, 144, 226, 0.4); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--card-bg); border-color: var(--secondary-color); color: var(--heading-color); box-shadow: 0 0 15px rgba(74, 144, 226, 0.3); transform: translateY(-2px); }
.btn-large { padding: 14px 32px; font-size: 1rem; }

/* --- Hero Section --- */
.hero { text-align: center; padding: 140px 0; min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; color: var(--heading-color); background: linear-gradient(90deg, #ffffff, #dcdce6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-tagline { font-size: 1.5rem; color: var(--heading-color); margin-bottom: 30px; }
.hero p { font-size: 1.25rem; color: var(--secondary-color); margin-bottom: 30px; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.hero-trust { margin-top: 60px; }
.hero-trust p { font-size: 0.9rem; color: var(--secondary-color); margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.hero-trust .logos { display: flex; justify-content: center; align-items: center; gap: 40px; filter: grayscale(100%) opacity(0.6); }
.hero-trust .logos span { font-size: 1.2rem; font-weight: 500; }

/* --- Section General Styling --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--heading-color); margin-bottom: 10px; }
.section-header p { color: var(--secondary-color); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.trial-note { color: var(--secondary-color); font-size: 0.9rem; margin-top: 10px; }

/* --- Features Section --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: stretch; }
.feature-card { background-color: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); border-color: rgba(138, 43, 226, 0.5); }
.icon-wrapper { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-gradient); color: white; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; color: var(--heading-color); margin-bottom: 10px; }
.feature-card p { color: var(--secondary-color); }

/* --- Product Showcase --- */
.showcase-wrapper { position: relative; padding: 20px; background: linear-gradient(135deg, #1c1b2d, #0d0c22); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.showcase-video, .showcase-image { width: 100%; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.showcase-video { aspect-ratio: 16 / 9; }
.glow-point { position: absolute; width: 80px; height: 80px; background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%); border-radius: 50%; animation: pulse 2s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }

/* --- Hub Positioning Section --- */
.hub-positioning ul {
    list-style-type: disc;
    list-style-position: inside;
    color: #f3f4f6;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.625;
    margin: 1rem 0;
}

.hub-positioning ul li {
    margin-bottom: 0.5rem;
}

/* --- How It Works Section --- */
.steps-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; position: relative; }
.step-card { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); flex: 1; text-align: center; }
.step-card span { font-size: 1.5rem; font-weight: 700; color: var(--heading-color); display: block; margin-bottom: 15px; width: 50px; height: 50px; line-height: 50px; border-radius: 50%; border: 2px solid var(--border-color); margin-left: auto; margin-right: auto; }
.step-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--heading-color); }
.step-connector { flex-grow: 1; height: 2px; background: var(--border-color); margin-top: 55px; }

/* --- Integrations Section --- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 30px; }
.logo-item { background: var(--card-bg); border-radius: 12px; padding: 20px; display: grid; place-items: center; border: 1px solid var(--border-color); }
.logo-item img { filter: grayscale(100%) opacity(0.7); transition: all 0.3s ease; }
.logo-item:hover img { filter: none; opacity: 1; transform: scale(1.1); }

/* --- Testimonials Section --- */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.testimonial-card { background-color: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); }
.quote { font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-left: 20px; }
.quote::before { content: '“'; position: absolute; left: -10px; top: 0; font-size: 3rem; color: #8A2BE2; opacity: 0.5; line-height: 1; }
.author { display: flex; align-items: center; gap: 15px; }
.author img { width: 50px; height: 50px; border-radius: 50%; }
.author h4 { color: var(--heading-color); margin: 0; }
.author span { color: var(--secondary-color); font-size: 0.9rem; }

/* --- Competitor Comparison Table --- */
.comparison-table-wrapper { overflow-x: auto; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { color: var(--heading-color); }
td i { width: 20px; height: 20px; }
td:not(:first-child) { text-align: center; }
tbody tr:last-child td { border-bottom: none; }
th.highlight, td.highlight { background: rgba(138, 43, 226, 0.1); }
th.highlight { border-top-left-radius: 8px; border-top-right-radius: 8px; }
tbody tr:last-child td.highlight { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
td i[data-feather="check-circle"] { color: #8A2BE2; }
td i[data-feather="x-circle"] { color: var(--secondary-color); }

/* --- Pricing Section --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pricing-card { background-color: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.pricing-card.popular { border-color: #8A2BE2; position: relative; overflow: hidden; box-shadow: 0 0 30px rgba(138, 43, 226, 0.3); }
.popular-badge { position: absolute; top: 15px; right: -45px; background: var(--primary-gradient); color: white; padding: 5px 40px; font-size: 0.8rem; font-weight: 600; transform: rotate(45deg); }
.pricing-card h3 { font-size: 1.5rem; color: var(--heading-color); }
.pricing-card .price-desc { color: var(--secondary-color); margin-bottom: 20px; min-height: 40px; }
.price { font-size: 3rem; font-weight: 700; color: var(--heading-color); margin-bottom: 20px; }
.price sup { font-size: 1.5rem; font-weight: 500; }
.price span { font-size: 1rem; font-weight: 400; color: var(--secondary-color); }
.pricing-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.pricing-card li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.pricing-card li i { color: #8A2BE2; width: 18px; height: 18px; }

/* --- Support Page --- */
.support-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; }
.support-card { background-color: var(--card-bg); padding: 32px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-color); }
.support-subtitle { color: var(--secondary-color); margin-bottom: 24px; font-size: 0.9rem; }
.support-card form { display: flex; flex-direction: column; }
.field { margin-bottom: 16px; }
.support-card label { font-size: 0.8rem; font-weight: 500; opacity: 0.65; margin-bottom: 6px; display: block; }
.support-card input,
.support-card textarea { width: 100%; background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 0 12px; height: 44px; color: var(--text-color); transition: border-color 0.2s, box-shadow 0.2s; }
.support-card textarea { padding: 12px; min-height: 120px; resize: vertical; }
.support-card input:focus,
.support-card textarea:focus { outline: none; border-color: #8A2BE2; box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.4); }
.error { display: none; font-size: 0.75rem; color: #ff6b6b; margin-top: 4px; }
.field.invalid .error { display: block; }
#support-submit[disabled] { opacity: 0.5; cursor: not-allowed; }
.form-response { margin-top: 16px; font-size: 0.875rem; }
.form-response.success { color: #0f5132; }
.form-response.error { color: #842029; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-spinner { border: 2px solid transparent; border-top-color: #fff; border-right-color: #fff; border-radius: 50%; width: 16px; height: 16px; margin-right: 8px; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- FAQ Section --- */
.faq-container { border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; padding: 16px 0; font-size: 1.125rem; font-weight: 600; color: var(--heading-color); cursor: pointer; text-align: left; }
.faq-question span { flex: 1; }
.faq-icon { transition: transform 0.2s ease; }
.faq-item.active .faq-icon { transform: rotate(90deg); }
.faq-answer { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.2s ease, opacity 0.2s ease; }
.faq-item.active .faq-answer { opacity: 1; }
.faq-answer p { padding: 8px 0 16px 0; color: var(--secondary-color); }
@media (max-width: 768px) { .support-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .faq-answer { transition: none; } .btn-spinner { animation: none; } }

/* --- Final CTA --- */
.final-cta { padding: 100px 0; }
.cta-content { background: var(--primary-gradient); border-radius: 20px; padding: 80px 40px; text-align: center; color: white; }
.cta-content h2 { font-size: 2.8rem; margin-bottom: 15px; }
.cta-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.cta-content .btn-primary { background: white; color: #4A90E2; }

/* --- Footer --- */
footer { padding: 80px 0 30px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.1rem; color: var(--heading-color); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--heading-color); }

/* --- Auth Modals --- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); z-index: 2000; }
.modal.active { display: flex; }
.modal-content { width: 100%; max-width: 400px; position: relative; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; color: var(--heading-color); font-size: 1.5rem; cursor: pointer; }
.switch-auth { margin-top: 16px; font-size: 0.875rem; text-align: center; }
.switch-auth a { color: var(--heading-color); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border-color); color: var(--secondary-color); font-size: 0.9rem; }

/* --- Animations --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    section { padding: 80px 0; }
    .nav-links { display: none; }
    .nav-links { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; background: var(--bg-color); padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
    .nav-links.active { display: flex; }
    .nav-links li { margin-bottom: 15px; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.8rem; } .hero p { font-size: 1.1rem; }
    .steps-container { flex-direction: column; align-items: center; }
    .step-connector { display: none; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { max-width: 450px; margin: 0 auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .section-header h2 { font-size: 2rem; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 2rem; }
    .footer-bottom { flex-direction: column-reverse; gap: 20px; text-align: center; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col .logo { justify-content: center; }
}

.session-expired {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.875rem;
}
.session-expired a {
    color: #fff;
    text-decoration: underline;
}
