/* =========================================================
   SWAYPAY WEBSITE
   BRAND THEME: NAVY BLUE + RED + WHITE
   ========================================================= */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:90px;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fb;
    color:#26344d;
    line-height:1.7;
}


/* =========================================================
   HEADER
   ========================================================= */

.header{
    position:sticky;
    top:0;
    z-index:9999;
    background:#ffffff;
    border-bottom:1px solid #e3e7ef;
    box-shadow:0 3px 15px rgba(10,20,60,.08);
}

.header-inner{
    max-width:1250px;
    margin:auto;
    min-height:76px;
    padding:0 20px;
    display:flex;
    align-items:center;
    gap:22px;
}


/* LOGO */

.logo{
    display:flex;
    align-items:center;
    gap:11px;
    text-decoration:none;
    color:#111b70;
    font-size:25px;
    font-weight:900;
    white-space:nowrap;
    margin-right:auto;
}

.logo img{
    width:50px;
    height:50px;
    object-fit:contain;
    border-radius:12px;
    display:block;
}


/* NAVIGATION */

nav{
    display:flex;
    align-items:center;
    gap:22px;
}

nav a{
    position:relative;
    text-decoration:none;
    color:#25334d;
    font-size:15px;
    font-weight:700;
    padding:8px 0;
    transition:.25s ease;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:#ed101c;
    border-radius:5px;
    transition:.25s ease;
}

nav a:hover{
    color:#111b70;
}

nav a:hover::after{
    width:100%;
}


/* MENU BUTTON */

.menu-btn{
    display:none;
    width:44px;
    height:44px;
    border:1px solid #dce2ec;
    border-radius:10px;
    background:#111b70;
    color:#ffffff;
    font-size:24px;
    cursor:pointer;
    align-items:center;
    justify-content:center;
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

.header-search{
    margin-left:5px;
}

.header-search form{
    display:flex;
    align-items:center;
    width:190px;
    height:40px;
    border:1px solid #dce2ec;
    border-radius:22px;
    overflow:hidden;
    background:#f8f9fc;
    transition:.25s ease;
}

.header-search form:focus-within{
    border-color:#111b70;
    box-shadow:0 0 0 3px rgba(17,27,112,.08);
}

.header-search input{
    width:100%;
    height:100%;
    border:0;
    outline:0;
    background:transparent;
    padding:0 12px;
    color:#26344d;
    font-size:13px;
}

.header-search input::placeholder{
    color:#7b8799;
}

.header-search button{
    width:42px;
    height:100%;
    border:0;
    background:#111b70;
    color:#ffffff;
    cursor:pointer;
    font-size:16px;
    transition:.2s ease;
}

.header-search button:hover{
    background:#ed101c;
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
    position:relative;
    overflow:hidden;
    padding:72px 20px 82px;
    text-align:center;
    color:#ffffff;
    background:
        radial-gradient(
            circle at 50% 20%,
            #202b91 0%,
            #111b70 35%,
            #080e42 70%,
            #05082d 100%
        );
    border-bottom:5px solid #ed101c;
}


/* Decorative glow */

.hero::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    background:rgba(237,16,28,.12);
    top:-220px;
    left:-150px;
    filter:blur(5px);
}

.hero::after{
    content:"";
    position:absolute;
    width:380px;
    height:380px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
    bottom:-240px;
    right:-120px;
}


.hero-content{
    position:relative;
    z-index:2;
    max-width:950px;
    margin:auto;
}


/* HERO LOGO */

.hero-logo{
    width:125px;
    height:125px;
    object-fit:contain;
    border-radius:28px;
    margin-bottom:22px;
    background:#ffffff;
    padding:3px;
    box-shadow:
        0 12px 35px rgba(0,0,0,.28),
        0 0 0 5px rgba(255,255,255,.08);
}


/* HERO TITLE */

.hero h1{
    font-size:49px;
    line-height:1.2;
    margin:10px 0 20px;
    color:#ffffff;
    font-weight:900;
    letter-spacing:-1px;
}

.hero h1 span{
    color:#ff2733;
}


/* HERO TEXT */

