/* 
   WDECK ULTIMATE - Official Website CSS
   Design System: Ultra-Premium Studio Cyber Glassmorphism / Dark UI
   Redesigned to meet MASTER.md design system specifications.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Master Design System Colors (aligned with purple/blue Wdeck logo and OLED dark theme) */
    --color-primary: #9c5cff;
    /* Bright purple from logo */
    --color-on-primary: #FFFFFF;
    --color-secondary: #3b82f6;
    /* Royal/dodger blue from logo */
    --color-accent: #3b82f6;
    /* Accent color */
    --color-background: #040406;
    /* Deep OLED dark black */
    --color-foreground: #FFFFFF;
    --color-muted: #0a0a0f;
    /* Very dark background for card backdrops */
    --color-border: transparent;
    --color-destructive: #ef4444;
    --color-ring: #9c5cff;

    /* Legacy compatibility mappings (refactored to new color system) */
    --bg-deep: var(--color-background);
    --bg-dark: #07070a;
    --accent: var(--color-primary);
    --accent-glow: rgba(156, 92, 255, 0.15);
    --accent-hover: #b285ff;
    --secondary: var(--color-secondary);
    --secondary-glow: rgba(59, 130, 246, 0.15);
    --orange: var(--color-accent);
    /* Logo blue replacing legacy orange */
    --orange-glow: rgba(59, 130, 246, 0.15);
    --amber: #fbbf24;
    --text-primary: #ffffff;
    --text-muted: #8a8a9e;
    --glass: rgba(12, 12, 18, 0.65);
    --glass-border: transparent;
    --radius: 20px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;

    /* Spacing variables */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Shadow depths */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #040406;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 92, 255, 0.15);
    border-radius: 100px;
    border: 2px solid #040406;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 92, 255, 0.35);
}

[id] {
    scroll-margin-top: 100px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Cyber Dot Grid Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.025) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: -2;
}



/* --- Layout --- */

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

section {
    padding: 30px 0;
    scroll-margin-top: 100px;
}

/* --- Background Grains & Glows --- */

.ambient-glow {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(156, 92, 255, 0.09), transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: drift-slow 20s infinite alternate ease-in-out;
    filter: blur(80px);
}

.glow-top-right {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.06), transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: drift-slow-reverse 25s infinite alternate ease-in-out;
    filter: blur(80px);
}

@keyframes drift-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 15%) scale(1.15);
    }
}

@keyframes drift-slow-reverse {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, -15%) scale(1.1);
    }
}

/* --- Typography --- */

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(120deg, #ffffff 10%, #c084fc 40%, #60a5fa 70%, #ffffff 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shifting-gradient 6s linear infinite;
}

@keyframes shifting-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    background: rgba(18, 18, 26, 0.73);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

nav.nav-scrolled {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 64px);
    max-width: 1100px;
    background: rgba(10, 10, 15, 0.88);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(156, 92, 255, 0.15);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 32px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-scrolled .container {
    height: 58px;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 21px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.5s ease;
}

nav.nav-scrolled .logo {
    font-size: 19px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    transition: all 0.5s ease;
}

nav.nav-scrolled .logo img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    transition: all 0.5s ease;
}

nav.nav-scrolled .nav-links {
    gap: 16px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    position: relative;
}

nav.nav-scrolled .nav-links a {
    padding: 6px 12px;
    font-size: 13px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(156, 92, 255, 0.06);
    border-color: rgba(156, 92, 255, 0.1);
    transform: translateY(-1px);
}

.nav-links a.active,
.nav-links .nav-active {
    color: var(--text-primary) !important;
    background: linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box !important;
    border: 2px solid transparent !important;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
    text-shadow: none;
}

.nav-links a.active:hover,
.nav-links .nav-active:hover {
    background: linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box !important;
    border: 2px solid transparent !important;
    transform: none;
}

