:root {
    --copperwood: #A76930;
    --soft-linen: #E9E3DA;
    --midnight-violet: #2A223E;
    --midnight-violet-2: #352837;
    --bronze-spice: #CF6027;
    --bg-deep: #1A1525;
    --bg-card: rgba(42, 34, 62, 0.45);
    --glass-border: rgba(233, 227, 218, 0.08);
    --glass-bg: rgba(42, 34, 62, 0.35);
    --glass-bg-hover: rgba(53, 40, 55, 0.55);
    --text-primary: #E9E3DA;
    --text-secondary: rgba(233, 227, 218, 0.6);
    --text-muted: rgba(233, 227, 218, 0.35);
    --glow-copper: rgba(167, 105, 48, 0.3);
    --glow-bronze: rgba(207, 96, 39, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--copperwood) var(--bg-deep);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--copperwood); border-radius: 3px; }

/* Noise Overlay */
#noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* Cursor Glow */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-copper) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner { text-align: center; }

.loader-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 20px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

.loader-bar {
    width: 160px;
    height: 2px;
    background: rgba(233, 227, 218, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 12px;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--copperwood), var(--bronze-spice));
    border-radius: 3px;
    animation: loaderFill 1.8s var(--ease-out-expo) forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

.loader-text {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== DESKTOP NAVBAR — Floating Glass Pill ===== */
#navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1060px;
    z-index: 9000;
    transition: top 0.4s var(--ease-out-expo);
}

#navbar.scrolled { top: 10px; }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 8px 0 18px;
    border-radius: 999px;
    background: rgba(26, 21, 37, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 0 0 0.5px rgba(233, 227, 218, 0.04) inset,
        0 1px 0 rgba(233, 227, 218, 0.04) inset;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled .nav-container {
    background: rgba(26, 21, 37, 0.7);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(233, 227, 218, 0.06) inset,
        0 1px 0 rgba(233, 227, 218, 0.06) inset;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    padding-right: 4px;
}

.nav-logo img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    object-fit: cover;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15px;
    padding: 6px 11px;
    border-radius: 999px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.25s ease;
    position: relative;
    white-space: nowrap;
    line-height: 1.4;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(233, 227, 218, 0.06);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--copperwood);
    background: rgba(167, 105, 48, 0.1);
}

.nav-links a::after { display: none; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 4px;
}

.nav-cta {
    text-decoration: none;
    padding: 0 16px;
    height: 32px;
    line-height: 32px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice));
    color: #fff;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(167, 105, 48, 0.2);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(167, 105, 48, 0.4);
}

/* ===== HAMBURGER — Premium Morph ===== */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(233, 227, 218, 0.04);
    border: 1px solid rgba(233, 227, 218, 0.06);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.hamburger:hover { background: rgba(233, 227, 218, 0.08); }

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
}

.hamburger-lines span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out-expo);
    transform-origin: center;
}

.hamburger.active .hamburger-lines span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.hamburger.active .hamburger-lines span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-lines span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* ===== MOBILE MENU — Fullscreen Premium ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 8998;
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    gap: 0;
    padding: 72px 24px 32px;
}

.mobile-menu-inner a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: clamp(20px, 6vw, 26px);
    font-weight: 600;
    letter-spacing: -0.3px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s var(--ease-out-expo);
    padding: 10px 24px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.mobile-menu-inner a:last-child { margin-bottom: 0; }

