:root{
    --bg:#f7f7f8;
    --card:#ffffff;
    --text:#151515;
    --muted:#777;
    --line:#e7e7e7;
    --accent:#6c4cff;
    --accent-dark:#5638e8;
    --shadow:0 20px 60px rgba(30,25,70,.08);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:
        radial-gradient(circle at 50% -10%,rgba(108,76,255,.10),transparent 35%),
        var(--bg);
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
    overflow-x:hidden;
}

button,
input,
textarea{
    font:inherit;
}

button{
    cursor:pointer;
}

a{
    color:inherit;
    text-decoration:none;
}

.page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}


/* =========================
   HEADER
========================= */

.topbar{
    width:100%;
    max-width:1080px;
    margin:0 auto;
    padding:24px 24px 10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand,
.brand:link,
.brand:visited,
.brand:hover,
.brand:active{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text) !important;
    text-decoration:none !important;
    font-size:20px;
    font-weight:800;
    letter-spacing:-.5px;
}

.brand-icon{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    color:#fff;
    background:linear-gradient(135deg,#8068ff,#5b3cf0);
    box-shadow:0 8px 20px rgba(108,76,255,.25);
    font-size:18px;
    font-weight:800;
}

.top-link,
.top-link:link,
.top-link:visited,
.top-link:hover,
.top-link:active{
    padding:10px 15px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    color:var(--text);
    text-decoration:none !important;
    font-size:13px;
    font-weight:700;
    transition:.2s;
}

.top-link:hover{
    border-color:#cfc8ff;
    color:var(--accent);
}


/* =========================
   CONTENT
========================= */

.content{
    width:100%;
    max-width:760px;
    margin:0 auto;
    padding:50px 24px 70px;
    flex:1;
}

.hero{
    text-align:center;
    margin-bottom:34px;
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 13px;
    border:1px solid #e3defe;
    border-radius:999px;
    background:#fbfaff;
    color:#6349e9;
    font-size:12px;
    font-weight:700;
    margin-bottom:18px;
}

.badge-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#6c4cff;
    box-shadow:0 0 0 4px rgba(108,76,255,.10);
}

.hero h1{
    margin:0;
    font-size:48px;
    line-height:1.08;
    letter-spacing:-2px;
    font-weight:850;
}

.hero h1 span{
    color:var(--accent);
}

.hero p{
    max-width:560px;
    margin:18px auto 0;
    color:var(--muted);
    font-size:16px;
    line-height:1.65;
}


/* =========================
   CARD
========================= */

.create-card,
.paste-card{
    background:rgba(255,255,255,.95);
    border:1px solid rgba(230,230,235,.9);
    border-radius:22px;
    padding:26px;
    box-shadow:var(--shadow);
}

.card-heading,
.paste-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:25px;
}

.eyebrow{
    margin-bottom:7px;
    color:var(--accent);
    font-size:11px;
    font-weight:800;
    letter-spacing:1.3px;
}

.card-heading h2,
.paste-header h1{
    margin:0;
    font-size:23px;
    letter-spacing:-.5px;
}

