/* B4 Indicators - Modern Dark Theme */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --gradient-start: #3b82f6;
    --gradient-end: #06b6d4;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-light {
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-logo {
    max-height: 40px;
    width: auto;
}

.footer-logo {
    max-height: 36px;
    width: auto;
}

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

.brand-signals {
    color: var(--text-secondary);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-gradient {
    background: var(--gradient-start);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    background: #2563eb;
    color: white;
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline-gradient {
    background: transparent;
    border: 1px solid var(--gradient-start);
    color: var(--gradient-start);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
    background: var(--gradient-start);
    color: white;
}

.btn-link-light {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link-light:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/b4indicator-free.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-card);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Platform Cards */
.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-start);
}

.platform-icon {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.platform-downloads {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.download-link {
    background: rgba(168, 85, 247, 0.1);
    color: var(--gradient-start);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: var(--gradient-start);
    color: white;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-icon {
    color: var(--gradient-start);
    font-weight: bold;
}

.glow-image {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.2);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Premium Cards */
.premium-card-link {
    text-decoration: none;
    display: block;
}

.premium-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.premium-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-card:hover img {
    transform: scale(1.05);
}

.premium-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-weight: 500;
}

/* CoPilot Card */
.copilot-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--gradient-start);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.copilot-badge {
    display: inline-block;
    background: var(--gradient-start);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.copilot-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.copilot-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.copilot-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.copilot-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.copilot-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gradient-start);
}

.copilot-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.copilot-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.copilot-image img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.benefit-icon {
    font-size: 1.25rem;
}

.benefit-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.video-item {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    width: 70%;
    margin: 0 auto;
}

.video-item iframe {
    width: 100%;
    height: 100%;
}

.link-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
}

.link-gradient:hover {
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-item.ms-lg-3,
    .navbar-nav .nav-item.ms-2 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    
    #platforms .row.g-4 > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .section-dark .row.align-items-center .col-lg-6:last-child .section-title {
        margin-top: 2rem;
    }
    
    .video-item {
        width: 100%;
    }
    
    .video-grid {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .copilot-card {
        padding: 1.5rem;
    }
    
    .benefit-cta,
    .copilot-cta,
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--gradient-start);
    color: white;
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
}

.scroll-cue span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.5;
    }
}
