/* ═══════════════════════════════════════════════════
   MailVibee Marketing Website — Styles
   ═══════════════════════════════════════════════════ */

/* ── Announcement Bar ── */
.announcement-bar {
    background: var(--sidebar-bg);
    color: #B8BAC8;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;
}
.announcement-bar a { color: var(--sidebar-active-text); font-weight: 600; }
.announcement-bar a:hover { color: #fff; }

/* ── Navbar ── */
.site-nav {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 40px;
}
.site-nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-nav .logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}
.site-nav .logo-icon {
    width: 32px; height: 32px;
    background: var(--brand);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.site-nav .logo-icon svg { width: 17px; height: 17px; }
.site-nav .logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}
.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.site-nav .nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.site-nav .nav-links a:hover { color: var(--text); }
.site-nav .nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-btn-ghost {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13.5px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
}
.nav-btn-ghost:hover { color: var(--text); }

/* ── Hero Section ── */
.hero {
    padding: 100px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(108,92,231,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.2px;
}
.hero h1 {
    font-size: clamp(38px, 5.5vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 20px;
}
.hero h1 span { color: var(--brand); }
.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
}
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-cta .btn-primary {
    padding: 13px 32px;
    font-size: 15px;
    border-radius: var(--radius);
}
.hero-cta .btn { padding: 13px 28px; font-size: 15px; border-radius: var(--radius); }

/* ── Dashboard Preview ── */
.hero-preview {
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.hero-preview img, .hero-preview .preview-mockup {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    display: block;
}
.preview-mockup {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.preview-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: var(--surface-sunken);
    border-bottom: 1px solid var(--border);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #FF6058; }
.preview-dot:nth-child(2) { background: #FFBD2E; }
.preview-dot:nth-child(3) { background: #28C840; }
.preview-body {
    flex: 1;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}
.preview-sidebar {
    background: var(--sidebar-bg);
    padding: 18px 14px;
}
.preview-sidebar-item {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 10px;
}
.preview-sidebar-item.active { background: rgba(108,92,231,0.3); }
.preview-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.preview-stat-row { display: flex; gap: 12px; }
.preview-stat {
    flex: 1;
    height: 72px;
    background: var(--surface-sunken);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.preview-table {
    flex: 1;
    background: var(--surface-sunken);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* ── Section Layout ── */
.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 750;
    letter-spacing: -0.8px;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Feature Grid ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.25s var(--ease);
    box-shadow: var(--shadow-xs);
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-light);
    transform: translateY(-3px);
}
.feature-icon {
    width: 44px; height: 44px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
    font-size: 17px;
    font-weight: 650;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Trusted By ── */
.trusted-section {
    padding: 48px 40px;
    text-align: center;
}
.trusted-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}
.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.35;
}
.trusted-logos span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

/* ── CTA Section ── */
.cta-section {
    background: var(--sidebar-bg);
    border-radius: var(--radius-xl);
    padding: 72px 40px;
    text-align: center;
    margin: 0 40px 80px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108,92,231,0.15), transparent 60%);
    pointer-events: none;
}
.cta-section h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 750;
    color: #FFFFFF;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    position: relative;
}
.cta-section p {
    font-size: 16px;
    color: #9EA0B0;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}
.cta-section .btn-primary {
    padding: 14px 36px;
    font-size: 15px;
    border-radius: var(--radius);
    position: relative;
}

/* ── Footer ── */
.site-footer {
    padding: 64px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 14px;
    max-width: 280px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-xs);
    transition: all 0.25s var(--ease);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
    transform: scale(1.03);
}
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.3px;
}
.pricing-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.pricing-card .price {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 16px 0 8px;
}
.pricing-card .price-label { font-size: 13px; color: var(--text-tertiary); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li::before {
    content: '';
    width: 18px; height: 18px;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D9F6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    padding: 0;
}
.faq-question:hover { color: var(--brand); }
.faq-question .faq-toggle {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Page Content (legal, about, etc.) ── */
.page-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 60px 40px;
}
.page-content h1 {
    font-size: 36px;
    font-weight: 750;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}
.page-content .page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}
.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.page-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.page-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.page-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}
.page-content a { color: var(--brand); font-weight: 500; }

/* ── Contact Form ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}
.contact-info h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.contact-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.contact-detail-icon {
    width: 40px; height: 40px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .site-nav { padding: 0 20px; }
    .site-nav .nav-links { display: none; }
    .hero { padding: 60px 20px 40px; }
    .section { padding: 48px 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta-section { margin: 0 20px 40px; padding: 48px 24px; }
    .site-footer { padding: 40px 20px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-content { padding: 40px 20px; }
    .preview-body { grid-template-columns: 1fr; }
    .preview-sidebar { display: none; }
}
