/* Light Theme & SaaS UI - Iteration 10 */
:root {
    /* Branding */
    --accent-gold-light: #d4af78;
    --accent-gold-dark: #C6A15B;
    --brand-blue: #12406e; 
    
    /* Light Theme Palette */
    --bg-dark: var(--brand-blue); 
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --border-light: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body.modern-body {
    background-color: #f8fafc;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Highly visible, technical dotted grid */
    background-image: radial-gradient(rgba(15, 23, 42, 0.25) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Ambient Background Glows (Adapted for Light Theme) */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 161, 91, 0.2) 0%, transparent 70%);
}

.glow-2 {
    bottom: -200px;
    left: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

/* Typography Update */
h1, h2, h3, .serif {
    font-family: Georgia, 'Playfair Display', serif;
    color: var(--text-dark);
    font-weight: 600;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent-gold-dark) 0%, #a37b3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

/* Top Navigation (Brand Blue Theme) */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--brand-blue);
    border-bottom: 2px solid var(--accent-gold-dark);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.top-navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(18, 64, 110, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-brand img {
    height: 35px;
    filter: brightness(0) invert(1); /* White logo for dark banner */
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 2.5rem);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-btn {
    text-decoration: none;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gold-dark);
    transition: width 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    color: #ffffff;
}

.nav-btn.active::after, .nav-btn:hover::after {
    width: 100%;
}

.portal-btn {
    background: var(--accent-gold-dark);
    color: #ffffff !important;
    padding: clamp(0.4rem, 1vw, 0.6rem) clamp(1rem, 2vw, 1.5rem) !important;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: none; /* Removed smudge */
}

.portal-btn:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: none;
}

/* Content Layout */
.content-wrapper {
    padding-top: 80px;
}

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

.scroll-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

/* 2-Column Layout */
.hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 5% 4rem; /* Significantly reduced top padding */
    max-width: none; /* Removed completely so it always spans the screen */
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.hero-text {
    flex: 1;
    max-width: 700px;
}

/* ===== HAMBURGER MENU BUTTON (hidden on desktop) ===== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Animate to X when open */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE: TABLET (max-width: 900px) ===== */
@media (max-width: 900px) {
    .hamburger-btn {
        display: block;
    }
    .top-navbar {
        flex-direction: row;
        padding: 1rem 5%;
    }
    .top-navbar.scrolled {
        padding: 0.8rem 5%;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 36, 64, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links .nav-btn {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
    .nav-links .portal-btn {
        font-size: 1rem;
        padding: 0.8rem 2rem !important;
    }
    .hero-grid {
        flex-direction: column;
        padding: 5.5rem 5% 2rem;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-text .hero-actions {
        margin-top: 1rem !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }
    .hero-stats-grid {
        justify-items: center;
    }
    .cta-actions {
        justify-content: center;
    }
    .modern-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }
    .modern-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
    }
    .video-showcase-wrapper {
        justify-content: center !important;
        margin-top: 2rem;
    }
    .hero-video {
        max-width: 100%;
    }
    .dashboard-showcase-wrapper {
        justify-content: center !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        gap: 2rem;
    }
    .footer-brand {
        text-align: center;
    }
    /* Meeting embed */
    .meeting-container {
        padding: 1rem;
        margin: -1rem 0 3rem;
    }
    .meeting-container iframe {
        min-height: 750px;
    }
    .contact-info-strip {
        gap: 2rem;
    }
    /* Comparison table scroll */
    .comparison-table-wrapper {
        margin-left: -5%;
        margin-right: -5%;
        border-radius: 0;
    }
    /* Section titles that overflow */
    .section-title {
        font-size: clamp(1.8rem, 4vw, 3rem);
        word-wrap: break-word;
        white-space: normal !important;
    }
}

/* ===== RESPONSIVE: MOBILE (max-width: 600px) ===== */
@media (max-width: 600px) {
    .top-navbar {
        padding: 0.8rem 4%;
    }
    .nav-brand img {
        height: 28px;
    }
    .content-wrapper {
        padding-top: 70px;
    }
    .hero-grid {
        padding: 5rem 4% 3rem;
    }
    .modern-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }
    .modern-subtitle {
        font-size: 1rem;
    }
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        padding: 0 4%;
        white-space: normal !important;
    }
    .features-section {
        padding: 4rem 0;
    }
    .features-section.dark-mode {
        padding: 3rem 4% !important;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .lie-card {
        padding: 2rem 1.5rem;
    }
    .dark-cta-section {
        padding: 4rem 0;
    }
    .glass-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    /* Footer mobile */
    .modern-footer {
        padding: 2.5rem 4% 1.5rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .footer-col {
        text-align: center;
    }
    /* Inner page headers */
    .inner-page-header {
        padding: 6rem 4% 2rem !important;
    }
    .inner-page-header .modern-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem) !important;
    }
    /* Meeting embed mobile */
    .meeting-container {
        padding: 0.5rem;
        margin: -1rem 0 2rem;
        border-radius: 12px;
    }
    .meeting-container iframe {
        min-height: 600px;
    }
    .contact-info-strip {
        flex-direction: column;
        gap: 1.5rem;
    }
    /* Lesson/blog content */
    .lesson-section {
        padding: 3rem 4% !important;
    }
    /* Scroll sections */
    .scroll-section {
        min-height: auto;
        padding: 3rem 0;
    }
    .hero-eyebrow {
        justify-content: center;
        font-size: 0.7rem;
    }
    .hero-eyebrow::before,
    .hero-eyebrow::after {
        width: 20px;
    }
}


