﻿/* HERO */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,245,255,.07) 0%, transparent 70%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(191,0,255,.08) 0%, transparent 60%), repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,.02) 50px), repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,.02) 50px);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    color: #fff;
    animation: pulse-glow 3s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: normal;
    color: var(--neon-cyan);
    text-shadow: 0 0 4px var(--neon-cyan);
    animation: none;
}

.hero-sub {
    max-width: 560px;
    font-size: 1.15rem;
    color: #8888aa;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* FEATURES */
.features {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: .5rem;
}

.feature-card p {
    font-size: .95rem;
    color: #7070a0;
}

/* BANNER */
.cta-banner {
    margin: 0 2rem 5rem;
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,245,255,.08), rgba(191,0,255,.12));
    border: 1px solid rgba(0,245,255,.2);
    box-shadow: 0 0 60px rgba(0,245,255,.06);
}

.cta-banner h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .75rem;
}

.cta-banner p {
    color: #8888aa;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* CODE SECTION */
.code-section {
    padding: 4rem 2rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.code-container {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,245,255,.15);
    box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 40px rgba(0,245,255,.1);
}

.code-header {
    background: #16161f;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.code-dots {
    display: flex;
    gap: .5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.code-title {
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    color: #8888aa;
    flex: 1;
    text-align: center;
}

.code-lang {
    font-family: 'Orbitron', sans-serif;
    font-size: .65rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    line-height: 1.6;
    color: #e0e0e0;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.code-body pre {
    margin: 0;
    white-space: pre;
}

.code-body code {
    display: block;
}

.cursor {
    display: inline-block;
    width: 2px;
    background: var(--neon-cyan);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

/* Syntax highlighting */
.keyword {
    color: #c678dd;
}

.class-name {
    color: #61afef;
}

.function {
    color: #61afef;
}

.string {
    color: #98c379;
}

.comment {
    color: #5c6370;
    font-style: italic;
}

.number {
    color: #d19a66;
}

.type {
    color: #e5c07b;
}

/* Animation Switcher */
.anim-switcher {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.anim-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.3);
    color: #7070a0;
    cursor: pointer;
    transition: all .3s;
}

.anim-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0,245,255,.3);
}

.anim-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0,245,255,.1);
    box-shadow: 0 0 20px rgba(0,245,255,.4);
}

/* UNITY SECTION */
.unity-section {
    padding: 4rem 2rem 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.unity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.unity-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.unity-logo {
    font-size: 8rem;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, .5));
    animation: floatIcon 4s ease-in-out infinite;
    width: 256px;
    height: 256px;
    background-position: center;
    background-size: cover;
    display: block;
    background-image: url(../assets/unity-logo.svg);
}

.unity-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1rem;
}

.unity-text h2 .unity-badge {
    font-size: .7rem;
    padding: .3rem .75rem;
    border-radius: 6px;
    background: rgba(0,245,255,.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(0,245,255,.3);
    vertical-align: middle;
    margin-left: .5rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.unity-text p {
    color: #7070a0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.device-specs {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(191,0,255,.06);
    border: 1px solid rgba(191,0,255,.2);
    border-radius: 10px;
}

.device-specs h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

.spec-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.spec-content {
    flex: 1;
}

.spec-label {
    font-family: 'Orbitron', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    color: #a0a0c0;
    margin-bottom: .25rem;
}

.spec-detail {
    font-size: .85rem;
    color: #6060a0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .unity-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .unity-logo {
        font-size: 6rem;
    }

    .unity-text h2 {
        font-size: 1.4rem;
    }

    .device-specs {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1.25rem;
        min-height: 80vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .features {
        padding: 3rem 1.25rem;
    }

    .cta-banner {
        margin: 0 1rem 3rem;
        padding: 2.5rem 1.25rem;
    }

    .code-section {
        padding: 3rem 1rem;
    }

    .code-body {
        font-size: .8rem;
        padding: 1rem;
        height: 400px;
    }

    .code-header {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .code-title {
        order: 3;
        width: 100%;
        text-align: left;
        margin-top: .5rem;
    }

    .anim-switcher {
        gap: .5rem;
        margin-bottom: 1rem;
    }

    .anim-btn {
        font-size: .6rem;
        padding: .4rem .75rem;
    }

    .unity-section {
        padding: 3rem 1rem;
    }

    .unity-logo {
        font-size: 5rem;
    }

    .unity-text h2 {
        font-size: 1.2rem;
    }

    .unity-text p {
        font-size: .9rem;
    }

    .device-specs {
        padding: 1rem;
    }
}