nav .btn-primary {
    padding: 12px 24px !important;
    font-size: 13px !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

nav.nav-scrolled .btn-primary {
    padding: 8px 18px !important;
    font-size: 13px !important;
    box-shadow: 0 0 15px rgba(156, 92, 255, 0.25) !important;
}

/* --- Hero Section (Side-by-Side) --- */

.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero .container {
    max-width: 1400px;
    /* Wider container for hero */
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* Better balance for wide container */
    gap: 40px;
    align-items: center;
}

.hero-text-side {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 24px;
}

h1.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 55px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 25px var(--accent-glow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-heading);
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(156, 92, 255, 0.45);
    background: linear-gradient(135deg, var(--accent-hover) 0%, #c49eff 100%);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(#08080c, #08080c) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box;
    border: 2px solid transparent !important;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(135deg, #007aff 0%, #7c3aed 100%) border-box;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

/* --- Features Grid --- */

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

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px 32px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(156, 92, 255, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(156, 92, 255, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(156, 92, 255, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 24px;
    border: 1px solid rgba(156, 92, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
}

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

/* --- Preview Section (Ambient & Ultra-Soft) --- */

.app-preview {
    margin-top: 0;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.app-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.hero-image-side .app-preview img {
    width: 120%;
    max-height: 560px;
    /* Naturally large without extreme overflow */
    max-width: none;
    object-fit: contain;
    transform: none;
    /* No more offset that causes clipping */
}

.hero-image-side .app-preview:hover img {
    transform: scale(1.03);
}

.app-preview:hover img {
    transform: scale(1.02);
}

/* Specific style for section previews to prevent layout breaking */
section .app-preview {
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
}

/* Specific mask for hardware side-by-side - very diffuse */
.hardware-preview {
    margin-top: 0;
}

/* --- Technical & Documentation Sections --- */

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
}

#project .section-title {
    margin-bottom: 15px;
}

#project .app-preview {
    margin-top: 0px;
}

/* Installation Steps */

.installation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step-card {
    display: flex;
    gap: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.step-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-info p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Wiring Section Styles */

.wiring-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--amber);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

.spec-card strong {
    display: block;
    color: var(--amber);
    margin-bottom: 4px;
}

.wiring-diagram-side {
    margin-top: 65px;
}

@media (max-width: 968px) {
    .wiring-diagram-side {
        margin-top: 20px;
    }
}

/* Detailed Wiring List */
.wiring-details {
    margin-top: 40px;
    display: grid;
    gap: 32px;
}

.wiring-group h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wiring-group h4 i {
    color: var(--accent);
    font-size: 14px;
}

.pin-list {
    display: grid;
    gap: 10px;
}

.pin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.2s;
}

.pin-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.wire-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

/* Wire Colors */
.wire-red {
    background: #ff4d4d;
    color: #ff4d4d;
}

.wire-black {
    background: #333;
    color: #666;
    border: 1px solid #444;
}

.wire-purple {
    background: #a855f7;
    color: #a855f7;
}

.wire-brown {
    background: #92400e;
    color: #92400e;
}

.wire-orange {
    background: #f97316;
    color: #f97316;
}

.wire-yellow {
    background: #eab308;
    color: #eab308;
}

.wire-turquoise {
    background: #06b6d4;
    color: #06b6d4;
}

.wire-pink {
    background: #ec4899;
    color: #ec4899;
}

.wire-blue {
    background: #3b82f6;
    color: #3b82f6;
}

.wire-gray {
    background: #94a3b8;
    color: #94a3b8;
}

.wire-green {
    background: #22c55e;
    color: #22c55e;
}

/* Ultra-Compact Connection List */
.connection-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    padding-left: 5px;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 6px;
    font-size: 12px;
    transition: 0.1s;
    border-left: 2px solid var(--item-color, var(--accent));
}

.path-from {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 80px;
}

.path-arrow {
    color: var(--accent);
    opacity: 0.3;
}

.path-to {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: var(--amber);
}

.path-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Connection Colors */
.path-red {
    --item-color: #ff4d4d;
}

.path-black {
    --item-color: #444;
}

.path-orange {
    --item-color: #f97316;
}

.path-yellow {
    --item-color: #eab308;
}

.path-turquoise {
    --item-color: #06b6d4;
}

.path-green {
    --item-color: #22c55e;
}

.path-pink {
    --item-color: #ec4899;
}

.path-brown {
    --item-color: #92400e;
}

.path-gray {
    --item-color: #94a3b8;
}

.path-blue {
    --item-color: #3b82f6;
}

.path-purple {
    --item-color: #a855f7;
}

/* Installation Journey */
.journey-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.journey-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.journey-step:nth-child(even) {
    direction: rtl;
}

.journey-step:nth-child(even) .step-text {
    direction: ltr;
}

.step-text h3 {
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 20px;
}

.journey-step .step-number {
    position: relative;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
    margin-left: -5px;
    z-index: 1;
    display: inline-block;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Reset styles from global .step-number */
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.journey-step .step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    transition: 0.6s ease;
}

.journey-step:hover .step-number {
    color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.journey-step:hover .step-number::before {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.15);
}

.step-visual {
    position: relative;
    border-radius: 0;
    background: transparent;
    border: none;
}

.step-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.journey-step:hover .step-visual img {
    transform: scale(1.05);
}

/* Glowing background orbs for each step */

.step-1 {
    --glow-color: #3b82f6;
}

.step-2 {
    --glow-color: #a855f7;
}

.step-3 {
    --glow-color: #f59e0b;
}

@media (max-width: 968px) {

    .journey-step,
    .journey-step:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }
}

/* --- Stats Bar --- */

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 32px;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- Footer --- */

footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

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

.footer-links {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 20px;
    transition: 0.3s;
}

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

/* --- Animations --- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* --- Responsive --- */

@media (max-width: 968px) {
    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 40px;
        align-items: flex-start;
    }

    h1.hero-title {
        font-size: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text-side {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links {
        display: none;
    }

    .stats-bar {
        flex-direction: column;
        gap: 40px;
        border-radius: 30px;
    }

    .app-preview {
        margin-top: 40px;
    }

    .app-preview img {
        width: 100%;
        transform: none;
    }

    .hero-image-side .app-preview img {
        max-height: 380px;
        object-fit: contain;
    }

    #project {
        margin-top: 10px;
    }

    .app-preview:hover img {
        transform: scale(1.05);
    }
}

/* --- BOM Section Styles --- */

#bom {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

.bom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.bom-table-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.bom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bom-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.bom-table td {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 15px;
}

.bom-table tr:last-child td {
    border-bottom: none;
}

.bom-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.bom-link:hover {
    color: white;
}

.bom-summary .glass-card {
    padding: 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.difficulty-meter {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 15px 0;
}

.difficulty-meter .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.difficulty-meter .dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.difficulty-meter p {
    margin: 0;
    margin-left: 10px;
    font-size: 14px;
}

/* --- Assembly Section Styles --- */

#assembly {
    padding: 100px 0;
}

.assembly-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.assembly-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.4s;
}

