/* =============================================
   AuroraNetworks TDM — Onepager Stylesheet
   Design-System: Dark Theme mit Blue Accent
   ============================================= */

/* === CSS Variables (TDM Theme) === */
:root {
    --bg: #060608;
    --surface: #161820;
    --surface-alt: #202430;
    --accent: #5A96FF;
    --accent-hover: #6EAAFF;
    --accent-dim: rgba(60, 100, 200, 0.4);
    --team1: #50C878;
    --team2: #E14B4B;
    --health: #DC3C3C;
    --armor: #3C8CFF;
    --money: #50C878;
    --gold: #FFD700;
    --text-primary: #EBEBF0;
    --text-dim: #8C9BAF;
    --text-muted: #505A6E;
    --divider: #282C38;
    --card: #121218;
    --danger: #E14B4B;
    --bar-bg: #232630;
    --sidebar: #0C0C10;
    --font: 'Roboto', sans-serif;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* === Container === */
.tdm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.tdm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--divider);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tdm-nav.scrolled {
    background: rgba(6, 6, 8, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.tdm-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.tdm-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.tdm-nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tdm-nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.tdm-nav-links a {
    display: block;
    padding: 8px 16px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.tdm-nav-links a:hover,
.tdm-nav-links a.active {
    color: var(--text-primary);
    background: rgba(90, 150, 255, 0.1);
}

/* Mobile toggle */
.tdm-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.tdm-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tdm-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tdm-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.tdm-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.tdm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.tdm-hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.tdm-hero-content {
    position: relative;
    z-index: 1;
}

.tdm-hero-logo {
    margin-bottom: 24px;
}

.tdm-hero-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(90, 150, 255, 0.35));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.tdm-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tdm-hero-slogan {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
}

.tdm-hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* Connect Button */
.tdm-btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.tdm-btn-connect:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(90, 150, 255, 0.35);
    color: #fff;
}

.tdm-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--divider);
    color: var(--text-dim);
    background: transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.tdm-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(90, 150, 255, 0.06);
}

/* Hero button group */
.tdm-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Scroll indicator */
.tdm-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* =============================================
   SECTIONS
   ============================================= */
.tdm-section {
    padding: 100px 0;
}

.tdm-section-alt {
    background: var(--surface);
}

.tdm-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tdm-section-desc {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* =============================================
   STAT CARDS
   ============================================= */
.tdm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tdm-stat-card {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tdm-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.tdm-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
    line-height: 1.1;
}

.tdm-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(90, 150, 255, 0.3));
}

/* =============================================
   FEATURE CARDS
   ============================================= */
.tdm-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tdm-feature-card {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tdm-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tdm-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 150, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tdm-feature-card:hover::before {
    opacity: 1;
}

.tdm-feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    filter: grayscale(0.2);
}

.tdm-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tdm-feature-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tdm-feature-card li {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.55;
    padding-left: 16px;
    position: relative;
}

.tdm-feature-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.tdm-feature-card li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =============================================
   RANK PATH
   ============================================= */
.tdm-ranks-path {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.tdm-rank-item {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.tdm-rank-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.tdm-rank-item.rank-veteran {
    border-color: rgba(90, 150, 255, 0.25);
}

.tdm-rank-item.rank-veteran:hover {
    border-color: var(--accent);
}

.tdm-rank-item.rank-elite {
    border-color: rgba(80, 200, 120, 0.25);
}

.tdm-rank-item.rank-elite:hover {
    border-color: var(--team1);
}

.tdm-rank-item.rank-legendary {
    border-color: rgba(255, 215, 0, 0.3);
}

.tdm-rank-item.rank-legendary:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.tdm-rank-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tdm-rank-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.tdm-rank-item:hover .tdm-rank-icon {
    transform: scale(1.15);
}

.tdm-rank-item.rank-legendary .tdm-rank-icon {
    filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.3));
}

.tdm-rank-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

.tdm-rank-item.rank-legendary .tdm-rank-name {
    color: var(--gold);
}

.tdm-rank-item.rank-elite .tdm-rank-name {
    color: var(--team1);
}

