:root {
    /* Color Palette - Enterprise Dark */
    --bg-body: #050505;
    --bg-surface: #0f0f10;
    --bg-surface-trans: rgba(15, 15, 16, 0.8);
    --primary: #FFD700;
    /* Gold */
    --primary-hover: #E6C200;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(255, 215, 0, 0.3);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --gradient-dark: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, #050505 100%);
    --glass: rgba(255, 255, 255, 0.03);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.text-gold {
    color: var(--primary);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 32px;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

nav a:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 1;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Features Grid */
.features {
    padding: 6rem 0;
}

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

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Social Proof */
.social-proof {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.testimonials-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.testimonial-card {
    min-width: 350px;
    background: var(--glass);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 12px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.billing-toggle span:not(.save-badge) {
    color: var(--text-muted);
    font-weight: 600;
}

.billing-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 32px;
}

.billing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    transition: 0.3s;
}

.billing-thumb {
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: var(--primary);
    border-radius: 50%;
    transition: 0.3s;
}

.billing-switch input:checked + .billing-track {
    background: rgba(255, 215, 0, 0.35);
}

.billing-switch input:checked + .billing-track + .billing-thumb {
    transform: translateX(30px);
}

.save-badge {
    background: var(--primary);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.founders-anchor {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 820px;
    text-align: center;
}

@keyframes sliderPulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); }
    100% { transform: translateX(-50%) scale(1); }
}

.founders-anchor::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    width: 130px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: sliderPulse 2.6s infinite;
}

.founders-anchor .slider-hint {
    position: absolute;
    left: 50%;
    bottom: -23px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: #050506;
    border-radius: 999px;
    mix-blend-mode: lighten;
}

.founders-anchor .slider-hint svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 3rem auto 0;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, var(--bg-surface) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #000;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card.featured::before {
    display: none;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.plan-details {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.plan-details .features-list {
    font-size: 0.85rem;
    color: #ccc;
}

.promo-note {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toggle-details {
    width: 100%;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    padding: 0.5rem;
}

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

.pricing-card small {
    display: block;
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pricing-grid::-webkit-scrollbar {
    height: 6px;
}

.pricing-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        display: block;
        max-width: 640px;
        margin: 2rem auto 0;
        padding: 0 1rem;
    }

    .pricing-card {
        width: 100%;
        padding: 2.25rem 1.5rem;
        border-radius: 18px;
        border-width: 1.5px;
        margin-bottom: 1.5rem;
        box-shadow: none;
    }

    .pricing-card.featured::before {
        left: 1.25rem;
        transform: none;
    }

    .billing-toggle {
        flex-direction: column;
        gap: 0.35rem;
    }

    .founders-anchor {
        margin: 1rem auto 0;
        padding: 1.35rem;
    }

    .featured-badge {
        right: 10px;
        top: -10px;
    }
}

.pricing-card[data-plan="starter"] {
    border-color: rgba(255, 255, 255, 0.35);
}

.pricing-card[data-plan="livestream"] {
    border-color: rgba(76, 201, 240, 0.45);
}

.pricing-card[data-plan="videovault"] {
    border-color: rgba(255, 215, 0, 0.5);
}

.plan-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-icon svg {
    width: 28px;
    height: 28px;
}

.pricing-card[data-plan="starter"] .plan-icon {
    background: rgba(187, 134, 252, 0.18);
    border-color: rgba(187, 134, 252, 0.35);
    color: #bb86fc;
}

.pricing-card[data-plan="livestream"] .plan-icon {
    background: rgba(76, 201, 240, 0.18);
    border-color: rgba(76, 201, 240, 0.35);
    color: #4cc9f0;
}

.pricing-card[data-plan="videovault"] .plan-icon {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.social-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 300px;
        order: -1;
    }

    nav ul {
        display: none;
        /* Implement mobile menu later */
    }

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

    h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Language Toggle */
.lang-seg.is-active {
    background: rgba(255, 215, 0, 0.15) !important;
    color: var(--primary) !important;
}

.lang-seg:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Video Modal responsive sizing */
#video-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#video-modal.active {
    display: flex !important;
}

#video-modal > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-modal video {
    max-width: 100%;
    max-height: 80vh;
    /* limit height to viewport */
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Ensure proper positioning for close button */
#close-video {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

#close-video:hover {
    opacity: 0.7;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #video-modal {
        padding: 0.5rem;
    }
    
    #video-modal > div {
        max-width: 95%;
        max-height: 85vh;
    }
    
    #video-modal video {
        max-height: 75vh;
    }
    
    #close-video {
        top: -35px;
        font-size: 1.5rem;
    }
}
