/* ======================================================
   REMEXAAI PREMIUM LIGHT THEME
   Modern AI SaaS / App Landing Page
   ====================================================== */

:root {

    --primary: #7C4DFF;
    --primary-dark: #5B2EFF;
    --primary-light: #A68CFF;

    --bg: #FFFFFF;
    --bg-soft: #F7F8FC;

    --text: #111827;
    --text-light: #6B7280;

    --border: #E5E7EB;

    --shadow-sm:
        0 10px 30px rgba(124,77,255,0.08);

    --shadow-md:
        0 15px 50px rgba(124,77,255,0.12);

    --shadow-lg:
        0 25px 80px rgba(124,77,255,0.18);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --container: 1280px;

    --transition: .3s ease;
}

/* ======================================================
   RESET
   ====================================================== */

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

#features::before, 
#screenshots::before, 
#faq::before, 
#download::before {
    content: "";
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: var(--container);
    margin: auto;
}

/* ======================================================
   HEADER
   ====================================================== */

.header {

    position: sticky;
    top: 0;
    z-index: 999;

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

    backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(229,231,235,.7);
}

.navbar {

    height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 22px;
    font-weight: 800;

    color: var(--text);
}

.logo img {

    width: 44px;
    height: 44px;

    object-fit: contain;
}

.nav-links {

    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {

    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {

    color: var(--primary);
}

.menu-toggle, .mobile-menu-header, .nav-overlay {
    display: none;
}

/* ======================================================
   HERO
   ====================================================== */

.hero {

    position: relative;

    padding:
        50px
        0
        80px;

    overflow: hidden;
}

.hero::before {

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    background:
        radial-gradient(
            rgba(124,77,255,.15),
            transparent 70%
        );

    top: -250px;
    right: -150px;

    pointer-events: none;
}

.hero-wrapper {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    align-items: center;
}

.hero-badge {

    display: inline-block;

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

    color: var(--primary);

    padding:
        10px
        18px;

    border-radius: 999px;

    font-weight: 700;
    font-size: 14px;

    margin-bottom: 24px;
}

.hero-content h1 {

    font-size: 64px;
    line-height: 1.1;

    font-weight: 900;

    letter-spacing: -2px;

    margin-bottom: 24px;
}

.hero-content p {

    font-size: 20px;
    color: var(--text-light);

    margin-bottom: 35px;
}

.hero-buttons {

    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: left;
}

.btn-primary {

    background: var(--primary);
    color: white;

    padding:
        16px
        28px;

    border-radius: 14px;

    font-weight: 700;

    transition: var(--transition);

    box-shadow: var(--shadow-md);
}

.btn-primary:hover {

    background: var(--primary-dark);

    transform: translateY(-3px);
}

.btn-secondary {

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

    color: var(--text);

    padding:
        16px
        28px;

    border-radius: 14px;

    font-weight: 700;

    transition: var(--transition);
}

.btn-secondary:hover {

    border-color: var(--primary);

    color: var(--primary);
}

.hero-image {

    position: relative;

    display: flex;
    justify-content: center;
}

.hero-image img {

    width: 264px;

    border-radius: 24px;

    box-shadow: var(--shadow-lg);
}

/* ======================================================
   SECTION TITLE
   ====================================================== */

.section-title {

    text-align: center;

    margin-bottom: 70px;
}

.section-title span {

    display: inline-block;

    color: var(--primary);

    font-weight: 700;

    margin-bottom: 14px;
}

.section-title h2 {

    font-size: 48px;
    font-weight: 900;

    margin-bottom: 14px;
}

.section-title p {

    color: var(--text-light);
    font-size: 18px;
}

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

.features {

    padding: 50px 0;

    background: var(--bg-soft);
}

.feature-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 30px;
}

.feature-card {

    background: white;

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

    border-radius: var(--radius-md);

    padding: 35px;

    transition: var(--transition);
}

.feature-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow-md);
}

.feature-card h3 {

    font-size: 24px;
    margin-bottom: 14px;
}

.feature-card p {

    color: var(--text-light);
}

/* ======================================================
   SHOWCASE
   ====================================================== */

.showcase {

    padding: 50px 0;
}

.showcase-grid {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 80px;

    align-items: center;
}