.assembly-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.assembly-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.assembly-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

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

.pro-tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* --- Parts List Grid --- */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
}

.part-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 32px 24px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.part-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(156, 92, 255, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.part-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(156, 92, 255, 0.35);
    box-shadow: 0 20px 40px rgba(156, 92, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
}

.part-image {
    width: 100%;
    height: 180px;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 5px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.part-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.5s ease;
}

.part-card:hover .part-image img {
    transform: scale(1.05);
}

.part-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: white;
}

.part-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.part-quantity {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 800;
}

.part-link {
    width: 100%;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 12px;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.part-link:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--accent-glow);
    color: white;
}

/* --- Spec Overview Bar --- */
.spec-overview {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-overview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.spec-overview-item i {
    color: var(--accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.spec-overview-item span {
    color: var(--text-muted);
}

.spec-overview-item strong {
    color: var(--text);
}

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

.tip-card {
    background: rgba(255, 179, 0, 0.05);
    /* Subtle Amber for tips */
    border: 1px solid rgba(255, 179, 0, 0.2);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.tip-card i {
    font-size: 24px;
    color: #ffb300;
}

.tip-card h4 {
    margin-bottom: 4px;
    color: #ffb300;
}

.tip-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- FAQ Section Styles --- */

#project {
    margin-top: 100px;
}

#faq {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.1);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: white;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Community & Roadmap Styles --- */

#community {
    padding: 120px 0;
}

.roadmap-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .roadmap-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.roadmap-list {
    margin-top: 40px;
}

.roadmap-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.roadmap-item.active {
    border-left-color: var(--accent);
    background: linear-gradient(to right, rgba(124, 58, 237, 0.1), transparent);
}

.roadmap-item .version {
    font-weight: 800;
    font-size: 14px;
    color: var(--accent);
    min-width: 60px;
}

.roadmap-item p {
    font-size: 15px;
    color: var(--text-muted);
}

.community-cta .glass-card {
    padding: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    text-align: center;
}

.community-cta h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.community-cta .cta-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.community-cta .btn-primary,
.community-cta .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.community-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.community-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- Downloads Section Styles --- */

#downloads {
    padding: 100px 0;
    position: relative;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 50px;
    justify-content: center;
}

.download-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px 24px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.download-card:hover {
    background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
    transform: translateY(-8px);
}

.download-header {
    display: contents;
    /* Strip wrappers for grid symmetry */
}

.download-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent);
    transition: 0.3s;
}

