:root {
    --bg: #000;
    --bg2: #0a0a0a;
    --bg3: #111;
    --bg4: #1a1a1a;
    --text: #f0f0f0;
    --text2: #ccc;
    --text3: #999;
    --accent: #e0e0e0;
    --accent-hover: #fff;
    --accent-glow: rgba(255,255,255,.08);
    --border: #222;
    --border-light: #333;
    --radius: 14px;
    --radius-sm: 8px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow: 0 8px 40px rgba(0,0,0,.6);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html {
    scroll-behavior: smooth;
}

::selection {
    background: #fff;
    color: #000;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg4);
    border-radius: 10px;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

nav.scrolled {
    background: rgba(0,0,0,.92);
    border-bottom-color: rgba(255,255,255,.04);
    box-shadow: 0 4px 30px rgba(0,0,0,.5);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height var(--transition);
}

nav.scrolled .nav-inner {
    height: 58px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .5px;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.1);
}

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

.nav-links a {
    color: var(--text2);
    font-weight: 500;
    font-size: .9rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform var(--transition);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: rgba(255,255,255,.05);
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 3px;
    transition: all .35s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5.5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5.5px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.8) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    animation: heroFadeIn 1.2s ease;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: 130px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 3px solid var(--text);
    padding: 5px;
    box-shadow: 0 0 40px rgba(255,255,255,.05);
    transition: transform var(--transition);
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text2);
    margin-bottom: 36px;
    letter-spacing: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: #fff;
    color: #000;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--transition);
}

.btn:hover {
    background: var(--text2);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255,255,255,.1);
}

.btn:active {
    transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
    position: relative;
}

section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.section-subtitle {
    color: var(--text2);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 600px;
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg2);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

.about-grid {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text2);
    font-size: 1.02rem;
}

.about-text strong {
    color: #fff;
    font-weight: 600;
}

.about-text a {
    font-weight: 600;
    color: #fff;
}

.about-text a:hover {
    color: var(--text2);
}

.about-image {
    flex: 1;
}

.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.video-wrap:hover {
    box-shadow: 0 8px 50px rgba(255,255,255,.04);
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg);
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
}

.contact .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 32px;
    min-width: 290px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.contact-item:hover {
    border-color: rgba(255,255,255,.15);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(255,255,255,.04);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    color: #fff;
    display: flex;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: .75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.contact-value {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

/* ===== FOOTER ===== */
footer {
    background: #000;
    text-align: center;
    padding: 48px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text3);
    font-size: .88rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #fff;
    transition: width var(--transition);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: #fff;
}

footer p {
    color: var(--text3);
    font-size: .82rem;
}

/* ===== LEGAL PAGES ===== */
.legal {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal .container {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text3);
    font-size: .9rem;
    margin-bottom: 36px;
    transition: all var(--transition);
}

.back-link:hover {
    color: #fff;
    gap: 10px;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.legal-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text);
    padding: 3px;
    box-shadow: 0 0 30px rgba(255,255,255,.04);
}

.legal h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.updated {
    color: var(--text3);
    font-size: .85rem;
}

.legal h2 {
    font-size: 1.35rem;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 14px;
    font-weight: 600;
}

.legal h3 {
    font-size: 1.05rem;
    color: #ccc;
    margin-top: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.legal p {
    color: var(--text2);
    margin-bottom: 14px;
    line-height: 1.8;
}

/* ===== LINKS PAGE ===== */
.links-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 60px;
}

.links-logo {
    width: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid var(--text);
    padding: 4px;
    box-shadow: 0 0 40px rgba(255,255,255,.04);
}

.links-page h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.links-subtitle {
    color: var(--text3);
    font-size: 1rem;
    margin-bottom: 40px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
}

.links-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    transition: all var(--transition);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.links-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #fff;
    transform: scaleY(0);
    transition: transform var(--transition);
}

.links-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
    color: var(--text);
}

.links-item:hover::before {
    transform: scaleY(1);
}

.links-item:hover {
    border-color: rgba(255,255,255,.1);
}

.links-item-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #fff;
}

.links-item-text {
    text-align: left;
}

.links-item-label {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.links-item-desc {
    display: block;
    font-size: .84rem;
    color: var(--text3);
}

/* ===== ROBOT PAGE ===== */
.robot-page {
    position: fixed;
    inset: 0;
    background: #000;
    overflow: hidden;
}

.robot-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.robot-back {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10;
    color: var(--text3);
    font-size: .9rem;
    transition: color var(--transition);
}

.robot-back:hover {
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(0,0,0,.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .45s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        max-height: 340px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,.04);
    }

    .nav-links a {
        display: block;
        padding: 16px 24px;
        border-radius: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: .95rem;
    }

    .hero-logo {
        width: 100px;
    }

    .about-grid {
        flex-direction: column;
        gap: 40px;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 0;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: .95rem;
        margin-bottom: 35px;
    }

    .legal {
        padding: 110px 0 50px;
    }

    .legal-header {
        flex-direction: column;
        text-align: center;
    }

    .legal h1 {
        font-size: 1.6rem;
    }

    .links-page h1 {
        font-size: 2rem;
    }

    .contact-item {
        min-width: 100%;
    }

    .container {
        padding: 0 18px;
    }
}

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

    .hero-subtitle {
        font-size: .85rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: .88rem;
    }

    .links-logo {
        width: 72px;
    }
}