.secure-badge{
    padding:8px 11px;
    border-radius:9px;
    background:#f5f3ff;
    color:#644be8;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}


/* =========================
   TEXTAREA
========================= */

label{
    display:block;
    margin:0 0 9px;
    font-size:13px;
    font-weight:700;
}

.textarea-wrap{
    position:relative;
    margin-bottom:20px;
}

textarea{
    display:block;
    width:100%;
    min-height:290px;
    resize:vertical;
    padding:16px;
    border:1px solid var(--line);
    border-radius:14px;
    outline:none;
    background:#fafafa;
    color:var(--text);
    font-size:14px;
    line-height:1.65;
    transition:.2s;
}

textarea::placeholder{
    color:#aaa;
}

textarea:focus{
    border-color:#a89aff;
    background:#fff;
    box-shadow:0 0 0 4px rgba(108,76,255,.08);
}

.textarea-footer{
    display:flex;
    justify-content:space-between;
    margin-top:8px;
    padding:0 3px;
    color:#999;
    font-size:11px;
}


/* =========================
   PASSWORD
========================= */

.password-wrap{
    position:relative;
    margin-bottom:22px;
}

.password-wrap input{
    width:100%;
    height:50px;
    padding:0 50px 0 15px;
    border:1px solid var(--line);
    border-radius:13px;
    outline:none;
    background:#fafafa;
    color:var(--text);
    transition:.2s;
}

.password-wrap input:focus{
    border-color:#a89aff;
    background:#fff;
    box-shadow:0 0 0 4px rgba(108,76,255,.08);
}

.password-wrap button{
    position:absolute;
    right:7px;
    top:7px;
    width:36px;
    height:36px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#777;
    font-size:16px;
}

.password-wrap button:hover{
    background:#f0eef9;
}


/* =========================
   CREATE BUTTON
========================= */

.create-button{
    width:100%;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    border:0;
    border-radius:13px;
    background:linear-gradient(135deg,#8068ff,#5d40ed);
    color:#fff;
    font-size:14px;
    font-weight:800;
    box-shadow:0 10px 25px rgba(108,76,255,.20);
    transition:transform .2s,box-shadow .2s;
}

.create-button:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 30px rgba(108,76,255,.28);
}

.create-button:active{
    transform:translateY(0);
}

.arrow{
    font-size:19px;
}


/* =========================
   ALERT
========================= */

.alert{
    display:flex;
    align-items:flex-start;
    gap:13px;
    padding:15px;
    margin-bottom:18px;
    border-radius:14px;
    font-size:13px;
}

.alert-icon{
    width:31px;
    height:31px;
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    font-weight:900;
}

.alert strong{
    display:block;
    margin-bottom:4px;
}

.alert p{
    margin:0;
    color:#777;
    line-height:1.5;
}

.alert.success{
    border:1px solid #ccebd9;
    background:#f5fcf8;
    color:#146d3a;
}

.alert.success .alert-icon{
    background:#dcf6e7;
    color:#159447;
}

.alert.error{
    border:1px solid #f0cccc;
    background:#fff7f7;
    color:#a52d2d;
}

.alert.error .alert-icon{
    background:#ffe5e5;
    color:#d43c3c;
}


/* =========================
   CREATED LINK
========================= */

.created-link{
    display:flex;
    gap:8px;
    margin-top:12px;
}

.created-link input{
    min-width:0;
    flex:1;
    height:42px;
    padding:0 11px;
    border:1px solid #d9e9df;
    border-radius:9px;
    background:#fff;
    color:#444;
    font-size:12px;
}

.created-link button{
    height:42px;
    padding:0 14px;
    border:0;
    border-radius:9px;
    background:#159447;
    color:#fff;
    font-size:12px;
    font-weight:700;
}


/* =========================
   FEATURES
========================= */

.features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-top:18px;
}

.feature{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:14px;
    border:1px solid #e9e9ec;
    border-radius:14px;
    background:rgba(255,255,255,.65);
}

.feature-icon{
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
    border-radius:9px;
    background:#f2efff;
    font-size:15px;
}

.feature strong{
    display:block;
    margin-bottom:4px;
    font-size:12px;
}

.feature p{
    margin:0;
    color:#888;
    font-size:11px;
    line-height:1.45;
}


/* =========================
   PASTE
========================= */

.paste-card{
    margin-top:25px;
}

.paste-header{
    margin-bottom:8px;
}

.copy-small{
    padding:9px 13px;
    border:1px solid #ddd8fa;
    border-radius:9px;
    background:#f8f6ff;
    color:#6249e5;
    font-size:12px;
    font-weight:700;
    transition:.2s;
}

.copy-small:hover{
    background:#eeeaff;
}

.paste-meta{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:20px;
    color:#999;
    font-size:11px;
}

.dot{
    width:4px;
    height:4px;
    border-radius:50%;
    background:#bbb;
}

.paste-content-wrap{
    overflow:auto;
    border:1px solid #e8e8eb;
    border-radius:14px;
    background:#fafafa;
}


/* =========================
   HASIL PASTE
   UKURAN DIBESARKAN
========================= */

.paste-content-wrap pre{
    margin:0;
    padding:20px;
    min-height:200px;
    color:#202020;
    font-family:Consolas,Monaco,"Courier New",monospace;

    /* ukuran teks hasil paste */
    font-size:18px;

    /* jarak antar baris */
    line-height:1.85;

    white-space:pre-wrap;
    word-break:break-word;
    overflow-wrap:anywhere;
}


/* =========================
   LINK DI DALAM PASTE
========================= */

.paste-content-wrap pre a{
    color:#5d40ed;

    /* link sedikit lebih besar */
    font-size:1.08em;

    line-height:1.9;
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:2px;
    cursor:pointer;

    overflow-wrap:anywhere;
    word-break:break-all;
}

.paste-content-wrap pre a:hover{
    color:#4327c9;
}


/* =========================
   ACTION BUTTON
========================= */