/* Rank Legend */
.tdm-rank-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tdm-rank-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.tdm-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.tdm-legend-dot.rank-veteran {
    background: var(--accent);
}

.tdm-legend-dot.rank-elite {
    background: var(--team1);
}

.tdm-legend-dot.rank-legendary {
    background: var(--gold);
}

/* =============================================
   SERVER INFO CARD
   ============================================= */
.tdm-server-card {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 14px;
    padding: 36px;
    max-width: 700px;
    margin: 0 auto;
}

.tdm-server-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tdm-server-info-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tdm-server-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--divider);
}

.tdm-server-info-row:last-child {
    border-bottom: none;
}

.tdm-server-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.tdm-server-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
}

.tdm-status-online {
    color: var(--team1);
}

.tdm-status-offline {
    color: var(--danger);
}

.tdm-copy-btn {
    background: rgba(90, 150, 255, 0.1);
    border: 1px solid rgba(90, 150, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--accent);
    transition: all 0.2s;
    margin-left: 12px;
}

.tdm-copy-btn:hover {
    background: rgba(90, 150, 255, 0.2);
    border-color: var(--accent);
}

.tdm-server-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================
   COMMUNITY HINWEIS
   ============================================= */
.tdm-community-card {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 14px;
    padding: 32px;
    max-width: 980px;
    margin: 0 auto;
}

.tdm-community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tdm-community-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--divider);
    border-radius: 10px;
    padding: 24px;
}

.tdm-community-item h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tdm-community-item p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tdm-community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tdm-community-login-hint {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--divider);
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

.tdm-community-login-hint a {
    margin-left: 6px;
    font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
.tdm-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--divider);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tdm-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}