.download-card:hover .download-icon {
    transform: scale(1.1);
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.1);
}

.download-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: white;
}

.download-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.download-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.download-btn {
    width: 100%;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 13px;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--accent-glow);
}

/* --- Discord Status Widget Styles (Reference Match) --- */
.discord-status-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 35px 0;
}

.discord-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(88, 101, 242, 0.08);
    /* Discord color hint */
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius);
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.discord-preview:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.discord-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.discord-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.discord-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discord-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid rgba(5, 5, 8, 1);
    /* Match footer bg */
}

.discord-status-dot.online {
    background: #3ba55c;
}

.discord-status-dot.idle {
    background: #faa61a;
}

.discord-status-dot.dnd {
    background: #ed4245;
}

.discord-status-dot.offline {
    background: #747f8d;
}

.discord-user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.discord-username {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.discord-status-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-activity-text {
    font-size: 12px;
    color: #4ade80;
    /* Light green highlight for active games/songs */
    font-weight: 500;
    margin-top: 4px;
    max-width: 190px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* --- Card Glow Effect --- */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.discord-preview:hover .card-glow {
    opacity: 1;
    transform: scale(1.1);
}

/* --- UI Enhancements: Back to Top, Modal, Toasts --- */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

/* Wiring Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

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

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.95);
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: none !important;
    outline: none !important;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: var(--text-muted);
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.interactable-diagram {
    position: relative;
}

.zoom-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 20px var(--accent-glow);
}

.interactable-diagram:hover .zoom-hint {
    opacity: 1;
}

/* Video Placeholder Hover */
.video-placeholder:hover img {
    filter: brightness(0.4) !important;
    transform: scale(1.02);
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.15) !important;
    background: var(--secondary) !important;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.7) !important;
}

