:root {
    --bg: #0a0a0f;
    --bg-surface: #111118;
    --bg-elevated: #1a1a24;
    --border: #252535;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #667eea;
    --accent-2: #764ba2;
    --accent-glow: rgba(102, 126, 234, 0.18);

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color-scheme: dark;
}

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

html,
body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-moon {
    -webkit-text-fill-color: #f5c842;
    font-style: normal;
    font-size: 1.15rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
    background-color: var(--bg-elevated);
    color: var(--text);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--bg-elevated);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-wrapper {
    width: 100%;
    flex: 1;
    padding-top: 88px;
}

.content {
    max-width: 820px;
    margin: 0 auto 48px;
    padding: 40px 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--text);
    line-height: 1.2;
}

h2 {
    margin: 32px 0 12px;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--text);
}

p,
ul {
    line-height: 1.75;
    margin: 0 0 16px;
    color: var(--text-muted);
}

ul {
    padding-left: 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.policy-date {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 28px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 32px;
}

form label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.92rem;
}

form input,
form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 0.97rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: #475569;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

form button {
    align-self: flex-start;
    padding: 13px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 700;
    font-size: 0.97rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px var(--accent-glow);
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.flash-container {
    margin-bottom: 20px;
}

.flash {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.flash.success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.flash.error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.banner {
    text-align: center;
    padding: 52px 24px 40px;
    background: radial-gradient(ellipse at 50% 0%, rgba(102, 126, 234, 0.15) 0%, transparent 65%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.banner h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.banner p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.products-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 56px;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px 2px;
}

.product-card {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.product-card:hover {
    border-color: #3a3a55;
    background: var(--bg-elevated);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.product-card.active {
    border-color: var(--accent);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.15);
}

.card-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}

.card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.product-card.active .card-name,
.product-card:hover .card-name {
    color: var(--text);
}

.viewer-container {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 769px) {
    .viewer-container {
        flex-direction: row;
        align-items: center;
    }

    .viewer-container model-viewer {
        flex: 1;
        min-width: 0;
        height: 500px;
    }

    .app-info-panel {
        flex: 1;
        min-width: 0;
    }
}

.viewer-container model-viewer {
    width: 100%;
    height: 360px;
    border-radius: 10px;
    background: #0d0d14;
}

.app-info-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-info-panel h2 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: var(--text);
    margin: 0;
}

.info-tagline {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin: 0;
}

.info-desc {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

.btn-outline {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: border-color 0.2s, color 0.2s;
    margin-top: 8px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

.platform-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .viewer-container model-viewer {
        height: 300px;
    }
}



.app-privacy-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 28px;
}

.app-privacy-list-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.app-privacy-list-link:hover {
    color: var(--accent);
    opacity: 1;
}

.app-privacy-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text);
    opacity: 1;
}

.footer-copy {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
}

.error-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    text-align: center;
    padding: 40px 24px;
}

.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -4px;
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
        filter: none;
    }

    92% {
        transform: translate(-3px, 1px);
        filter: hue-rotate(30deg);
    }

    94% {
        transform: translate(3px, -1px);
        filter: hue-rotate(-30deg);
    }

    96% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(15deg);
    }

    98% {
        transform: translate(2px, -2px);
        filter: none;
    }
}

.error-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 12px;
}

.error-message {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.7;
    margin: 0 0 32px;
}

.dots {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    animation: pulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {

    0%,
    100% {
        background: var(--border);
        transform: scale(1);
    }

    50% {
        background: var(--accent);
        transform: scale(1.4);
    }
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.55);
    opacity: 1;
}

.home-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 860px) {
    nav {
        padding: 0 18px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80vw);
        height: 100dvh;
        background: #0d0d16;
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 90px 24px 40px;
        gap: 4px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 13px 16px;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 500;
    }

    .nav-links a.active-link {
        background: rgba(102, 126, 234, 0.12);
        color: var(--accent);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .nav-backdrop.active {
        opacity: 1;
        pointer-events: all;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .content {
        margin: 24px 16px 32px;
        padding: 26px 22px;
    }
}

@media (max-width: 520px) {
    .content {
        margin: 16px 12px 24px;
        padding: 22px 18px;
    }
}