:root {
    --bg: #05030a;
    --bg-elevated: #0b0715;
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.2);
    --accent-strong: rgba(139, 92, 246, 0.6);
    --text-main: #f9fafb;
    --text-soft: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --radius-lg: 24px;
    --shadow-soft: 0 40px 100px rgba(0, 0, 0, 0.75);
    --max-width: 1400px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    background: radial-gradient(circle at top, #1f2937 0, #02010a 45%, #000 100%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glow-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.35), transparent 55%),
            radial-gradient(circle at 100% 10%, rgba(56, 189, 248, 0.25), transparent 55%),
            radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.2), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.65;
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    z-index: -1;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #020617, #020617 45%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.preloader-spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.25);
    border-top-color: #a855f7;
    border-right-color: #22d3ee;
    animation: spin 0.9s linear infinite;
}

.preloader-text {
    font-size: 15px;
    color: #e5e7eb;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(22px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.75), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 40px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    box-shadow:
            0 0 18px rgba(139, 92, 246, 0.9),
            0 10px 26px rgba(0, 0, 0, 0.75);
    object-fit: cover;
}

.brand-text-title {
    font-weight: 650;
    letter-spacing: 0.06em;
    font-size: 18px;
    text-transform: uppercase;
}

.brand-text-sub {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-soft);
}

nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-link {
    color: var(--text-soft);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #a855f7, #22d3ee);
    transition: width 0.26s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #a855f7, #4c1d95);
    color: #f9fafb;
    font-size: 13px;
    font-weight: 550;
    box-shadow:
            0 0 18px rgba(165, 105, 255, 0.7),
            0 12px 35px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(248, 250, 252, 0.08);
    position: relative;
    overflow: hidden;
}

.nav-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(248, 250, 252, 0.45) 45%, transparent 100%);
    opacity: 0;
    transform: translateX(-40%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-cta:hover::after {
    opacity: 1;
    transform: translateX(40%);
}

.nav-cta span:last-child {
    font-size: 17px;
    opacity: 0.9;
}

.nav-mobile-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.25), rgba(15, 23, 42, 0.95));
    cursor: pointer;
}

main {
    flex: 1;
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 56px 56px;
}

@media (max-width: 640px) {
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 64px;
    align-items: stretch;
    padding-top: 88px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.95));
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.19em;
    color: var(--text-soft);
}

.hero-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.85);
}

.hero-title {
    margin-top: 22px;
    font-size: clamp(3.2rem, 3.8vw + 1.4rem, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-title span.accent {
    background: linear-gradient(120deg, #c4b5fd, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(129, 140, 248, 0.45);
}

.hero-sub {
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 540px;
}

.hero-bullets {
    margin-top: 26px;
    display: grid;
    gap: 6px;
    font-size: 17px;
    color: var(--text-soft);
}

.hero-bullet {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hero-bullet-icon {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #a855f7, #22d3ee);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.9);
}

.hero-ctas {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    background: radial-gradient(circle at top left, #a855f7, #4c1d95);
    box-shadow:
            0 0 24px rgba(165, 105, 255, 0.8),
            0 18px 40px rgba(0, 0, 0, 0.95);
    color: #f9fafb;
    font-size: 18px;
    font-weight: 550;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary span.icon {
    font-size: 18px;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(248, 250, 252, 0.4) 45%, transparent 100%);
    opacity: 0;
    transform: translateX(-30%);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: translateX(30%);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    color: var(--text-soft);
    font-size: 17px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
    cursor: pointer;
}

.btn-ghost span.icon {
    font-size: 16px;
}

.hero-rating {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-soft);
}

.hero-stars {
    display: inline-flex;
    gap: 2px;
}

.hero-stars span {
    color: #facc15;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.75));
}

.hero-video-shell {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top, #020617, #020617);
    max-width: 500px;
    aspect-ratio: 9 / 16;
}

.hero-video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0, rgba(15, 23, 42, 0.45), transparent 65%);
    pointer-events: none;
}

.tagline {
    margin-top: 36px;
    padding: 18px 22px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    font-size: 18px;
    color: var(--text-soft);
    max-width: 640px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-kicker {
    font-size: 15px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.feature-card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 24px 24px 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 0 0, rgba(139, 92, 246, 0.22), transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
    transform: translate3d(0, 10px, 0);
}

.feature-card:hover::before {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 11px;
    background: radial-gradient(circle at 20% 0, #a855f7, #22d3ee);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.9);
    margin-bottom: 10px;
}

.feature-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.feature-body {
    font-size: 18px;
    color: var(--text-soft);
    line-height: 1.5;
}

.video-strip {
    margin-top: 34px;
    border-radius: 26px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.video-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(15, 23, 42, 0.95);
    aspect-ratio: 9 / 16;
}

.video-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.benefits {
    margin-top: 50px;
    border-radius: 26px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 20px;
}

.benefits-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.benefits-body {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.7;
}

.benefit-list {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-soft);
    display: grid;
    gap: 4px;
}

.benefit-list-item {
    display: flex;
    gap: 8px;
}

.benefit-bullet {
    margin-top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #a855f7, #22d3ee);
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.9);
}

.benefits-right {
    display: grid;
    gap: 10px;
}

.benefit-pill {
    padding: 10px 11px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    font-size: 14px;
    color: var(--text-soft);
}

.benefit-pill strong {
    color: var(--text-main);
}

.cta-band {
    margin-top: 40px;
    border-radius: 24px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background:
            radial-gradient(circle at 0 0, rgba(139, 92, 246, 0.45), transparent 60%),
            radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.3), transparent 60%),
            radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 18px;
    align-items: center;
}