.accent-mark {
    font-size: 2rem;
    color: var(--accent-gold-dark);
    margin-bottom: 1.5rem;
}

.accent-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.inner-page-header .accent-logo {
    filter: brightness(0) invert(1); /* Make it white on dark headers */
}

.modern-title {
    font-size: clamp(3rem, 4vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.hero-eyebrow {
    color: var(--brand-blue); /* Updated for light theme visibility */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--brand-blue);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    border-left: 2px solid var(--accent-gold-dark);
    padding-left: 1rem;
}

.stat-value {
    color: var(--brand-blue);
    font-size: 1.3rem;
    font-family: Georgia, serif;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Vertical Scrolling Text Rotator */
.text-rotator-container {
    display: inline-flex;
    vertical-align: bottom;
    height: 1.2em; /* Exactly one line of text high */
    overflow: hidden;
    position: relative;
    width: max-content;
}

.text-rotator-wrapper {
    display: flex;
    flex-direction: column;
    /* Animated by GSAP */
}

.rotator-word {
    color: var(--accent-gold-dark);
    font-weight: 800;
    line-height: 1.2em;
    height: 1.2em;
    display: block;
    white-space: nowrap;
}

.modern-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Video Showcase (Right Side) */
.video-showcase-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Pushes the video to the far right */
}

.hero-video {
    width: 100%;
    max-width: 700px; /* Large enough to showcase the UI recording */
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(18, 64, 110, 0.3);
    border: 1px solid rgba(18, 64, 110, 0.1);
    object-fit: cover;
    display: block;
}

/* Homepage Content Sections (Light Theme) */
.features-section {
    padding: 8rem 0;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

/* Dark Mode Variation for Features */
.features-section.dark-mode {
    background: var(--brand-blue);
    border-color: rgba(255, 255, 255, 0.05);
}

.features-section.dark-mode .section-title {
    color: #ffffff;
}

.features-section.dark-mode .feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-section.dark-mode .feature-card h3 {
    color: var(--accent-gold-light);
}

.features-section.dark-mode .feature-card .section-text {
    color: #cbd5e1;
}

.nowrap {
    white-space: nowrap;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2.5rem;
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(198, 161, 91, 0.1);
    color: var(--accent-gold-light);
    border: 1px solid rgba(198, 161, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
    font-style: italic;
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.dark-cta-section {
    background-color: var(--brand-blue);
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    padding: 8rem 0;
    color: var(--text-main);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark-cta-section .section-title {
    color: #ffffff;
}

.dark-cta-section .section-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

.comparison-table th {
    background: var(--brand-blue);
    color: #ffffff;
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.comparison-table th:nth-child(1) {
    background: #334155; /* Slightly muted for traditional */
}

.comparison-table th:nth-child(2) {
    background: var(--brand-blue);
    border-bottom: 3px solid var(--accent-gold-dark);
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 1rem;
    vertical-align: top;
}

.comparison-table td:nth-child(2) {
    background: #f8fafc;
    color: var(--brand-blue);
    font-weight: 500;
}

/* Glass Buttons */
.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.glass-btn.primary {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--bg-white);
}

.glass-btn.primary:hover {
    background: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    box-shadow: 0 10px 15px -3px rgba(198, 161, 91, 0.3);
}

/* Sections */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.section-text {
    font-size: 1.15rem;
    color: var(--text-slate);
}

/* Modern Cards */
.lie-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 3rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.lie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gold-num {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--accent-gold-dark);
    line-height: 1;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.lie-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.lie-card p {
    color: var(--text-slate);
}

/* Professional Footer (Dark Contrast) */
.modern-footer {
    background: var(--brand-blue);
    padding: 3rem 5% 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #94a3b8;
    font-family: Georgia, serif;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: var(--bg-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-gold-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.85rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.features-section.dark-mode {
    background-color: var(--brand-blue) !important;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    padding: 4rem 5% 4rem !important;
}
