/* ===========================================
   BrowserBrain Landing Page
   Part 1
=========================================== */

:root {

    --bg: #050816;
    --bg-light: #0d1224;

    --card: rgba(255,255,255,0.05);

    --border: rgba(255,255,255,0.08);

    --text: #ffffff;
    --text-light: #a8b2d1;

    --primary: #7c5cff;
    --secondary: #4cc9f0;

    --gradient:
        linear-gradient(
            135deg,
            #7c5cff,
            #4cc9f0
        );

    --radius:20px;

    --shadow:
        0 20px 80px rgba(124,92,255,.25);

}

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

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

    line-height:1.7;

    position:relative;

}

/* ===========================================
    Animated Background
=========================================== */

body::before{

    content:"";

    position:fixed;

    width:700px;
    height:700px;

    background:
        radial-gradient(
            circle,
            rgba(124,92,255,.25),
            transparent 70%
        );

    top:-200px;
    right:-200px;

    filter:blur(60px);

    animation:floatBlob 12s infinite ease-in-out;

    z-index:-2;

}

body::after{

    content:"";

    position:fixed;

    width:600px;
    height:600px;

    background:
        radial-gradient(
            circle,
            rgba(76,201,240,.18),
            transparent 70%
        );

    bottom:-250px;
    left:-200px;

    filter:blur(70px);

    animation:floatBlob2 14s infinite ease-in-out;

    z-index:-2;

}

@keyframes floatBlob{

    0%{

        transform:
        translateY(0)
        translateX(0);

    }

    50%{

        transform:
        translateY(40px)
        translateX(-30px);

    }

    100%{

        transform:
        translateY(0)
        translateX(0);

    }

}

@keyframes floatBlob2{

    0%{

        transform:
        translateY(0)
        translateX(0);

    }

    50%{

        transform:
        translateY(-40px)
        translateX(30px);

    }

    100%{

        transform:
        translateY(0)
        translateX(0);

    }

}

/* ===========================================
    Container
=========================================== */

.container{

    width:min(1180px,92%);

    margin:auto;

}

/* ===========================================
    Navbar
=========================================== */

nav{

    position:sticky;

    top:0;

    backdrop-filter:blur(18px);

    background:rgba(5,8,22,.65);

    border-bottom:1px solid rgba(255,255,255,.05);

    z-index:999;

}

.nav-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}

.logo{

    font-size:1.3rem;

    font-weight:800;

    letter-spacing:.5px;

}

.nav-links{

    display:flex;

    gap:32px;

    align-items:center;

}

.nav-links a{

    text-decoration:none;

    color:var(--text-light);

    transition:.3s;

    font-weight:500;

}

.nav-links a:hover{

    color:white;

}

.btn-nav{

    padding:12px 22px;

    border-radius:999px;

    background:var(--gradient);

    color:white !important;

    font-weight:600;

    box-shadow:var(--shadow);

}

/* ===========================================
    Hero
=========================================== */

.hero{

    padding:120px 0 90px;

    text-align:center;

}

.badge{

    display:inline-block;

    background:rgba(124,92,255,.12);

    color:#d7d2ff;

    border:1px solid rgba(124,92,255,.25);

    padding:10px 18px;

    border-radius:999px;

    margin-bottom:28px;

    font-size:.9rem;

}

.hero h1{

    font-size:4.2rem;

    line-height:1.05;

    font-weight:800;

    max-width:950px;

    margin:auto;

}

.hero h1 span{

    background:var(--gradient);

    -webkit-background-clip:text;

    color:transparent;

}

.hero p{

    margin:35px auto;

    max-width:760px;

    color:var(--text-light);

    font-size:1.2rem;

}

/* ===========================================
    Hero Buttons
=========================================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:30px;

}

.primary-btn{

    text-decoration:none;

    padding:18px 34px;

    border-radius:14px;

    background:var(--gradient);

    color:white;

    font-weight:700;

    transition:.3s;

    box-shadow:var(--shadow);

}

.primary-btn:hover{

    transform:translateY(-4px);

}

.secondary-btn{

    text-decoration:none;

    padding:18px 34px;

    border-radius:14px;

    border:1px solid rgba(255,255,255,.1);

    color:white;

    background:rgba(255,255,255,.04);

    transition:.3s;

}

.secondary-btn:hover{

    background:rgba(255,255,255,.08);

    transform:translateY(-4px);

}

/* ===========================================
    Hero Image
=========================================== */

