/* ============================================
   SpotifyOnScreen — Landing Page Styles
   Spotify color palette
   ============================================ */

:root {
    --primary: #1DB954;
    --primary-dark: #17a34a;
    --primary-rgb: 29, 185, 84;
    --dark: #121212;
    --dark-light: #1a1a1a;
    --dark-card: #282828;
    --gray: #B3B3B3;
    --light: #f5f5f7;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1DB954 0%, #17a34a 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.97);
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--white); }

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.4);
}

.nav-cta::after { display: none !important; }

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

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-gradient {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.13) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Hero Overlay Demo
   ============================================ */
.hero-demo {
    margin: 0 auto 36px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

.demo-desktop-bg {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 60%, #0a1628 100%);
    border-radius: 20px;
    padding: 48px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* Fake desktop taskbar hint */
.demo-desktop-bg::after {
    content: '● ● ●';
    position: absolute;
    top: 14px;
    left: 20px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 4px;
}

.demo-overlay-widget {
    background: rgba(30, 30, 46, 0.96);
    border-radius: 14px;
    padding: 14px;
    width: 340px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 20px rgba(var(--primary-rgb), 0.08);
    position: relative;
    overflow: hidden;
    animation: floatWidget 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

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

.demo-dynamic-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 14px;
    filter: blur(35px);
    opacity: 0;
    transition: opacity 1.2s ease, background 1.2s ease;
    z-index: 0;
    pointer-events: none;
}

.demo-dynamic-bg.active { opacity: 0.45; }

.demo-widget-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.demo-art {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.8s ease;
    background: linear-gradient(135deg, #FF6B6B, #CC2936);
}

.demo-text { flex: 1; min-width: 0; }

.demo-track {
    font-size: 15px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    transition: opacity 0.4s ease;
}

.demo-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.demo-album {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 7px;
}

.demo-progress-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: background 0.8s ease;
    background: var(--primary);
}

.demo-now-playing {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
}

/* Equalizer bars */
.demo-equalizer,
.odc-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 10px;
}

.demo-equalizer span,
.odc-equalizer span {
    display: block;
    width: 2px;
    background: var(--primary);
    border-radius: 1px;
    animation: equalize 1s ease-in-out infinite;
    transform-origin: bottom;
}

.demo-equalizer span:nth-child(1),
.odc-equalizer span:nth-child(1) { height: 4px; animation-duration: 0.75s; }
.demo-equalizer span:nth-child(2),
.odc-equalizer span:nth-child(2) { height: 8px; animation-duration: 1.1s; }
.demo-equalizer span:nth-child(3),
.odc-equalizer span:nth-child(3) { height: 5px; animation-duration: 0.65s; }
.demo-equalizer span:nth-child(4),
.odc-equalizer span:nth-child(4) { height: 9px; animation-duration: 1.3s; }

.eq-teal span { background: #4ECDC4; }
.eq-purple span { background: #C39BD3; }

@keyframes equalize {
    0%, 100% { transform: scaleY(0.3); }
    50%       { transform: scaleY(1); }
}

.demo-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.demo-hint i { color: var(--primary); }

/* Hero text below demo */
.hero-description {
    font-size: 19px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.65s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.stat i { color: var(--primary); font-size: 18px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.mouse {
    width: 24px; height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
}

.wheel {
    width: 3px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0%, 20% { transform: translate(-50%, 0); opacity: 1; }
    100%     { transform: translate(-50%, 12px); opacity: 0; }
}

.scroll-indicator p {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn i { font-size: 18px; }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-github {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.btn-github-alt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--white);
    margin-top: 20px;
    font-family: inherit;
}

.btn-github-alt:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-2px);
}

.btn-github-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
    font-family: inherit;
    cursor: pointer;
}

.btn-github-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5);
}

