/* ==========================================================================
   1. Brand Color System Setup & Premium Gold Tokens
   ========================================================================== */
:root {
    --font-sans: 'Poppins', sans-serif;

    /* Core Deep Corporate Base */
    --color-bg-dark: #09111e;     /* Premium deep navy backdrop */
    --color-bg-card: #111d30;     /* Rich blue-slate card surface */
    --color-white: #ffffff;
    --color-border: #1e2f47;      /* Clean structural definition tone */

    /* Your Explicit Gold Brand Tones */
    --color-brand-light: #e5d2a3;  /* Soft champagne highlighting tone */
    --color-brand: #d8b26a;        /* Core signature mid-gold */
    --color-brand-dark: #b8924e;   /* Rich burnished anchor gold */

    /* Typography Overrides */
    --color-text-main: #f4f6f9;   /* Pure crisp off-white for headers */
    --color-text-muted: #94a7c0;  /* Cool slate grey for readable copy */

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-modern: 12px;
    --container-width: 1200px;
}

/* ==========================================================================
   2. Global Resets & Layout Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

main {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center { text-align: center; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-white) 30%, var(--color-brand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   3. Typography & UI Base Elements
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
}

p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(216, 178, 106, 0.08);
    color: var(--color-brand-light);
    border: 1px solid rgba(216, 178, 106, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Button Architecture */
.btn-primary, .btn-secondary, .btn-cta-sm, .btn-submit-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-brand-light) 0%, var(--color-brand) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 178, 106, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-border);
    margin-left: 16px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-brand);
}

/* ==========================================================================
   4. Platform Layout Component Sections
   ========================================================================== */

/* Header & Glassmorphic Navigation Bar */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(9, 17, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo img {
    height: 69px;
    width: auto;
    margin-right: 12px;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
}

.brand-text span {
    color: var(--color-brand);
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-list a:hover {
    color: var(--color-brand-light);
}

.nav-list .btn-login {
    color: var(--color-white);
    font-weight: 500;
}

.nav-list .btn-cta-sm {
    padding: 8px 20px;
    background: rgba(216, 178, 106, 0.1);
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
    font-size: 0.9rem;
}

.nav-list .btn-cta-sm:hover {
    background: var(--color-brand);
    color: var(--color-bg-dark);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section Framework */
.hero-section {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 85% 30%, rgba(216, 178, 106, 0.04) 0%, transparent 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    align-items: center;
}

.hero-visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.55));
    border-radius: var(--radius-modern);
}

/* Metrics Performance Panel */
.metrics-section {
    padding: 60px 0;
    background-color: rgba(17, 29, 48, 0.4);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.metric-card {
    text-align: center;
}

.metric-card .counter {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.metric-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Trusted Industry Logos Layer */
.clients-section {
    padding: 50px 0;
    overflow: hidden;
}

.clients-section .section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
}

.logo-track img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-track img:hover {
    filter: none;
    opacity: 0.9;
}

/* Interactive Platform Ecosystem Toggle */
.split-ecosystem {
    padding: 100px 0;
    border-bottom: 1px solid var(--color-border);
}

.split-ecosystem .section-header {
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.split-ecosystem .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.split-ecosystem .section-header .lead {
    font-size: 1.15rem;
}

.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 12px 30px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toggle-btn.active {
    background-color: var(--color-brand);
    color: var(--color-bg-dark);
    border-color: var(--color-brand);
}

.ecosystem-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ecosystem-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-modern);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.ecosystem-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.ecosystem-content p {
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.feature-checklist {
    list-style: none;
    margin-bottom: 32px;
}

.feature-checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--color-text-main);
    font-weight: 500;
}

.feature-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-brand);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-primary-inline {
    display: inline-block;
    color: var(--color-brand-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-brand);
    padding-bottom: 4px;
    transition: var(--transition-smooth);
}

.btn-primary-inline:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Broadcast Engineering Features Grid */
.features-grid-section {
    padding: 100px 0;
    background-color: rgba(17, 29, 48, 0.15);
}

.features-grid-section .section-header {
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.features-grid-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.features-grid-section .section-header .lead {
    font-size: 1.15rem;
}

.features-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--radius-modern);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(216, 178, 106, 0.3);
    transform: translateY(-4px);
}

