:root {
    --bg-color: #050505;
    --bg-dark: #020202;
    --primary: #00F3FF;
    /* Cyan */
    --secondary: #FF0055;
    /* Pink */
    --accent: #FFE600;
    /* Yellow */
    --text-main: #E0E0E0;
    --text-dim: #888888;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
    --grid-gap: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Background Effects --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.3;
}

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #333;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: loadProgress 2.5s ease-in-out forwards;
}

.system-logs {
    font-size: 0.8rem;
    color: var(--secondary);
    text-align: left;
    font-family: var(--font-body);
}

.system-logs p {
    opacity: 0;
    animation: logFade 0.5s forwards;
}

.system-logs p:nth-child(1) {
    animation-delay: 0.5s;
}

.system-logs p:nth-child(2) {
    animation-delay: 1.2s;
}

.system-logs p:nth-child(3) {
    animation-delay: 2.0s;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes logFade {
    to {
        opacity: 1;
    }
}

/* --- Typography & Glitch --- */
.glitch {
    position: relative;
    color: var(--text-main);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(85px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    15% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 100px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 10px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 90px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(30px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 30px, 0);
    }
}

/* --- Header --- */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    position: relative;
    color: var(--text-dim);
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-link:hover::before {
    width: 100%;
}

.cta-small {
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    transition: 0.3s;
}

.cta-small:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
}

.cyber-btn {
    display: inline-block;
    position: relative;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.cyber-btn.primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cyber-btn.primary:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary);
}

.hero-visual {
    position: relative;
    width: 500px;
    max-width: 100%;
    height: auto;
    z-index: 1;
}

.image-frame {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.image-frame.hud-corner::before,
.image-frame.hud-corner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    z-index: 10;
}

.image-frame.hud-corner::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.image-frame.hud-corner::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.glitch-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: contrast(1.2) brightness(0.8) hue-rotate(10deg);
    transition: 0.5s;
}

.hero-visual:hover .glitch-img {
    filter: contrast(1.4) brightness(1) hue-rotate(0deg);
    transform: scale(1.05);
}

.cyber-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0.5) sepia(0.5) hue-rotate(180deg);
    transition: 0.5s;
}

.image-frame:hover .cyber-img {
    filter: grayscale(0) sepia(0) hue-rotate(0deg);
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.1) 51%, transparent 51%);
    background-size: 100% 4px;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

/* --- Sections General --- */
.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-header.right {
    text-align: right;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-main);
    display: inline-block;
}

.decor-line {
    width: 100px;
    height: 4px;
    background: var(--secondary);
    margin-top: 0.5rem;
    display: inline-block;
}

.section-header.right .decor-line {
    margin-left: auto;
}

/* --- Intro Section --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.cyber-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    position: relative;
}

.card-header {
    background: var(--secondary);
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.code-block {
    font-family: monospace;
    color: var(--secondary);
    line-height: 1.8;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hud-box {
    background: rgba(0, 20, 40, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 2rem;
    position: relative;
    transition: 0.3s;
}

.hud-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* HUD Corners */
.hud-box::before,
.hud-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary);
    transition: 0.3s;
}

.hud-box::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.hud-box::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.icon-box {
    color: var(--primary);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.icon-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hud-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: #fff;
}

/* --- Tech Section --- */
.tech-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.tech-diagram {
    flex: 1;
    position: relative;
}

.tech-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0, 243, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.diagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(0, 243, 255, 0.1));
    pointer-events: none;
}

.tech-details {
    flex: 1;
}

.tech-details h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tech-specs {
    margin-top: 2rem;
    font-family: var(--font-body);
    color: var(--secondary);
}

.tech-specs li {
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 0, 85, 0.3);
    padding-bottom: 0.5rem;
}

/* --- Roadmap Section --- */
.timeline {
    border-left: 2px solid var(--primary);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--secondary);
    border-radius: 50%;
}

.timeline-item .date {
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* --- CTA Section --- */
#cta {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--bg-color), #0a0a0a);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-family: var(--font-heading);
}

.countdown {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--accent);
    margin: 2rem 0;
    letter-spacing: 3px;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
}

input[type="email"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.cyber-btn.secondary {
    background: var(--secondary);
    color: #fff;
    border: none;
}

.cyber-btn.secondary:hover {
    background: #ff3377;
    box-shadow: 0 0 20px var(--secondary);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hud-header {
        padding: 1rem;
    }

    nav {
        display: none;
    }

    /* Simple hide for mobile for now, or hamburger */

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    #hero {
        padding: 0 2rem;
        justify-content: center;
        text-align: center;
    }

    .intro-grid,
    .tech-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .input-group {
        flex-direction: column;
    }
}