/* ===================================
   ENNABL SHARED STYLES
   =================================== */

/* CSS Variables */
:root {
    --primary-dark: #1b2337;
    --primary-blue: #0066FF;
    --accent-teal: #07a8a8;
    --text-dark: #1e1e1e;
    --text-muted: #5f6d7e;
    --text-light: #96a6b8;
    --bg-light: #f5f8fd;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
}

/* Reset / Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
}

.nav-logo img {
    height: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: var(--bg-light);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

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

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-signin {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
    background: var(--primary-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary-dark);
    background: var(--bg-light);
}

/* ===================================
   COMMON LAYOUT
   =================================== */
section {
    padding: 80px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   FINAL CTA SECTION
   =================================== */
.final-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d3a5c 100%);
    text-align: center;
    padding: 100px 5%;
}

.final-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .hero-ctas {
    justify-content: center;
}

.final-cta .btn-primary {
    background: white;
    color: var(--primary-dark);
}

.final-cta .btn-primary:hover {
    background: var(--bg-light);
}

.final-cta .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.final-cta .btn-secondary:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.demo-prep {
    margin-top: 32px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Hero CTAs (shared component) */
.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--primary-dark);
    padding: 80px 5% 40px;
    color: white;
}

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

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* ===================================
   MOBILE MENU
   =================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 999;
    padding: 24px 5%;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu .mobile-menu-section {
    margin-top: 16px;
}

.mobile-menu .mobile-menu-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 8px 0;
}

.mobile-menu .mobile-menu-section a {
    font-size: 16px;
    padding: 12px 0 12px 16px;
}

.mobile-menu .mobile-cta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu .mobile-cta a {
    border: none;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
}

.mobile-menu .mobile-cta .btn-primary {
    background: var(--primary-dark);
    color: white;
}

/* ===================================
   RESPONSIVE - TABLET (max 1024px)
   =================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ===================================
   RESPONSIVE - MOBILE (max 768px)
   =================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-right .nav-signin {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        height: 64px;
    }

    /* Sections */
    section {
        padding: 60px 5%;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Final CTA */
    .final-cta {
        padding: 60px 5%;
    }

    .final-cta h2 {
        font-size: 28px;
    }

    .final-cta p {
        font-size: 16px;
    }

    .final-cta .hero-ctas {
        flex-direction: column;
    }

    .final-cta .hero-ctas a {
        width: 100%;
        justify-content: center;
    }

    /* Hero CTAs */
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }

    .hero-ctas a {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Footer */
    .footer {
        padding: 60px 5% 32px;
    }

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

    .footer-brand {
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ===================================
   LOGO STRIP (Trusted by...)
   =================================== */
.logo-strip {
    background: var(--bg-white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.logo-strip-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 5%;
}

.logo-strip-header h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.logo-strip-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.logo-carousel {
    display: flex;
    width: max-content;
    animation: logoScroll 120s linear infinite;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-carousel img {
    height: 36px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.logo-carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .logo-strip {
        padding: 40px 0;
    }

    .logo-strip-header {
        margin-bottom: 24px;
    }

    .logo-carousel img {
        height: 28px;
        margin: 0 24px;
    }
}

/* ===================================
   DEMO MODAL
   =================================== */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.demo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.demo-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
}

.demo-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    z-index: 10;
}

.demo-modal-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.meetings-iframe-container {
    min-height: 600px;
}

.meetings-iframe-container iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
}

@media (max-width: 768px) {
    .demo-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .meetings-iframe-container {
        min-height: 500px;
    }

    .meetings-iframe-container iframe {
        min-height: 500px;
    }
}