.mobile-menu.open .mobile-menu-inner a {
    opacity: 0.65;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-inner a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(2) { transition-delay: 0.09s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(3) { transition-delay: 0.13s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(4) { transition-delay: 0.17s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(5) { transition-delay: 0.21s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(7) { transition-delay: 0.29s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(8) { transition-delay: 0.33s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(9) { transition-delay: 0.37s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(10) { transition-delay: 0.41s; }

.mobile-menu-inner a:hover,
.mobile-menu-inner a:active {
    opacity: 1 !important;
    color: var(--copperwood);
    background: rgba(167, 105, 48, 0.08);
}

.mobile-cta {
    width: min(85%, 320px);
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 18px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    box-sizing: border-box;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice));
    opacity: 0 !important;
    transform: translateY(12px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(167, 105, 48, 0.25);
    transition: all 0.4s var(--ease-out-expo);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-menu.open .mobile-cta {
    opacity: 1 !important;
    transform: translateY(0);
    transition-delay: 0.38s;
}

.mobile-cta:hover {
    box-shadow: 0 6px 24px rgba(167, 105, 48, 0.4);
    transform: translateY(-2px) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 24px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.35s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice));
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 12px 40px var(--glow-copper);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(233, 227, 218, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(233, 227, 218, 0.12);
    border-color: rgba(233, 227, 218, 0.2);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 13px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s var(--ease-smooth);
    will-change: transform;
    transform: translateZ(0);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(233, 227, 218, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Section Common */
section {
    padding: clamp(48px, 8vw, 100px) 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 64px);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--copperwood);
    border: 1px solid rgba(167, 105, 48, 0.25);
    background: rgba(167, 105, 48, 0.08);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.text-accent {
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
    padding: 100px 6% 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--glow-copper);
    top: -15%;
    right: -10%;
    animation: blobFloat1 12s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(207, 96, 39, 0.15);
    bottom: -10%;
    left: -5%;
    animation: blobFloat2 15s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(167, 105, 48, 0.12);
    top: 40%;
    left: 30%;
    animation: blobFloat3 10s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.05); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(0.92); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

.mesh-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(167, 105, 48, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(207, 96, 39, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(42, 34, 62, 0.5) 0%, transparent 60%);
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--copperwood);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 580px;
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(233, 227, 218, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    margin-bottom: 18px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copperwood);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--glow-copper); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.title-line { display: block; }

.title-accent {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--copperwood));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-glow {
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice), var(--copperwood));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.hero-sub {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.stat { text-align: center; }

.stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--copperwood);
}

.stat-suffix {
    font-size: 26px;
    font-weight: 700;
    color: var(--copperwood);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--glass-border);
}

.hero-visual {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.phone-mockup {
    position: relative;
    display: inline-block;
}

.phone-frame {
    position: relative;
    width: 200px;
    height: 400px;
    border-radius: 32px;
    border: 3px solid rgba(233, 227, 218, 0.15);
    overflow: hidden;
    background: var(--midnight-violet);
    will-change: transform;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.phone-glow {
    position: absolute;
    inset: -2px;
    border-radius: 42px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--copperwood), transparent, var(--bronze-spice)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: phoneGlow 4s ease-in-out infinite;
}

@keyframes phoneGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(42, 34, 62, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.floating-card svg { color: var(--copperwood); flex-shrink: 0; }

.card-1 {
    top: 15%;
    left: -50%;
    animation: floatCard1 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: -45%;
    animation: floatCard2 7s ease-in-out infinite;
}

.card-3 {
    bottom: 10%;
    left: -40%;
    animation: floatCard3 5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(233, 227, 218, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--copperwood);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(8px); }
}

.scroll-indicator span {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* About */
#about {
    background: linear-gradient(180deg, transparent 0%, rgba(42, 34, 62, 0.2) 50%, transparent 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.about-card {
    padding: 24px 20px;
    text-align: center;
}

.about-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(167, 105, 48, 0.1);
    border: 1px solid rgba(167, 105, 48, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--copperwood);
    transition: all 0.4s ease;
}

.about-card:hover .about-icon {
    background: rgba(167, 105, 48, 0.18);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--glow-copper);
}

.about-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.about-card p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== VARIANTS — Premium Cards + VS Orb ===== */
.variants-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.variant-card {
    flex: 1;
    max-width: 420px;
    min-width: 0;
    padding: 32px 28px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    background: rgba(42, 34, 62, 0.35);
    border: 1px solid rgba(233, 227, 218, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.45s var(--ease-out-expo);
}

.variant-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 33px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(167, 105, 48, 0.25), transparent 40%, transparent 60%, rgba(207, 96, 39, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.variant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 80px rgba(167, 105, 48, 0.08);
    background: rgba(53, 40, 55, 0.5);
}

.variant-card:hover::before { opacity: 1; }

.variant-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-copper), transparent 70%);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.variant-card:hover .variant-glow { opacity: 0.45; }

.variant-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--copperwood);
    border: 1px solid rgba(167, 105, 48, 0.2);
    background: rgba(167, 105, 48, 0.08);
    margin-bottom: 14px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.variant-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.variant-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.variant-tagline {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.variant-rom-tags { margin-bottom: 10px; }

.variant-features {
    list-style: none;
    text-align: left;
    margin-bottom: 18px;
    flex: 1;
}

.variant-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(233, 227, 218, 0.03);
}

.variant-features li:last-child { border: none; }
.variant-features svg { color: var(--copperwood); flex-shrink: 0; width: 14px; height: 14px; }

.variant-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: 11px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.35s var(--ease-smooth);
    box-shadow: 0 4px 20px rgba(167, 105, 48, 0.2);
}