.feature-card .icon-wrapper {
    font-size: 1.8rem;
    color: var(--color-brand);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 0.95rem;
}

/* B2B Testimonial Showcases */
.testimonials-modern {
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.testimonial-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.testimonial-intro h2 {
    font-size: 2.3rem;
    margin-bottom: 16px;
}

.testimonial-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modern-quote {
    background-color: var(--color-bg-card);
    padding: 32px;
    border-radius: var(--radius-modern);
    border-left: 4px solid var(--color-brand-dark);
}

.modern-quote .quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 20px;
}

.modern-quote cite {
    display: block;
    font-style: normal;
}

.modern-quote cite strong {
    display: block;
    color: var(--color-white);
    font-size: 1rem;
}

.modern-quote cite span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Enterprise Lead Generation Form Area */
.cta-form-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, rgba(216, 178, 106, 0.02) 0%, transparent 70%);
}

.form-max-width {
    max-width: 800px;
}

.cta-form-section .form-header {
    margin-bottom: 48px;
}

.cta-form-section .form-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-form-section .form-header .lead {
    font-size: 1.15rem;
}

.modern-form {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 48px;
    border-radius: var(--radius-modern);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.form-group input {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    padding: 14px 18px;
    border-radius: 6px;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 1px var(--color-brand);
}

.modern-form .btn-submit-large {
    width: 100%;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-form .btn-submit-large:hover {
    background: linear-gradient(135deg, var(--color-brand-light) 0%, var(--color-brand) 100%);
    box-shadow: 0 8px 25px rgba(216, 178, 106, 0.2);
}

/* Executive Leadership Matrix Profiles */
.corporate-overview {
    padding: 100px 0;
    background-color: rgba(17, 29, 48, 0.25);
    border-top: 1px solid var(--color-border);
}

.architecture-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.about-narrative h2 {
    font-size: 2.3rem;
    margin-bottom: 24px;
}

.about-narrative p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.team-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    display: flex;
    gap: 24px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 24px;
    border-radius: var(--radius-modern);
    align-items: center;
}

.profile-card .profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.profile-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.profile-card .role {
    color: var(--color-brand);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.profile-card .bio {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Clean Global Platform Footer */
.global-footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-brand-light);
}

.footer-contact {
    color: var(--color-text-muted);
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   5. Responsive Mobile & Tablet Layout Engine
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section .hero-grid,
    .ecosystem-display-grid,
    .features-layout,
    .testimonials-modern .testimonial-container,
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .metrics-section .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding-top: 140px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-collapse {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-bg-dark);
        border-bottom: 1px solid var(--color-border);
        padding: 24px;
    }

    .nav-collapse.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }

    .nav-list .btn-cta-sm {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }
    /* Add/Replace these specific rules within your @media (max-width: 992px) container */
    @media (max-width: 992px) {
        /* Reveal and style the hamburger button */
        .nav-toggle {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 21px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
        }

        .nav-toggle .bar {
            width: 100%;
            height: 3px;
            background-color: var(--color-white);
            border-radius: 3px;
            transition: var(--transition-smooth);
        }

        /* Target the container to drop down correctly under the fixed header */
        .nav-collapse {
            display: none;
            width: 100%;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--color-bg-dark);
            border-bottom: 1px solid var(--color-border);
            padding: 30px 24px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        }

        /* Class added via JavaScript to animate display toggle */
        .nav-collapse.open {
            display: block;
        }

        .nav-list {
            flex-direction: column;
            gap: 24px;
            align-items: stretch;
            text-align: center;
        }

        .nav-list a {
            display: block;
            font-size: 1.1rem;
            padding: 8px 0;
        }

        .nav-list .btn-cta-sm {
            display: block;
            margin-top: 8px;
        }

        /* Optional: Hamburger transform animation to 'X' when open */
        .nav-toggle.active .bar:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
            background-color: var(--color-brand);
        }
        .nav-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }
        .nav-toggle.active .bar:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
            background-color: var(--color-brand);
        }
    }
}

@media (max-width: 576px) {
    .metrics-section .metrics-grid,
    .cta-form-section .modern-form .form-row {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .modern-form {
        padding: 24px;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-content-wrapper {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
