/* ==========================================================================
   A-Desk Marketing Single Page Application Stylesheet
   Design System matching A-Desk Desktop Palette & Brand Identity
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Color Palette - Dark (Default) */
    --bg-main: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #334155;
    --bg-glass: rgba(15, 23, 42, 0.85);
    --bg-card-glass: rgba(30, 41, 59, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(96, 165, 250, 0.3);

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --text-inverse: #0f172a;

    /* Brand Accent Colors */
    --brand-primary: #1e3a8a;
    --brand-blue: #2563eb;
    --brand-light: #60a5fa;
    --brand-cyan: #00e0ff;
    --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%);
    --brand-glow: rgba(0, 224, 255, 0.15);
    --brand-subtle: rgba(37, 99, 235, 0.12);

    /* Status Colors */
    --success: #10b981;
    --success-subtle: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-subtle: rgba(245, 158, 11, 0.12);
    --purple: #8b5cf6;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(0, 224, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides (High-Contrast & Crisp Typography) */
html[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-glass: rgba(248, 250, 252, 0.92);
    --bg-card-glass: rgba(255, 255, 255, 0.95);
    --border-color: rgba(30, 58, 138, 0.12);
    --border-color-hover: rgba(37, 99, 235, 0.45);

    --text-main: #0f172a;
    --text-muted: #334155;
    --text-subtle: #475569;
    --text-inverse: #ffffff;

    --brand-cyan: #0284c7;
    --brand-light: #1d4ed8;
    --brand-blue: #2563eb;
    --brand-glow: rgba(37, 99, 235, 0.12);
    --brand-subtle: rgba(37, 99, 235, 0.08);

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(30, 58, 138, 0.08);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
}

/* Light Mode High-Contrast Component Overrides */
html[data-theme="light"] .section-tag {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
}

html[data-theme="light"] .asset-type-badge {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}

html[data-theme="light"] .meta-tag {
    color: #475569;
}

html[data-theme="light"] .meta-tag.os-tag {
    color: #1d4ed8;
}

html[data-theme="light"] .release-date {
    color: #475569;
}

html[data-theme="light"] .mockup-header {
    background: #1e293b;
    color: #f8fafc;
}

html[data-theme="light"] .mockup-title {
    color: #cbd5e1;
}

html[data-theme="light"] .md-inline {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: #0284c7;
}

html[data-theme="light"] .hero-subtitle {
    color: #334155;
}

html[data-theme="light"] .btn-outline {
    background: #ffffff;
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    color: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

html[data-theme="light"] .btn-outline:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: #2563eb;
    color: #1d4ed8;
}

html[data-theme="light"] .btn-outline .os-pill {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

html[data-theme="light"] .theme-btn,
html[data-theme="light"] .mobile-toggle {
    background: #ffffff;
    border: 1px solid rgba(30, 58, 138, 0.2);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .nav-link {
    color: #475569;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: var(--brand-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-cyan);
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    outline: none;
}

/* Background Glowing Orbs */
.bg-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
}

.orb-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Gradient Text */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--brand-subtle);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--brand-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.55rem, 3.2vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-desc {
    color: var(--text-muted);
    font-size: clamp(0.92rem, 1.6vw, 1.1rem);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

/* Official A-Desk Logo Image */
.brand-logo {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height var(--transition-fast);
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 38px;
    }
}

/* Stylized A-Desk Text Beside Navbar Logo */
.brand-text-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    user-select: none;
}

.brand-a {
    color: var(--text-main);
}

.brand-desk {
    background: linear-gradient(135deg, #00e0ff 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animated Brand Tag Pill */
.hero-brand-pill {
    padding: 8px 24px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(0, 224, 255, 0.35);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.2), 0 0 10px rgba(37, 99, 235, 0.2);
    animation: brandPillGlow 4s ease-in-out infinite alternate;
}

html[data-theme="light"] .hero-brand-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.hero-brand-animated {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00e0ff 0%, #60a5fa 35%, #2563eb 70%, #00e0ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoShimmer 4s linear infinite;
}

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

@keyframes brandPillGlow {
    0% { border-color: rgba(0, 224, 255, 0.3); box-shadow: 0 0 15px rgba(0, 224, 255, 0.15); }
    50% { border-color: rgba(96, 165, 250, 0.6); box-shadow: 0 0 30px rgba(0, 224, 255, 0.35); }
    100% { border-color: rgba(37, 99, 235, 0.5); box-shadow: 0 0 20px rgba(37, 99, 235, 0.25); }
}

/* Version Badge in Header Corner */
.header-version-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid rgba(0, 224, 255, 0.3);
    color: var(--brand-cyan);
    font-size: 0.78rem;
    font-weight: 700;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand-cyan);
    box-shadow: 0 0 8px var(--brand-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* Scroll Margin for Smooth Fixed Header Offset */
section[id] {
    scroll-margin-top: 95px;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.25);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

/* Nav Menu & Animated Underline Indicator */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-cyan);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--brand-cyan);
}

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

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