.variant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(167, 105, 48, 0.4);
}

/* ===== VS Orb ===== */
.variant-vs {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--copperwood);
    position: relative;
    background: rgba(42, 34, 62, 0.5);
    border: 1px solid rgba(167, 105, 48, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2;
}

.variant-vs::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--copperwood), var(--bronze-spice), var(--copperwood));
    z-index: -1;
    animation: orbSpin 4s linear infinite;
    opacity: 0.5;
    filter: blur(8px);
}

.variant-vs::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 105, 48, 0.2), transparent 70%);
    animation: orbPulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.feature-card {
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copperwood), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-num {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(167, 105, 48, 0.15), rgba(207, 96, 39, 0.08));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Devices */
#devices {
    background: linear-gradient(180deg, transparent 0%, rgba(42, 34, 62, 0.15) 50%, transparent 100%);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.device-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    overflow: visible;
}

.device-visual {
    flex-shrink: 0;
}

.device-image {
    width: 50px;
    height: 85px;
    object-fit: contain;
    border-radius: 10px;
}

.device-silhouette {
    width: 50px;
    height: 85px;
    border-radius: 12px;
    border: 2px solid rgba(233, 227, 218, 0.1);
    background: linear-gradient(135deg, var(--midnight-violet), var(--midnight-violet-2));
    position: relative;
    overflow: hidden;
}

.device-silhouette::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: rgba(233, 227, 218, 0.08);
}

.device-info { flex: 1; }

.device-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 1px;
}

.device-codename {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.device-roms {
    display: flex;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.rom-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 500;
}

.rom-zendroid {
    background: rgba(167, 105, 48, 0.12);
    color: var(--copperwood);
    border: 1px solid rgba(167, 105, 48, 0.2);
}

.rom-zenx {
    background: rgba(207, 96, 39, 0.1);
    color: var(--bronze-spice);
    border: 1px solid rgba(207, 96, 39, 0.2);
}

.rom-soon {
    background: rgba(233, 227, 218, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(233, 227, 218, 0.1);
}

.device-maintainer {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.device-maintainer strong { color: var(--text-primary); }

.device-soon { opacity: 0.6; }

/* Screenshots */
.screenshot-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
}

.screenshot-tab {
    padding: 8px 22px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-tab.active {
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice));
    color: #fff;
    border-color: transparent;
}

.screenshot-tab:hover:not(.active) {
    background: rgba(233, 227, 218, 0.06);
    color: var(--text-primary);
}

.screenshot-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(42, 34, 62, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(167, 105, 48, 0.3);
    border-color: var(--copperwood);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-track-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.6s var(--ease-out-expo);
    padding: 16px 0;
}

.carousel-slide {
    flex: 0 0 240px;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(233, 227, 218, 0.08);
    background: var(--midnight-violet);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.carousel-slide.active {
    border-color: var(--copperwood);
    box-shadow: 0 0 40px var(--glow-copper), 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img { transform: scale(1.05); }

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 21, 37, 0.6) 100%);
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(233, 227, 218, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--copperwood);
    width: 24px;
    border-radius: 3px;
}

/* Contributors */
.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.contributor-card {
    padding: 28px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contributor-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--glow-copper);
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contributor-card:hover .contributor-glow { opacity: 0.4; }

.contributor-avatar {
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--copperwood), var(--bronze-spice));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.contributor-card:hover .avatar-placeholder {
    transform: scale(1.08);
}

