/* Custom Neon Green Color: #09de1e */
:root {
    --neon-primary: #09de1e;
    --neon-primary-dim: #0bc70f;
    --neon-glow: rgba(14, 227, 17, 0.5);
    --neon-glow-strong: rgba(14, 227, 17, 0.8);
    --hologram-shimmer: linear-gradient(45deg,
            rgba(14, 227, 17, 0) 0%,
            rgba(14, 227, 17, 0.2) 50%,
            rgba(14, 227, 17, 0) 100%);
}

body {
    background-color: #050505;
    color: #ffffff;
}

.text-neon {
    color: var(--neon-primary);
    text-shadow: 0 0 25px var(--neon-glow);
}

.bg-neon {
    background-color: var(--neon-primary);
}

.bg-neon:hover {
    background-color: var(--neon-primary-dim);
    box-shadow: 0 0 30px var(--neon-glow);
}

.border-neon {
    border-color: var(--neon-primary);
}

.shadow-neon {
    box-shadow: 0 0 20px rgba(14, 227, 17, 0.2);
}

/* Typing Cursor */
.typing-cursor::after {
    content: '';
    display: inline-block;
    width: 0.1em;
    height: 0.8em;
    background-color: var(--neon-primary);
    margin-left: 0.1em;
    vertical-align: middle;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual-wrap {
    right: clamp(-140px, -10vw, -70px);
    width: min(920px, calc(100vw - 24px));
    height: min(720px, calc(100vh - 160px));
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
    .hero-visual-wrap {
        right: -8px;
        width: min(860px, calc(100vw - 24px));
        height: min(700px, calc(100vh - 160px));
    }
}

@media (min-width: 1024px) and (max-width: 1279.98px) and (orientation: portrait) {
    .hero-visual-wrap {
        right: 0px;
        width: min(820px, calc(100vw - 24px));
        height: min(660px, calc(100vh - 220px));
    }
}

.doc-scene {
    width: min(100%, clamp(320px, 40vw, 560px));
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.doc-file {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(-18deg) rotateZ(6deg);
}

.doc-file--back1 {
    transform: rotateX(18deg) rotateY(-18deg) rotateZ(6deg) translateX(10px) translateY(14px) translateZ(-40px);
    opacity: 0.55;
    border-color: rgba(14, 227, 17, 0.35);
    box-shadow: 0 0 24px rgba(14, 227, 17, 0.08);
}

.doc-file--back2 {
    transform: rotateX(18deg) rotateY(-18deg) rotateZ(6deg) translateX(22px) translateY(28px) translateZ(-80px);
    opacity: 0.28;
    border-color: rgba(14, 227, 17, 0.24);
    box-shadow: 0 0 18px rgba(14, 227, 17, 0.05);
}

.doc-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(14, 227, 17, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(14, 227, 17, 0.05);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    overflow: hidden;
}

.doc-layer--active {
    border-color: rgba(14, 227, 17, 0.85);
    box-shadow: 0 0 50px rgba(14, 227, 17, 0.22), inset 0 0 20px rgba(14, 227, 17, 0.1);
}

.doc-layer--active::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: conic-gradient(from 180deg, rgba(14, 227, 17, 0.0), rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: ringGlow 2.8s ease-in-out infinite;
    opacity: 0.65;
    pointer-events: none;
}

@keyframes ringGlow {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.85;
    }
}

.doc-layer--active::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    background:
        linear-gradient(to right, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) top left / 22px 2px no-repeat,
        linear-gradient(to bottom, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) top left / 2px 22px no-repeat,
        linear-gradient(to left, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) top right / 22px 2px no-repeat,
        linear-gradient(to bottom, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) top right / 2px 22px no-repeat,
        linear-gradient(to right, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) bottom left / 22px 2px no-repeat,
        linear-gradient(to top, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) bottom left / 2px 22px no-repeat,
        linear-gradient(to left, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) bottom right / 22px 2px no-repeat,
        linear-gradient(to top, rgba(14, 227, 17, 0.55), rgba(14, 227, 17, 0.0)) bottom right / 2px 22px no-repeat;
    opacity: 0.55;
    pointer-events: none;
}