.paste-actions{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.btn{
    height:45px;
    padding:0 16px;
    border-radius:11px;
    font-size:12px;
    font-weight:700;
    transition:.2s;
}

.btn.primary{
    border:0;
    background:#6c4cff;
    color:#fff;
}

.btn.primary:hover{
    background:#5d40ed;
}

.btn.secondary{
    border:1px solid var(--line);
    background:#fff;
    color:#555;
}

.btn.secondary:hover{
    border-color:#cfcfcf;
}


/* =========================
   FOOTER
========================= */

.footer{
    width:100%;
    max-width:1080px;
    margin:0 auto;
    padding:20px 24px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#999;
    font-size:11px;
}


/* =========================
   MOBILE
========================= */

@media (max-width:900px){

    body{
        overflow-x:hidden;
    }

    .topbar{
        width:100% !important;
        max-width:none !important;
        padding:16px 18px 8px !important;
    }

    .brand,
    .brand:link,
    .brand:visited,
    .brand:hover,
    .brand:active{
        display:flex !important;
        align-items:center !important;
        gap:8px !important;
        color:var(--text) !important;
        text-decoration:none !important;
        font-size:18px !important;
        font-weight:800 !important;
        white-space:nowrap !important;
    }

    .brand-icon{
        width:34px !important;
        min-width:34px !important;
        height:34px !important;
        border-radius:10px !important;
    }

    .top-link,
    .top-link:link,
    .top-link:visited,
    .top-link:hover,
    .top-link:active{
        padding:8px 11px !important;
        border:1px solid var(--line) !important;
        border-radius:10px !important;
        background:#fff !important;
        color:var(--text) !important;
        text-decoration:none !important;
        font-size:12px !important;
        font-weight:700 !important;
        white-space:nowrap !important;
    }

    .content{
        width:100% !important;
        max-width:none !important;
        padding:30px 16px 45px !important;
    }

    .hero{
        margin-bottom:22px;
    }

    .hero-badge{
        margin-bottom:13px;
        padding:7px 11px;
        font-size:11px;
    }

    .hero h1{
        font-size:34px;
        line-height:1.1;
        letter-spacing:-1.2px;
    }

    .hero p{
        margin-top:13px;
        font-size:13px;
        line-height:1.55;
    }

    .create-card,
    .paste-card{
        width:100% !important;
        max-width:none !important;
        margin-top:18px;
        padding:17px;
        border-radius:17px;
        box-shadow:0 10px 35px rgba(30,25,70,.07);
    }

    .card-heading,
    .paste-header{
        gap:10px;
        margin-bottom:18px;
    }

    .card-heading h2,
    .paste-header h1{
        font-size:20px;
    }

    .eyebrow{
        font-size:10px;
        letter-spacing:1px;
    }

    .secure-badge{
        padding:7px 9px;
        font-size:10px;
    }

    textarea{
        min-height:220px;
        padding:13px;
        border-radius:12px;
        font-size:13px;
    }

    .password-wrap input{
        height:47px;
        font-size:13px;
    }

    .create-button{
        height:50px;
    }

    .features{
        display:grid;
        grid-template-columns:1fr;
        gap:9px;
        margin-top:13px;
    }

    .feature{
        padding:11px;
        border-radius:12px;
    }

    .paste-card{
        margin-top:18px;
    }

    .paste-header{
        align-items:center;
    }

    .copy-small{
        padding:8px 11px;
        font-size:11px;
    }

    .paste-meta{
        flex-wrap:wrap;
        margin-bottom:13px;
        font-size:10px;
    }

    .paste-content-wrap{
        width:100%;
        border-radius:11px;
    }


    /* =========================
       HASIL PASTE MOBILE
    ========================= */

    .paste-content-wrap pre{
        padding:14px;
        min-height:150px;

        /* teks mobile */
        font-size:16px;

        line-height:1.8;

        overflow-wrap:anywhere;
        word-break:break-word;
    }


    /* =========================
       LINK MOBILE
    ========================= */

    .paste-content-wrap pre a{
        font-size:1.08em;
        line-height:1.9;
        overflow-wrap:anywhere;
        word-break:break-all;
    }


    .paste-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
        margin-top:12px;
    }

    .btn{
        width:100%;
        height:43px;
        padding:0 9px;
        font-size:11px;
        white-space:nowrap;
    }

    .created-link{
        gap:7px;
    }

    .created-link input{
        height:40px;
        font-size:11px;
    }

    .created-link button{
        height:40px;
    }

    .footer{
        width:100%;
        max-width:none;
        padding:16px 16px 22px;
        gap:8px;
        flex-wrap:wrap;
        font-size:10px;
    }
}


/* =========================
   SMALL PHONE
========================= */

@media (max-width:500px){

    .topbar{
        padding-left:14px !important;
        padding-right:14px !important;
    }

    .brand{
        font-size:17px !important;
    }

    .brand-icon{
        width:32px !important;
        min-width:32px !important;
        height:32px !important;
    }

    .top-link{
        font-size:11px !important;
        padding:7px 9px !important;
    }

    .content{
        padding-left:12px !important;
        padding-right:12px !important;
    }

    .hero h1{
        font-size:31px;
    }

    .create-card,
    .paste-card{
        padding:15px;
    }

    .paste-actions{
        grid-template-columns:1fr !important;
    }


    /* =========================
       HASIL PASTE HP KECIL
    ========================= */

    .paste-content-wrap pre{
        font-size:16px;
        line-height:1.8;
    }

    .paste-content-wrap pre a{
        font-size:1.08em;
        line-height:1.9;
    }
}