/* Dark Theme Homepage Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #07050d;
    --text-main: #ffffff;
    --text-muted: #888;
    --brand-red: #7C3AED;
    --brand-gradient: linear-gradient(135deg, #22D3EE 0%, #7C3AED 100%);
    --card-bg: #0b0910;
    --border-glow: #7C3AED;
}

#dark-home-wrapper {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.12) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 80px 80px, 80px 80px;
    background-position: 0 0, 0 0, -1px -1px, -1px -1px;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

#dark-home-wrapper a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

/* Header */
.dark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 80px;
    position: relative;
    z-index: 10;
}

.dark-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;

}

.dark-nav a:hover {
    color: var(--brand-red);
}

.dark-nav .btn-login {
    background: var(--brand-red);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.dark-nav .btn-login:hover {
    background: #8B5CF6;
    color: white;
}

.dark-nav .btn-signup {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-nav .btn-signup:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.dark-hero {
    display: flex;
    justify-content: space-between;
    padding: 80px 80px 0 100px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 500px;
    z-index: 5;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin: 0 0 24px 0;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--brand-gradient);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Visuals Right Side */
.hero-visuals {
    position: relative;
    width: 650px;
    height: 600px;
}

/* Connection glowing animations */
.connection-lines path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 3s ease forwards;
    filter: drop-shadow(0 0 5px var(--border-glow));
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.connection-lines circle {
    filter: drop-shadow(0 0 8px var(--border-glow));
    animation: pulseCircle 2s infinite alternate;
}

@keyframes pulseCircle {
    from {
        opacity: 0.6;
        r: 3;
    }

    to {
        opacity: 1;
        r: 5;
    }
}


.main-video-player {
    position: absolute;
    right: 0;
    top: 100px;
    width: 500px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    z-index: 2;
}

.main-video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.controls-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
}

.controls-overlay svg {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.controls-overlay svg:hover {
    opacity: 1;
    filter: drop-shadow(0 0 5px white);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-fill {
    width: 35%;
    height: 100%;
    background: var(--brand-red);
    border-radius: 2px;
}

/* Stat Cards */
.stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.stat-card .label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-card .value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.stat-storage {
    top: 50px;
    left: 10px;
}

.stat-topviews {
    top: -10px;
    right: 40px;
}

.stat-earnings {
    bottom: 120px;
    left: 0px;
}

.stat-download {
    position: absolute;
    bottom: 155px;
    right: 20px;
    background: linear-gradient(135deg, #7C3AED 0%, #22D3EE 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.45);
}

.stat-download svg {
    width: 14px;
    height: 14px;
}

.stat-earnings .trend {
    font-size: 11px;
    color: #4ade80;
    margin-left: 6px;
    font-weight: 500;
}

/* Thumbnails */
.video-thumbnails {
    position: absolute;
    bottom: 40px;
    right: 20px;
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.video-thumbnails img {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.video-thumbnails img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Icons */
.icon-db {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background:
        url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 4.24 2 7V17C2 19.76 6.48 22 12 22C17.52 22 22 19.76 22 17V7C22 4.24 17.52 2 12 2ZM12 6C16.42 6 20 7.34 20 9C20 10.66 16.42 12 12 12C7.58 12 4 10.66 4 9C4 7.34 7.58 6 12 6ZM20 17C20 18.66 16.42 20 12 20C7.58 20 4 18.66 4 17V14.15C5.81 15.28 8.74 16 12 16C15.26 16 18.19 15.28 20 14.15V17Z"/></svg>') no-repeat center / 18px 18px,
        linear-gradient(135deg, #7C3AED 0%, #22D3EE 100%);
}

.icon-money {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background:
        url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12.31 17L9.43 17L9.43 15.69C8.36 15.52 7.74 15.02 7.56 14.18L9.23 13.9C9.33 14.39 9.69 14.62 10.45 14.62C11.3 14.62 11.69 14.3 11.69 13.87C11.69 13.25 10.74 13.06 9.68 12.82C8.16 12.46 7.42 11.77 7.42 10.58C7.42 9.5 8.27 8.73 9.43 8.44L9.43 7L12.31 7L12.31 8.3C13.22 8.43 13.78 8.87 13.98 9.68L12.38 9.92C12.24 9.42 11.89 9.3 11.19 9.3C10.51 9.3 10 9.58 10 10.05C10 10.63 11.02 10.79 12.19 11.09C13.68 11.48 14.41 12.14 14.41 13.43C14.41 14.61 13.52 15.38 12.31 15.61L12.31 17Z"/></svg>') no-repeat center / 18px 18px,
        linear-gradient(135deg, #22D3EE 0%, #7C3AED 100%);
}

.icon-trend {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background:
        url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/></svg>') no-repeat center / 18px 18px,
        linear-gradient(135deg, #F97316 0%, #FACC15 100%);
}

/* Features Section */
.features-section {
    padding: 80px 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.features-header {
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.features-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.feature-card {
    background: linear-gradient(180deg, #1f1a1a 0%, #171212 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: calc(25% - 15px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
}

/* ═══════════════════════════════
   RESPONSIVE / MOBILE BREAKPOINTS
═══════════════════════════════ */

/* ── Tablet: ≤1024px ── */
@media (max-width: 1024px) {
    .feature-card {
        width: calc(33.333% - 14px);
    }

    .dark-hero {
        gap: 40px !important;
        padding: 60px 40px !important;
    }

    #dark-home-wrapper .hero-visuals {
        max-width: 480px !important;
    }
}

/* ── Mobile portrait: ≤480px ── */
@media (max-width: 480px) {
    .dark-header {
        padding: 12px 16px !important;
    }

    .dark-hero {
        padding: 28px 16px 40px !important;
    }

    #dark-home-wrapper .hero-content h1 {
        font-size: clamp(26px, 10vw, 40px) !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        text-align: center !important;
        width: 100% !important;
    }

    .features-section {
        padding: 36px 14px 48px !important;
    }

    .faq-section {
        padding: 32px 14px !important;
    }

    /* Connection SVG lines - hide on mobile */
    .connection-lines {
        display: none !important;
    }

    /* Thumbnail row — horizontal scroll */
    .video-thumbnails {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .video-thumbnails::-webkit-scrollbar {
        display: none;
    }
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: transparent;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
}

.icon-cloud {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"/></svg>');
}

.icon-lightning {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 2v11h3v9l7-12h-4l4-8z"/></svg>');
}

.icon-chart {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3 3v18h18v-2H5V3H3zm6 9l4 4 6-6v3h2V6h-5v2h3l-6 6-4-4-6 6v2l8-8z"/></svg>');
}

.icon-gear {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49-.12-.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.9