/* ============================================
   NEMESIS BIONICS — Global Styles
   ============================================ */

:root {
    --black: #000000;
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --white: #ffffff;
    --white-60: rgba(255, 255, 255, 0.6);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-10: rgba(255, 255, 255, 0.1);
    --accent: #39ff14;
    --accent-dim: rgba(57, 255, 20, 0.15);
    --accent-glow: rgba(57, 255, 20, 0.4);
    --font-main: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}


/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: auto; /* GSAP handles smooth scroll */
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    cursor: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

/* ---- Custom Cursor ---- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

body.cursor-hover .cursor {
    width: 16px;
    height: 16px;
}

body.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    background: var(--accent-dim);
}

/* ---- Loader ---- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-inner {
    text-align: center;
}

.loader-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--white-60);
    display: block;
    margin-bottom: 1.5rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--white-10);
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.1s linear;
}

.loader-percent {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.2em;
}

/* ---- Canvas ---- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-logo-text {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-logo-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 0.5rem;
}

.nav-menu-btn span {
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: all 0.4s var(--ease-out);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative;
}

.hero-overline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-overline-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-overline-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--white-60);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-word {
    display: inline-block;
    transform: translateY(120%);
}

.accent {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--white-60);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--white-30);
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    cursor: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(101%);
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--black);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 1rem;
    transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translate(3px, -3px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--white-30);
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Marquee ---- */
.marquee-section {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    border-top: 1px solid var(--white-10);
    border-bottom: 1px solid var(--white-10);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--white-30);
    padding: 0 2rem;
    text-transform: uppercase;
}

.marquee-separator {
    color: var(--accent);
    font-size: 0.5rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section {
    position: relative;
    z-index: 1;
    padding: 10rem 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.section-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.section-label-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--white-30);
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.section-body {
    font-size: 1rem;
    color: var(--white-60);
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 1.5rem;
}

/* ---- Stats ---- */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--white-10);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--white-30);
    text-transform: uppercase;
    line-height: 1.6;
}

/* ---- Big Text ---- */
.big-text-section {
    position: relative;
    z-index: 1;
    padding: 8rem 3rem;
    text-align: center;
}

.big-text {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

/* ---- Tech Cards ---- */
.tech-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--white-10);
    padding: 2.5rem;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--white-30);
    transform: translateY(-4px);
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tech-card-index {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.tech-card-line {
    flex: 1;
    height: 1px;
    background: var(--white-10);
}

.tech-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.tech-card-body {
    font-size: 0.9rem;
    color: var(--white-60);
    line-height: 1.7;
}

/* ---- Product Teaser ---- */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--white-10);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.product-card-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    display: inline-block;
    padding: 0.4rem 1.25rem;
    margin-bottom: 2rem;
}

.product-card-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.product-card-sub {
    font-size: 1.1rem;
    color: var(--white-60);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.product-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--white-60);
    text-transform: uppercase;
}

.product-card-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--white-30);
    border: 1px solid var(--white-10);
    padding: 0.4rem 1rem;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-out);
}

.feature-tag:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
}

/* ---- Timeline ---- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--white-10);
    transition: all 0.4s var(--ease-out);
}

.timeline-item:hover {
    padding-left: 1rem;
}

.timeline-marker {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border: 1px solid var(--white-30);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out);
}

.timeline-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-phase {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-body {
    font-size: 0.95rem;
    color: var(--white-60);
    line-height: 1.7;
    max-width: 500px;
}

/* ---- Contact ---- */
.contact-links {
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--white-10);
    border-bottom: 1px solid var(--white-10);
    transition: all 0.4s var(--ease-out);
}

.contact-link:hover {
    padding-left: 1.5rem;
}

.contact-link-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--white-30);
    min-width: 60px;
}

.contact-link-value {
    font-size: 1.25rem;
    font-weight: 400;
}

.contact-link-arrow {
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform 0.4s var(--ease-out);
}

.contact-link:hover .contact-link-arrow {
    transform: translate(4px, -4px);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    padding: 3rem;
    border-top: 1px solid var(--white-10);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--white);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--white-30);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--white-30);
}

/* ---- Glitch Hover Effect ---- */
.glitch-hover {
    position: relative;
    display: inline-block;
    cursor: none;
}

.glitch-hover::before,
.glitch-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.glitch-hover::before {
    color: var(--accent);
    z-index: -1;
}

.glitch-hover::after {
    color: #ff0040;
    z-index: -1;
}

.glitch-hover:hover::before {
    opacity: 0.8;
    animation: glitch-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.glitch-hover:hover::after {
    opacity: 0.6;
    animation: glitch-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.glitch-hover:hover {
    animation: glitch-main 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes glitch-main {
    0% { transform: translate(0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(2px, -1px); filter: blur(0.5px); }
    30% { transform: translate(-1px, -2px); }
    40% { transform: translate(1px, 2px); clip-path: inset(20% 0 40% 0); }
    50% { transform: translate(-2px, 0); clip-path: inset(50% 0 10% 0); }
    60% { transform: translate(2px, 1px); clip-path: none; filter: blur(0); }
    70% { transform: translate(0, -1px); }
    80% { transform: translate(-1px, 0); }
    100% { transform: translate(0); clip-path: none; filter: blur(0); }
}

@keyframes glitch-1 {
    0% { clip-path: inset(0 0 100% 0); transform: translate(0); }
    10% { clip-path: inset(30% 0 40% 0); transform: translate(-3px, 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
    30% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
    50% { clip-path: inset(20% 0 50% 0); transform: translate(-1px, 0); }
    60% { clip-path: inset(45% 0 30% 0); transform: translate(1px, 0); }
    100% { clip-path: inset(0 0 100% 0); transform: translate(0); opacity: 0; }
}

@keyframes glitch-2 {
    0% { clip-path: inset(100% 0 0 0); transform: translate(0); }
    10% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
    20% { clip-path: inset(15% 0 55% 0); transform: translate(-3px, 0); }
    30% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
    40% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, 0); }
    50% { clip-path: inset(40% 0 30% 0); transform: translate(1px, 0); }
    60% { clip-path: inset(25% 0 50% 0); transform: translate(-1px, 0); }
    100% { clip-path: inset(100% 0 0 0); transform: translate(0); opacity: 0; }
}

/* Glitch scanline flash on hover */
.glitch-hover:hover .glitch-scanline {
    animation: scanline-flash 0.4s ease-out;
}

/* ---- Reveal Animations (initial states) ---- */
.reveal-text {
    opacity: 0;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }

    .section { padding: 6rem 1.5rem; }
    .hero { padding: 0 1.5rem; }
    .big-text-section { padding: 5rem 1.5rem; }
    .nav { padding: 1.25rem 1.5rem; }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-left {
        flex-direction: row;
        gap: 1rem;
    }

    .tech-cards {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .product-card {
        padding: 3rem 1.5rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .contact-link {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .contact-link-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .big-text {
        font-size: 2rem;
    }
}
