/* ====================
   LANDING PAGE — PREMIUM VISUAL FX
   ==================== */

/* Geist Pixel Font Import */
@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=JetBrains+Mono:wght@300;400;500;700&display=swap');

:root {
    --font-pixel: 'Silkscreen', cursive;
    --font-mono-alt: 'JetBrains Mono', monospace;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
}

/* ---- ANIMATED GRID BACKGROUND ---- */
.grid-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ---- MATRIX RAIN CANVAS ---- */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
}

/* ---- PARTICLE FIELD ---- */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ---- HERO SECTION REVAMP ---- */
.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 40px 24px;
    overflow: hidden;
}

.hero-ascii-art {
    font-family: var(--font-code);
    font-size: clamp(6px, 1.2vw, 12px);
    line-height: 1.15;
    color: var(--accent-cyan);
    white-space: pre;
    opacity: 0;
    animation: asciiReveal 1.5s ease-out 0.5s forwards;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

@keyframes asciiReveal {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(8px); }
    60% { opacity: 0.8; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---- GLITCH TEXT ---- */
.glitch-text {
    font-family: var(--font-pixel);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    animation: glitchEntry 0.8s ease-out 1.2s both;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}
.glitch-text::before {
    color: var(--accent-cyan);
    animation: glitch1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 65% 0);
}
.glitch-text::after {
    color: var(--accent-pink);
    animation: glitch2 2.5s infinite linear alternate-reverse;
    clip-path: inset(40% 0 0 0);
}

@keyframes glitch1 {
    0%, 95% { transform: none; }
    96% { transform: translate(-3px, -2px); }
    97% { transform: translate(3px, 1px); }
    98% { transform: translate(-1px, 2px); }
    99% { transform: translate(2px, -1px); }
}
@keyframes glitch2 {
    0%, 94% { transform: none; }
    95% { transform: translate(3px, 2px); }
    96% { transform: translate(-2px, -1px); }
    97% { transform: translate(1px, -2px); }
    98% { transform: translate(-3px, 1px); }
}
@keyframes glitchEntry {
    0% { opacity: 0; transform: translateY(40px); }
    30% { opacity: 1; }
    50% { transform: translateY(-5px) skewX(-2deg); }
    70% { transform: translateY(3px) skewX(1deg); }
    100% { transform: translateY(0) skewX(0); opacity: 1; }
}

/* ---- PIXEL SUBTITLE ---- */
.pixel-subtitle {
    font-family: var(--font-pixel);
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: pixelFadeUp 0.6s ease-out 1.6s forwards;
}

/* ---- TYPING CURSOR ---- */
.typing-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    animation: pixelFadeUp 0.6s ease-out 2s forwards;
}
.typing-text {
    font-family: var(--font-mono-alt);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-grey);
    border-right: 2px solid var(--accent-cyan);
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    animation: typingBlink 0.7s step-end infinite;
}
@keyframes typingBlink {
    0%, 100% { border-color: var(--accent-cyan); }
    50% { border-color: transparent; }
}

/* ---- STAGGERED FADE UP ---- */
@keyframes pixelFadeUp {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- CTA BUTTON ENHANCED ---- */
.neon-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: pixelFadeUp 0.6s ease-out 2.4s forwards;
}
.neon-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.15), transparent);
    transition: left 0.5s ease;
}
.neon-cta:hover::before { left: 100%; }
.neon-cta:hover {
    background: rgba(0, 255, 204, 0.08);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.2), inset 0 0 25px rgba(0, 255, 204, 0.05);
    transform: translateY(-2px);
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: pixelFadeUp 0.6s ease-out 3s forwards;
}
.scroll-indicator span {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--text-grey);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* ---- FLOATING ORBS ---- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 15s ease-in-out infinite;
    pointer-events: none;
}
.orb-1 {
    width: 400px; height: 400px;
    background: var(--accent-cyan);
    top: 10%; left: -5%;
    animation-delay: 0s;
}
.orb-2 {
    width: 300px; height: 300px;
    background: var(--accent-purple);
    bottom: 10%; right: -5%;
    animation-delay: -5s;
}
.orb-3 {
    width: 200px; height: 200px;
    background: var(--accent-pink);
    top: 50%; left: 60%;
    animation-delay: -10s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* ---- STATUS BAR ---- */
.status-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    opacity: 0;
    animation: pixelFadeUp 0.6s ease-out 2.8s forwards;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-grey);
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}
.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(39, 201, 63, 0); }
}

/* ---- SECTION DIVIDER ---- */
.section-glow-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 60px 0;
    opacity: 0.3;
}

/* ---- MOTION CARDS ---- */
.motion-card {
    background: rgba(11, 12, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.motion-card::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.motion-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 204, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 204, 0.05);
}
.motion-card:hover::after { opacity: 1; }

.motion-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.15), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-ascii-art { font-size: 5px; }
    .glitch-text { font-size: 2rem; }
    .orb { display: none; }
    .status-bar { gap: 10px; }
    .status-item { font-size: 0.65rem; padding: 4px 10px; }
}
