/* =========================================
   Modern Dark Theme - 4K Video YouDownSet
   ========================================= */

:root {
    /* Color System */
    --bg-base: #0f1115;
    --bg-surface: rgba(25, 28, 36, 0.6);
    --bg-surface-hover: rgba(35, 39, 50, 0.8);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #a855f7;
    --secondary-glow: rgba(168, 85, 247, 0.5);
    --accent: #3b82f6;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #cbd5e1;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    /* Glassmorphism */
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

/* =========================================
   Glass UI Components
   ========================================= */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px var(--secondary-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    background: var(--bg-surface);
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding: 100px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-base);
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: calc(-50% + 100px); width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.3), transparent 40%, rgba(168, 85, 247, 0.3), transparent 80%);
    animation: rotateHero 20s linear infinite;
    opacity: 0.8;
    will-change: transform;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateHero {
    100% { transform: rotate(360deg); }
}

/* Animated Background Orbs */
.bg-orb {
    display: none; /* Hide the subtle orbs in favor of the sweeping gradient */
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-badge .pulse {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-title .text-gradient-primary {
    font-size: 2rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.platform-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-note span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero Image 3D Effect */
.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.main-screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
    background: #1e2128; /* Fallback for transparent images */
}

.hero-image-wrapper:hover .main-screenshot {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(255,255,255,0.2);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

/* Floating Elements around Hero Image */
.floating-tag {
    position: absolute;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: float 6s infinite ease-in-out alternate;
    z-index: 10; /* Added z-index to ensure they stay above .main-screenshot */
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.tag-1 { top: 10%; left: -10%; animation-delay: 0s; }
.tag-2 { bottom: 20%; right: -5%; animation-delay: -3s; }

/* =========================================
   Bento Box Features
   ========================================= */
.features {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: linear-gradient(145deg, var(--bg-surface), rgba(20, 23, 31, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    group: hover;
}

.bento-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

/* Specific Bento Sizes Removed */

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: auto;
    background: rgba(255,255,255,0.05);
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   Product Showcase (Cards)
   ========================================= */
.showcase {
    padding: 80px 0;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.showcase-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.showcase-image {
    position: relative;
}

.showcase-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border-color);
    transition: var(--transition-smooth);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 40px 80px rgba(99, 102, 241, 0.2), 0 0 0 1px var(--border-highlight);
}

.image-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
    will-change: transform;
    pointer-events: none;
}

/* =========================================
   Download Section (CTA)
   ========================================= */
.cta-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.cta-box {
    background: transparent;
    border: none;
    border-radius: 32px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Removed cta-box::before dynamic border */

.cta-box .section-title {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: rgba(10, 11, 15, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Animations & Utilities (Reveal)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .platform-note {
        justify-content: center;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-item, .showcase-item.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .feature-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-links {
        display: none; /* Hide for mobile, consider adding a hamburger menu later */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 1rem auto;
    }
}