.showcase-image img {

    border-radius: 30px;

    box-shadow: var(--shadow-lg);
}

.showcase-content h3 {

    font-size: 42px;

    margin-bottom: 30px;
}

.showcase-content ul li {

    padding: 12px 0;

    font-size: 18px;
    font-weight: 600;
}

.before-after-section{
text-align:center;
}

.before-after-section h3{
font-size:42px;
margin-bottom:10px;
}

.before-after-section p{
color:var(--text-light);
margin-bottom:30px;
}

.ba-container{
position:relative;
width:100%;
max-width:600px;
margin:auto;
overflow:hidden;
border-radius:28px;
box-shadow:var(--shadow-lg);
}

.ba-after{
display:block;
width:100%;
height:auto;
object-fit:cover;
}

.ba-before-wrapper{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
clip-path:inset(0 50% 0 0);
-webkit-clip-path:inset(0 50% 0 0);
z-index:2;
}

.ba-before{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
}

.ba-slider{
position:absolute;
inset:0;
width:100%;
height:100%;
opacity:0;
cursor:ew-resize;
z-index:10;
}

.ba-divider{
position:absolute;
top:0;
left:50%;
width:3px;
height:100%;
background:#fff;
transform:translateX(-50%);
z-index:5;
pointer-events:none;
}

.ba-handle{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:52px;
height:52px;
border-radius:50%;
background:#fff;
box-shadow:0 5px 20px rgba(0,0,0,.25);
z-index:6;
pointer-events:none;
}

.before-label,
.after-label{
position:absolute;
top:20px;
z-index:7;
background:rgba(0,0,0,.75);
color:#fff;
padding:8px 14px;
border-radius:999px;
font-size:14px;
font-weight:700;
}

.before-label{
left:20px;
}

.after-label{
right:20px;
}



/* ======================================================
   SCREENSHOTS
   ====================================================== */

.screenshots {

    padding: 50px 0;

    background: var(--bg-soft);
}

.screenshot-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 25px;
}

.screenshot-grid img {

    width: 100%;

    border-radius: 24px;

    transition: var(--transition);

    box-shadow: var(--shadow-sm);
}

.screenshot-grid img:hover {

    transform:
        translateY(-8px)
        scale(1.02);

    box-shadow: var(--shadow-lg);
}

/* ======================================================
   DOWNLOAD CTA
   ====================================================== */

.download {

    padding: 50px 0;
}

.download-box {

    background:
        linear-gradient(
            135deg,
            #7C4DFF,
            #9F7BFF
        );

    color: white;

    text-align: center;

    border-radius: 40px;

    padding:
        90px
        50px;
}

.download-box h2 {

    font-size: 54px;

    margin-bottom: 18px;
}

.download-box p {

    font-size: 20px;

    margin-bottom: 30px;

    opacity: .9;
}

.download-box .btn-primary {

    background: white;
    color: var(--primary);
}

.download-box .btn-secondary {

    border-color: rgba(255,255,255,.3);

    color: white;
}

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

.faq {

    padding: 50px 0;
}

.faq-list {

    max-width: 900px;
    margin: auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
}

.faq-item .faq-answer {
    padding: 0 20px 16px 20px;
}

.faq-item p {
    color: var(--text-light);
}

.faq-item[open] summary {
    background: var(--primary);
    margin-bottom: 12px;
}

.faq-item[open] summary h3 {
    color: white;
}

.faq-item summary .icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq-item summary .icon::before,
.faq-item summary .icon::after {
    content: '';
    position: absolute;
    background: var(--primary);
    transition: var(--transition);
}

.faq-item[open] summary .icon::before,
.faq-item[open] summary .icon::after {
    background: white;
}

.faq-item summary .icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-item summary .icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item[open] summary .icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

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

.footer {

    background: #FAFAFC;

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

    text-align: center;

    padding:
        50px
        20px;
}

.footer-logo {

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    margin-bottom: 25px;
}

.footer-logo img {

    width: 60px;
}

.footer-logo h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.footer p {

    color: var(--text-light);

    margin-bottom: 24px;
}

.footer-socials {
    margin-bottom: 30px;
}

