/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:
    radial-gradient(
        circle at top,
        #131d38 0%,
        #050505 40%
    );

    color:white;

    overflow-x:hidden;
}

/* ==========================
   PAGE
========================== */

.page{
    width:min(1500px,95vw);
    margin:auto;
}

/* ==========================
   GLOBAL
========================== */

img{
    display:block;
    max-width:100%;
}

section{
    padding:80px 0;
}

/* ==========================
   NAVBAR
========================== */

.navbar{
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 40px;
    position:relative;
    z-index:100;
    background:transparent;
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;
    position:relative;
}

.logo::before{

    content:'';

    position:absolute;

    width:70px;
    height:70px;

    left:-8px;
    top:-9px;

    border-radius:20px;

    background:
    radial-gradient(
        circle,
        rgba(59,130,246,.25),
        rgba(168,85,247,.15),
        transparent
    );

    filter:blur(18px);

    z-index:-1;
}

.logo img{
    width:52px;
    height:52px;
    border-radius:16px;

    transition:.4s ease;

    filter:
    drop-shadow(0 0 10px rgba(37,99,235,.6))
    drop-shadow(0 0 20px rgba(168,85,247,.4));
}

.logo img:hover{

    transform:
    scale(1.08)
    rotate(-4deg);

    filter:
    drop-shadow(0 0 18px rgba(37,99,235,.9))
    drop-shadow(0 0 35px rgba(168,85,247,.8));
}

.logo h2{
    font-size:34px;
    font-weight:800;

    text-shadow:
    0 0 15px rgba(59,130,246,.25);
}

.logo span{

    background:
    linear-gradient(
        135deg,
        #60a5fa,
        #a855f7
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-shadow:
    0 0 20px rgba(168,85,247,.4);
}

.nav-links{

    display:flex;

    gap:36px;

    list-style:none;
}

.nav-links a{

    text-decoration:none;

    color:#cbd5e1;

    transition:.3s ease;
}

.nav-links a:hover{

    color:white;
}

.nav-links a.active{

    color:white;

    position:relative;
}

.nav-links a.active::after{

    content:'';

    position:absolute;

    bottom:-10px;
    left:0;

    width:100%;

    height:3px;

    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        #3b82f6,
        #8b5cf6
    );
}

.notify-btn{

    border:none;

    cursor:pointer;

    color:white;

    font-weight:700;

    padding:14px 24px;

    border-radius:16px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #8b5cf6
    );
}

.menu-btn{
    display:none;

    background:none;
    border:none;

    color:white;

    font-size:30px;
    cursor:pointer;

    transition:.3s ease;
}

.menu-btn.active{
    transform:rotate(90deg);
    color:#60a5fa;
}

/* ==========================
   MOBILE MENU
========================== */

.mobile-menu{
    display:none;
}

.mobile-menu.active{
    display:flex !important;
    flex-direction:column;
    gap:8px;

    position:absolute;
    top:90px;
    left:15px;
    right:15px;

    padding:20px;

    background:rgba(15,23,42,.95);
    backdrop-filter:blur(20px);

    border:1px solid rgba(96,165,250,.2);
    border-radius:24px;

    box-shadow:
    0 0 30px rgba(37,99,235,.25),
    0 0 60px rgba(168,85,247,.15);

    animation:menuSlide .35s ease;
    z-index:9999;
}

