/* ==========================================================
   Shadowrocket Rules
   Project Website
   https://github.com/GMOogway/shadowrocket-rules
   ========================================================== */

:root {

    --bg:#060b16;
    --bg2:#0b1427;
    --card:rgba(18,28,48,.72);

    --border:rgba(255,255,255,.08);

    --text:#f4f7ff;
    --text2:#a8b5d6;

    --primary:#4ea3ff;
    --secondary:#63d3ff;
    --accent:#8f6bff;

    --success:#3ddc97;
    --danger:#ff5f74;

    --shadow:0 20px 60px rgba(0,0,0,.35);

    --radius:18px;

    --max-width:1180px;

    --transition:.35s ease;
}

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

html{

    scroll-behavior:smooth;
}

body{

    font-family:
        Inter,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;

    background:
        radial-gradient(circle at top right,#15366d 0%,transparent 32%),
        radial-gradient(circle at bottom left,#22164e 0%,transparent 30%),
        linear-gradient(135deg,var(--bg),var(--bg2));

    color:var(--text);

    overflow-x:hidden;

    line-height:1.75;
}

/************************************************
 BACKGROUND
************************************************/

body::before{

    content:"";

    position:fixed;

    inset:0;

    background-image:

        linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),

        linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);

    background-size:42px 42px;

    pointer-events:none;

    opacity:.4;

    z-index:-2;
}

body::after{

    content:"";

    position:fixed;

    width:900px;
    height:900px;

    left:-250px;
    top:-250px;

    border-radius:50%;

    background:

        radial-gradient(circle,
        rgba(78,163,255,.22),
        transparent 70%);

    filter:blur(30px);

    animation:floatGlow 16s ease-in-out infinite alternate;

    z-index:-1;
}

@keyframes floatGlow{

    from{

        transform:
            translate(0,0)
            scale(1);
    }

    to{

        transform:
            translate(120px,80px)
            scale(1.25);
    }
}

/************************************************
 CONTAINER
************************************************/

.container{

    width:min(92%,var(--max-width));

    margin:auto;
}

/************************************************
 HEADER
************************************************/

header{

    position:sticky;

    top:0;

    z-index:100;

    backdrop-filter:blur(18px);

    background:rgba(7,12,22,.55);

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

.nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:72px;
}

.logo{

    display:flex;

    align-items:center;

    gap:14px;

    text-decoration:none;
}

.logo-icon{

    width:42px;

    height:42px;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent));

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

    box-shadow:
        0 0 25px rgba(78,163,255,.45);
}

.logo-text{

    display:flex;

    flex-direction:column;
}

.logo-title{

    color:white;

    font-weight:700;

    font-size:20px;
}

.logo-sub{

    color:var(--text2);

    font-size:13px;
}

.nav-right{

    display:flex;

    align-items:center;

    gap:14px;
}

.lang{

    text-decoration:none;

    color:var(--text);

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

    padding:10px 16px;

    border-radius:999px;

    transition:var(--transition);
}

.lang:hover{

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

    border-color:var(--primary);
}

.github{

    text-decoration:none;

    color:white;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--accent));

    padding:11px 20px;

    border-radius:999px;

    font-weight:600;

    transition:var(--transition);

    box-shadow:
        0 10px 25px rgba(78,163,255,.25);
}

.github:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 36px rgba(78,163,255,.4);
}

/************************************************
 HERO
************************************************/

.hero{

    padding:110px 0 80px;

    position:relative;
}

.hero-inner{

    display:grid;

    grid-template-columns:1.15fr .85fr;

    gap:70px;

    align-items:center;
}

.badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(78,163,255,.10);

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

    color:#b7d7ff;

    font-size:14px;

    margin-bottom:26px;
}

.badge::before{

    content:"";

    width:8px;

    height:8px;

    border-radius:50%;

    background:var(--success);

    box-shadow:
        0 0 12px var(--success);
}

.hero h1{

    font-size:60px;

    line-height:1.08;

    font-weight:800;

    margin-bottom:24px;

    letter-spacing:-1px;
}

.hero h1 span{

    background:
        linear-gradient(
            135deg,
            var(--secondary),
            var(--accent));

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;
}

.hero p{

    color:var(--text2);

    font-size:18px;

    max-width:640px;

    margin-bottom:40px;
}