.indexing-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.indexing-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--neon-primary);
    box-shadow: 0 0 16px rgba(14, 227, 17, 0.4);
    animation: dotPulse 1.1s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.6;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.type-rotator {
    display: inline-flex;
    align-items: baseline;
    position: relative;
    min-width: 5ch;
    letter-spacing: 0.02em;
    line-height: 1;
}

.type-word {
    display: inline-block;
    will-change: transform, opacity, filter;
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 320ms ease, filter 320ms ease;
    filter: drop-shadow(0 0 8px var(--neon-glow));
}

.type-word.in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.type-word.out {
    opacity: 0;
    transform: translateY(0.18em) scale(0.985);
    filter: blur(2px);
}

.indexing-bar {
    position: relative;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.indexing-bar>span {
    position: absolute;
    inset: 0;
    width: 38%;
    background: linear-gradient(90deg, rgba(14, 227, 17, 0.0), rgba(14, 227, 17, 0.85), rgba(14, 227, 17, 0.0));
    filter: blur(0.2px);
    animation: indexingSweep 1.65s ease-in-out infinite;
}

@keyframes indexingSweep {
    0% {
        transform: translateX(-130%);
        opacity: 0.7;
    }

    45% {
        opacity: 1;
    }

    100% {
        transform: translateX(250%);
        opacity: 0.75;
    }
}

/* Fake Content Lines */
.doc-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 100%;
}

.doc-line.short {
    width: 60%;
}

.doc-line.medium {
    width: 80%;
}

.doc-line.neon {
    background: rgba(14, 227, 17, 0.3);
    width: 40%;
    box-shadow: 0 0 10px rgba(14, 227, 17, 0.2);
}

/* Scanning Beam */
.scan-beam {
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 3px;
    background: #09de1e;
    box-shadow:
        0 0 15px #09de1e,
        0 0 35px #09de1e,
        0 0 65px rgba(14, 227, 17, 0.4);
    opacity: 0.9;
    animation: scan 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 30;
}

.scan-beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(14, 227, 17, 0.2), transparent);
    transform: translateY(-100%);
    pointer-events: none;
}

.scan-beam::after {
    content: '';
    position: absolute;
    left: 0;
    top: -6px;
    width: 100%;
    height: 14px;
    background-image: radial-gradient(circle, rgba(14, 227, 17, 0.95) 0 1.5px, transparent 2px);
    background-size: 26px 14px;
    background-repeat: repeat-x;
    animation: beamParticles 0.9s linear infinite;
    opacity: 0.6;
    filter: blur(0.2px);
    pointer-events: none;
}

@keyframes beamParticles {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 26px;
    }
}

.scan-grid {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: repeating-linear-gradient(90deg, rgba(14, 227, 17, 0.10) 0 1px, transparent 1px 18px);
    opacity: 0.25;
    transform: translateZ(1px);
    animation: gridMove 2.6s linear infinite;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

@keyframes gridMove {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 18px;
    }
}

.data-path-base {
    stroke: rgba(14, 227, 17, 0.14);
}

.data-path-anim {
    stroke-dasharray: 12 14;
    animation: dataDash 1.15s linear infinite;
    filter: drop-shadow(0 0 12px rgba(14, 227, 17, 0.22));
}

@keyframes dataDash {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -52;
    }
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 227, 17, 0.1) 0%, transparent 20%);
    animation: scanOverlay 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 12px;
}

@keyframes scan {
    0% {
        top: 5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 95%;
        opacity: 0;
    }
}

@keyframes scanOverlay {
    0% {
        top: 5%;
        height: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
        height: 10%;
    }

    100% {
        top: 95%;
        height: 0%;
        opacity: 0;
    }
}

/* Floating Animation */
.float-1 {
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Feature Cards 3D Tilt & Glow */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(14, 227, 17, 0.15);
}

/* Corner Accents */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 227, 17, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 227, 17, 0.4), transparent);
    opacity: 0;
}

.glitch-text::attr(data-text) {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #050505;
}

@keyframes scan-once {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes scan-beam {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(400%);
    }
}

@keyframes move-bg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 80px 0;
    }
}