@media (max-width: 768px) {
    .modal-close {
        top: -30px;
        right: 0;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUpFade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.toast.hiding {
    animation: slideDownFade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.menu-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* App Capabilities Showcase Rows */
.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 40px;
}

.feature-row>div {
    flex: 1 1 400px;
}

.feature-text h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.feature-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
}

.feature-list i {
    color: var(--accent);
    font-size: 18px;
    background: rgba(124, 58, 237, 0.1);
    padding: 8px;
    border-radius: 8px;
}

@media (max-width: 968px) {
    nav {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 100%;
        border-radius: 16px;
        background: rgba(6, 6, 9, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    nav.nav-scrolled {
        top: 6px;
        width: calc(100% - 12px);
        background: rgba(4, 4, 6, 0.92);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        animation: none;
    }

    nav .container {
        height: 60px;
        padding: 0 16px;
    }

    nav.nav-scrolled .container {
        height: 60px;
        padding: 0 16px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    nav.nav-scrolled .logo img {
        width: 32px;
        height: 32px;
    }

    nav .btn-primary {
        display: none;
        /* Hide download button on mobile nav */
    }

    .menu-toggle {
        display: block;
        padding: 5px;
        position: relative;
        z-index: 1005;
        /* Has to be above the menu overlay */
    }

    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: rgba(4, 4, 6, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        z-index: 999;
    }

    .nav-links.mobile-menu-active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 18px;
    }
}

/* --- Customization Section & Video Frame --- */
.customization-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.customization-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.customization-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.customization-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.customization-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.color-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
}

.color-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.color-badge i {
    color: var(--badge-color);
    font-size: 10px;
    filter: drop-shadow(0 0 4px var(--badge-color));
}

.customization-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-frame {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: scale(1.15);
    transform-origin: center;
    aspect-ratio: 16 / 9;
}

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

.video-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
    pointer-events: none;
}

@media (max-width: 968px) {
    .customization-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Contact Section Styles --- */
#contact {
    padding: 30px 0 80px;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.contact-card.feature-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.contact-card.feature-card .discord-preview,
.contact-card.feature-card .btn-primary {
    margin-top: auto;
}

.discord-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.dev-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discord-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #101014;
    /* Match card background */
}

.discord-status-dot.online {
    background: #22c55e;
}

.discord-status-dot.idle {
    background: #eab308;
}

.discord-status-dot.dnd {
    background: #ef4444;
}

.discord-status-dot.offline {
    background: #6b7280;
}

.contact-form-card.feature-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    flex-grow: 1;
    width: 100%;
}

.contact-form button[type="submit"] {
    margin-top: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Navigation width fix for medium screens */
@media (min-width: 969px) and (max-width: 1150px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    nav .container {
        padding: 0 20px;
    }
}

/* --- Discord Activity Widget CSS --- */
.discord-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.discord-activity-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1;
    min-width: 0;
    /* Allow inner text overflow ellipsis to work */
}

.activity-art-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    overflow: hidden;
}

.activity-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.activity-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.activity-name {
    font-size: 13px;
    color: white;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.activity-detail {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Spotify EQ Animation */
.spotify-eq {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding-bottom: 8px;
}

.spotify-eq span {
    width: 3px;
    height: 3px;
    background: #1db954;
    /* Spotify green */
    border-radius: 99px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.spotify-eq span:nth-child(2) {
    animation-delay: 0.15s;
    animation-duration: 0.6s;
}

.spotify-eq span:nth-child(3) {
    animation-delay: 0.3s;
    animation-duration: 0.75s;
}

.activity-art.spinning {
    animation: spinArt 12s linear infinite;
    border-radius: 50%;
}

@keyframes spinArt {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 500px) {
    .discord-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px !important;
        padding: 20px !important;
    }

    .discord-activity-widget {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        width: 100%;
    }
}

/* --- Visual Cards for Step-by-Step Guide --- */
.visual-card {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.7), rgba(10, 10, 14, 0.95)) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    width: 100%;
}

.visual-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.visual-card:hover {
    border-color: rgba(124, 58, 237, 0.25) !important;
    box-shadow: 0 30px 60px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.visual-card-icon {
    font-size: 56px;
    color: var(--accent);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-card:hover .visual-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.visual-card h4 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    z-index: 2;
    letter-spacing: -0.01em;
}

.visual-card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 24px;
    z-index: 2;
}