/* Header Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.theme-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

.btn-outline {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Mobile Nav Toggle & Dropdown */
.mobile-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--text-main);
    background: none;
}

.mobile-nav-dropdown {
    display: none;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 10px;
    gap: 12px;
}

.mobile-nav-dropdown.open {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-main);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
    background: var(--bg-surface-hover);
}

/* --------------------------------------------------------------------------
   4. Hero Section (100vh Full Screen & 2-Column Grid Layout)
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 85px;
    padding-bottom: 25px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Tech Box Grid Pattern Background (Blueprint Grid) */
.hero-dot-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 90%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 90%);
}

html[data-theme="light"] .hero-dot-pattern {
    background-image: 
        linear-gradient(to right, rgba(37, 99, 235, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.09) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 95%);
}

.hero-container {
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 1420px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr;
    gap: 32px;
    align-items: center;
}

/* Version & Release Pill Badge */
.hero-release-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.badge-v {
    background: rgba(0, 224, 255, 0.12);
    border: 1px solid rgba(0, 224, 255, 0.3);
    color: var(--brand-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.badge-new {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* Hero Headline & Blue Gradient Text */
.hero-title {
    font-size: clamp(1.85rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-main);
}

.gradient-text-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #00e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(0.92rem, 1.6vw, 1.12rem);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 540px;
}

/* Download Group & Action Cards */
.hero-download-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: 14px;
    text-decoration: none;
    transition: all var(--transition-normal);
    min-width: 220px;
}

.download-card.card-windows {
    background: linear-gradient(135deg, #1d68f3 0%, #1752c4 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(29, 104, 243, 0.35);
}

.download-card.card-windows:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(29, 104, 243, 0.5);
    color: #ffffff;
}

.download-card.card-linux {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.download-card.card-linux:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
}

.download-card-icon {
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card.card-windows .download-card-icon {
    color: #ffffff;
}

.download-card.card-linux .download-card-icon {
    color: var(--text-main);
}

.download-card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.download-card-sub {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Trust Badges Row */
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.green-icon {
    color: #10b981;
    font-size: 0.88rem;
}

.trust-icon-svg {
    width: 15px;
    height: 15px;
    color: #10b981;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Laptop Device Mockup - Large Overall Size & 3D Perspective Angle on Desktop */
.hero-visual-content {
    perspective: 1400px;
    width: 100%;
    padding: 10px 0;
}

.hero-laptop-wrapper {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
    .hero-laptop-wrapper {
        transform: rotateY(-14deg) rotateX(6deg) rotateZ(2deg) scale(1.05);
        transform-style: preserve-3d;
    }

    .hero-visual-content:hover .hero-laptop-wrapper {
        transform: rotateY(-5deg) rotateX(2deg) rotateZ(1deg) scale(1.08);
    }
}

.laptop-device {
    position: relative;
    width: 100%;
    background: #0f172a;
    border-radius: 14px 14px 0 0;
    border: 8px solid #1e293b;
    border-bottom: none;
    box-shadow: -20px 30px 60px -10px rgba(0, 0, 0, 0.75), 0 0 50px rgba(0, 224, 255, 0.2);
    overflow: hidden;
}

html[data-theme="light"] .laptop-device {
    border-color: #cbd5e1;
    background: #ffffff;
}

.laptop-screen {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-camera {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #334155;
    border-radius: 50%;
    z-index: 2;
}

.laptop-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.laptop-img.fade-out {
    opacity: 0;
}

.laptop-base {
    position: relative;
    width: 112%;
    height: 14px;
    margin-left: -6%;
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .laptop-base {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
}

.laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 4px;
    background: #0f172a;
    border-radius: 0 0 6px 6px;
}

.laptop-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(35px);
}

/* --------------------------------------------------------------------------
   4b. Screenshot Showcase Section
   -------------------------------------------------------------------------- */
.showcase {
    padding: 60px 0 100px;
    position: relative;
    background: transparent;
    border: none;
}

html[data-theme="light"] .showcase {
    background: transparent;
}

/* Real Image App Mockup Container */
.hero-mockup {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    overflow: hidden;
}

.mockup-header {
    height: 44px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-theme-indicator {
    font-size: 0.78rem;
    color: var(--brand-cyan);
    font-weight: 600;
}

.mockup-image-wrapper {
    width: 100%;
    background: var(--bg-main);
    line-height: 0;
    overflow: hidden;
    display: flex;
}

.mockup-real-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    transition: opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. Key Highlights / Benefits Section
   -------------------------------------------------------------------------- */
.highlights {
    padding: 80px 0;
    border: none;
    background: transparent;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.highlight-card {
    background: var(--bg-card-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-sm);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--brand-subtle);
    color: var(--brand-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.highlight-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Over-title Section Label (Sky Blue Accent) */
.section-overtitle {
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

html[data-theme="light"] .section-overtitle {
    color: #0284c7;
}

/* --------------------------------------------------------------------------
   6. Detailed Features Showcase Section (Version Portal Design)
   -------------------------------------------------------------------------- */
.features {
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card-portal {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

html[data-theme="light"] .feature-card-portal {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 58, 138, 0.12);
}

.feature-card-portal:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .feature-card-portal:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.08);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.25rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.12);
    transition: all 0.3s ease;
}

.feature-card-portal:hover .feature-icon-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
    transform: scale(1.04);
}

html[data-theme="light"] .feature-icon-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
    border-color: rgba(37, 99, 235, 0.25);
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.feature-card-title {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-card-desc {
    font-size: clamp(0.86rem, 1.3vw, 0.94rem);
    color: var(--text-muted);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. Live Releases Timeline & Downloads Section (Version Portal Design)
   -------------------------------------------------------------------------- */
.releases {
    padding: 100px 0;
    background: transparent;
    border-top: 1px solid var(--border-color);
}

.releases-timeline-wrapper {
    position: relative;
    padding-left: 28px;
    margin-top: 32px;
}

.timeline-rail {
    position: absolute;
    left: 8px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

html[data-theme="light"] .timeline-rail {
    background: rgba(30, 58, 138, 0.12);
}

.release-card-timeline {
    position: relative;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .release-card-timeline {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 58, 138, 0.12);
}

.release-card-timeline:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.timeline-node {
    position: absolute;
    left: -27px;
    top: 38px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
}

.timeline-node.node-latest {
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.timeline-node.node-past {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.badge-latest-stable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 12px;
}

.asset-buttons-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    padding-bottom: 8px;
    border-top: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
}

.asset-buttons-group::-webkit-scrollbar {
    height: 4px;
}

.asset-buttons-group::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.asset-buttons-group::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.btn-asset {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.asset-dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.74rem;
    font-weight: 700;
}

html[data-theme="light"] .asset-dl-badge {
    background: rgba(0, 0, 0, 0.08);
}

.btn-asset-appimage {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

html[data-theme="light"] .btn-asset-appimage {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.3);
    color: #0284c7;
}

.btn-asset-appimage:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    transform: translateY(-2px);
}

.btn-asset-deb {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #34d399;
}

html[data-theme="light"] .btn-asset-deb {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

.btn-asset-deb:hover {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    transform: translateY(-2px);
}

.btn-asset-msi {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

html[data-theme="light"] .btn-asset-msi {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563eb;
}

.btn-asset-msi:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    transform: translateY(-2px);
}

.btn-asset-github {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

html[data-theme="light"] .btn-asset-github {
    background: #f1f5f9;
    border-color: rgba(30, 58, 138, 0.2);
    color: #0f172a;
}

.btn-asset-github:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-main);
    transform: translateY(-2px);
}

html[data-theme="light"] .btn-asset-github:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.release-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.release-search-wrapper {
    position: relative;
    width: 340px;
}

.release-search-wrapper input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.release-search-wrapper input:focus {
    border-color: var(--brand-blue);
}

.release-search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
}

/* Release Container */
.releases-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Single Release Card */
.release-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition-normal);
}

.release-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-sm);
}

.release-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.release-title-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.release-tag {
    font-size: 1.5rem;
    font-weight: 700;
}

.badge-status {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-latest {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.release-date {
    color: var(--text-subtle);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Release Notes / Body Markdown Styling */
.release-body, .release-body-inner {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.release-body .md-h3, .release-body-inner .md-h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 16px;
    margin-bottom: 10px;
}

.release-body .md-h4, .release-body-inner .md-h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 14px;
    margin-bottom: 8px;
}

.release-body .md-h5, .release-body-inner .md-h5 {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--brand-light);
    margin-top: 12px;
    margin-bottom: 6px;
}

.release-body .md-p, .release-body-inner .md-p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.release-body .md-list, .release-body-inner .md-list, .release-body-inner ul {
    list-style: none !important;
    list-style-type: none !important;
    margin-bottom: 14px;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.release-body .md-list-item, .release-body-inner .md-list-item, .release-body-inner li {
    list-style: none !important;
    list-style-type: none !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-main);
}

.release-body-inner li::before {
    content: none !important;
}

.release-body .md-list-icon, .release-body-inner .md-list-icon {
    color: var(--success);
    font-size: 0.9rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.release-body .md-inline, .release-body-inner .md-inline {
    background: rgba(0, 224, 255, 0.08);
    border: 1px solid rgba(0, 224, 255, 0.2);
    color: var(--brand-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

.release-body .md-code-block, .release-body-inner .md-code-block {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--brand-light);
    margin-bottom: 14px;
}

.release-body .md-link, .release-body-inner .md-link {
    color: var(--brand-light);
    text-decoration: underline;
    font-weight: 500;
}

.release-body .md-link:hover, .release-body-inner .md-link:hover {
    color: var(--brand-cyan);
}

/* Assets Download Grid */
.release-assets-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Redesigned Structured Asset Card */
.asset-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all var(--transition-fast);
    position: relative;
}

.asset-card:hover {
    border-color: var(--brand-blue);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.asset-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.asset-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-card.is-win .asset-icon-box {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(96, 165, 250, 0.35);
    color: #60a5fa;
}

.asset-card.is-deb .asset-icon-box {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.35);
    color: #f97316;
}

.asset-card.is-appimage .asset-icon-box {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.asset-header-info {
    flex: 1;
    min-width: 0;
}

.asset-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.asset-format-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-type-badge {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--brand-subtle);
    border: 1px solid rgba(0, 224, 255, 0.25);
    color: var(--brand-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.asset-platform-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.asset-card-mid {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

.asset-specs-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spec-dot {
    color: var(--text-subtle);
}

.asset-card-bottom {
    margin-top: 4px;
}

.asset-download-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand-blue);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.asset-download-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Collapsible Changelog Accordion */
.changelog-accordion {
    margin-top: 24px;
    border-top: 1px dashed var(--border-color);
    padding-top: 18px;
}

.changelog-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.changelog-toggle-btn:hover {
    border-color: var(--brand-light);
    color: var(--brand-cyan);
    background: var(--bg-surface-hover);
}

.changelog-toggle-btn .toggle-icon {
    font-size: 0.78rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
}

.changelog-toggle-btn .toggle-icon.rotated {
    transform: rotate(180deg);
}

.release-body-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.release-body-collapsible.open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 16px;
}

.release-body-inner {
    min-height: 0;
    overflow: hidden;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

/* Pagination Button */
.releases-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Loading & Error States */
.releases-loading, .releases-error {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--brand-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* --------------------------------------------------------------------------
   8. Security & Privacy Section
   -------------------------------------------------------------------------- */
.architecture {
    padding: 120px 0;
}

.arch-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.arch-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.arch-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.arch-points {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.arch-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.arch-point-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success-subtle);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.arch-point h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.arch-point p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Architecture Visual Graphic */
.arch-visual {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arch-node {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.arch-node-icon {
    font-size: 1.5rem;
    color: var(--brand-cyan);
}

.arch-node-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.arch-node-desc {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.arch-connector {
    height: 24px;
    width: 2px;
    background: var(--brand-blue);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   9. Footer Section
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: var(--bg-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.4fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 380px;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-credit-text {
    white-space: nowrap;
    color: var(--text-subtle);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-subtle);
    font-size: 0.88rem;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-color-hover);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .assets-grid {
        grid-template-columns: 1fr;
    }
    .asset-filename {
        max-width: 320px;
    }
}

@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .features-grid, .bento-grid { grid-template-columns: 1fr; gap: 16px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .arch-box { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 991px) {
    /* Prevent Horizontal Page Overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Mobile Header Navigation Layout */
    .nav-menu {
        display: none !important;
    }

    .nav-cta-btn {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        font-size: 1.2rem;
    }

    /* Hero Section Clean Mobile Stacked Layout */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

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

    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-release-badge {
        margin-bottom: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.0rem;
        letter-spacing: -0.02em;
        margin-bottom: 14px;
        line-height: 1.25;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-download-group {
        flex-direction: column;
        width: 100%;
        max-width: 330px;
        gap: 12px;
        margin-bottom: 24px;
    }

    .download-card {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 18px;
        border-radius: 12px;
    }

    .hero-trust-row {
        justify-content: center;
        gap: 10px 14px;
        margin-bottom: 24px;
    }

    .trust-item {
        font-size: 0.85rem;
        padding: 6px 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-full);
    }

    .hero-laptop-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0;
        transform: none !important;
    }

    .laptop-device {
        border-width: 6px;
        border-radius: 10px 10px 0 0;
    }

    /* Section padding reduction for mobile to prevent excessive scrolling */
    .showcase, .highlights, .features, .releases, .architecture {
        padding: 44px 0;
    }

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

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .section-desc {
        font-size: 0.98rem;
    }

    /* Showcase Screenshot Window on Mobile */
    .mockup-window {
        border-radius: 12px;
        margin: 0;
        width: 100%;
    }

    .mockup-header {
        padding: 10px 14px;
    }

    .mockup-controls {
        display: none;
    }

    .mockup-title {
        font-size: 0.76rem;
    }

    /* Release Header & Asset Cards Mobile Layout */
    .release-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .release-title-box {
        flex-wrap: wrap;
        gap: 8px;
    }

    .release-date {
        font-size: 0.85rem;
    }

    .asset-card {
        padding: 16px;
    }

    .asset-card-top {
        gap: 12px;
    }

    .asset-icon-box {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .asset-format-title {
        font-size: 0.98rem;
    }

    .asset-platform-subtext {
        font-size: 0.8rem;
    }

    /* Horizontal Swipeable Binary Cards Row for Mobile View */
    .releases-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .release-card {
        padding: 20px 16px;
        margin: 0 auto 24px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .assets-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 12px;
        padding-top: 4px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
        -webkit-overflow-scrolling: touch;
        align-items: stretch;
    }

    .assets-grid::-webkit-scrollbar {
        height: 5px;
    }

    .assets-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .assets-grid::-webkit-scrollbar-thumb {
        background: var(--brand-blue);
        border-radius: 4px;
    }

    .asset-card {
        min-width: 270px;
        max-width: 290px;
        width: 270px;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin: 0;
        padding: 16px;
    }

    .highlight-card, .feature-card {
        padding: 18px;
    }

    .arch-box {
        padding: 24px 18px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-credit-text {
        white-space: normal;
        word-break: break-word;
        font-size: 0.88rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .release-search-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .brand-text-logo {
        font-size: 1.25rem;
    }

    .brand-logo-img {
        height: 34px;
    }

    .hero-cta .btn {
        font-size: 0.85rem;
        padding: 12px 10px;
        gap: 6px;
        white-space: nowrap;
    }

    .hero-cta .btn .os-pill {
        font-size: 0.68rem;
        padding: 2px 5px;
    }

    .asset-card {
        padding: 14px;
    }

    .asset-format-title {
        font-size: 0.92rem;
    }
}

/* --------------------------------------------------------------------------
   Ready to Take Back Your Desktop CTA Banner (Above Footer)
   -------------------------------------------------------------------------- */
.bottom-cta-section {
    padding: 40px 0 80px;
    position: relative;
    z-index: 2;
}

.bottom-cta-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 27, 62, 0.95) 55%, rgba(37, 99, 235, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 44px 56px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

html[data-theme="light"] .bottom-cta-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, rgba(37, 99, 235, 0.08) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.08);
}

.bottom-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
}

html[data-theme="light"] .bottom-cta-card::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.bottom-cta-content {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
    text-align: left;
}

.bottom-cta-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.25;
    transition: color var(--transition-normal);
}

html[data-theme="light"] .bottom-cta-title {
    color: #0f172a;
}

.bottom-cta-desc {
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
    color: #94a3b8;
    line-height: 1.55;
    transition: color var(--transition-normal);
}

html[data-theme="light"] .bottom-cta-desc {
    color: #475569;
}

.bottom-cta-action {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.bottom-cta-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.bottom-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
    color: #ffffff;
}

.bottom-cta-btn i {
    font-size: 0.9rem;
}

/* Mobile & Tablet Responsive Banner Layout */
@media (max-width: 991px) {
    .bottom-cta-section {
        padding: 15px 0 45px;
    }

    .bottom-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 16px;
        border-radius: 16px;
    }

    .bottom-cta-content {
        text-align: center;
        max-width: 100%;
    }

    .bottom-cta-title {
        font-size: 1.45rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .bottom-cta-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .bottom-cta-action {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .bottom-cta-btn {
        width: auto;
        min-width: 200px;
        justify-content: center;
        padding: 11px 24px;
        font-size: 0.9rem;
        border-radius: var(--radius-full);
    }
}