@keyframes menuSlide{
    from{
        opacity:0;
        transform:translateY(-20px) scale(.95);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.mobile-menu a{
    color:white;
    text-decoration:none;

    padding:14px 18px;

    border-radius:14px;

    transition:.3s ease;
}

.mobile-menu a:hover{
    background:rgba(96,165,250,.12);

    transform:translateX(8px);

    color:#60a5fa;
}

.mobile-menu button{
    margin-top:10px;
    padding:15px;
    border:none;
    border-radius:16px;
    color:white;
    font-weight:700;
    background:linear-gradient(135deg, #2563eb, #8b5cf6);
    box-shadow:0 0 20px rgba(59,130,246,.3);
}

/* ==========================
   HERO
========================== */

.hero{

    min-height:60vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    position:relative;

    overflow:hidden;

    padding-top:60px;
}

.hero-bg-glow{

    position:absolute;

    width:700px;

    height:700px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        rgba(59,130,246,.20),
        transparent 70%
    );

    filter:blur(60px);

    z-index:0;
}

.hero-content{

    position:relative;

    z-index:2;

    max-width:850px;
}

.version-badge{

    display:inline-block;

    padding:12px 20px;

    border-radius:999px;

    color:#60a5fa;

    margin-bottom:30px;

    border:
    1px solid rgba(96,165,250,.25);

    background:
    rgba(96,165,250,.08);
}

.hero-logo{

    width:120px;
    height:120px;

    object-fit:contain;

    margin:0 auto 30px;

    animation:floatLogo 4s ease-in-out infinite;

    transition:.4s ease;

    border-radius:28px;
}

.hero-logo:hover{

    transform: scale(1.08);

    filter: drop-shadow(0 0 25px #3b82f6)
            drop-shadow(0 0 40px #a855f7);
}

@keyframes floatLogo{

    0%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(-12px);
    }

    100%{
        transform: translateY(0px);
    }
}

.hero h1{

    font-size:clamp(
        4rem,
        10vw,
        7rem
    );

    margin-bottom:10px;
}

.hero h2{

    color:#94a3b8;

    font-weight:500;

    margin-bottom:25px;
}

.hero p{

    max-width:650px;

    margin:auto;

    line-height:1.9;

    color:#cbd5e1;

    margin-bottom:35px;
}

.download-btn{

    border:none;

    cursor:pointer;

    color:white;

    font-weight:700;

    padding:18px 34px;

    border-radius:18px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #8b5cf6
    );

    transition:.3s ease;
}

.download-btn:hover{

    transform:
    translateY(-3px);
}

/* ==========================
   SECTION HEADER
========================== */

.section-header{

    text-align:center;

    max-width:800px;

    margin:0 auto 70px;
}

.section-header span{

    display:inline-block;

    padding:10px 18px;

    border-radius:999px;

    color:#60a5fa;

    background:
    rgba(96,165,250,.08);

    border:
    1px solid rgba(96,165,250,.18);

    margin-bottom:20px;
}

.section-header h2{

    font-size:
    clamp(2.5rem,5vw,4rem);

    margin-bottom:15px;
}

.section-header p{

    color:#94a3b8;

    line-height:1.9;

    max-width:650px;

    margin:auto;
}

/* ==========================
   SCREENSHOTS
========================== */

.screenshots{

    padding-top:40px;
}

.screenshots-track{

    display:flex;
    gap:35px;

    overflow-x:auto;

    scroll-behavior:smooth;

    scrollbar-width:none;

    scroll-snap-type:x mandatory;

    scroll-padding:80px;

    justify-content:flex-start;

    padding:20px 80px;
}

.screenshots-track::-webkit-scrollbar{

    display:none;
}

.screenshots-wrapper{
    position:relative;
}

.side-arrow{

    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:64px;
    height:64px;

    border:none;
    cursor:pointer;

    z-index:50;

    border-radius:50%;

    color:white;
    font-size:28px;

    backdrop-filter:blur(20px);

    background:rgba(15,23,42,.85);

    border:1px solid rgba(255,255,255,.08);

    opacity:1;

    transition:
    opacity .35s ease,
    transform .35s ease,
    background .35s ease,
    box-shadow .35s ease;
}

.side-arrow:hover{
    transform:
    translateY(-50%)
    scale(1.08);
}

.left-arrow{
    left:10px;
}

.right-arrow{
    right:10px;
}

.phone-shot{
    flex:0 0 auto;
    width:300px;
    border-radius:36px;
    overflow:hidden;
    background:#050505;
    border:1px solid rgba(255,255,255,.08);
    scroll-snap-align:center;
}

.phone-shot:hover{

    transform:
    translateY(-8px)
    scale(1.02);

    box-shadow:
    0 0 40px rgba(37,99,235,.25),
    0 0 80px rgba(168,85,247,.18);
}

.phone-shot img{

    width:100%;

    display:block;

    height:auto;

    object-fit:cover;
}

.phone-shot::after{

    content:'';

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.14),
        transparent
    );

    transform:
    translateX(-120%);

    transition:.9s ease;

    pointer-events:none;
}

.phone-shot:hover::after{

    transform:
    translateX(120%);
}

/* ==========================
   WHAT'S NEW
========================== */

.whats-new{

    padding-top:80px;
}

.update-card{

    max-width:950px;

    margin:auto;

    display:grid;

    gap:20px;
}

.update-item{

    display:flex;

    align-items:flex-start;

    gap:20px;

    padding:28px;

    border-radius:26px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

    transition:.35s ease;
}