/************************************************
 BUTTONS
************************************************/

.hero-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:18px;
}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    text-decoration:none;

    padding:15px 30px;

    border-radius:999px;

    transition:var(--transition);

    font-weight:600;
}

.btn-primary{

    color:white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent));

    box-shadow:
        0 15px 35px rgba(78,163,255,.28);
}

.btn-primary:hover{

    transform:translateY(-3px);

    box-shadow:
        0 25px 45px rgba(78,163,255,.45);
}

.btn-secondary{

    color:white;

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

    background:rgba(255,255,255,.03);
}

.btn-secondary:hover{

    border-color:var(--primary);

    background:rgba(78,163,255,.08);
}

/************************************************
 FEATURE CARD
************************************************/

.hero-card{

    background:var(--card);

    backdrop-filter:blur(20px);

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

    border-radius:24px;

    padding:34px;

    box-shadow:var(--shadow);

    position:relative;

    overflow:hidden;
}

.hero-card::before{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    border-radius:50%;

    right:-200px;

    top:-180px;

    background:

        radial-gradient(circle,
        rgba(99,211,255,.20),
        transparent 70%);
}

.hero-card h3{

    margin-bottom:22px;

    font-size:26px;
}

.hero-card ul{

    list-style:none;
}

.hero-card li{

    display:flex;

    align-items:center;

    gap:12px;

    margin:16px 0;

    color:var(--text2);
}

.hero-card li::before{

    content:"✓";

    color:var(--success);

    font-weight:700;
}

/************************************************
 STATS
************************************************/

.stats{

    margin-top:80px;

    display:grid;

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

    gap:26px;
}

.stat-card{

    background:var(--card);

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

    border-radius:22px;

    padding:36px;

    transition:var(--transition);

    backdrop-filter:blur(18px);

    box-shadow:var(--shadow);

    position:relative;

    overflow:hidden;
}

.stat-card::after{

    content:"";

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            135deg,
            rgba(78,163,255,.08),
            transparent 65%);

    opacity:0;

    transition:var(--transition);
}

.stat-card:hover{

    transform:translateY(-8px);

    border-color:rgba(78,163,255,.35);
}

.stat-card:hover::after{

    opacity:1;
}

.stat-title{

    color:var(--text2);

    text-transform:uppercase;

    letter-spacing:2px;

    font-size:13px;
}

.stat-number{

    margin:18px 0 12px;

    font-size:44px;

    font-weight:800;

    line-height:1;
}

.stat-desc{

    color:var(--text2);

    font-size:15px;
}

.direct .stat-number{

    color:var(--success);
}

.proxy .stat-number{

    color:#63d3ff;
}

.reject .stat-number{

    color:#ff7b7b;
}

/************************************************
SECTION
************************************************/

section{

    padding:90px 0;
}

.section-title{

    text-align:center;

    margin-bottom:18px;

    font-size:42px;

    font-weight:800;

    letter-spacing:-.5px;
}

.section-sub{

    text-align:center;

    color:var(--text2);

    max-width:760px;

    margin:0 auto 60px;

    font-size:18px;
}

/************************************************
FEATURES
************************************************/

.features{

    display:grid;

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

    gap:28px;
}