.contributor-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contributor-role {
    font-size: 12px;
    color: var(--copperwood);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.contributor-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contributor-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.contributor-tags span {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(233, 227, 218, 0.05);
    border: 1px solid var(--glass-border);
}

/* Download */
#download { position: relative; overflow: hidden; }

.download-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blob-d1 {
    width: 400px;
    height: 400px;
    background: var(--glow-copper);
    top: -20%;
    left: -10%;
}

.blob-d2 {
    width: 350px;
    height: 350px;
    background: rgba(207, 96, 39, 0.12);
    bottom: -15%;
    right: -10%;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.download-card {
    padding: 28px 24px;
    text-align: center;
}

.download-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

.download-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.download-version {
    font-size: 12px;
    color: var(--copperwood);
    display: block;
    margin-bottom: 12px;
}

.download-card p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2vw, 32px);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.info-item svg { color: var(--copperwood); }

/* FAQ */
.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    overflow: hidden;
    padding: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover { color: var(--copperwood); }

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 16px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Footer */
#footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 32px;
    background: rgba(26, 21, 37, 0.5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.footer-brand { max-width: 260px; }

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.footer-name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: clamp(24px, 4vw, 48px);
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--copperwood); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== NAV SOCIAL + RIGHT ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(233, 227, 218, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-social:hover {
    background: rgba(167, 105, 48, 0.15);
    border-color: rgba(167, 105, 48, 0.3);
    color: var(--copperwood);
    transform: translateY(-1px);
}

/* ===== TELEGRAM BUTTON ===== */
.btn-telegram {
    background: rgba(233, 227, 218, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-telegram:hover {
    background: rgba(167, 105, 48, 0.12);
    border-color: rgba(167, 105, 48, 0.25);
    box-shadow: 0 8px 30px rgba(167, 105, 48, 0.15);
    transform: translateY(-2px);
}

.mobile-telegram {
    opacity: 1 !important;
    font-size: 13px !important;
    color: var(--copperwood) !important;
    padding: 8px 20px !important;
    border: 1px solid rgba(167, 105, 48, 0.25) !important;
    border-radius: 50px !important;
    background: rgba(167, 105, 48, 0.08) !important;
}

/* ===== ROM TAGS ===== */
.rom-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.rom-tag.hybrid {
    background: linear-gradient(135deg, rgba(167, 105, 48, 0.15), rgba(207, 96, 39, 0.12));
    color: var(--copperwood);
    border: 1px solid rgba(167, 105, 48, 0.25);
    animation: hybridPulse 3s ease-in-out infinite;
}

.rom-tag.recovery {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.rom-tag.fastboot {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.25);
}

@keyframes hybridPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(167, 105, 48, 0.15); }
    50% { box-shadow: 0 0 12px 2px rgba(167, 105, 48, 0.12); }
}

.variant-rom-tags {
    margin-bottom: 10px;
}

/* ===== DEVICE MODAL ===== */
.device-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-smooth);
    padding: 20px;
}

.device-modal.open {
    opacity: 1;
    visibility: visible;
}

.device-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 21, 37, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.device-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 28px;
    scrollbar-width: thin;
    scrollbar-color: var(--copperwood) transparent;
}

.device-modal-content::-webkit-scrollbar { width: 5px; }
.device-modal-content::-webkit-scrollbar-thumb { background: var(--copperwood); border-radius: 3px; }

.device-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(42, 34, 62, 0.6);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.device-modal-close:hover {
    background: rgba(167, 105, 48, 0.2);
    border-color: var(--copperwood);
    color: var(--text-primary);
}