.update-item:hover{

    transform:
    translateY(-6px);

    border-color:
    rgba(59,130,246,.22);

    box-shadow:
    0 0 35px rgba(59,130,246,.10);
}

.update-icon{

    width:60px;

    height:60px;

    flex-shrink:0;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:18px;

    font-size:24px;

    background:
    linear-gradient(
        135deg,
        rgba(59,130,246,.20),
        rgba(168,85,247,.20)
    );

    border:
    1px solid rgba(255,255,255,.08);
}

.update-item h3{

    font-size:24px;

    margin-bottom:8px;
}

.update-item p{

    color:#94a3b8;

    line-height:1.8;
}

/* ==========================
   REVEAL ANIMATION
========================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:
        translateY(30px);
    }

    to{

        opacity:1;

        transform:
        translateY(0);
    }
}

.phone-shot,
.update-item{

    animation:
    fadeUp .8s ease;
}

/* ==========================
   WHY MATHX
========================== */

.why-mathx{
    padding-top:80px;
}

.why-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:25px;
}

.why-card{

    padding:35px 30px;

    text-align:center;

    border-radius:30px;

    background:
    rgba(255,255,255,.04);

    backdrop-filter:blur(20px);

    border:
    1px solid rgba(255,255,255,.08);

    transition:.35s ease;
}

.why-card:hover{

    transform:
    translateY(-8px);

    border-color:
    rgba(59,130,246,.25);

    box-shadow:
    0 0 40px rgba(59,130,246,.12);
}

.why-icon{

    width:80px;

    height:80px;

    margin:auto;

    margin-bottom:20px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:24px;

    font-size:32px;

    background:
    linear-gradient(
        135deg,
        rgba(59,130,246,.18),
        rgba(168,85,247,.18)
    );
}

.why-card h3{

    font-size:24px;

    margin-bottom:12px;
}

.why-card p{

    color:#94a3b8;

    line-height:1.8;
}

/* ==========================
   COMING NEXT
========================== */

.coming-next{
    padding-top:100px;
}

.future-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;
}

.future-card{

    padding:35px;

    border-radius:30px;

    background:
    rgba(255,255,255,.04);

    backdrop-filter:blur(20px);

    border:
    1px solid rgba(255,255,255,.08);

    transition:.35s ease;
}

.future-card:hover{

    transform:
    translateY(-8px);

    border-color:
    rgba(168,85,247,.25);

    box-shadow:
    0 0 40px rgba(168,85,247,.12);
}

.future-icon{

    width:70px;

    height:70px;

    margin-bottom:20px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:20px;

    font-size:28px;

    background:
    linear-gradient(
        135deg,
        rgba(59,130,246,.18),
        rgba(168,85,247,.18)
    );
}

.future-card h3{

    font-size:24px;

    margin-bottom:10px;
}

.future-card p{

    color:#94a3b8;

    line-height:1.8;
}

/* ==========================
   DOWNLOAD CTA
========================== */

.download-cta{

    padding-top:120px;

    padding-bottom:120px;
}

.cta-card{

    text-align:center;

    padding:80px 40px;

    border-radius:40px;

    background:
    linear-gradient(
        135deg,
        rgba(37,99,235,.18),
        rgba(168,85,247,.18)
    );

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(20px);
}

.cta-card span{

    display:block;

    color:#60a5fa;

    margin-bottom:15px;
}

.cta-card h2{

    font-size:
    clamp(2.5rem,6vw,4.5rem);

    margin-bottom:20px;
}

.cta-card p{

    max-width:700px;

    margin:auto;

    color:#cbd5e1;

    line-height:1.9;

    margin-bottom:35px;
}

/* ==========================
   FOOTER
========================== */

footer{
    margin-top:0;
    padding:40px 0 80px;
    text-align:center;
}

.footer-brand img{
    width:80px;
    margin:0 auto 25px;

    border-radius:22px;
    padding:8px;

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
    0 0 15px rgba(59,130,246,.25),
    0 0 30px rgba(168,85,247,.2);

    transition:.4s ease;
}

.footer-brand img:hover{

    transform:translateY(-5px) scale(1.05);

    box-shadow:
    0 0 25px rgba(59,130,246,.4),
    0 0 45px rgba(168,85,247,.35);
}


.footer-brand h2{
    font-size:56px;
    font-weight:800;
    margin-bottom:16px;
}