.hero-image{

    margin-top:70px;

}

.hero-image img{

    width:100%;

    max-width:1050px;

    border-radius:26px;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 30px 120px rgba(0,0,0,.55);

    transition:.5s;

}

.hero-image img:hover{

    transform:
        scale(1.015);

}

/* ===========================================
   SECTION SPACING
=========================================== */

section{
    padding:110px 0;
}

section h2{

    font-size:3rem;

    font-weight:800;

    text-align:center;

    margin-bottom:18px;

    line-height:1.2;

}

.section-description{

    max-width:760px;

    margin:0 auto 70px;

    text-align:center;

    color:var(--text-light);

    font-size:1.1rem;

    line-height:1.8;

}

/* ===========================================
   PROBLEM SECTION
=========================================== */

.problem{

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255,255,255,.02)
        );

}

.problem-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(260px,1fr));

    gap:28px;

}

.problem-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:36px;

    backdrop-filter:blur(20px);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.problem-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(124,92,255,.15),
            transparent,
            rgba(76,201,240,.08)
        );

    opacity:0;

    transition:.35s;

}

.problem-card:hover::before{

    opacity:1;

}

.problem-card:hover{

    transform:
        translateY(-8px);

    border-color:
        rgba(124,92,255,.35);

    box-shadow:
        0 25px 70px rgba(124,92,255,.18);

}

.problem-card h3{

    font-size:1.25rem;

    margin-bottom:16px;

}

.problem-card p{

    color:var(--text-light);

    line-height:1.8;

}

/* ===========================================
   FEATURES
=========================================== */

.features{

    position:relative;

}

.feature-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}

.feature-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:42px 34px;

    backdrop-filter:blur(18px);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.feature-card::after{

    content:"";

    position:absolute;

    width:180px;
    height:180px;

    background:
        radial-gradient(
            rgba(124,92,255,.22),
            transparent
        );

    right:-70px;
    top:-70px;

    opacity:0;

    transition:.35s;

}

.feature-card:hover::after{

    opacity:1;

}

.feature-card:hover{

    transform:
        translateY(-10px);

    border-color:
        rgba(124,92,255,.35);

    box-shadow:
        0 30px 80px rgba(124,92,255,.22);

}

.feature-card h3{

    font-size:1.3rem;

    margin-bottom:18px;

}

.feature-card p{

    color:var(--text-light);

    line-height:1.8;

}

/* ===========================================
   FEATURE ICON
=========================================== */

.feature-card h3::before{

    display:block;

    font-size:2rem;

    margin-bottom:14px;

}

/* ===========================================
   HOW IT WORKS
=========================================== */

.how{

    position:relative;

}

.steps{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(230px,1fr));

    gap:32px;

    margin-top:70px;

}

.step{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:36px;

    text-align:center;

    transition:.35s;

}

.step:hover{

    transform:
        translateY(-10px);

    border-color:
        rgba(76,201,240,.4);

    box-shadow:
        0 20px 70px rgba(76,201,240,.15);

}

.step span{

    width:70px;
    height:70px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0 auto 24px;

    border-radius:50%;

    background:var(--gradient);

    font-size:1.4rem;

    font-weight:800;

    color:white;

    box-shadow:var(--shadow);

}

.step h3{

    margin-bottom:16px;

    font-size:1.25rem;

}

.step p{

    color:var(--text-light);

}

/* ===========================================
   VISION
=========================================== */

.vision{

    text-align:center;

}

.vision p{

    max-width:760px;

    margin:auto;

    color:var(--text-light);

    font-size:1.2rem;

    line-height:2;

}

/* ===========================================
   SIMPLE FADE ANIMATION
=========================================== */

.problem-card,
.feature-card,
.step{

    animation:fadeUp .8s ease both;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:
            translateY(35px);

    }

    to{

        opacity:1;

        transform:
            translateY(0);

    }

}


/* ===========================================
   WAITLIST
=========================================== */

.waitlist{

    position:relative;

    text-align:center;

}

.waitlist .container{

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

    border-radius:28px;

    padding:70px 50px;

}

.waitlist h2{

    margin-bottom:20px;

}