.visual-card-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    transition: all 0.3s ease;
}

.visual-card:hover .visual-card-badge {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--accent-hover);
}

/* Custom styling for the introduction welcome card in step-01 */
.welcome-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.welcome-phase-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.welcome-phase-badge:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

.welcome-phase-badge i {
    font-size: 24px;
    color: var(--accent-hover);
    margin-bottom: 10px;
}

.welcome-phase-badge span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.welcome-phase-badge p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* ============================================================
   MULTI-PAGE STYLES — page hero, nav-active, etc.
   ============================================================ */

/* --- Nav Active State --- */
.nav-links .nav-active {
    color: var(--text-primary) !important;
    background: linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box !important;
    border: 2px solid transparent !important;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.15) !important;
}

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

/* --- Page Hero (inner pages) --- */
.page-hero {
    padding: 150px 0 10px;
    text-align: center;
    position: relative;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--accent-hover);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.page-hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Next Steps CTA Block --- */
.next-steps-cta {
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(0, 122, 255, 0.05));
    border: 1px solid var(--glass-border);
    margin: 40px 0;
}

.next-steps-cta h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
}

.next-steps-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   HOMEPAGE-SPECIFIC STYLES
   ============================================================ */

/* --- Section eyebrow label --- */
.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-hover);
    margin-bottom: 12px;
}

/* --- Hero badge (home) --- */
.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--accent-hover);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* --- Bento Grid Showcase --- */
.bento-section {
    padding-top: 20px;
    padding-bottom: var(--space-2xl);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.bento-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.bento-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
}

.bento-story {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    width: fit-content;
}