.tdm-footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.tdm-footer-links a:hover {
    color: var(--accent);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid children */
.tdm-stats-grid .fade-in:nth-child(1) {
    transition-delay: 0s;
}

.tdm-stats-grid .fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.tdm-stats-grid .fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.tdm-stats-grid .fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

.tdm-features-grid .fade-in:nth-child(1) {
    transition-delay: 0s;
}

.tdm-features-grid .fade-in:nth-child(2) {
    transition-delay: 0.08s;
}

.tdm-features-grid .fade-in:nth-child(3) {
    transition-delay: 0.16s;
}

.tdm-features-grid .fade-in:nth-child(4) {
    transition-delay: 0.24s;
}

.tdm-features-grid .fade-in:nth-child(5) {
    transition-delay: 0.08s;
}

.tdm-features-grid .fade-in:nth-child(6) {
    transition-delay: 0.16s;
}

.tdm-features-grid .fade-in:nth-child(7) {
    transition-delay: 0.24s;
}

.tdm-features-grid .fade-in:nth-child(8) {
    transition-delay: 0.32s;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .tdm-features-grid {
        grid-template-columns: 1fr;
    }

    .tdm-ranks-path {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tdm-nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(6, 6, 8, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--divider);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .tdm-nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .tdm-nav-toggle {
        display: flex;
    }

    .tdm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tdm-ranks-path {
        grid-template-columns: repeat(2, 1fr);
    }

    .tdm-rank-legend {
        flex-direction: column;
        align-items: center;
    }

    .tdm-hero-logo img {
        width: 90px;
        height: 90px;
    }

    .tdm-section {
        padding: 64px 0;
    }

    .tdm-server-card {
        padding: 24px;
    }

    .tdm-community-card {
        padding: 22px;
    }

    .tdm-community-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tdm-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .tdm-stat-card {
        padding: 24px 16px;
    }

    .tdm-stat-number {
        font-size: 2rem;
    }

    .tdm-ranks-path {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .tdm-server-actions {
        flex-direction: column;
    }

    .tdm-btn-connect,
    .tdm-btn-secondary {
        justify-content: center;
        text-align: center;
    }
}

/* =============================================
   CHANGELOG SECTION — Dynamic
   ============================================= */
.tdm-changelog-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.tdm-changelog-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.tdm-changelog-item {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.tdm-changelog-date {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.date-badge {
    background: var(--surface-alt);
    border: 1px solid var(--divider);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.date-badge::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px var(--accent);
}

.tdm-changelog-card {
    flex: 1;
    background: rgba(22, 24, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--divider);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.tdm-changelog-card:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(90, 150, 255, 0.1);
}

.changelog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--divider);
}

.changelog-content {
    padding: 24px;
}

.changelog-type-row {
    margin-bottom: 12px;
}

.changelog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
}

.type-badge.update {
    background: rgba(90, 150, 255, 0.15);
    color: var(--accent);
}

.type-badge.fix {
    background: rgba(225, 75, 75, 0.15);
    color: var(--danger);
}

.type-badge.feature {
    background: rgba(80, 200, 120, 0.15);
    color: var(--team1);
}

.changelog-text {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tdm-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.tdm-link-btn:hover {
    gap: 12px;
    color: var(--accent-hover);
}

.tdm-changelog-more {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .tdm-changelog-timeline::before {
        left: 15px;
    }

    .tdm-changelog-item {
        flex-direction: column;
        gap: 15px;
        padding-left: 35px;
        margin-bottom: 40px;
    }

    .tdm-changelog-item::after {
        left: 10px;
        top: 18px;
    }

    .tdm-changelog-date {
        width: auto;
        align-items: flex-start;
        z-index: 4;
    }

    .date-badge {
        display: inline-block;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .tdm-changelog-card:hover {
        transform: translateY(-5px);
    }
}

/* =============================================
   SHOWCASE PAGE — sc-*
   ============================================= */

.sc-body {
    padding-top: 64px;
    /* offset fixed nav */
}

/* Page Header */
.sc-page-header {
    padding: 48px 0 32px;
    text-align: center;
    border-bottom: 1px solid var(--divider);
    background: var(--surface);
}

.sc-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sc-page-desc {
    font-size: 1rem;
    color: var(--text-dim);
}

/* Empty State */
.sc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-dim);
}

.sc-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.sc-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sc-empty p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Carousel Section */
.sc-carousel-section {
    padding: 0;
    background: #000;
}

/* Carousel Wrapper */
.sc-carousel {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    user-select: none;
}

/* Stage */
.sc-stage {
    position: relative;
    width: 100%;
    height: clamp(360px, 58vw, 680px);
    overflow: hidden;
}

/* Slides */
.sc-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.sc-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.sc-slide.prev {
    opacity: 0;
}

/* Media (img / video) */
.sc-media {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Caption */
.sc-caption {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
}

/* Video Play Overlay */
.sc-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(90, 150, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.sc-video-play:hover {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.08);
}

.sc-video-play.playing {
    background: rgba(0, 0, 0, 0.5);
}

/* Prev/Next Buttons */
.sc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(6, 6, 8, 0.7);
    border: 1px solid var(--divider);
    color: var(--text-primary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    backdrop-filter: blur(8px);
}

.sc-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}

.sc-btn-prev {
    left: 16px;
}

.sc-btn-next {
    right: 16px;
}

/* Controls Bar */
.sc-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-counter {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    min-width: 52px;
}

.sc-controls-center {
    display: flex;
    gap: 8px;
}

.sc-ctrl-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-ctrl-btn:hover,
.sc-ctrl-btn.active {
    background: rgba(90, 150, 255, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.sc-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    min-width: 64px;
    text-align: right;
}

/* Thumbnail Strip */
.sc-thumbs {
    background: var(--surface);
    border-top: 1px solid var(--divider);
    overflow: hidden;
}

.sc-thumbs-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) transparent;
}

.sc-thumbs-inner::-webkit-scrollbar {
    height: 4px;
}

.sc-thumbs-inner::-webkit-scrollbar-track {
    background: transparent;
}

.sc-thumbs-inner::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 4px;
}

.sc-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--card);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    padding: 0;
    position: relative;
}

.sc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--surface-alt);
}

.sc-thumb-placeholder--video {
    background: linear-gradient(135deg, #1a1e2e 0%, #0d1018 100%);
}

.sc-thumb-video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-dim);
    pointer-events: none;
    z-index: 1;
}

.sc-thumb:hover {
    border-color: rgba(90, 150, 255, 0.5);
    transform: scale(1.04);
}