.waitlist p{

    color:var(--text-light);

    max-width:650px;

    margin:0 auto 40px;

}

#waitlistForm{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

}

#waitlistForm input{

    width:420px;

    max-width:100%;

    padding:18px 22px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    color:white;

    outline:none;

    font-size:1rem;

    transition:.3s;

}

#waitlistForm input::placeholder{

    color:#9ca3af;

}

#waitlistForm input:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(124,92,255,.15);

}

#waitlistForm button{

    border:none;

    cursor:pointer;

    padding:18px 32px;

    border-radius:14px;

    background:var(--gradient);

    color:white;

    font-size:1rem;

    font-weight:700;

    transition:.3s;

    box-shadow:var(--shadow);

}

#waitlistForm button:hover{

    transform:translateY(-3px);

}

.waitlist small{

    display:block;

    margin-top:25px;

    color:#94a3b8;

}

/* ===========================================
   FAQ
=========================================== */

.faq{

    max-width:900px;

    margin:auto;

}

.faq-item{

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:28px;

    margin-bottom:22px;

    transition:.3s;

}

.faq-item:hover{

    border-color:rgba(124,92,255,.35);

    transform:translateY(-4px);

}

.faq-item h3{

    font-size:1.15rem;

    margin-bottom:12px;

}

.faq-item p{

    color:var(--text-light);

    line-height:1.8;

}

/* ===========================================
   FOOTER
=========================================== */

footer{

    padding:80px 0 40px;

    border-top:1px solid rgba(255,255,255,.06);

    text-align:center;

}

footer h3{

    font-size:1.8rem;

    margin-bottom:18px;

}

footer p{

    color:var(--text-light);

}

.footer-links{

    display:flex;

    justify-content:center;

    gap:30px;

    margin:30px 0;

    flex-wrap:wrap;

}

.footer-links a{

    text-decoration:none;

    color:white;

    transition:.3s;

}

.footer-links a:hover{

    color:var(--primary);

}

.copyright{

    font-size:.9rem;

    color:#6b7280;

}

/* ===========================================
   SCROLLBAR
=========================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#050816;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
        180deg,
        #7c5cff,
        #4cc9f0
    );

    border-radius:50px;

}

/* ===========================================
   TEXT SELECTION
=========================================== */

::selection{

    background:#7c5cff;

    color:white;

}

/* ===========================================
   SMOOTH IMAGE ANIMATION
=========================================== */

img{

    max-width:100%;

    display:block;

}

.hero-image img{

    animation:floatImage 6s ease-in-out infinite;

}

@keyframes floatImage{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-10px);

    }

    100%{

        transform:translateY(0);

    }

}

/* ===========================================
   RESPONSIVE - TABLET
=========================================== */

@media (max-width:992px){

    .hero h1{

        font-size:3rem;

    }

    .hero p{

        font-size:1.05rem;

    }

    section{

        padding:90px 0;

    }

    .nav-links{

        gap:20px;

    }

}

/* ===========================================
   RESPONSIVE - MOBILE
=========================================== */

@media (max-width:768px){

    nav{

        position:relative;

    }

    .nav-container{

        flex-direction:column;

        gap:20px;

    }

    .nav-links{

        flex-wrap:wrap;

        justify-content:center;

        gap:16px;

    }

    .hero{

        padding:80px 0;

    }

    .hero h1{

        font-size:2.3rem;

    }

    .hero p{

        font-size:1rem;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    .primary-btn,

    .secondary-btn{

        width:100%;

        max-width:320px;

        text-align:center;

    }

    .problem-grid,

    .feature-grid,

    .steps{

        grid-template-columns:1fr;

    }

    section h2{

        font-size:2rem;

    }

    .waitlist .container{

        padding:50px 25px;

    }

    #waitlistForm{

        flex-direction:column;

    }

    #waitlistForm input{

        width:100%;

    }

    #waitlistForm button{

        width:100%;

    }

}

/* ===========================================
   SMALL MOBILE
=========================================== */

@media (max-width:480px){

    .hero h1{

        font-size:2rem;

    }

    .logo{

        font-size:1.1rem;

    }

    section{

        padding:70px 0;

    }

    .problem-card,

    .feature-card,

    .step{

        padding:28px;

    }

}