.footer-brand p{
    color:#94a3b8;
    font-size:18px;
    max-width:650px;
    margin:auto;
    line-height:1.8;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width:1100px){

    .why-grid{
        grid-template-columns:
        repeat(2,1fr);
    }

    .future-grid{
        grid-template-columns:1fr;
    }

    .footer-content{
        grid-template-columns:
        repeat(2,1fr);
    }
}

@media (max-width:900px){

    .nav-links,
    .notify-btn{
        display:none;
    }

    .menu-btn{
        display:block;
    }

    .footer-content{
        grid-template-columns:1fr;

        text-align:center;
    }

    .footer-brand p{
        margin:auto;
    }
}

@media (max-width:768px){

    section{
        padding:80px 0;
    }

    .why-grid{
        grid-template-columns:1fr;
    }

    .phone-shot{
        width:220px;
        min-width:220px;
        max-width:220px;
    }

    .update-item{

        flex-direction:column;

        text-align:center;
    }

    .update-icon{

        margin:auto;
    }

    .cta-card{

        padding:60px 25px;
    }
}

@media (max-width:480px){

    .navbar{

        padding:0 18px;
    }

    .logo h2{

        font-size:26px;
    }

    .logo img{
        
        width:42px;
        height:42px;
    }

    .hero-logo{

        width:100px;
    }

    .hero h2{

        font-size:18px;
    }

    .future-card,
    .why-card{

        padding:25px;
    }

    .cta-card h2{

        font-size:34px;
    }
}


/* =====================================
   CUSTOM SCROLLBAR
===================================== */

::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-track{
    background:#020617;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        #2563eb,
        #8b5cf6
    );

    border-radius:999px;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
    0 0 12px rgba(37,99,235,.5),
    0 0 20px rgba(139,92,246,.4);
}

::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(
        180deg,
        #3b82f6,
        #a855f7
    );
}

::-webkit-scrollbar-corner{
    background:#020617;
}

.reveal{
    opacity:0;
    transform:
    translateY(80px)
    scale(.97);

    filter:blur(8px);

    transition:
    opacity .9s ease,
    transform .9s ease,
    filter .9s ease;
}

.reveal.active{
    opacity:1;
    transform:
    translateY(0)
    scale(1);

    filter:blur(0);
}

@media(max-width:900px){

    .cta{
        flex-direction:column;
        text-align:center;
        gap:30px;
    }

    .cta-btn{
        width:100%;
        justify-content:center;
    }
}

.screenshots-controls{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-bottom:25px;
}

.slider-btn{

    width:52px;

    height:52px;

    border:none;

    cursor:pointer;

    border-radius:50%;

    font-size:24px;

    color:white;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #8b5cf6
    );

    transition:.3s ease;
}

.slider-btn:hover{

    transform:scale(1.08);

    box-shadow:
    0 0 25px rgba(59,130,246,.35);
}

/* ==========================
   SCREENSHOT SLIDER
========================== */

.screenshots-wrapper{

    position:relative;

    display:flex;

    align-items:center;
}

.side-arrow{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:64px;

    height:64px;

    border:none;

    cursor:pointer;

    z-index:50;

    border-radius:50%;

    color:white;

    font-size:28px;

    backdrop-filter:blur(20px);

    background:
    rgba(15,23,42,.85);

    border:
    1px solid rgba(255,255,255,.08);

    transition:.3s ease;
}

.side-arrow:hover{

    transform:
    translateY(-50%)
    scale(1.08);

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #8b5cf6
    );

    box-shadow:
    0 0 25px rgba(59,130,246,.35);
}

.left-arrow{

    left:20px;
}

.right-arrow{

    right:-20px;
}

@media(max-width:768px){

    .side-arrow{

        width:50px;
        height:50px;

        font-size:22px;
    }

    .left-arrow{
        left:10px;
    }

    .right-arrow{
        right:10px;
    }
}

.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:
    opacity .8s ease,
    transform .8s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

.phone-shot:nth-child(1){transition-delay:.1s;}
.phone-shot:nth-child(2){transition-delay:.2s;}
.phone-shot:nth-child(3){transition-delay:.3s;}
.phone-shot:nth-child(4){transition-delay:.4s;}

.future-card:nth-child(1){transition-delay:.1s;}
.future-card:nth-child(2){transition-delay:.2s;}
.future-card:nth-child(3){transition-delay:.3s;}

.why-card:nth-child(1){transition-delay:.1s;}
.why-card:nth-child(2){transition-delay:.2s;}
.why-card:nth-child(3){transition-delay:.3s;}
.why-card:nth-child(4){transition-delay:.4s;}