/* 
   WDECK ULTIMATE - Official Website CSS
   Design System: Studio Glassmorphism / Dark UI
*/

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

:root {
    --bg-deep: #050508;
    --bg-dark: #0a0a0f;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --amber: #f59e0b;
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 24px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

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

[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;
}

/* --- 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: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.glow-top-right {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* --- Typography --- */

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

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--accent-glow);
}
.nav-links a.active {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

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

.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 20px;
    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: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.5);
    background: #7376ff;
}

/* --- 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;
    border-radius: var(--radius);
    transition: 0.4s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

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

/* --- 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;
    filter: saturate(1.1) brightness(1.1);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

/* Specific enlargement for Hero image */
.hero-image-side .app-preview {
    /* Mask removed */
}

.hero-image-side .app-preview img {
    width: 110%;
    /* 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);
}

/* 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;
}

/* 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: 'Outfit', sans-serif;
    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) {
    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;
    }

    .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: transparent;
    border: none;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.part-card:hover {
    transform: translateY(-5px);
}

.part-image {
    width: 100%;
    height: 180px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
    border: none;
}

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

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

.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 rgba(99, 102, 241, 0.2);
}

.part-link:hover {
    background: #7376ff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    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(99, 102, 241, 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: transparent;
    border: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.download-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(99, 102, 241, 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 rgba(99, 102, 241, 0.2);
}

.download-btn:hover {
    background: #7376ff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

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

.discord-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: rgba(88, 101, 242, 0.1);
    /* Discord color hint */
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 99px;
    /* Pill shape */
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.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;
}

/* --- 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(5, 5, 8, 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);
}

.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(99, 102, 241, 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(99, 102, 241, 0.1);
    padding: 8px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    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(5, 5, 8, 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;
    }
}