.footer-socials h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-soft, #f0f0f5);
    color: var(--text);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-links {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;

    margin-bottom: 30px;
}

.footer-links a {

    color: var(--text-light);
    font-weight: 600;
}

.footer-links a:hover {

    color: var(--primary);
}

.copyright {

    color: #9CA3AF;
}

.softnoesis-link{
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.softnoesis-link:hover{
    text-decoration: underline;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 1100px) {

    .hero-wrapper,
    .showcase-grid {

        grid-template-columns: 1fr;
    }

    .hero-content {

        text-align: center;
    }

    .hero-buttons {

        justify-content: center;
    }

    .hero-image {

        margin-top: 20px;
    }

    .feature-grid {

        grid-template-columns:
            repeat(2,1fr);
    }

    .screenshot-grid {

        grid-template-columns:
            repeat(2,1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .nav-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        display: block;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: #1e242b;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
        display: flex;
        gap: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 40px;
    }

    .mobile-logo {
        color: white;
        font-size: 24px;
        font-weight: 700;
    }

    .menu-close {
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: var(--transition);
        padding: 0;
    }

    .menu-close:hover {
        background: rgba(255,255,255,0.2);
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 24px;
        list-style: none;
    }

    .nav-links a {
        color: white;
        font-size: 18px;
        display: block;
        width: 100%;
    }

    .nav-links a:hover {
        color: var(--primary-light);
    }

    .hero {

        padding-top: 60px;
    }

    .hero-content h1 {

        font-size: 42px;
    }

    .hero-content p {

        font-size: 18px;
    }

    .section-title h2 {

        font-size: 36px;
    }

    .showcase-content h3 {

        font-size: 34px;
    }

    .download-box h2 {

        font-size: 38px;
    }

    .feature-grid {

        grid-template-columns: 1fr;
    }

    .screenshot-grid {

        grid-template-columns: 1fr;
    }

    .hero-image img {

        width: 300px;
    }
}

@media (max-width: 480px) {

    .hero-content h1 {

        font-size: 34px;
    }

    .section-title h2 {

        font-size: 30px;
    }

    .download-box {

        padding: 60px 25px;
    }

    .download-box h2 {

        font-size: 30px;
    }
}

.store-btn{
display:inline-block;
transition:.3s ease;
}

.store-btn img{
height:60px;
width:auto;
display:block;
}

.store-btn:hover{
transform:translateY(-4px);
}

.download-box .hero-buttons{
    justify-content:center;
}

@media(max-width:768px){


.store-btn img{
    height:52px;
}


}


/* =========================================
   EXTRA RESPONSIVE IMPROVEMENTS
========================================= */

@media (max-width: 768px){

    .showcase-grid{
        gap:40px;
    }

    .ba-container{
        max-width:100%;
    }

    .feature-card{
        padding:25px;
    }

    .feature-card h3{
        font-size:20px;
    }

    .showcase-content h3{
        font-size:28px;
        text-align:center;
    }

    .showcase-content ul{
        text-align:left;
        max-width:320px;
        margin:auto;
    }

    .footer-links{
        gap:15px;
    }

    .footer-links a{
        font-size:14px;
    }
}

@media (max-width: 480px){

    .hero-content h1{
        font-size:32px;
        line-height:1.2;
    }

    .hero-content p{
        font-size:16px;
    }

    .section-title h2{
        font-size:28px;
    }

    .hero-image img{
        width:220px;
    }

    .store-btn img{
        height:48px;
    }

    .download-box{
        border-radius:24px;
        padding:40px 20px;
    }

    .download-box h2{
        font-size:26px;
    }

    /* Removed fixed height for ba-container */

    .before-after-section h3{
        font-size:28px;
    }

    .before-after-section p{
        font-size:14px;
    }

    .faq-item summary {
        padding: 14px 16px;
    }

    .faq-item .faq-answer {
        padding: 0 16px 14px 16px;
    }

    .faq-item summary h3{
        font-size:16px;
    }
}

@media (min-width: 1600px) {
    .faq-item .faq-answer p {
        font-size: 20px;
    }
}

/* ======================================================
   SCROLL TO TOP BUTTON
   ====================================================== */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-top-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.scroll-top-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 99999 !important;
        display: flex !important;
    }
}