.hero p{
    font-size:18px;
    max-width:820px;
    margin:0 auto 32px;
    color:#e5e9ff;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.primary-btn,
.secondary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:14px 28px;
    border-radius:10px;
    text-decoration:none;
    font-weight:800;
    transition:.25s ease;
}


/* RED MAIN BUTTON */

.primary-btn{
    background:linear-gradient(
        135deg,
        #ff1825,
        #d9000d
    );
    color:#ffffff;
    border:1px solid #ff2632;
    box-shadow:0 8px 20px rgba(237,16,28,.28);
}

.primary-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(237,16,28,.38);
}


/* NAVY SECONDARY BUTTON */

.secondary-btn{
    color:#ffffff;
    background:#111b70;
    border:1px solid rgba(255,255,255,.4);
}

.secondary-btn:hover{
    background:#ed101c;
    border-color:#ed101c;
    transform:translateY(-2px);
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container{
    max-width:1250px;
    margin:auto;
    padding:38px 18px;
}


/* =========================================================
   CARD
   ========================================================= */

.card{
    background:#ffffff;
    border:1px solid #e0e5ee;
    border-radius:18px;
    padding:32px;
    margin-bottom:28px;
    box-shadow:
        0 4px 18px rgba(15,30,70,.06);
}


/* CARD HEADING */

.card h2{
    font-size:30px;
    color:#111b70;
    margin:0 0 22px;
    padding-bottom:13px;
    border-bottom:2px solid #edf0f5;
    position:relative;
}

.card h2::after{
    content:"";
    display:block;
    width:65px;
    height:3px;
    background:#ed101c;
    position:absolute;
    left:0;
    bottom:-2px;
    border-radius:5px;
}


/* CARD TEXT */

.card p,
.card li{
    font-size:17px;
    color:#40536b;
}


/* LINKS */

.card a{
    color:#111b70;
}

.card a:hover{
    color:#ed101c;
}


/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.toc{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:4px 30px;
}

.toc a{
    position:relative;
    text-decoration:none;
    color:#334b68;
    font-size:16px;
    padding:8px 0 8px 16px;
    border-bottom:1px solid #eef1f5;
    transition:.2s ease;
}

.toc a::before{
    content:"";
    position:absolute;
    left:0;
    top:17px;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#ed101c;
}

.toc a:hover{
    color:#111b70;
    padding-left:20px;
}


/* =========================================================
   INVITE / REFER CODE
   ========================================================= */

.invite-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:22px 25px;
    border:1px dashed #111b70;
    border-radius:14px;
    background:
        linear-gradient(
            135deg,
            #f5f6ff,
            #fff6f7
        );
}

.invite-box span{
    display:block;
    font-size:12px;
    color:#68778c;
    font-weight:800;
    margin-bottom:4px;
}

.invite-box strong{
    display:block;
    font-size:28px;
    letter-spacing:3px;
    color:#111b70;
}

.invite-box button{
    border:0;
    background:#ed101c;
    color:#ffffff;
    padding:12px 22px;
    border-radius:9px;
    font-weight:800;
    cursor:pointer;
    transition:.2s ease;
    box-shadow:0 5px 14px rgba(237,16,28,.22);
}

.invite-box button:hover{
    background:#c9000b;
    transform:translateY(-1px);
}


/* SMALL NOTE */

.small-note{
    font-size:14px!important;
    color:#718096!important;
}


/* =========================================================
   DOWNLOAD BUTTON
   ========================================================= */

.download-btn{
    display:block;
    max-width:420px;
    margin:28px auto;
    padding:17px;
    text-align:center;
    text-decoration:none;
    color:#ffffff!important;
    font-weight:800;
    font-size:18px;
    border-radius:12px;
    background:
        linear-gradient(
            100deg,
            #111b70,
            #1e319d
        );
    border:2px solid #ed101c;
    box-shadow:
        0 8px 22px rgba(17,27,112,.20);
    transition:.25s ease;
}

.download-btn:hover{
    background:
        linear-gradient(
            100deg,
            #ed101c,
            #c9000b
        );
    transform:translateY(-2px);
}


/* =========================================================
   APP INFORMATION
   ========================================================= */

.app-info{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-top:25px;
}

