/* ============================================
   BRANDIXIO - Modern Light Theme CMS, Contact & Dialog Styling
============================================ */

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

:root {
    --deep-space: #F8FAFC;
    --surface-1: #FFFFFF;
    --surface-2: #F1F5F9;
    --surface-3: #E2E8F0;

    /* Theme Blue */
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --accent-soft: rgba(37, 99, 235, 0.08);
    --accent-border: rgba(37, 99, 235, 0.25);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-subtle: #E2E8F0;

    --green: #16A34A;
    --amber: #D97706;
    --rose: #DC2626;
    
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background-color: var(--deep-space);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }
.nav-mobile-actions { display: none; }
.nav-actions { display: flex; align-items: center; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface-1);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover { background: var(--surface-2); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 150px 20px 90px;
    background: radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #0284C7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 30px;
}

.hero-cta { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }

.trusted-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.trusted-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trusted-logo {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-soon {
    background: var(--surface-3);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* Mockup Container */
.mockup-window {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-subtle);
}

.mockup-dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: var(--rose); }
.mockup-dot:nth-child(2) { background: var(--amber); }
.mockup-dot:nth-child(3) { background: var(--green); }
.mockup-title { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: 8px; }

.mockup-body { padding: 20px; }

.mockup-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mockup-metric {
    background: var(--surface-2);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border-subtle);
}

.mockup-metric .mm-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.mockup-metric .mm-value { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.mockup-metric .mm-change { font-size: 11px; font-weight: 600; color: var(--green); }

.cms-preview-card {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px;
}

.cpc-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
}

.cpc-status { color: var(--green); font-weight: 600; }

.cpc-body-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cpc-body-tags .tag {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-desc { font-size: 15px; color: var(--text-secondary); max-width: 540px; margin: 0 auto; }

/* Features Layout */
.feature-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.feature-text .feat-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--accent);
}

.feature-text h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.feature-text p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }

.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.feature-bullets li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.feature-visual {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.fv-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-subtle);
}

.fv-title { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: 8px; }
.fv-body { padding: 20px; }

.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacy-card {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px;
}

.privacy-card .pc-icon { font-size: 20px; margin-bottom: 8px; }
.privacy-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.privacy-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.badge-tag {
    background: #FEF3C7;
    color: #92400E;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ===== PRICING CARDS ===== */
.pricing-section { background: var(--deep-space); }

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

.pricing-card {
    background: var(--surface-1);
    border: 1px solid #D1D5DB;
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.active-plan-card {
    background: #F4F8FF;
    border: 1.5px solid #3B82F6;
}

.pricing-tag-selected {
    align-self: flex-start;
    background: #DBEAFE;
    color: #1D4ED8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.pricing-popular {
    align-self: flex-start;
    background: #FEF3C7;
    color: #B45309;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.pricing-plan-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-subtext {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 58px;
    margin-bottom: 20px;
}

.price-strikethrough {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.pricing-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-term {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-per-month {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-save-pill {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    margin-top: 6px;
    margin-bottom: 24px;
}

.pricing-card .btn { margin-top: auto; }

/* ===== COMPARISON TABLE ===== */
.comparison-section {
    background: var(--surface-1);
    border-top: 1px solid var(--border-subtle);
}

.table-responsive {
    overflow-x: auto;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table thead th {
    background: #F8FAFC;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

.comparison-table .feature-col {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    width: 32%;
}

.comparison-table tbody tr:hover { background: #F8FAFC; }
.check-icon { color: #16A34A; font-weight: 800; font-size: 16px; }
.cross-icon { color: #DC2626; font-weight: 800; font-size: 16px; }

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: stretch;
}

.contact-info-card {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ci-icon {
    width: 44px;
    height: 44px;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.contact-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.2s;
}

.contact-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.contact-form {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-form h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

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

/* ===== MODAL DIALOG ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    padding: 10px 0 20px;
}

.footer-row-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-row-links a { 
    font-size: 13.5px; 
    color: var(--text-muted); 
    font-weight: 500; 
    white-space: nowrap;
    transition: color 0.2s;
}
.footer-row-links a:hover { color: var(--accent); }
.footer-link-dot { 
    width: 3px; 
    height: 3px; 
    border-radius: 50%; 
    background: #CBD5E1; 
    flex-shrink: 0;
}

.footer-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 16px;
}

.footer-copy { 
    font-size: 13px; 
    color: var(--text-muted); 
}

.footer-socials { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 12px 16px; 
}
.footer-socials a { 
    color: var(--text-muted); 
    font-size: 13px; 
    font-weight: 600; 
    white-space: nowrap;
}
.footer-socials a:hover { color: var(--accent); }

/* ===== FOOTER MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-row-links {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }

    .footer-row-links .footer-link-dot {
        display: none;
    }

    .footer-row-bottom {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 16px 0 10px;
    }

    .footer-socials {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .footer-socials .footer-link-dot {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .feature-panel { grid-template-columns: 1fr; gap: 36px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100dvh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px;
        border-left: 1px solid var(--border-subtle);
        transition: right 0.3s ease;
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; }
    .nav-actions { display: none; }
    .nav-mobile-actions { display: block; width: 100%; margin-top: 14px; }
}