*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

/* Background blur glow */
body::before{
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    top: -200px;
    left: -150px;
    z-index: -3;
    will-change: transform;
    transform: translateZ(0);
}
 
body::after{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    background:#6d28d950;
    border-radius:50%;
    filter:blur(180px);
    bottom:-150px;
    right:-120px;
    z-index:-3;
}

body{
    font-family:"Inter",sans-serif;
    background:var(--void);
    color:white;
    overflow-x:hidden;
    position:relative;
}

h1,h2,.logo,.card h4,.stat h3{
    font-family:"Space Grotesk",sans-serif;
}

.tag,.stat span,nav ul{
    font-family:"JetBrains Mono",monospace;
}

/* Background grain */
.grain{
    position:fixed;
    inset:0;
    z-index:40;
    pointer-events:none;
    opacity:.035;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hamburger menu dim effect */
.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:998;
}

.overlay.active{
    opacity:1;
    visibility:visible;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.slide-down {
    animation:slideDown 2s var(--ease) forwards;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        scale: 0.8;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.scale-up {
    animation:scaleUp 2s var(--ease) forwards;
}

/* Navigation bar */
nav{
    width:100%;
    padding:22px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:fixed;
    top:0;
    z-index:100;
    transition:background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
    border-bottom:1px solid transparent;
    opacity: 0;
}

nav.scrolled{
    background:rgba(8,8,10,.6);
    backdrop-filter:blur(16px);
    border-bottom:1px solid var(--line);
}

.logo{
    font-size:22px;
    font-weight:700;
    color:white;
    letter-spacing:.5px;
}

.logo span{
    color:var(--orchid);
}

.typing{
    font-size:1.5rem;
    font-weight:600;
    position:relative;
}

.typing::after{
    content:"";
    width:2px;
    transform: translateY(3px);
    height:1.4rem;
    background:#B56EFF;
    display:inline-block;
    margin-left:5px;
    animation:blink .9s infinite;
}

/* Blink animation */
@keyframes blink{
    50%{
        opacity:0;
    }
}

.desktop-nav{
    display:flex;
    gap:38px;
    list-style:none;
    font-size:13px;
}

nav a{
    color:var(--mist);
    text-decoration:none;
    transition:color .3s;
    letter-spacing:.3px;
}

nav a:hover{
    color:var(--orchid);
}

/* Hamburger menu */
.menu-btn{
    display:none;
    color:white;
    background:none;
    cursor:pointer;

    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.menu-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glass-glow);
}

.menu {
    font-size: 20px;
}

.mobile-menu{
    position:fixed;
    top:0;
    right:-100%;
    width:280px;
    height:100vh;
    background:rgba(10,10,15,.9);
    backdrop-filter:blur(20px);
    border-left:1px solid rgba(255,255,255,.1);
    display:flex;
    flex-direction:column;
    padding:100px 35px;
    gap:28px;
    transition:.4s ease;
    z-index:999;
}

.mobile-menu.active{
    right:0;
}

.mobile-menu a{
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:.3s;
}

.mobile-menu a:hover{
    color:var(--amethyst);
    transform:translateX(6px);
}

.close-btn{
    position:absolute;
    top:25px;
    right:25px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    color: var(--text-muted);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glass-glow);
}

.close {
    font-size: 20px;
}

.active-page::after {
    color: var(--amethyst);
    content: " ‹";
}

/* Hero section */
.hero{
    min-height:100svh;
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:4rem;
    padding:120px 8% 60px;
    position:relative;
}

/* Left side */
.left{
    flex:1;
    max-width:620px;
}

.reveal{
    opacity:0;
    transform:translateY(24px);
    animation:rise 2s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes rise{
    to{ opacity:1; transform:translateY(0); }
}

.tag{
    color:var(--orchid);
    margin-bottom:22px;
    font-size:13px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    display:inline-flex;
    align-items:center;
    gap:10px;
}

.tag::before{
    content:"";
    width:22px;
    height:1px;
    background:var(--orchid);
}

.left h1{
    font-size:clamp(2rem,6vw,4.3rem);
    line-height:1.05;
    margin-bottom:16px;
    font-weight:700;
    letter-spacing:-1px;
}

.left h2{
    color:var(--mist);
    font-size:clamp(1rem,2vw,1.4rem);
    margin-bottom:26px;
    font-weight:400;
    font-family:"Inter",sans-serif;
}

.left h2 b{
    color:white;
    font-weight:600;
}

.left p{
    color:var(--mist);
    line-height:1.8;
    max-width:520px;
    margin-bottom:38px;
    font-size:clamp(.9rem,1.2vw,1rem);
}

.buttons{
    display:flex;
    gap:16px;
    margin-bottom:50px;
}

.btn{
    padding:15px 30px;
    border-radius:50px;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    transition:.35s;
    position:relative;
}

.primary{
    background:var(--amethyst);
    color:white;
}

.primary:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 40px #8b5cf666;
}

.secondary{
    border:1px solid rgba(255,255,255,.18);
    color:white;
}

.secondary:hover{
    background:var(--glass);
    border-color:rgba(255,255,255,.3);
}

.stats{
    display:flex;
    gap:0;
    border-top:1px solid var(--line);
    padding-top:26px;
}

.stat{
    padding-right:40px;
    margin-right:40px;
    border-right:1px solid var(--line);
}

.stat:last-child{
    border-right:none;
}

.stat h3{
    color:white;
    font-size:26px;
    font-weight:600;
    margin-bottom:4px;
}

