/* gur.al — Y2K Futurism / Navy-Metallic */

:root {
    --deep-navy: #0D1B2A;
    --navy-mid: #1B3A5C;
    --navy-light: #2A3A5C;
    --chrome-blue: #4A6A8C;
    --chrome-highlight: #8BA4C4;
    --chrome-white: #C0D0E0;
    --hud-accent: #40E0D0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--deep-navy);
    color: var(--chrome-white);
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== SPLIT SECTION LAYOUT ===== */

.split-section {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.panel-left {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy-mid) 100%);
}

.panel-right {
    background: linear-gradient(135deg, var(--navy-light) 0%, #3A5A7C 100%);
}

.panel-left-light {
    background: linear-gradient(135deg, var(--navy-light) 0%, #3A5A7C 100%);
}

.panel-right-dark {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy-mid) 100%);
}

/* ===== CHROME DIVIDER ===== */

.chrome-divider {
    width: 1px;
    background: linear-gradient(to bottom, var(--navy-mid), var(--chrome-highlight), var(--navy-mid));
    box-shadow: 0 0 8px rgba(139, 164, 196, 0.3);
    z-index: 10;
    flex-shrink: 0;
}

#hero-divider {
    height: 0;
    transition: none;
}

/* ===== WIREFRAME SPHERE ===== */

.wireframe-sphere {
    width: 300px;
    height: 300px;
    position: relative;
    perspective: 600px;
    transform-style: preserve-3d;
}

.wireframe-sphere .sphere-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    margin-top: -130px;
    margin-left: -130px;
    border: 0.5px solid var(--chrome-highlight);
    border-radius: 50%;
    transform-style: preserve-3d;
    opacity: 0.7;
}

/* Distribute rings across different rotation axes */
.wireframe-sphere .sphere-ring:nth-child(1)  { transform: rotateY(0deg); }
.wireframe-sphere .sphere-ring:nth-child(2)  { transform: rotateY(15deg); }
.wireframe-sphere .sphere-ring:nth-child(3)  { transform: rotateY(30deg); }
.wireframe-sphere .sphere-ring:nth-child(4)  { transform: rotateY(45deg); }
.wireframe-sphere .sphere-ring:nth-child(5)  { transform: rotateY(60deg); }
.wireframe-sphere .sphere-ring:nth-child(6)  { transform: rotateY(75deg); }
.wireframe-sphere .sphere-ring:nth-child(7)  { transform: rotateY(90deg); }
.wireframe-sphere .sphere-ring:nth-child(8)  { transform: rotateY(105deg); }
.wireframe-sphere .sphere-ring:nth-child(9)  { transform: rotateY(120deg); }
.wireframe-sphere .sphere-ring:nth-child(10) { transform: rotateY(135deg); }
.wireframe-sphere .sphere-ring:nth-child(11) { transform: rotateY(150deg); }
.wireframe-sphere .sphere-ring:nth-child(12) { transform: rotateY(165deg); }

#sphere-main {
    animation: sphereRotate 30s linear infinite;
    transform: scaleY(0.1);
}

#sphere-main.animate-in {
    animation: sphereRotate 30s linear infinite, sphereExpand 1200ms ease-out forwards;
}

@keyframes sphereRotate {
    from { transform: rotateY(0deg) rotateX(15deg); }
    to   { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes sphereExpand {
    from { transform: rotateY(0deg) rotateX(15deg) scaleY(0.1); }
    to   { transform: rotateY(14.4deg) rotateX(15deg) scaleY(1); }
}

.sphere-small {
    width: 150px;
    height: 150px;
    animation: sphereRotateSlow 40s linear infinite;
}

.sphere-small .sphere-ring {
    width: 130px;
    height: 130px;
    margin-top: -65px;
    margin-left: -65px;
}

@keyframes sphereRotateSlow {
    from { transform: rotateY(0deg) rotateX(20deg); }
    to   { transform: rotateY(360deg) rotateX(20deg); }
}

/* ===== LOGOTYPE ===== */

.logotype {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 80px);
    letter-spacing: 0.12em;
    color: var(--chrome-white);
    text-transform: lowercase;
    display: flex;
    gap: 0.02em;
}

.logo-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-40px);
}

.logo-char.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms ease-out, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-char.float {
    animation-name: floatChar;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.logo-char[data-index="0"] { animation-duration: 3.2s; animation-delay: 0s; }
.logo-char[data-index="1"] { animation-duration: 2.8s; animation-delay: 0.3s; }
.logo-char[data-index="2"] { animation-duration: 3.5s; animation-delay: 0.1s; }
.logo-char[data-index="3"] { animation-duration: 2.5s; animation-delay: 0.5s; }
.logo-char[data-index="4"] { animation-duration: 3.0s; animation-delay: 0.2s; }
.logo-char[data-index="5"] { animation-duration: 4.0s; animation-delay: 0.4s; }

@keyframes floatChar {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.logo-dot {
    color: var(--hud-accent);
}

.tagline {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--chrome-blue);
    text-transform: uppercase;
    position: absolute;
    bottom: 38%;
}

#hero-right {
    flex-direction: column;
    gap: 16px;
}

/* ===== HUD ELEMENTS ===== */

.hud-container {
    position: relative;
    padding: 32px 40px;
    min-width: 320px;
}

