html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #2997ff;
    --accent-dark: #0071e3;
    --glass-bg: rgba(22, 22, 23, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing System */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;

    --container-width: 980px;
    --radius-lg: 30px;
    --radius-md: 20px;

    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: #000;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(40px, 8vw, 96px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff 30%, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.005em;
}

h3 {
    font-size: 24px;
    line-height: 1.16;
    font-weight: 600;
    margin-bottom: 8px;
}

p.subtitle {
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.25;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

p.body-text {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.2s var(--ease-apple);
}

a:hover {
    text-decoration: underline;
}

/* Navigation */
nav.glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    opacity: 1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links a {
    font-size: 15px;
    color: #ffffff;
    margin-left: 32px;
    font-weight: 500;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.cta-button {
    background: var(--accent-color);
    color: white !important;
    padding: 8px 18px;
    border-radius: 98px;
    font-weight: 600;
}

/* Sections Common */
section {
    width: 100%;
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            #000000 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .feature-tag {
    color: #f56300;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    display: block;
}

.hero-buttons {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: #0077ed;
    text-decoration: none;
}

.btn-link {
    font-size: 17px;
    color: var(--accent-color);
}

.macbook-container {
    margin-top: 60px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.macbook-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bento Grid System */
.section-header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.bento-card {
    background: #151516;
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    transition: transform 0.4s var(--ease-apple);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.bento-card h3 {
    margin-top: 20px;
    font-size: 28px;
    color: #fff;
    /* Pure white title */
    background: none;
    -webkit-text-fill-color: initial;
}

.bento-card p {
    font-size: 17px;
    color: #86868b;
    margin-top: 10px;
    line-height: 1.5;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: auto;
    /* Push everything else to the bottom (for default bento cards) */
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    overflow: visible;
}

.span-2 {
    grid-column: span 2;
}

/* Features Carousel */
.features-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 7.5%;
    width: 100%;
    margin: 0 auto;
    max-width: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.features-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: center;
    height: 600px;
    margin: 0;
    border-radius: var(--radius-lg);
    background: #151516;
    position: relative;
    justify-content: flex-start;
    gap: 20px;
}

.carousel-card p {
    margin-top: 4px;
    /* Tighten spacing */
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-card h3 {
    margin-top: auto;
    /* Push title to bottom since icon is gone */
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-card .card-icon {
    display: none;
    /* Hide icons in carousel */
}

/* Background Images */
.card-native {
    background-image: url('assets/card-native.png');
    background-size: cover;
    background-position: center;
}

.card-multi {
    background-image: url('assets/card-multi.png');
    background-size: cover;
    background-position: center;
}

.card-editor {
    background-image: url('assets/card-editor.png');
    background-size: cover;
    background-position: center;
}

.card-audio {
    background-image: url('assets/card-audio.png');
    background-size: cover;
    background-position: center;
}

.card-lockscreen {
    background-image: url('assets/card-lockscreen.jpg');
    background-size: cover;
    background-position: center;
}

.carousel-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
    border-radius: var(--radius-lg);
}

.features-carousel .bento-card:hover {
    transform: none;
    box-shadow: none;
    z-index: auto;
}

/* Pagination Dots */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #333;
    cursor: pointer;
    transition: width 0.3s var(--ease-apple), background 0.3s var(--ease-apple);
}

.dot.active {
    width: 50px;
    background: #fff;
}

.play-pause-btn {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='14' viewBox='0 0 12 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='4' height='14' rx='1' fill='%2386868b'/%3E%3Crect x='8' width='4' height='14' rx='1' fill='%2386868b'/%3E%3C/svg%3E");
}

.play-pause-btn.paused {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='16' viewBox='0 0 14 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 7.13397C14.1667 7.51887 14.1667 8.48113 13.5 8.86603L1.5 15.7942C0.833334 16.1791 0 15.698 0 14.9282L0 1.0718C0 0.301997 0.833333 -0.179129 1.5 0.205771L13.5 7.13397Z' fill='%2386868b'/%3E%3C/svg%3E");
    border: none;
    width: 20px;
    height: 20px;
    background-size: auto 12px;
}

.play-pause-btn.restart {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4V1L8 5L12 9V6C15.31 6 18 8.69 18 12C18 15.31 15.31 18 12 18C8.69 18 6 15.31 6 12H4C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.58 16.42 4 12 4Z' fill='%2386868b'/%3E%3C/svg%3E");
    transform: none;
    border: none;
    width: 20px;
    height: 20px;
    background-size: auto 17px;
}

.play-pause-btn.restart::before {
    content: none;
}

/* Large Feature Sections */
.feature-block {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-xl) 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-block.reversed {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1.5;
    background: #151516;
    border-radius: var(--radius-lg);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Marquee */
/* Marquee - Dual Film Roll */
.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    /* Space between thumbs */
    width: max-content;
}

.scroll-left {
    animation: scrollLeft 40s linear infinite;
}

.scroll-right {
    animation: scrollRight 40s linear infinite;
}

.wallpaper-thumb {
    width: 240px;
    height: 150px;
    /* 16:10 Aspect Ratio */
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Performance Section Redesign */
.performance-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.perf-visual {
    position: relative;
}

.macbook-wrapper {
    position: relative;
    width: 1200px;
    /* Default MacBook styling */
    margin-left: -450px;
}

.macbook-img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.macbook-screen-video {
    position: absolute;
    top: calc(5.5% + 145px);
    left: calc(11.8% + 50px);
    width: calc(65% + 23px);
    height: calc(60% + 43px);
    object-fit: cover;
    z-index: 1;
    border-radius: 10px 10px 0 0;
}

.macbook-wrapper::before {
    content: '';
    position: absolute;
    top: calc(5.5% + 145px);
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 13px;
    background: black;
    border-radius: 0 0 5px 5px;
    z-index: 2;
}

.macbook-wrapper::after {
    content: '';
    position: absolute;
    top: calc(5.5% + 145px);
    left: calc(50% - 70px);
    width: 10px;
    height: 10px;
    background: transparent;
    border-radius: 0 4px 0 0;
    box-shadow: 5px -5px 0 0 black;
    z-index: 2;
}

.notch-ear-right {
    content: '';
    position: absolute;
    top: calc(5.5% + 145px);
    right: calc(50% - 70px);
    width: 10px;
    height: 10px;
    background: transparent;
    border-radius: 4px 0 0 0;
    box-shadow: -5px -5px 0 0 black;
    z-index: 2;
}

/* Activity Monitor Widget Style */
.activity-monitor-widget.overlay-chart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 55px;
    width: 260px;
    /* Small rectangle */
    background: rgba(0, 0, 0, 0.3);
    /* Match nav bar glass */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 16px;
    border-radius: 14px;
    z-index: 2;
    /* Above wallpaper */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.am-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.cpu-icon {
    width: 16px;
    height: 16px;
    color: #fff;
    opacity: 0.8;
}

.cpu-histogram {
    height: 80px;
    /* Taller bars */
    display: flex;
    align-items: flex-end;
    gap: 3px;
    /* Slightly more gap for rounded bars */
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cpu-bar {
    flex: 1;
    background: linear-gradient(to top, #f5c142, #ff6b2b);
    /* Orange/Yellow gradient */
    border-radius: 3px;
    /* Rounded bars */
    min-height: 4px;
    opacity: 1;
    transition: height 0.5s ease;
}

.am-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-family: "SF Mono", monospace;
}

.stat-label {
    color: #fff;
    font-weight: 500;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.stat-bar-track {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: #f5c142;
    /* Matching yellow/orange */
    border-radius: 3px;
}

.perf-chart.overlay-chart {
    position: absolute;
    top: 50%;
    /* Position roughly within screen area */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68%;
    /* Approximate screen width relative to frame */
    background: rgba(21, 21, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    margin: 0;
    border-radius: 12px;
}

.perf-content {
    text-align: left;
    margin-left: -140px;
}

.perf-content h2 {
    margin-bottom: 20px;
}

.perf-content .footnote {
    margin-top: 30px;
    font-size: 13px;
    color: #666;
}

/* Adjust bar chart styles for the overlay context */
.overlay-chart .bar-row {
    margin-bottom: 24px;
}

.overlay-chart .bar-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .perf-content {
        text-align: center;
        order: -1;
        /* Text first on mobile? Or verify preference */
    }
}


.bar-value.competitor {
    background: #ff453a;
}

@keyframes growBar {
    to {
        width: var(--target-width);
    }
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    color: #86868b;
    font-size: 12px;
    padding: 20px 0;
    border-top: none;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .feature-block {
        flex-direction: column;
    }

    .nav-content {
        padding: 0 16px;
    }

    .carousel-card {
        flex: 0 0 85vw;
        min-width: 85vw;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple);
}

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

.bento-card:nth-child(1) {
    transition-delay: 0.1s;
}

.bento-card:nth-child(2) {
    transition-delay: 0.2s;
}

.bento-card:nth-child(3) {
    transition-delay: 0.3s;
}

.bento-card:nth-child(4) {
    transition-delay: 0.4s;
}

.bento-card:nth-child(5) {
    transition-delay: 0.5s;
}

.hero-content .fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.hero-content .fade-in:nth-child(3) {
    transition-delay: 0.4s;
}

.section-header .fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.bar-row.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.bar-row.fade-in:nth-child(2) {
    transition-delay: 0.3s;
}


/* M-Series Chip Badges */
.chip-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    margin-top: 10px;
}

.chip-badge {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #2a2a2b, #1a1a1b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Unique Gradients for each chip */
.chip-badge[data-chip="m1"].active {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    /* M1 Blue */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
}

.chip-badge[data-chip="m2"].active {
    background: linear-gradient(135deg, #d862d5 0%, #8e2b99 100%);
    /* M2 Purple */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(216, 98, 213, 0.4);
}

.chip-badge[data-chip="m3"].active {
    background: linear-gradient(135deg, #ff9500 0%, #ff3b30 100%);
    /* M3 Orange/Red */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.4);
}

.chip-badge[data-chip="m4"].active {
    background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
    /* M4 Teal (User Fav) */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}


.chip-badge svg {
    width: 14px;
    height: 14px;
    margin-bottom: 2px;
    /* Visual alignment */
}

/* Dynamic CPU Stats */
#cpu-stat-display {
    margin-top: 30px;
    min-height: 80px;
    /* Prevent layout shift */
}

.dynamic-stat {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
    /* Default gradient fallback */
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Download Section Background */
#download {
    position: relative;
    /* Image will be set via inline style or separate rule once generated */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 0 20px;
    /* Remove top/bottom padding to let flex handle it */
    min-height: 100vh;
    /* Fill entire screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 200px;
    /* Gap from previous section */
}

/* Dark overlay to ensure text readability on top of the collage */
#download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

#download>* {
    position: relative;
    z-index: 2;
    /* Bring content above overlay */
}

#download footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 30px;
}

/* Center the main download content vertically */
#download h2,
#download .cta-group {
    /* If we want them strictly in the middle, we can use a wrapper or just let them stack naturally.
       With justify-content: center on the parent, everything (including footer if no margin-top: auto) would center.
       With margin-top: auto on footer, the top content sits at top? No.
       
       Correct Flexbox pattern for Centered Content + Bottom Footer:
       Container: flex-direction: column
       Top Spacer (optional) or Content: margin-top: auto
       Footer: margin-top: auto
       
       Let's try:
       #download { justify-content: space-between; padding-top: something; }
       Or:
       #download { justify-content: center; } AND footer { position: absolute; bottom: 0; width: 100%; }
       
       The absolute footer is safest for visuals.
    */
}