/* css/style_dark.css */
:root {
    --primary-bg: #0b1121; /* Very dark slate */
    --surface-bg: rgba(30, 41, 59, 0.5); /* Semi-transparent surface */
    --surface-border: rgba(255, 255, 255, 0.1);
    --accent-color: #0ea5e9; /* Electric Blue to match logo3_var3 */
    --accent-hover: #38bdf8;
    --accent-glow: rgba(14, 165, 233, 0.4);
    
    --text-main: #94a3b8;
    --text-heading: #f8fafc;
    --text-muted: #64748b;
    
    --font-main: 'Inter', sans-serif;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--text-heading); font-weight: 700; }
a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; font-weight: 600; border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition); border: none; font-size: 1rem;
}
.btn-primary {
    background-color: var(--accent-color); color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-2px);
}
.btn-outline {
    background: transparent; color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.btn-outline:hover {
    background: rgba(14, 165, 233, 0.1); box-shadow: 0 0 15px var(--accent-glow);
}

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(11, 17, 33, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border); padding: 15px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-main); font-weight: 500; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.nav-actions { display: flex; gap: 16px; align-items: center; }

/* Hero */
.hero {
    padding: 180px 0 100px; text-align: center;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
}
.hero-logo-large {
    width: 250px; height: auto; margin: 0 auto 40px;
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.5));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.hero h1 { font-size: 4rem; letter-spacing: -0.03em; margin-bottom: 24px; text-shadow: 0 0 40px rgba(255,255,255,0.2); }
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 40px; color: var(--text-main); }
.hero-actions { display: flex; justify-content: center; gap: 20px; }

/* Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }

/* Cards / Glassmorphism */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card, .module-card, .pricing-card, .feature-item {
    background: var(--surface-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border); padding: 40px;
    border-radius: var(--radius-lg); transition: var(--transition);
}
.card:hover, .module-card:hover, .pricing-card:hover {
    border-color: rgba(14, 165, 233, 0.5); transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(14, 165, 233, 0.1);
}
.material-symbols-outlined { color: var(--accent-color); text-shadow: 0 0 10px var(--accent-glow); }
.icon-large { font-size: 48px; margin-bottom: 20px; }

/* Features List */
.features-list { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 0 auto; }
.feature-item { display: flex; gap: 24px; align-items: flex-start; padding: 30px; }
.feature-item .material-symbols-outlined { font-size: 40px; background: rgba(14, 165, 233, 0.1); padding: 16px; border-radius: 50%; }

/* Pricing */
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.popular { border-color: var(--accent-color); box-shadow: 0 0 30px rgba(14, 165, 233, 0.15); transform: scale(1.05); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--accent-color); color: #fff; padding: 6px 20px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 0 15px var(--accent-glow); }
.price { font-size: 3.5rem; font-weight: 700; color: #fff; margin: 20px 0; }
.price span { font-size: 1.2rem; color: var(--text-muted); }
.features { margin-bottom: 40px; flex-grow: 1; }
.features li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

/* Modules */
.modules-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.module-card { padding: 30px 20px; }
.module-card .material-symbols-outlined { font-size: 36px; margin-bottom: 15px; }

/* Footer */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--surface-border); margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }

/* Modal Overlay */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 20px;
}
.modal-container {
    background: var(--primary-bg); border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg); width: 100%; max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px; border-bottom: 1px solid var(--surface-border);
}
.modal-header h3 { margin: 0; font-size: 1.5rem; }
.close-btn {
    background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; transition: var(--transition); display: flex;
}
.close-btn:hover { color: #fff; transform: scale(1.1); }
.modal-body { padding: 24px; max-height: 80vh; overflow-y: auto; }
.modal-body p { margin-bottom: 24px; color: var(--text-muted); font-size: 0.95rem; }

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text-main);
}
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
    border: 1px solid var(--surface-border); background: rgba(0,0,0,0.2);
    color: #fff; font-family: var(--font-main); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); background: rgba(0,0,0,0.4);
}
.btn-block { width: 100%; padding: 14px; font-size: 1.05rem; }

/* ── Billing Switch Premium Styles ───────────────── */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 25px 0 10px;
    font-family: var(--font-main);
}

.billing-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.billing-label.active {
    color: var(--text-heading);
    font-weight: 600;
}

.switch-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--surface-border);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .switch-slider {
    background-color: rgba(14, 165, 233, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
}

input:checked + .switch-slider:before {
    transform: translateX(28px);
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

.discount-badge {
    background: #22c55e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* ── Dynamic Price Wrapper ──────────────────────── */
.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 20px 0 5px;
    color: #fff;
}

.price-currency {
    font-size: 2rem;
    font-weight: 600;
    margin-right: 2px;
    color: #fff;
}

.price-val {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.billing-note {
    font-size: 0.85rem;
    color: #22c55e;
    margin-bottom: 25px;
    min-height: 20px;
    text-align: center;
    transition: opacity 0.3s;
    font-weight: 500;
}

.billing-note.hidden {
    opacity: 0;
    visibility: hidden;
    margin-bottom: 25px;
}

/* ── Testimonials Section ───────────────────────── */
.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--surface-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.08);
}

.quote-icon {
    font-size: 40px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    margin-bottom: 20px;
    opacity: 0.8;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--surface-border);
    font-size: 0.875rem;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .pricing-card.popular { transform: none; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