.feature{

    position:relative;

    overflow:hidden;

    background:var(--card);

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

    border-radius:22px;

    padding:34px;

    transition:var(--transition);

    backdrop-filter:blur(18px);

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

.feature::before{

    content:"";

    position:absolute;

    left:-70px;

    top:-70px;

    width:170px;

    height:170px;

    border-radius:50%;

    background:

        radial-gradient(circle,
        rgba(78,163,255,.18),
        transparent 70%);
}

.feature:hover{

    transform:translateY(-8px);

    border-color:rgba(78,163,255,.35);
}

.feature-icon{

    width:60px;

    height:60px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    margin-bottom:24px;

    background:

        linear-gradient(
            135deg,
            rgba(78,163,255,.18),
            rgba(143,107,255,.20));
}

.feature h3{

    font-size:22px;

    margin-bottom:16px;
}

.feature p{

    color:var(--text2);

    font-size:16px;
}

/************************************************
BUILD
************************************************/

.build{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:36px;

    align-items:center;
}

.build-card{

    background:var(--card);

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

    border-radius:24px;

    padding:40px;

    backdrop-filter:blur(18px);

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

.build-card h3{

    font-size:28px;

    margin-bottom:20px;
}

.build-card p{

    color:var(--text2);

    margin-bottom:26px;
}

.timeline{

    list-style:none;
}

.timeline li{

    position:relative;

    padding-left:34px;

    margin:20px 0;

    color:var(--text2);
}

.timeline li::before{

    content:"";

    position:absolute;

    left:0;

    top:10px;

    width:12px;

    height:12px;

    border-radius:50%;

    background:var(--primary);

    box-shadow:0 0 16px var(--primary);
}

.timeline li::after{

    content:"";

    position:absolute;

    left:5px;

    top:24px;

    width:2px;

    height:calc(100% + 10px);

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

.timeline li:last-child::after{

    display:none;
}

/************************************************
MODULES
************************************************/

.modules{

    display:grid;

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

    gap:26px;

    margin-top:40px;
}

.module{

    background:var(--card);

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

    border-radius:22px;

    padding:34px;

    transition:var(--transition);

    backdrop-filter:blur(18px);

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

.module:hover{

    transform:translateY(-8px);
}

.module h4{

    font-size:24px;

    margin-bottom:18px;
}

.module ul{

    list-style:none;
}

.module li{

    margin:14px 0;

    color:var(--text2);

    display:flex;

    align-items:center;

    gap:10px;
}

.module li::before{

    content:"▸";

    color:var(--secondary);

    font-weight:700;
}

.module.direct{

    border-top:3px solid var(--success);
}

.module.proxy{

    border-top:3px solid var(--secondary);
}

.module.reject{

    border-top:3px solid var(--danger);
}

/************************************************
QUOTE
************************************************/

.quote{

    margin-top:90px;

    background:

        linear-gradient(
            135deg,
            rgba(78,163,255,.10),
            rgba(143,107,255,.08));

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

    border-radius:28px;

    padding:60px;

    text-align:center;

    backdrop-filter:blur(18px);
}

.quote p{

    font-size:28px;

    font-weight:700;

    line-height:1.5;
}

.quote span{

    display:block;

    margin-top:20px;

    color:var(--text2);

    font-size:16px;
}

/************************************************
CALL TO ACTION
************************************************/

.cta{

    text-align:center;

    padding:110px 0;
}

.cta-box{

    position:relative;

    overflow:hidden;

    background:
        linear-gradient(
            135deg,
            rgba(78,163,255,.10),
            rgba(143,107,255,.12));

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

    border-radius:30px;

    padding:70px 50px;

    backdrop-filter:blur(18px);

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

.cta-box::before{

    content:"";

    position:absolute;

    width:600px;

    height:600px;

    right:-260px;

    top:-260px;

    border-radius:50%;

    background:

        radial-gradient(circle,
        rgba(99,211,255,.18),
        transparent 70%);
}

.cta-box h2{

    font-size:44px;

    margin-bottom:22px;
}

.cta-box p{

    max-width:760px;

    margin:0 auto 40px;

    color:var(--text2);

    font-size:18px;
}

/************************************************
FOOTER
************************************************/

footer{

    margin-top:90px;

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

    background:rgba(6,10,18,.55);

    backdrop-filter:blur(18px);
}

.footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;

    padding:36px 0;

    flex-wrap:wrap;
}

.footer-left{

    display:flex;

    flex-direction:column;

    gap:8px;
}

.footer-title{

    font-size:18px;

    font-weight:700;
}

.footer-copy{

    color:var(--text2);

    font-size:14px;
}

.footer-right{

    display:flex;

    align-items:center;

    gap:16px;

    flex-wrap:wrap;
}

.footer-right a{

    text-decoration:none;

    color:var(--text2);

    transition:var(--transition);
}

.footer-right a:hover{

    color:var(--secondary);
}

.do{

    padding:10px 18px;

    border-radius:999px;

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

    color:#8fdfff !important;

    background:rgba(0,184,255,.08);
}

.do:hover{

    background:rgba(0,184,255,.15);

    border-color:#00b8ff;

    box-shadow:0 0 20px rgba(0,184,255,.25);
}

/************************************************
BACK TO TOP
************************************************/

.top{

    position:fixed;

    right:28px;

    bottom:28px;

    width:54px;

    height:54px;

    border-radius:50%;

    text-decoration:none;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent));

    box-shadow:
        0 18px 40px rgba(78,163,255,.35);

    transition:var(--transition);

    z-index:99;
}

.top:hover{

    transform:translateY(-4px);

    box-shadow:
        0 24px 50px rgba(78,163,255,.5);
}

/************************************************
ANIMATIONS
************************************************/

.fade-up{

    animation:fadeUp .8s ease both;
}

.fade-delay-1{

    animation-delay:.15s;
}

.fade-delay-2{

    animation-delay:.3s;
}

.fade-delay-3{

    animation-delay:.45s;
}

.fade-delay-4{

    animation-delay:.6s;
}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);
    }

    to{

        opacity:1;

        transform:translateY(0);
    }
}