.device-modal-header {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.device-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.device-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===== ROM CARD (inside modal) ===== */
.rom-card {
    background: rgba(42, 34, 62, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.35s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.rom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copperwood), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rom-card:hover {
    border-color: rgba(167, 105, 48, 0.2);
    background: rgba(53, 40, 55, 0.5);
    transform: translateY(-2px);
}

.rom-card:hover::before { opacity: 1; }

.rom-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.rom-card-name {
    font-size: 16px;
    font-weight: 700;
}

.rom-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rom-meta-pill {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(233, 227, 218, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.rom-card-info {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-secondary);
}

.rom-card-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rom-card-info svg { color: var(--copperwood); flex-shrink: 0; }

.rom-changelog {
    margin-bottom: 12px;
}

.rom-changelog h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rom-changelog ul {
    list-style: none;
}

.rom-changelog li {
    position: relative;
    padding: 3px 0 3px 14px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rom-changelog li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copperwood);
}

.rom-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rom-card-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 8px 16px;
    font-size: 11px;
}

/* ===== ROM LINKS (data-driven) ===== */
.rom-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.rom-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(233, 227, 218, 0.04);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.rom-link-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.rom-link-btn:hover {
    background: rgba(167, 105, 48, 0.1);
    border-color: rgba(167, 105, 48, 0.25);
    color: var(--copperwood);
}

.rom-link {
    color: var(--copperwood);
    text-decoration: none;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.rom-link:hover { opacity: 0.8; text-decoration: underline; }

.rom-date {
    font-size: 11px;
    color: var(--text-muted);
}

.rom-latest {
    background: rgba(167, 105, 48, 0.15) !important;
    color: var(--copperwood) !important;
    border-color: rgba(167, 105, 48, 0.3) !important;
}

/* ===== DOWNLOAD VERSION LIST (data-driven) ===== */
.download-rom-group {
    margin-bottom: 16px;
}

.download-rom-group:last-child { margin-bottom: 0; }

.download-rom-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.download-rom-latest {
    font-size: 11px;
    color: var(--copperwood);
    margin-left: auto;
}

.download-version-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-version-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(233, 227, 218, 0.02);
    border: 1px solid rgba(233, 227, 218, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

a.download-version-item:hover {
    background: rgba(167, 105, 48, 0.04);
    border-color: rgba(167, 105, 48, 0.1);
}

.download-version-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
}

.download-version-date {
    font-size: 11px;
    color: var(--text-muted);
    flex: 1;
}

.download-version-item .btn {
    padding: 6px 14px;
    font-size: 11px;
    min-height: 32px;
}

.mirror-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.mirror-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(233, 227, 218, 0.04);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.mirror-link:hover {
    background: rgba(167, 105, 48, 0.1);
    border-color: rgba(167, 105, 48, 0.25);
    color: var(--copperwood);
}

.mirror-link svg { width: 14px; height: 14px; }

/* ===== DEVICE CARD UPGRADE ===== */
.device-card {
    cursor: pointer;
    position: relative;
}

.device-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(167, 105, 48, 0.2), transparent, rgba(207, 96, 39, 0.15)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.device-card:hover::after { opacity: 1; }

.device-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(167, 105, 48, 0.08);
}

.device-click-hint {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.device-click-hint svg {
    width: 12px;
    height: 12px;
}

/* ===== CONTRIBUTORS UPGRADE ===== */
.contributors-grid {
    max-width: 1100px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.contributor-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(167, 105, 48, 0.3);
    transition: all 0.4s ease;
}

.contributor-card:hover .contributor-avatar img {
    border-color: var(--copperwood);
    box-shadow: 0 0 30px var(--glow-copper);
}

.avatar-placeholder {
    width: 88px;
    height: 88px;
    border: 3px solid rgba(167, 105, 48, 0.3);
}

.contributor-lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(167, 105, 48, 0.18), rgba(207, 96, 39, 0.12));
    color: var(--copperwood);
    border: 1px solid rgba(167, 105, 48, 0.3);
    margin-bottom: 10px;
    animation: leadGlow 3s ease-in-out infinite;
}

@keyframes leadGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(167, 105, 48, 0.1); }
    50% { box-shadow: 0 0 16px 2px rgba(167, 105, 48, 0.12); }
}

.contributor-device-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(233, 227, 218, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: 4px;
}

.contributor-socials {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contributor-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.contributor-social-btn.telegram {
    color: var(--text-secondary);
    background: rgba(233, 227, 218, 0.04);
}

.contributor-social-btn.telegram:hover {
    background: rgba(167, 105, 48, 0.1);
    border-color: rgba(167, 105, 48, 0.25);
    color: var(--copperwood);
}

.contributor-social-btn.github {
    color: var(--text-secondary);
    background: rgba(233, 227, 218, 0.04);
}

.contributor-social-btn.github:hover {
    background: rgba(233, 227, 218, 0.1);
    border-color: rgba(233, 227, 218, 0.2);
    color: var(--text-primary);
}

.contributor-social-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ===== FLOATING SOCIAL DOCK ===== */
.floating-social {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.floating-social.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 34, 62, 0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.floating-social-btn:hover {
    background: rgba(167, 105, 48, 0.25);
    border-color: var(--copperwood);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-copper);
}

/* ===== DOWNLOAD DEVICES ===== */
.download-devices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    align-items: stretch;
}