/* ============================================
   Section Header (Reusable)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 120px 0;
    background: var(--dark-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-card:hover::before { opacity: 0.04; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.1);
}

.feature-icon {
    width: 60px; height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(var(--primary-rgb), 0.18);
}

.feature-icon i {
    font-size: 26px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ============================================
   Preview Section (Screenshots)
   ============================================ */
.screenshots {
    padding: 120px 0;
    background: var(--dark);
}

.screenshots-grid {
    display: grid;
    gap: 64px;
}

.screenshot-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.screenshot-item:nth-child(even) { direction: rtl; }
.screenshot-item:nth-child(even) > * { direction: ltr; }

.screenshot-image {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

/* Overlay demo stage (replaces real screenshot) */
.overlay-demo-stage {
    background: linear-gradient(135deg, #0d0d1a 0%, #111120 100%);
    border-radius: 16px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.overlay-demo-stage::after {
    content: '● ● ●';
    position: absolute;
    top: 12px; left: 18px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 4px;
}

.screenshot-image:hover .overlay-demo-stage {
    transform: scale(1.02);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(var(--primary-rgb), 0.1);
}

/* The overlay widget card in the preview section */
.overlay-demo-card {
    background: rgba(30, 30, 46, 0.96);
    border-radius: 12px;
    padding: 12px;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    animation: floatWidget 4s ease-in-out infinite;
}

.overlay-demo-card.theme-dynamic {
    background: rgba(8, 8, 18, 0.9);
}

.overlay-demo-card.theme-custom {
    background: rgba(22, 20, 35, 0.96);
    border: 1px solid rgba(195, 155, 211, 0.15);
}

/* Dynamic background blobs */
.odc-tornado-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    border-radius: 12px;
    z-index: 0;
}

.odc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(22px);
    opacity: 0.65;
}

.blob-1 {
    width: 90px; height: 90px;
    background: #4ECDC4;
    top: -30px; left: -20px;
    animation: blobMove1 4.5s ease-in-out infinite;
}

.blob-2 {
    width: 70px; height: 70px;
    background: #27AE60;
    bottom: -15px; right: 10px;
    animation: blobMove2 5.5s ease-in-out infinite;
}

.blob-3 {
    width: 55px; height: 55px;
    background: #1A8A7A;
    top: 50%; left: 50%;
    animation: blobMove3 3.5s ease-in-out infinite;
}

@keyframes blobMove1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(25px, 18px) rotate(180deg); }
}

@keyframes blobMove2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-18px, -25px) rotate(-180deg); }
}

@keyframes blobMove3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.6); }
}

/* Overlay card internals */
.odc-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.odc-art {
    width: 56px; height: 56px;
    border-radius: 7px;
    flex-shrink: 0;
}