.app-info div{
    padding:19px;
    background:#f8f9fc;
    border:1px solid #e1e6ef;
    border-radius:12px;
    text-align:center;
    transition:.2s ease;
}

.app-info div:hover{
    border-color:#111b70;
    transform:translateY(-2px);
}

.app-info span{
    display:block;
    font-size:11px;
    color:#77859a;
    font-weight:700;
    margin-bottom:4px;
}

.app-info strong{
    font-size:16px;
    color:#111b70;
}


/* =========================================================
   FEATURES
   ========================================================= */

.features,
.feature-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.feature,
.feature-box{
    padding:25px;
    border:1px solid #dfe5ee;
    border-radius:15px;
    background:#ffffff;
    transition:.25s ease;
}

.feature:hover,
.feature-box:hover{
    border-color:#111b70;
    box-shadow:0 8px 20px rgba(17,27,112,.08);
    transform:translateY(-3px);
}

.feature-icon{
    font-size:30px;
}

.feature h3,
.feature-box h3{
    color:#111b70;
    margin:8px 0;
}

.feature h3::after,
.feature-box h3::after{
    content:"";
    display:block;
    width:35px;
    height:2px;
    background:#ed101c;
    margin-top:5px;
}


/* =========================================================
   TABLE
   ========================================================= */

table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:10px;
}

th,
td{
    border:1px solid #dce3ec;
    padding:15px;
    text-align:left;
}

th{
    background:#111b70;
    color:#ffffff;
}

tr:nth-child(even){
    background:#f8f9fc;
}

tr:hover{
    background:#fff6f7;
}


/* =========================================================
   SCREENSHOTS
   ========================================================= */

.screenshots,
.preview-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.screenshots div,
.preview-grid div{
    border:1px solid #dce3ec;
    border-radius:14px;
    overflow:hidden;
    text-align:center;
    background:#111b70;
}

.screenshots img,
.preview-grid img{
    width:100%;
    height:400px;
    object-fit:contain;
    background:#070d35;
    display:block;
}

.screenshots p,
.preview-grid p{
    font-weight:bold;
    font-size:15px;
    color:#ffffff;
}


/* =========================================================
   NOTICE
   ========================================================= */

.notice,
.warning{
    padding:20px;
    border-radius:12px;
    background:#f3f5ff;
    border-left:5px solid #111b70;
}

.notice strong{
    color:#111b70;
}

.warning{
    background:#fff4f4;
    border-left-color:#ed101c;
}

.warning strong{
    color:#d9000d;
}


/* =========================================================
   FAQ
   ========================================================= */

details{
    border:1px solid #dce3ec;
    border-radius:12px;
    margin:12px 0;
    padding:0 18px;
    background:#ffffff;
    transition:.2s ease;
}

details:hover{
    border-color:#111b70;
}

summary{
    cursor:pointer;
    font-weight:800;
    color:#26344d;
    padding:17px 0;
}

details[open] summary{
    color:#111b70;
}