.download-device-card {
    padding: 22px 20px;
    text-align: left;
}

.download-device-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1px;
}

.download-device-codename {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.download-rom-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-rom-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(233, 227, 218, 0.03);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 6px;
}

.download-rom-item:hover {
    background: rgba(167, 105, 48, 0.06);
    border-color: rgba(167, 105, 48, 0.15);
}

.download-rom-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download-rom-name {
    font-size: 13px;
    font-weight: 600;
}

.download-rom-version {
    font-size: 11px;
    color: var(--copperwood);
}

.download-rom-item .btn {
    padding: 8px 20px;
    font-size: 12px;
}

/* ===== FOOTER SOCIAL ===== */
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(233, 227, 218, 0.04);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(167, 105, 48, 0.1);
    border-color: rgba(167, 105, 48, 0.25);
    color: var(--copperwood);
}

.footer-social-link svg { flex-shrink: 0; }

/* ===== PREMIUM ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmerBorder {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.reveal.visible {
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

/* Feature card top line animation */
.feature-card:hover::before { opacity: 1; }

/* Smooth card entrance stagger for grids */
.about-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.about-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.about-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

.features-grid .reveal:nth-child(2) { transition-delay: 0.04s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(8) { transition-delay: 0.28s; }

/* ===== RESPONSIVE ===== */

/* Tablet landscape */
@media (max-width: 1200px) {
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 13px; }
    .hero-inner { gap: 40px; }
}

/* Tablet portrait */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .nav-right .nav-cta { display: none; }
    .hamburger { display: flex; }

    #hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content { text-align: center; max-width: 100%; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-title { letter-spacing: -1px; }
    .floating-card { display: none; }
    .scroll-indicator { display: none; }

    .variants-grid {
        flex-direction: column;
        align-items: center;
    }

    .variant-card { max-width: 420px; width: 100%; }
    .variant-vs { margin: -8px 0; }

    .device-modal-content { max-width: 95vw; padding: 28px 20px; }
}