.sc-thumb.active {
    border-color: var(--accent);
}

/* Info Bar */
.sc-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--divider);
    background: var(--surface);
}

/* =============================================
   DOWNLOAD PAGE — dl-*
   ============================================= */

.dl-body {
    padding-top: 64px;
    /* offset fixed nav */
}

/* Hero Section */
.dl-hero {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    padding: 64px 0;
    border-bottom: 1px solid var(--divider);
}

.dl-hero-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--card);
    border: 1px solid rgba(90, 150, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(90, 150, 255, 0.06);
}

.dl-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(90, 150, 255, 0.2));
    border-radius: 3px 3px 0 0;
}

.dl-hero-card--empty {
    border-color: var(--divider);
    box-shadow: none;
}

.dl-hero-card--empty::before {
    background: var(--divider);
}

.dl-hero-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(90, 150, 255, 0.1);
    border: 1px solid rgba(90, 150, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.5rem;
}

.dl-hero-info {
    flex: 1;
    min-width: 0;
}

.dl-hero-badge {
    display: inline-block;
    background: rgba(90, 150, 255, 0.15);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(90, 150, 255, 0.3);
}

.dl-hero-badge--soon {
    background: rgba(80, 200, 120, 0.1);
    color: var(--money);
    border-color: rgba(80, 200, 120, 0.2);
}

.dl-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dl-hero-version {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: 'Roboto Mono', monospace;
}

.dl-hero-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dl-meta-sep {
    color: var(--divider);
}

.dl-btn-download {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Info Grid */
.dl-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dl-info-card {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 28px;
}

.dl-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.dl-info-icon {
    font-size: 1.25rem;
}

/* Requirements */
.dl-req-list {
    display: flex;
    flex-direction: column;
}

.dl-req-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
    gap: 12px;
}

.dl-req-row:last-child {
    border-bottom: none;
}

.dl-req-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dl-req-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* Steps */
.dl-steps {
    list-style: none;
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dl-steps li {
    counter-increment: steps;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.dl-steps li::before {
    content: counter(steps);
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: rgba(90, 150, 255, 0.15);
    border: 1px solid rgba(90, 150, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
}

.dl-steps li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.dl-steps li code {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.83em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

/* Release History */
.dl-releases {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto;
}

.dl-release-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 10px;
    padding: 16px 20px;
    transition: border-color 0.2s;
}

.dl-release-row:hover {
    border-color: rgba(90, 150, 255, 0.3);
}

.dl-release-row--latest {
    border-color: rgba(90, 150, 255, 0.3);
    background: rgba(90, 150, 255, 0.04);
}

.dl-release-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dl-release-latest-badge {
    flex-shrink: 0;
    background: rgba(90, 150, 255, 0.15);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(90, 150, 255, 0.3);
}

.dl-release-version {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
}

.dl-release-filename {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.dl-release-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.dl-release-size,
.dl-release-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.dl-release-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(90, 150, 255, 0.1);
    border: 1px solid rgba(90, 150, 255, 0.25);
    color: var(--accent);
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.dl-release-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================
   RESPONSIVE — Showcase & Download additions
   ============================================= */
@media (max-width: 768px) {

    /* Showcase */
    .sc-stage {
        height: clamp(240px, 56vw, 400px);
    }

    .sc-btn {
        width: 40px;
        height: 40px;
    }

    .sc-btn-prev {
        left: 8px;
    }

    .sc-btn-next {
        right: 8px;
    }

    /* Download Hero */
    .dl-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }

    .dl-hero-meta {
        justify-content: center;
    }

    .dl-info-grid {
        grid-template-columns: 1fr;
    }

    .dl-release-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dl-release-right {
        width: 100%;
        justify-content: space-between;
    }

    .dl-release-filename {
        display: none;
    }
}

@media (max-width: 480px) {
    .sc-controls {
        padding: 0 10px;
    }

    .sc-thumb {
        width: 56px;
        height: 38px;
    }

    .dl-hero-card {
        padding: 24px 16px;
    }

    .dl-release-size {
        display: none;
    }
}