.hud-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    transition: all 200ms ease-out;
}

.hud-tl {
    top: 0; left: 0;
    border-top: 1px solid var(--hud-accent);
    border-left: 1px solid var(--hud-accent);
}

.hud-tr {
    top: 0; right: 0;
    border-top: 1px solid var(--hud-accent);
    border-right: 1px solid var(--hud-accent);
}

.hud-bl {
    bottom: 0; left: 0;
    border-bottom: 1px solid var(--hud-accent);
    border-left: 1px solid var(--hud-accent);
}

.hud-br {
    bottom: 0; right: 0;
    border-bottom: 1px solid var(--hud-accent);
    border-right: 1px solid var(--hud-accent);
}

.hud-container:hover .hud-tl { top: -2px; left: -2px; }
.hud-container:hover .hud-tr { top: -2px; right: -2px; }
.hud-container:hover .hud-bl { bottom: -2px; left: -2px; }
.hud-container:hover .hud-br { bottom: -2px; right: -2px; }

.hud-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--hud-accent);
    display: block;
    margin-bottom: 12px;
}

.hud-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--chrome-blue);
    color: var(--chrome-white);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.08em;
    padding: 8px 0;
    width: 100%;
    outline: none;
    caret-color: var(--hud-accent);
    transition: border-color 300ms;
}

.hud-input::placeholder {
    color: var(--chrome-blue);
    opacity: 0.5;
}

.hud-input:focus {
    border-bottom-color: var(--hud-accent);
}

.hud-cursor {
    position: absolute;
    bottom: 28px;
    right: 40px;
    width: 2px;
    height: 20px;
    background: var(--hud-accent);
    animation: cursorPulse 1s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
}

.hud-input:focus ~ .hud-cursor {
    opacity: 0;
}

@keyframes cursorPulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

/* ===== PARTICLE FIELD ===== */

.particle-field {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#particles {
    max-width: 100%;
    max-height: 100%;
}

/* ===== FEATURES SECTION ===== */

.full-section {
    width: 100%;
    padding: 80px 0;
}

.chrome-band {
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--chrome-blue) 50%, var(--navy-mid) 100%);
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 60px 40px;
    flex-wrap: wrap;
}

.feature-item {
    position: relative;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    background: rgba(13, 27, 42, 0.4);
    backdrop-filter: blur(4px);
    transform-style: preserve-3d;
    transition: transform 100ms ease-out;
}

.feature-icon {
    width: 40px;
    height: 40px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--hud-accent);
}

.feature-data {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    color: var(--chrome-highlight);
}

/* ===== TILT-3D CARDS ===== */

.tilt-card {
    transform: perspective(800px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
    transition: transform 100ms ease-out;
}

/* ===== FOOTER ===== */

#footer {
    min-height: 40vh;
}

#footer-left {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
    gap: 24px;
}

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

.footer-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--chrome-highlight);
    text-decoration: none;
    transition: color 200ms;
    position: relative;
}

.footer-link:hover {
    color: var(--hud-accent);
}

.footer-link::before {
    content: '>';
    position: absolute;
    left: -16px;
    opacity: 0;
    color: var(--hud-accent);
    transition: opacity 200ms;
}

.footer-link:hover::before {
    opacity: 1;
}

.footer-copy {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--chrome-blue);
    letter-spacing: 0.06em;
}

/* ===== CHROME GRADIENT LINES ===== */

.chrome-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--navy-mid), var(--chrome-highlight), var(--navy-mid));
    box-shadow: 0 0 6px rgba(139, 164, 196, 0.2);
}

/* ===== OPENING ANIMATION STATES ===== */

#hero .panel-left,
#hero .panel-right {
    opacity: 0;
    background: #000;
    transition: opacity 800ms ease-out, background 800ms ease-out;
}

#hero .panel-left.reveal {
    opacity: 1;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy-mid) 100%);
}

#hero .panel-right.reveal {
    opacity: 1;
    background: linear-gradient(135deg, var(--navy-light) 0%, #3A5A7C 100%);
}

/* ===== SCROLL-BASED SPLIT WIDTH TRANSITIONS ===== */

.split-section {
    --split-left: 1;
    --split-right: 1;
}

.split-section .panel:first-child {
    flex: var(--split-left);
    transition: flex 600ms ease-out;
}

.split-section .panel:last-child {
    flex: var(--split-right);
    transition: flex 600ms ease-out;
}

/* ===== SCROLL REVEAL ===== */

#interact,
#features,
#footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

#interact.visible,
#features.visible,
#footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
    }

    .panel {
        min-height: 50vh;
    }

    .chrome-divider {
        width: 100%;
        height: 1px;
    }

    #hero-divider {
        width: 0;
        height: 1px;
    }

    .wireframe-sphere {
        width: 200px;
        height: 200px;
    }

    .wireframe-sphere .sphere-ring {
        width: 170px;
        height: 170px;
        margin-top: -85px;
        margin-left: -85px;
    }

    .hud-container {
        min-width: 260px;
    }

    .chrome-band {
        gap: 20px;
        padding: 40px 20px;
    }

    .feature-item {
        min-width: 120px;
    }

    #footer-left {
        padding-left: 30px;
    }

    .tagline {
        bottom: 32%;
    }
}