details p{
    padding-bottom:12px;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta{
    text-align:center;
    background:
        linear-gradient(
            135deg,
            #111b70,
            #080d3e
        );
    color:#ffffff;
    border:0;
}

.final-cta h2{
    color:#ffffff;
    border-bottom-color:rgba(255,255,255,.15);
}

.final-cta h2::after{
    background:#ed101c;
}

.final-cta p{
    color:#dce3ff;
}

.final-cta .secondary-btn{
    background:#ffffff;
    color:#111b70;
    border-color:#ffffff;
}

.final-cta .secondary-btn:hover{
    background:#ed101c;
    color:#ffffff;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer{
    background:
        linear-gradient(
            135deg,
            #080d3e,
            #03051b
        );
    color:#aeb8d4;
    padding:55px 20px 25px;
    border-top:4px solid #ed101c;
}

.footer-inner,
.footer-grid{
    max-width:1100px;
    margin:auto;
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    gap:50px;
}

footer h3{
    color:#ffffff;
    margin-top:0;
}

footer h3::after{
    content:"";
    display:block;
    width:35px;
    height:2px;
    background:#ed101c;
    margin-top:8px;
}

footer p{
    line-height:1.7;
}

footer a{
    display:block;
    color:#aeb8d4;
    text-decoration:none;
    margin:7px 0;
    transition:.2s ease;
}

footer a:hover{
    color:#ffffff;
    padding-left:4px;
}

.copyright,
.footer-bottom{
    max-width:1100px;
    margin:35px auto 0;
    padding-top:22px;
    border-top:1px solid rgba(255,255,255,.12);
    text-align:center;
    color:#8995b5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:1000px){

    nav{
        gap:14px;
    }

    nav a{
        font-size:14px;
    }

    .header-search form{
        width:160px;
    }

    .header-inner{
        gap:12px;
    }

}


@media(max-width:760px){

    .header{
        position:sticky;
        top:0;
    }

    .header-inner{
        min-height:65px;
        height:65px;
        padding:0 13px;
    }


    /* MOBILE LOGO */

    .logo{
        font-size:21px;
        gap:9px;
    }

    .logo img{
        width:42px;
        height:42px;
        border-radius:10px;
    }


    /* MOBILE MENU BUTTON */

    .menu-btn{
        display:flex;
        flex-shrink:0;
        margin-left:auto;
    }


    /* MOBILE SEARCH */

    .header-search{
        display:none;
    }


    /* MOBILE SLIDE MENU */

    nav{
        display:flex;
        position:absolute;
        left:12px;
        right:12px;
        top:72px;
        background:#ffffff;
        padding:8px 17px;
        flex-direction:column;
        gap:0;
        border:1px solid #e0e5ed;
        border-radius:14px;
        box-shadow:
            0 15px 35px rgba(10,20,60,.16);
        opacity:0;
        visibility:hidden;
        transform:translateY(-10px);
        transition:.25s ease;
    }

    nav.active{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

    nav a{
        padding:12px 4px;
        border-bottom:1px solid #edf0f4;
        font-size:15px;
    }

    nav a:last-child{
        border-bottom:0;
    }

    nav a::after{
        display:none;
    }


    /* HERO */

    .hero{
        padding:48px 16px 58px;
    }

    .hero-logo{
        width:95px;
        height:95px;
        border-radius:20px;
        margin-bottom:17px;
    }

    .hero h1{
        font-size:34px;
        line-height:1.2;
        letter-spacing:-.5px;
    }

    .hero p{
        font-size:16px;
        line-height:1.65;
    }


    /* BUTTONS */

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

    .primary-btn,
    .secondary-btn{
        width:100%;
        max-width:380px;
    }


    /* CONTAINER */

    .container{
        padding:25px 13px;
    }


    /* CARD */

    .card{
        padding:23px 17px;
        border-radius:15px;
        margin-bottom:20px;
    }

    .card h2{
        font-size:25px;
        line-height:1.35;
    }

    .card p,
    .card li{
        font-size:16px;
    }


    /* TOC */

    .toc{
        grid-template-columns:1fr;
        gap:0;
    }


    /* REFER BOX */

    .invite-box{
        align-items:stretch;
        flex-direction:column;
        gap:15px;
    }

    .invite-box strong{
        font-size:23px;
        word-break:break-word;
    }

    .invite-box button{
        width:100%;
    }


    /* APP INFO */

    .app-info{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .app-info div{
        padding:15px 10px;
    }


    /* FEATURES */

    .features,
    .feature-grid{
        grid-template-columns:1fr;
    }


    /* SCREENSHOTS */

    .screenshots,
    .preview-grid{
        grid-template-columns:1fr;
    }

    .screenshots img,
    .preview-grid img{
        height:450px;
    }


    /* TABLE */

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }


    /* FOOTER */

    .footer-inner,
    .footer-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    footer{
        padding:40px 18px 22px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:420px){

    .logo{
        font-size:19px;
    }

    .logo img{
        width:39px;
        height:39px;
    }

    .menu-btn{
        width:42px;
        height:42px;
    }

    .hero h1{
        font-size:30px;
    }

    .hero-logo{
        width:85px;
        height:85px;
    }

    .app-info{
        grid-template-columns:1fr;
    }

    .invite-box strong{
        font-size:20px;
        letter-spacing:2px;
    }

}