*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:#f7f8fc;
    color:#172033;
}

/* NAV */
.nav{
    height:72px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(14px);
    border-bottom:1px solid #e9ebf2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 5%;
    position:sticky;
    top:0;
    z-index:20;
}

.brand{
    font-size:23px;
    font-weight:850;
    color:#172033;
    text-decoration:none;
}

.brand span{
    background:linear-gradient(90deg,#635bff,#8b5cf6,#ec4899);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.navlinks{
    display:flex;
    gap:22px;
    align-items:center;
}

.navlinks a{
    color:#596276;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.navlinks a:hover{
    color:#635bff;
}

/* CONTAINER */
.container{
    max-width:1120px;
    margin:auto;
    padding:36px 20px;
}

/* HOME */
.home{
    max-width:1180px;
    margin:auto;
    padding:65px 20px 35px;
}

/* HERO */
.hero-home{
    position:relative;
    text-align:center;
    overflow:hidden;
    padding:72px 20px 60px;
    border-radius:32px;
    background:
        radial-gradient(circle at 15% 20%,#dcd9ff 0,transparent 34%),
        radial-gradient(circle at 85% 20%,#ffd7ed 0,transparent 30%),
        linear-gradient(135deg,#eef0ff,#fff 48%,#fff3fa);
    border:1px solid #e6e8f5;
    box-shadow:0 25px 80px rgba(83,74,190,.12);
    animation:heroEnter .8s ease both;
}

.hero-home:before,
.hero-home:after{
    content:"";
    position:absolute;
    border-radius:50%;
    filter:blur(8px);
    opacity:.4;
    animation:float 8s ease-in-out infinite;
    pointer-events:none;
}

.hero-home:before{
    width:180px;
    height:180px;
    background:#8b5cf6;
    left:-70px;
    top:80px;
}

.hero-home:after{
    width:210px;
    height:210px;
    background:#ec4899;
    right:-80px;
    top:20px;
    animation-delay:-3s;
}

@keyframes float{
    0%,100%{
        transform:translateY(0) scale(1);
    }
    50%{
        transform:translateY(22px) scale(1.05);
    }
}

@keyframes heroEnter{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* EYEBROW */
.eyebrow{
    display:inline-block;
    padding:8px 13px;
    border-radius:999px;
    background:#fff;
    border:1px solid #e5e7f5;
    color:#635bff;
    font-weight:750;
    font-size:13px;
    box-shadow:0 8px 25px #635bff12;
    animation:pulseBadge 2.8s ease-in-out infinite;
}

@keyframes pulseBadge{
    0%,100%{
        transform:scale(1);
        box-shadow:0 8px 25px #635bff12;
    }
    50%{
        transform:scale(1.03);
        box-shadow:0 10px 30px #635bff25;
    }
}

/* HERO TITLE */
.hero-home h1{
    position:relative;
    font-size:clamp(40px,6vw,72px);
    line-height:1.02;
    letter-spacing:-3px;
    margin:20px auto 16px;
    max-width:850px;
    background:linear-gradient(90deg,#20283a 15%,#635bff 48%,#ec4899 85%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    animation:titleEnter .9s ease .1s both;
}

@keyframes titleEnter{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero-home p{
    position:relative;
    color:#667085;
    font-size:18px;
    line-height:1.65;
    max-width:700px;
    margin:0 auto 30px;
}

/* SHORTENER */
.shortener{
    position:relative;
    max-width:820px;
    margin:28px auto 0;
    padding:9px;
    background:#fff;
    border:1px solid #e4e7ef;
    border-radius:18px;
    box-shadow:0 18px 55px rgba(33,42,72,.12);
    display:flex;
    gap:8px;
    animation:formEnter .9s ease .2s both;
}

@keyframes formEnter{
    from{
        opacity:0;
        transform:translateY(12px) scale(.98);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.shortener input{
    flex:1;
    border:0;
    outline:0;
    padding:15px 17px;
    font-size:16px;
    min-width:0;
    transition:.25s;
}

.shortener input:focus{
    transform:translateY(-1px);
}

.shortener button{
    border:0;
    border-radius:12px;
    padding:0 25px;
    background:linear-gradient(100deg,#635bff,#8b5cf6);
    color:#fff;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 9px 22px #635bff35;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.shortener button:hover{
    transform:translateY(-3px);
    filter:brightness(1.06);
    box-shadow:0 14px 30px #635bff45;
}

.shortener button:active{
    transform:translateY(0);
}

/* AD */
.ad-slot{
    margin:25px auto;
    height:90px;
    max-width:970px;
    border:1px dashed #d7dbe7;
    border-radius:12px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#a1a8b8;
    font-size:12px;
    transition:.3s;
}

.ad-slot:hover{
    border-color:#bcb4ff;
    background:#fbfaff;
}

/* SECTION */
.section-title{
    text-align:center;
    margin:60px 0 24px;
    animation:fadeUp .7s ease both;
}

.section-title h2{
    font-size:32px;
    margin:0 0 8px;
    letter-spacing:-1px;
}

.section-title p{
    color:#747d90;
    margin:0;
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.feature{
    background:#fff;
    border:1px solid #e8eaf1;
    border-radius:18px;
    padding:25px;
    box-shadow:0 12px 35px #1b24400a;
    transition:.25s;
}

.feature:hover{
    transform:translateY(-7px);
    box-shadow:0 20px 45px #1b244014;
    border-color:#dcd8ff;
}

.icon{
    width:44px;
    height:44px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#eceaff,#ffe6f3);
    color:#635bff;
    font-weight:900;
    margin-bottom:15px;
    transition:.3s;
}

.feature:hover .icon{
    transform:rotate(-5deg) scale(1.08);
}

/* CONTENT CARD */
.card{
    background:
        linear-gradient(145deg,rgba(255,255,255,.99),rgba(249,248,255,.98));
    border:1px solid #e7eaf1;
    border-radius:18px;
    padding:22px;
    margin:18px 0;
    box-shadow:0 10px 30px #15203b0a;
    animation:fadeUp .7s ease both;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 45px rgba(70,50,150,.11);
    border-color:#ddd9ff;
}

.card h2{
    position:relative;
    color:#29204f;
    margin-top:28px;
}

.card h2:first-child{
    margin-top:0;
}

.card h2:after{
    content:"";
    display:block;
    width:42px;
    height:3px;
    margin-top:8px;
    border-radius:10px;
    background:linear-gradient(90deg,#6c4cff,#ff4fa3);
    transition:width .3s ease;
}

.card:hover h2:after{
    width:70px;
}

.card h3{
    color:#514078;
    margin-top:24px;
    transition:.25s;
}

.card h3:hover{
    color:#6c4cff;
}

.card h3:before{
    content:"＋";
    display:inline-block;
    margin-right:7px;
    color:#8b5cf6;
    font-weight:700;
    transition:transform .25s ease;
}

.card h3:hover:before{
    transform:rotate(45deg);
}

.card p{
    line-height:1.8;
    color:#555064;
}

/* CONTENT LINKS */
.card a{
    color:#684cff;
    font-weight:600;
    text-decoration:none;
    transition:.2s;
}

.card a:hover{
    color:#e43f91;
    text-decoration:underline;
}

/* MAIN HERO FOR OTHER PAGES */
.hero{
    background:linear-gradient(135deg,#635bff,#8b5cf6 50%,#ec4899);
    color:#fff;
    border-radius:24px;
    padding:42px;
    box-shadow:0 20px 60px #635bff26;
}

.hero h1{
    font-size:42px;
    margin:0 0 12px;
}

.hero p{
    opacity:.92;
    max-width:680px;
}

/* BUTTONS */
.btn{
    display:inline-block;
    border:0;
    background:linear-gradient(100deg,#635bff,#8b5cf6);
    color:#fff;
    padding:12px 18px;
    border-radius:11px;
    text-decoration:none;
    cursor:pointer;
    font-weight:750;
    box-shadow:0 8px 20px #635bff25;
    transition:.2s;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px #635bff35;
}

.btn.secondary{
    background:#eef0ff;
    color:#5148e8;
    box-shadow:none;
}

.btn.danger{
    background:#ef4444;
}

.btn.small{
    padding:8px 12px;
    font-size:14px;
}

/* FORMS */
.input,
select,
textarea{
    width:100%;
    padding:12px 13px;
    border:1px solid #dfe3ec;
    border-radius:10px;
    background:#fff;
    font:inherit;
    margin:7px 0 14px;
    transition:.2s;
}

.input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#8065ff;
    box-shadow:0 0 0 4px rgba(108,76,255,.09);
}

.row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

label{
    font-weight:650;
    font-size:14px;
}

/* TABLE */
.table{
    width:100%;
    border-collapse:collapse;
}

.table th,
.table td{
    text-align:left;
    padding:13px;
    border-bottom:1px solid #edf0f5;
}

.table tr{
    transition:.2s;
}

.table tr:hover{
    background:#faf9ff;
}

/* UTILITIES */
.muted{
    color:#737b8c;
}

.stat{
    font-size:30px;
    font-weight:800;
}

.flash{
    padding:13px 16px;
    border-radius:10px;
    margin-bottom:18px;
    animation:fadeUp .4s ease both;
}

.success{
    background:#e9fbf0;
    color:#16713c;
}

.error{
    background:#fff0f0;
    color:#a32323;
}

.warning{
    background:#fff7df;
    color:#8a6100;
}

.actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.code{
    font-family:ui-monospace,monospace;
    background:#f4f5f8;
    padding:10px;
    border-radius:8px;
    word-break:break-all;
}

.login{
    max-width:480px;
    margin:40px auto;
}

.pill{
    display:inline-block;
    background:#eef0ff;
    color:#5148e8;
    border-radius:999px;
    padding:4px 9px;
    font-size:12px;
    font-weight:700;
}

/* SEO */
.seo-copy{
    max-width:850px;
    margin:45px auto;
    color:#626c80;
    line-height:1.8;
}

.faq{
    max-width:850px;
    margin:15px auto;
}

.faq details{
    background:#fff;
    border:1px solid #e7eaf1;
    border-radius:13px;
    padding:16px 18px;
    margin:9px 0;
    transition:.25s;
}

.faq details:hover{
    border-color:#d7d0ff;
    box-shadow:0 8px 25px rgba(80,60,170,.07);
    transform:translateY(-2px);
}

.faq summary{
    cursor:pointer;
    font-weight:700;
}

/* FOOTER */
footer{
    text-align:center;
    color:#8991a2;
    padding:45px 20px;
}

footer a{
    transition:.2s;
}

footer a:hover{
    color:#635bff;
}

/* GENERAL ANIMATION */
@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(18px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* MOBILE */
@media(max-width:760px){

    .grid,
    .row{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:32px;
    }

    .navlinks{
        gap:8px;
    }

    .navlinks a:not(.btn){
        display:none;
    }

    .shortener{
        flex-direction:column;
    }

    .shortener button{
        height:48px;
    }

    .hero-home{
        padding:50px 15px;
        border-radius:24px;
    }

    .hero-home h1{
        letter-spacing:-2px;
        font-size:clamp(38px,11vw,55px);
    }

    .hero-home p{
        font-size:16px;
    }

    .card{
        padding:20px;
    }

    .card h2{
        font-size:21px;
    }

    .card p{
        font-size:15px;
        line-height:1.7;
    }
}

/* REDUCE MOTION FOR ACCESSIBILITY */
@media(prefers-reduced-motion:reduce){

    *,
    *:before,
    *:after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
    }
}