@keyframes pulse{

    0%{

        box-shadow:0 0 0 0 rgba(78,163,255,.45);
    }

    70%{

        box-shadow:0 0 0 16px rgba(78,163,255,0);
    }

    100%{

        box-shadow:0 0 0 0 rgba(78,163,255,0);
    }
}

.pulse{

    animation:pulse 2.5s infinite;
}

/************************************************
UTILITY
************************************************/

.text-center{

    text-align:center;
}

.mt-20{

    margin-top:20px;
}

.mt-40{

    margin-top:40px;
}

.mt-60{

    margin-top:60px;
}

.mb-20{

    margin-bottom:20px;
}

.mb-40{

    margin-bottom:40px;
}

.w-100{

    width:100%;
}

.hidden{

    display:none;
}

/************************************************
RESPONSIVE
************************************************/

@media (max-width:1100px){

    .hero-inner{

        grid-template-columns:1fr;

        gap:50px;
    }

    .hero{

        padding-top:80px;
    }

    .hero h1{

        font-size:52px;
    }

    .features{

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

    .modules{

        grid-template-columns:1fr;
    }

    .stats{

        grid-template-columns:1fr;
    }

    .build{

        grid-template-columns:1fr;
    }
}

@media (max-width:768px){

    .nav{

        height:auto;

        padding:18px 0;

        flex-direction:column;

        gap:18px;
    }

    .nav-right{

        width:100%;

        justify-content:center;
    }

    .hero{

        padding:70px 0 50px;
    }

    .hero h1{

        font-size:40px;

        line-height:1.15;
    }

    .hero p{

        font-size:16px;
    }

    .hero-buttons{

        flex-direction:column;
    }

    .btn{

        width:100%;
    }

    .hero-card{

        padding:28px;
    }

    .section-title{

        font-size:34px;
    }

    .section-sub{

        font-size:16px;
    }

    .features{

        grid-template-columns:1fr;
    }

    .feature{

        padding:28px;
    }

    .feature h3{

        font-size:20px;
    }

    .build-card{

        padding:30px;
    }

    .build-card h3{

        font-size:24px;
    }

    .modules{

        gap:20px;
    }

    .module{

        padding:28px;
    }

    .module h4{

        font-size:22px;
    }

    .quote{

        padding:40px 28px;
    }

    .quote p{

        font-size:22px;
    }

    .cta{

        padding:80px 0;
    }

    .cta-box{

        padding:45px 25px;
    }

    .cta-box h2{

        font-size:34px;
    }

    .footer{

        flex-direction:column;

        text-align:center;
    }

    .footer-right{

        justify-content:center;
    }

    .top{

        width:48px;

        height:48px;

        right:18px;

        bottom:18px;
    }
}

@media (max-width:480px){

    .container{

        width:94%;
    }

    .logo-title{

        font-size:18px;
    }

    .logo-sub{

        display:none;
    }

    .hero h1{

        font-size:34px;
    }

    .badge{

        font-size:12px;

        padding:6px 14px;
    }

    .stat-card{

        padding:28px;
    }

    .stat-number{

        font-size:34px;
    }

    .feature-icon{

        width:54px;

        height:54px;

        font-size:24px;
    }

    .cta-box h2{

        font-size:30px;
    }

    .quote p{

        font-size:20px;
    }
}

/************************************************
SCROLLBAR
************************************************/

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:#08101f;
}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
        var(--primary),
        var(--accent));

    border-radius:99px;
}

::-webkit-scrollbar-thumb:hover{

    background:linear-gradient(
        #66b7ff,
        #9d83ff);
}

::selection{

    background:rgba(78,163,255,.35);

    color:#fff;
}