/**
 * Gathered Group Chat - Marketing Site Styles
 * Version: 2026.1
 *
 * Table of Contents:
 * 1. CSS Variables & Theme
 * 2. Base & Typography
 * 3. Layout & Containers
 * 4. Navigation
 * 5. Hero Section
 * 6. Video Placeholders
 * 7. Demo Cards
 * 8. Feature Cards
 * 9. Tier/Pricing Cards
 * 10. Comparison Table
 * 11. About Section
 * 12. CTA Section
 * 13. Footer
 * 14. Utilities & Helpers
 * 15. Animations
 * 16. Responsive Breakpoints
 */

/* ==========================================================================
   1. CSS Variables & Theme
   ========================================================================== */

:root {
    /* Brand Colors */
    --primary: #7952b3;
    --primary-hover: #6a45a0;
    --primary-light: rgba(121, 82, 179, 0.15);
    --primary-glow: rgba(121, 82, 179, 0.4);

    /* Background Colors */
    --bg-dark: #0f0f0f;
    --bg-section: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-elevated: #252525;

    /* Text Colors */
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    /* Accent Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Border & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);

    /* Spacing */
    --section-padding: 6rem;
    --section-padding-mobile: 4rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ==========================================================================
   2. Base & Typography
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-full);
}

.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   3. Layout & Containers
   ========================================================================== */

.section {
    padding: var(--section-padding) 0;
}

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

.section-alt {
    background-color: var(--bg-section);
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */

.navbar {
    transition: all var(--transition-base);
    padding: 1rem 0;
    background-color: rgba(15, 15, 15, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(15, 15, 15, 0.98) !important;
    box-shadow: var(--shadow-md);
    padding: 0.7rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    /*padding: 2rem 0;*/
    position: relative;
    overflow: hidden;
    background:
            radial-gradient(ellipse at 30% 20%, var(--primary-light) 0%, transparent 50%),
            radial-gradient(ellipse at 70% 80%, rgba(121, 82, 179, 0.08) 0%, transparent 40%),
            var(--bg-dark);
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 .text-primary {
    color: var(--primary) !important;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: var(--success);
}

/* ==========================================================================
   6. Video Placeholders
   ========================================================================== */

.video-placeholder {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: all var(--transition-base);
}

.video-placeholder:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.video-placeholder-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 0 0 0 var(--primary-glow);
}

.video-placeholder:hover .video-play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(121, 82, 179, 0.2);
}

.video-play-btn i {
    font-size: 2rem;
    color: white;
    margin-left: 4px; /* Visual centering for play icon */
}

.video-placeholder-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.video-placeholder-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Decorative elements for video placeholder */
.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

/* ==========================================================================
   7. Demo Cards
   ========================================================================== */

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.demo-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.demo-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.demo-card-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.demo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.demo-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.demo-card .btn {
    width: 100%;
}

/* Worship room special styling */
.demo-card.worship {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(121, 82, 179, 0.1) 100%);
}

/* Lounge special styling */
.demo-card.lounge {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.05) 100%);
}

/* ==========================================================================
   8. Feature Cards
   ========================================================================== */

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   9. Tier/Pricing Cards
   ========================================================================== */

.tier-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
}

.tier-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.tier-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(121, 82, 179, 0.1) 0%, var(--bg-card) 100%);
}

.tier-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.tier-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 48px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tier-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tier-features li i {
    color: var(--success);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.tier-features li.disabled {
    color: var(--text-muted);
}

.tier-features li.disabled i {
    color: var(--text-muted);
}

/* Pricing Toggle */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.pricing-toggle-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pricing-toggle-btn.active {
    background: var(--primary);
    color: white;
}

.pricing-toggle-btn:hover:not(.active) {
    color: var(--text-primary);
}

.pricing-savings {
    display: inline-block;
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

/* ==========================================================================
   10. Comparison Table
   ========================================================================== */

.comparison-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.comparison-table th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1rem;
    border: none;
    text-align: center;
}

.comparison-table th.highlight {
    background: var(--primary);
    color: white;
}

.comparison-table td {
    padding: 1rem;
    border-color: var(--border-subtle);
    text-align: center;
    vertical-align: middle;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table .check-icon {
    color: var(--success);
    font-size: 1.25rem;
}

.comparison-table .x-icon {
    color: var(--danger);
    font-size: 1.25rem;
}

.comparison-table .partial-icon {
    color: var(--warning);
    font-size: 1.25rem;
}

/* ==========================================================================
   11. About Section
   ========================================================================== */

.about-section {
    background:
            radial-gradient(ellipse at 80% 50%, var(--primary-light) 0%, transparent 50%),
            var(--bg-section);
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   12. CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

footer h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-secondary);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

footer ul li a:hover {
    color: var(--text-primary);
}

footer hr {
    border-color: var(--border-subtle);
}

/* ==========================================================================
   14. Utilities & Helpers
   ========================================================================== */

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Cards base */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

/* Text utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success) !important;
}

/* Background utilities */
.bg-dark {
    background-color: var(--bg-dark) !important;
}

/* GitHub badge */
.github-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #24292e;
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.github-badge:hover {
    background: #2f363d;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   15. Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   16. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: var(--section-padding-mobile) 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .tier-card {
        margin-bottom: 1.5rem;
    }

    .video-placeholder {
        aspect-ratio: 4 / 3;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn i {
        font-size: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* Ensure Bootstrap dark theme overrides */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg-dark);
    --bs-body-color: var(--text-primary);
}