.odc-art-1 { background: linear-gradient(135deg, #FF6B6B, #CC2936); }
.odc-art-2 { background: linear-gradient(135deg, #4ECDC4, #44A08D); }
.odc-art-3 { background: linear-gradient(135deg, #A8EDEA, #9B59B6); }

.odc-info { flex: 1; min-width: 0; }

.odc-track {
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.odc-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.odc-album {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.odc-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 7px;
}

.odc-progress-fill {
    height: 100%;
    border-radius: 2px;
    animation: progressFill 8s linear infinite;
}

.p1 { background: #1DB954; }
.p2 { background: #4ECDC4; animation-delay: -2.5s; }
.p3 { background: #C39BD3; animation-delay: -5.5s; }

@keyframes progressFill {
    0%   { width: 0%; }
    100% { width: 100%; }
}

.odc-now-playing {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.28);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
}

/* Screenshot info (text side) */
.screenshot-info { position: relative; }

.screenshot-number {
    font-size: 64px;
    font-weight: 900;
    color: rgba(var(--primary-rgb), 0.18);
    line-height: 1;
    margin-bottom: 16px;
}

.screenshot-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.screenshot-info p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
    padding: 120px 0;
    background: var(--dark-light);
}

.download-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 64px 48px;
    max-width: 700px;
    margin: 0 auto;
}

.download-icon {
    width: 80px; height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.download-icon i { font-size: 38px; color: var(--white); }

.download-card h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-card > p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 32px;
}

.btn-download {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 48px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
    margin-bottom: 32px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-download i { font-size: 22px; }

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(var(--primary-rgb), 0.5);
}

.download-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.info-item i { color: var(--primary); font-size: 15px; }

.download-section-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 48px 0;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 34px; height: 34px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.footer-text p {
    color: var(--gray);
    font-size: 14px;
    margin: 4px 0;
}

/* ============================================
   Modals
   ============================================ */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #1e1e1e;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.modal.active .modal-content { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    font-size: 16px;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 48px 40px 28px;
}

.modal-icon {
    width: 80px; height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.modal-icon i { font-size: 36px; color: var(--white); }

.modal-icon-github {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
    box-shadow: none;
}

.modal-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
}

.modal-header p { color: var(--gray); font-size: 15px; }

.modal-body {
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-large { max-width: 800px; }

.modal-with-footer {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-body-with-footer {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.modal-footer {
    padding: 20px 40px;
    background: rgba(10, 10, 12, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    bottom: 0;
    border-radius: 0 0 24px 24px;
}

/* Download option rows in modal */
.download-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
    cursor: pointer;
}

.download-option:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateX(8px);
}

.download-option-icon {
    width: 56px; height: 56px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-option-icon i { font-size: 26px; color: var(--primary); }

.download-option-info { flex: 1; }

.download-option-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.download-option-info p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.download-option-meta { display: flex; gap: 8px; }

.download-option-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.download-option-arrow {
    flex-shrink: 0;
    color: var(--gray);
    font-size: 18px;
    transition: var(--transition);
}

.download-option:hover .download-option-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* GitHub modal file list */
.github-preview { width: 100%; }

.github-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.github-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}

.github-breadcrumb i { font-size: 16px; color: var(--white); }

.github-breadcrumb span:nth-child(2),
.github-breadcrumb span:nth-child(4) {
    color: var(--white);
    font-weight: 600;
}

.github-branch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.github-file-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.github-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.github-file-item:last-child { border-bottom: none; }
.github-file-item:hover { background: rgba(255, 255, 255, 0.03); }

.github-file-item i { font-size: 15px; width: 18px; text-align: center; }
.github-file-item.folder i { color: #54aeff; }
.github-file-item.file i { color: var(--gray); }

.github-file-item span { font-size: 14px; color: var(--white); font-weight: 500; }

/* Scrollbar */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.5); }

/* ============================================
   Scroll Reveal
   ============================================ */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 42px; letter-spacing: -1px; }
    .hero-description { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { gap: 20px; }
    .btn { width: 100%; justify-content: center; }
    .demo-desktop-bg { padding: 32px 24px; }
    .demo-overlay-widget { width: 280px; }

    .features { padding: 80px 0; }
    .features-grid { grid-template-columns: 1fr; }

    .screenshots { padding: 80px 0; }
    .screenshots-grid { gap: 48px; }
    .screenshot-item,
    .screenshot-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .screenshot-number { font-size: 48px; }
    .screenshot-info h3 { font-size: 24px; }
    .overlay-demo-card { width: 240px; }

    .download-section { padding: 80px 0; }
    .download-card { padding: 48px 24px; }
    .download-card h2 { font-size: 28px; }
    .download-info { flex-direction: column; align-items: center; }

    .nav-links { gap: 20px; }
    .nav-links a { font-size: 13px; }
    .nav-cta { padding: 7px 14px; font-size: 13px; }

    .modal-header { padding: 32px 24px 20px; }
    .modal-body { padding: 0 24px 24px; }
    .modal-footer { padding: 16px 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-logo span { font-size: 16px; }
    .hero-stats { flex-direction: column; gap: 14px; }
    .hero-badge { font-size: 12px; }
}