.bento-card h3 {
    font-size: 24px;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.bento-stats-row {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
    padding-top: var(--space-lg);
}

.bento-stat {
    display: flex;
    flex-direction: column;
}

.bento-stat-val {
    font-size: 32px;
    font-weight: 900;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #fff 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}

.bento-print {
    grid-column: span 1;
    grid-row: span 2;
    position: relative;
}

.bento-print .bento-card-header,
.bento-print .bento-card-body {
    position: relative;
    z-index: 2;
}

.bento-card-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bento-card-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: grayscale(1);
    transition: transform 800ms ease, opacity 800ms ease, filter 800ms ease;
}

.bento-card:hover .bento-card-bg-video video {
    transform: scale(1.03);
    opacity: 0.25;
    filter: grayscale(0.2);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(#08080c, #08080c) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box;
    border: 2px solid transparent !important;
    color: white;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    margin-top: var(--space-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    width: fit-content;
}

.btn-action:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-printables:hover {
    background: #ff5c00 !important;
    border-color: #ff5c00 !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(255, 92, 0, 0.4) !important;
}

.bento-feature {
    grid-column: span 1;
    grid-row: span 1;
    justify-content: flex-start;
}

.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-bottom: var(--space-md);
    transition: all 200ms ease;
}

.bento-card:hover .bento-icon-wrapper {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.bento-link-card {
    grid-column: span 2;
    grid-row: span 1;
    position: relative;
    min-height: 200px;
}

.bento-link-card .bento-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transition: transform 800ms ease;
    z-index: 0;
}

.bento-link-card .bento-card-body {
    position: relative;
    z-index: 1;
}

.bento-card:hover .bento-card-bg {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .bento-story,
    .bento-print,
    .bento-link-card {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- Gallery Grid --- */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-auto-flow: dense;
    gap: var(--space-lg);
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 8, 0.75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 6px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 22px;
    color: white;
}

.gallery-overlay span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Span entire first column */
.gallery-large {
    grid-row: span 2;
    aspect-ratio: unset;
}

/* Wide item spans 2 columns */
.gallery-wide {
    grid-column: span 2;
}

/* Video item - no zoom cursor */
.gallery-video-item {
    cursor: default;
}

.gallery-video-item img {
    transition: none;
}

.gallery-video-item:hover img {
    transform: none;
}

/* --- Video Row --- */
.home-video-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 20px 0 60px;
}

.home-video-card {
    position: relative;
}

.home-video-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.home-video-caption i {
    color: var(--accent-hover);
}

.home-video-text h3 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.home-video-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* --- Customization Section --- */
.customization-section {
    padding: 100px 0;
    position: relative;
}

.customization-grid {
    display: flex;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.customization-text-side {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
}

.customization-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.customization-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.custom-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.custom-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(156, 92, 255, 0.1);
    border: 1px solid rgba(156, 92, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.custom-feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.custom-feature-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Customizer Widget Visuals */
.customization-visual-side {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.customization-media-wrap {
    position: relative;
    width: 100%;
    max-width: 880px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.customization-media-wrap:hover {
    transform: translateY(-5px) scale(1.02);
}

.customization-cover-gif {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.customizer-widget {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(15px);
}

.customizer-wdeck-device {
    width: 100%;
    aspect-ratio: 1.45/1;
    background: #08080c;
    border-radius: 24px;
    border: 5px solid var(--theme-color);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdeck-screen-bezel {
    width: 100%;
    height: 100%;
    background: inherit;
    /* Same color as the chassis */
    border-radius: 18px;
    border: 6px solid #111116;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdeck-screen-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
}

.wdeck-btn {
    background: #0c0c12;
    border: 3px solid var(--theme-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    font-size: 14px;
    box-shadow: 0 0 10px var(--theme-color-glow);
    transition: all 0.4s ease;
    cursor: default;
}

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

.customizer-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.control-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.color-swatches {
    display: flex;
    gap: 12px;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.swatch:hover {
    transform: scale(1.15);
}

.swatch.active {
    border-color: white;
    transform: scale(1.1);
}

.swatch-purple {
    background: #9c5cff;
}

.swatch-blue {
    background: #3b82f6;
}

.swatch-emerald {
    background: #10b981;
}

.swatch-orange {
    background: #ff5c00;
}

.swatch-pink {
    background: #ec4899;
}

/* Responsive tweaks for Customizer */
@media (max-width: 900px) {
    .customization-grid {
        flex-direction: column;
        gap: 40px;
    }
}

/* --- Gallery Lightbox --- */
.gallery-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-overlay.open {
    display: flex;
    opacity: 1;
}

.gallery-lightbox-overlay img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
    object-fit: contain;
    border: none !important;
    outline: none !important;
}

.gallery-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    line-height: 1;
}

.gallery-lightbox-close:hover {
    color: white;
    transform: scale(1.1);
}

/* --- Page Navigation Cards --- */
.home-page-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.home-page-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.home-page-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 50%, rgba(156, 92, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-page-card:hover {
    background: linear-gradient(#0c0c12, #0c0c12) padding-box,
        linear-gradient(135deg, #7c3aed 0%, #007aff 100%) border-box;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(156, 92, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-page-card:hover::before {
    opacity: 1;
}

.home-page-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(156, 92, 255, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(156, 92, 255, 0.15);
}

.home-page-card:hover .home-page-card-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.home-page-card-text {
    flex: 1;
}

.home-page-card-text h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.home-page-card-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.home-page-card-arrow {
    color: var(--text-muted);
    font-size: 14px;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.home-page-card:hover .home-page-card-arrow {
    transform: translateX(4px);
    color: var(--accent-hover);
}

/* --- Responsive: Homepage --- */
@media (max-width: 900px) {
    .home-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-large {
        grid-row: span 1;
    }

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

    .home-video-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-page-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .home-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-wide {
        grid-column: span 1;
    }

    .home-story-stats {
        gap: 20px;
    }
}