.cta-text-main {
    font-size: 20px;
    margin-bottom: 8px;
}

.cta-text-sub {
    font-size: 15px;
    color: rgba(226, 232, 240, 0.88);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.95);
    background: radial-gradient(circle at 0 0, #0f172a, #020617);
    color: #e5e7eb;
    font-size: 13px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

.store-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.store-badge strong {
    font-size: 15px;
}

footer {
    margin-top: 60px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 18px 20px 26px;
    font-size: 12px;
    color: var(--text-soft);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-soft);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Gallery Styles */
.gallery-section {
    margin-top: 40px;
}

.gallery-mini {
    margin-top: 0;
    padding-top: 40px;
}

.gallery-grid-mini {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

@media (min-width: 768px) {
    .gallery-grid-mini {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* Mini gallery cards should be smaller and maintain aspect ratio */
.gallery-grid-mini .wallpaper-card {
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-grid-mini .wallpaper-card img,
.gallery-grid-mini .wallpaper-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.5);
}

.search-bar {
    margin-bottom: 24px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.search-bar input::placeholder {
    color: var(--text-soft);
}

.category-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    color: var(--text-soft);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.category-btn.active {
    background: radial-gradient(circle at 0 0, #a855f7, #4c1d95);
    border-color: var(--accent);
    color: #f9fafb;
}

.live-toggle {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-toggle input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.live-toggle input[type="checkbox"]:checked {
    background: var(--accent);
}

.live-toggle input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.live-toggle input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.wallpaper-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 9 / 16;
}

.wallpaper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
    border-color: var(--accent);
}

.wallpaper-card img,
.wallpaper-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wallpaper-card.live::after {
    content: "LIVE";
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.load-more {
    display: block;
    margin: 32px auto;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    color: var(--text-main);
    font-size: 16px;
    font-weight: 550;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more:hover {
    border-color: var(--accent);
    background: radial-gradient(circle at 0 0, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.9));
}

.load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-soft);
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
    font-size: 18px;
}

/* Wallpaper Detail Page */
.wallpaper-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    justify-items: center;
}

.related-wallpapers {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .wallpaper-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.wallpaper-detail-image {
    width: 300px;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.35);
    position: sticky;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

@media (max-width: 768px) {
    .wallpaper-detail-image {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1 / 2;
        position: relative;
        margin: 0 auto;
    }
}

.wallpaper-detail-image img,
.wallpaper-detail-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wallpaper-detail-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
    margin-right: auto;
}

.wallpaper-detail-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.wallpaper-detail-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 20px;
    max-width: 600px;
}

.wallpaper-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-soft);
    font-size: 14px;
}

.wallpaper-detail-meta > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tag boxes with round corners */
.wallpaper-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wallpaper-tag:hover {
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.2));
    border-color: var(--accent);
    transform: translateY(-2px);
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    background: radial-gradient(circle at top left, #a855f7, #4c1d95);
    box-shadow:
            0 0 24px rgba(165, 105, 255, 0.8),
            0 18px 40px rgba(0, 0, 0, 0.95);
    color: #f9fafb;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.download-btn .download-main-text {
    font-size: 18px;
    font-weight: 550;
}

.download-btn .download-note {
    font-size: 13px;
    color: rgba(249, 250, 251, 0.8);
    margin: 0;
    font-weight: 400;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 46px;
    }

    .hero-video-shell {
        max-width: 100%;
        margin: 0 auto;
        order: -1;
    }

    .feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits,
    .cta-band {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-actions {
        justify-content: flex-start;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: inline-flex;
    }

    .nav-menu-open .nav-links {
        position: absolute;
        right: 20px;
        top: 56px;
        display: flex;
        flex-direction: column;
        padding: 10px 14px;
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
        z-index: 40;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .section {
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        gap: 26px;
    }

    .hero-video-shell {
        max-width: 100%;
    }

    .video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .benefits {
        margin-top: 36px;
    }

    .cta-band {
        margin-top: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