.stat span{
    color:var(--mist-dim);
    font-size:11px;
    letter-spacing:.8px;
    text-transform:uppercase;
}

/* Right side */
.right{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    min-height:550px;
    width:100%;
    max-width:560px;
    perspective:1200px;
}

#stage{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:1;
}

.image{
    position:relative;
    width:min(320px,75vw);
    aspect-ratio:4/5;
    height:auto;
    border-radius:26px;
    overflow:hidden;
    backdrop-filter:blur(20px);
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.15);
    z-index:2;
    box-shadow:0 25px 70px rgba(0,0,0,.55);
    transition:transform .1s ease-out;
}

.image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent 40%, rgba(8,8,10,.55) 100%);
}

.image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.card{
    position:absolute;
    background:rgba(13,13,19,.6);
    border:1px solid rgba(255,255,255,.15);
    backdrop-filter:blur(20px);
    padding:16px 22px;
    border-radius:16px;
    z-index:3;
    animation:float 5s ease-in-out infinite;
    box-shadow:0 10px 30px rgba(0,0,0,.4);
}

.card h4{
    font-size:20px;
    color:var(--orchid);
    font-weight:600;
}

.card p{
    color:#ddd;
    margin-top:3px;
    font-size:12px;
    font-family:"Inter",sans-serif;
}

.c1{
    left:0px;
    top:50px;
}

.c2{
    right:0px;
    bottom:70px;
    animation-delay:2s;
}

.c3{
    right:-30px;
    top:80px;
    animation-delay:1s;
}

@keyframes float{
    0%,100%{
        transform:translateY(0px);
    }

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

/* Responsive  */
@media (min-height: 1000px) {

    .stats {
        justify-content: center;
        align-items: center;
    }

    .stat {
        padding: 20px;
        margin: 10px 20px;
        border: none;
    }

    .c1 {
        left: 80px;
    }

    .c2 {
        right: 80px;
    }

    .c3 {
        right: 80px;
    }
}

@media (max-width:1400px){

    .hero{
        gap:40px;
    }

    .left h1{
        font-size:60px;
    }

    .right{
        max-width:500px;
        height:500px;
    }

    .image{
        width:300px;
        height:380px;
    }

}

@media (max-width:1200px){

    .hero{
        gap:2rem;
    }

    .left h1{
        font-size:clamp(3rem,5vw,4rem);
    }

    .left h2{
        font-size:1.2rem;
    }

    .right{
        min-height:480px;
    }

    .image{
        width:260px;
        height:330px;
    }

    .card{
        padding:14px 18px;
    }

    .card h4{
        font-size:18px;
    }

}


@media (max-width:992px){

    .hero{
        flex-direction:column-reverse;
        text-align:center;
        padding:120px 6% 60px;
    }

    .left{
        max-width:700px;
    }

    .left p{
        margin:0 auto 35px;
    }

    .tag{
        justify-content:center;
    }

    .buttons{
        justify-content:center;
        flex-wrap:wrap;
    }

    .stats{
        justify-content:center;
        flex-wrap:wrap;
    }

    .right{
        max-width:100%;
        min-height:420px;
    }

    .desktop-nav{
        display:none;
    }

    .menu-btn{
        display:block;
    }

}

@media (max-width:768px){

    .hero{
        padding:110px 24px 50px;
    }

    .left h1{
        font-size:clamp(2.3rem,9vw,3rem);
    }

    .left h2{
        font-size:1rem;
    }

    .left p{
        font-size:.95rem;
    }

    .buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .stats{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

    .stat{
        border:none;
        margin:0;
        padding:0;
        text-align:center;
    }

    .right{
        min-height:360px;
    }

    .card{
        transform:scale(.85);
    }

    .c1{
        left:100px;
        top:15px;
    }

    .c2{
        right:110px;
        bottom:20px;
    }

    .c3{
        right:90px;
        top:20px;
    }

    .desktop-nav{
        display:none;
    }

    .menu-btn{
        display:block;
    }

}


@media (max-width:576px){

    .hero{
        padding:100px 20px 40px;
    }

    .tag::before {
        display: none;
    }

    .left h1{
        font-size:2rem;
    }

    .left h2{
        font-size:.95rem;
    }

    .left p{
        font-size:.9rem;
    }

    .stats{
        grid-template-columns:1fr;
    }

    .right{
        min-height:300px;
    }

    .image{
        width:min(220px,70vw);
    }

    .card{
        display:none;
    }

    .card h4{
        font-size:15px;
    }

    .card p{
        font-size:11px;
    }

    .c1{
        top:20px;
        left:5px;
    }

    .c2{
        bottom:20px;
        right:5px;
    }

    .c3{
        top:30px;
        right:5px;
    }

    .desktop-nav{
        display:none;
    }

    .menu-btn{
        display:block;
    }

}

@media (max-width:400px){

    .left h1{
        font-size:1.8rem;
    }

    .left h2{
        font-size:15px;
    }

    .left p{
        font-size:.85rem;
    }

    .image{
        width:min(190px,70vw);
    }

    .card{
        display:none;
    }

    .stats{
        grid-template-columns:1fr;
    }

    .desktop-nav{
        display:none;
    }

    .menu-btn{
        display:block;
    }

}

/* Animation reduction */
@media (prefers-reduced-motion: reduce){
    .reveal{ animation:none; opacity:1; transform:none; }
    .card{ animation:none; }
}
