*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main: #5a966e;
    --main-bright: #70d48c;
    --main-glow: rgba(90, 150, 110, 0.4);
    --bg: #050507;
    --card-bg: rgba(18, 18, 24, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(90, 150, 110, 0.35);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f0f0f5;
    --muted: rgba(255, 255, 255, 0.45);
    --accent-hover: #70d48c;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: var(--bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #f0f0f5;
}

.shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.brand-mark img {
    width: 28px;
    height: 28px;
    display: block;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.desktop-nav a:hover {
    color: #fff;
}

.desktop-nav .nav-cta {
    background: #000000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.desktop-nav .nav-cta:hover {
    background: #111115;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    cursor: pointer;
    list-style: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.mobile-nav-panel a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}

.mobile-nav-panel a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: block;
    }
}

#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

#dvd-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#dvd-img {
    position: absolute;
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 50%;
    opacity: .12;
    filter: blur(.5px);
    will-change: transform;
}

.scene {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 100px;
    gap: 24px;
}

.tile {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: tile-in .8s cubic-bezier(.16, 1, .3, 1) both;
    max-width: 640px;
    width: 100%;
    transition: border-color .3s ease;
}

.tile-wide {
    max-width: 720px;
}

@keyframes tile-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 20%, #70d48c 70%, #3d7a46 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--main-glow));
    margin-bottom: 8px;
}

.footer-note {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.footer-note a {
    color: var(--main-bright);
    text-decoration: none;
}

.footer-note a:hover {
    color: #fff;
}

.subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

.console-link {
    color: var(--main-bright);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(112, 212, 140, 0.4);
    transition: all 0.2s ease;
}

.console-link:hover {
    border-bottom-style: solid;
    color: #fff;
    text-shadow: 0 0 10px var(--main-glow);
}

.contact-link {
    color: var(--main-bright);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    color: #fff;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.divider {
    width: 40px;
    height: 2px;
    background: rgba(90, 150, 110, 0.4);
    border-radius: 2px;
    margin: 20px auto;
}

.routes {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.route-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
}

.route-link:hover .route-item {
    background: rgba(90, 150, 110, 0.06);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
}

.route-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.route-path {
    font-family: 'Syne Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.route-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    text-align: left;
}

.route-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid;
    flex-shrink: 0;
    text-transform: uppercase;
}

.route-badge.ok {
    background: rgba(90, 200, 110, 0.08);
    border-color: rgba(90, 200, 110, 0.25);
    color: #70d48c;
    box-shadow: 0 0 12px rgba(90, 200, 110, 0.15);
}

.route-badge.warn {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.25);
    color: #ffb74d;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.15);
}

.req-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin-top: 10px;
}

.req-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.req-list li::before {
    content: "\2022";
    position: absolute;
    left: 8px;
    color: var(--main-bright);
    font-size: 18px;
    top: -2px;
}

.req-source {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 20px;
    text-align: right;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(.16, 1, .3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.footer {
    position: relative;
    z-index: 10;
    padding: 44px 0;
    border-top: 1px solid var(--line);
    background: #07080c;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
}

.support-email {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.support-email:hover {
    color: var(--accent-hover);
}

.footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 600px) {
    .tile {
        padding: 32px 20px;
    }

    .route-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .route-badge {
        align-self: flex-start;
    }
}