/* Mobile */
@media (max-width: 768px) {
    section { padding: clamp(40px, 8vw, 70px) 0; }

    #navbar { width: calc(100% - 24px); top: 12px; }
    #navbar.scrolled { top: 8px; }
    .nav-container { height: 44px; padding: 0 6px 0 14px; }
    .nav-logo { font-size: 13px; gap: 6px; }
    .nav-logo img { width: 24px; height: 24px; border-radius: 6px; }
    .hamburger { width: 32px; height: 32px; }

    .scroll-indicator { display: none; }

    #hero { padding: 90px 5% 48px; min-height: auto; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
    .hero-stats { gap: 16px; }
    .stat-num, .stat-suffix { font-size: 22px; }

    .phone-frame { width: 160px; height: 320px; border-radius: 28px; }

    .about-grid,
    .features-grid,
    .devices-grid,
    .contributors-grid,
    .download-devices { grid-template-columns: 1fr; }

    .contributors-grid { max-width: 100%; min-width: 0; }

    .footer-top { flex-direction: column; gap: 28px; }
    .footer-brand { max-width: 100%; }
    .footer-links-group { gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .carousel-slide { flex: 0 0 180px; height: 360px; }
    .carousel-btn { width: 34px; height: 34px; }
    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }

    .device-modal-content { padding: 20px 16px; max-height: 85vh; border-radius: var(--radius-md); }
    .device-modal-header h2 { font-size: 18px; }
    .rom-card { padding: 18px 14px; }
    .rom-card-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .rom-card-actions { flex-direction: column; }
    .rom-card-actions .btn { min-width: 100%; }

    .download-devices { gap: 12px; }
    .download-device-card { padding: 18px 16px; }

    .contributor-card { padding: 22px 16px; }

    .floating-social { bottom: 14px; right: 14px; }
    .floating-social-btn { width: 40px; height: 40px; }

    .section-header { margin-bottom: 28px; }

    .glass-card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

/* Small mobile */
@media (max-width: 480px) {
    #navbar { width: calc(100% - 20px); top: 10px; }
    .nav-container { height: 42px; padding: 0 4px 0 12px; }
    .nav-logo span { display: none; }
    .nav-links a { font-size: 11px; padding: 5px 8px; }

    .mobile-menu-inner { padding: 64px 20px 28px; }
    .mobile-menu-inner a { font-size: clamp(18px, 5.5vw, 22px); padding: 8px 16px; }

    #hero { padding: 80px 4% 40px; }
    .hero-title { font-size: clamp(1.6rem, 8vw, 2.4rem); letter-spacing: -1px; }
    .hero-sub { font-size: 0.85rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 8px; }
    .hero-actions .btn { width: 100%; justify-content: center; max-width: 220px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { width: 32px; height: 1px; }

    .phone-frame { width: 120px; height: 240px; border-radius: 20px; }
    .phone-glow { border-radius: 22px; }

    .carousel-slide { flex: 0 0 130px; height: 260px; border-radius: 16px; }
    .carousel-btn { width: 28px; height: 28px; }

    .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
    .section-desc { font-size: 0.82rem; }

    .variant-card { padding: 28px 22px 24px; border-radius: 24px; }
    .variant-name { font-size: 20px; }
    .variant-vs { width: 52px; height: 52px; font-size: 11px; }

    .feature-card { padding: 20px 16px; }
    .feature-num { font-size: 28px; }

    .download-device-card h3 { font-size: 16px; }

    .device-modal-content { padding: 16px 12px; }
    .rom-card-header { gap: 4px; }
    .rom-card-meta { gap: 4px; }
    .rom-card-info { gap: 8px; font-size: 11px; }
    .rom-card-name { font-size: 15px; }

    .faq-question { padding: 14px 16px; font-size: 13px; }
    .faq-answer p { padding: 0 16px 14px; font-size: 12px; }

    .footer-links-group { gap: 18px; }
    .footer-col h4 { font-size: 11px; }
    .footer-col a { font-size: 11px; }

    .floating-social { bottom: 10px; right: 10px; }
    .floating-social-btn { width: 36px; height: 36px; }

    .contributor-card { padding: 20px 14px; }
    .contributors-grid { gap: 12px; }
}

/* ===== PREMIUM CARD ANIMATIONS ===== */
@keyframes cardBorderTrace {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

.device-card,
.contributor-card {
    position: relative;
}

.contributor-card.lead-card {
    border-color: rgba(167, 105, 48, 0.2);
}

.contributor-card.lead-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--copperwood), transparent 40%, transparent 60%, var(--bronze-spice));
    background-size: 200% 200%;
    animation: cardBorderTrace 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    z-index: -1;
}

/* ====================================================================
   DOWNLOAD PAGE
   ==================================================================== */

#downloadPage {
    min-height: 100vh;
    padding-top: 80px;
}

/* Loading / Error */
.download-page-loading,
.download-page-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 16px;
    color: var(--text-secondary);
}

.loader-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.download-page-error h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hidden { display: none !important; }

/* ===== DL BANNER ===== */
.dl-banner-wrap {
    max-width: 1100px;
    margin: 0 auto 32px;
    padding: 0 clamp(16px, 4vw, 40px);
}

.dl-banner {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    background: var(--midnight-violet);
}

/* ===== DL HERO ===== */
.dl-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 40px;
}

.dl-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.dl-back:hover { color: var(--copperwood); }

.dl-hero-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.dl-hero-info { flex: 1; }

.dl-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.dl-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(233, 227, 218, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.dl-badge-version {
    background: rgba(167, 105, 48, 0.1);
    color: var(--copperwood);
    border-color: rgba(167, 105, 48, 0.2);
}

.dl-badge-type {
    background: linear-gradient(135deg, rgba(167, 105, 48, 0.12), rgba(207, 96, 39, 0.08));
    color: var(--copperwood);
    border-color: rgba(167, 105, 48, 0.2);
}

.dl-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.dl-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.dl-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dl-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.dl-meta-item svg { color: var(--copperwood); }

.dl-hero-image {
    flex-shrink: 0;
}

.dl-hero-image img {
    width: 120px;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
}

/* ===== DL BODY ===== */
.dl-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 80px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.dl-main { flex: 1; min-width: 0; }

.dl-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

.dl-sidebar-card {
    padding: 24px;
}

.dl-sidebar-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

/* ===== DL SECTIONS ===== */
.dl-section {
    margin-bottom: 32px;
}

.dl-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Download Cards */
.dl-download-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.dl-download-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(167, 105, 48, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.dl-download-primary {
    border-color: rgba(167, 105, 48, 0.2);
    background: rgba(167, 105, 48, 0.06);
}

.dl-download-primary:hover {
    border-color: rgba(167, 105, 48, 0.35);
    background: rgba(167, 105, 48, 0.1);
    box-shadow: 0 8px 30px rgba(167, 105, 48, 0.15);
}

.dl-dc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(167, 105, 48, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--copperwood);
    flex-shrink: 0;
}

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

.dl-dc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dl-dc-filename {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-dc-action { flex-shrink: 0; }

/* Changelog */
.dl-cl-list {
    list-style: none;
}

.dl-cl-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(233, 227, 218, 0.03);
}

.dl-cl-list li:last-child { border: none; }

.dl-cl-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copperwood);
}

/* Notes */
.dl-notes-list {
    list-style: none;
}

.dl-notes-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dl-notes-list li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(167, 105, 48, 0.12);
    color: var(--copperwood);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screenshots */
.dl-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.dl-screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 9/16;
    background: var(--midnight-violet);
}

.dl-screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dl-screenshot-item:hover img { transform: scale(1.05); }

.dl-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.dl-link {
    color: var(--copperwood);
    text-decoration: none;
    font-size: 13px;
}

.dl-link:hover { text-decoration: underline; }

/* Flashing Instructions */
.dl-flash-section {
    margin-bottom: 24px;
}

.dl-flash-section:last-child { margin-bottom: 0; }

.dl-flash-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(233, 227, 218, 0.06);
}

.dl-flash-title svg { color: var(--copperwood); flex-shrink: 0; }

.dl-flash-method {
    margin-bottom: 16px;
}

.dl-flash-method:last-child { margin-bottom: 0; }

.dl-flash-method h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dl-flash-method ol {
    list-style: none;
    counter-reset: flash-step;
    padding-left: 0;
}

.dl-flash-method ol li {
    counter-increment: flash-step;
    position: relative;
    padding: 5px 0 5px 28px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dl-flash-method ol li::before {
    content: counter(flash-step);
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(167, 105, 48, 0.1);
    color: var(--copperwood);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-flash-commands {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dl-flash-commands p {
    font-size: 13px;
    color: var(--text-secondary);
}

.dl-flash-commands code {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(233, 227, 218, 0.06);
    border: 1px solid rgba(233, 227, 218, 0.08);
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    color: var(--copperwood);
}

/* Sidebar Info */
.dl-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dl-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(233, 227, 218, 0.04);
    font-size: 13px;
}

.dl-info-row:last-child { border: none; }

.dl-info-label { color: var(--text-muted); }
.dl-info-value { color: var(--text-primary); font-weight: 500; }

/* Other Versions */
.dl-other-versions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dl-version-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dl-version-link:hover { background: rgba(233, 227, 218, 0.04); }

.dl-vl-version {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.dl-vl-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== DL RESPONSIVE ===== */
@media (max-width: 992px) {
    .dl-body { flex-direction: column; }
    .dl-sidebar { width: 100%; position: static; }
}

@media (max-width: 768px) {
    #downloadPage { padding-top: 70px; }
    .dl-banner { max-height: 200px; border-radius: 14px; }
    .dl-hero-row { flex-direction: column; text-align: center; }
    .dl-hero-image img { width: 80px; }
    .dl-badges { justify-content: center; }
    .dl-meta { justify-content: center; }
    .dl-download-card { flex-wrap: wrap; }
    .dl-dc-filename { white-space: normal; }
    .dl-screenshots-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .dl-sidebar-card { padding: 18px; }
}

@media (max-width: 480px) {
    .dl-title { font-size: 1.5rem; }
    .dl-download-card { padding: 14px 16px; gap: 12px; }
    .dl-dc-icon { width: 40px; height: 40px; border-radius: 10px; }
    .dl-dc-label { font-size: 13px; }
    .dl-screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}