/* =========================
   ROOT COLORS
========================= */

:root{
    --primary:#6366f1;
    --secondary:#8b5cf6;
    --success:#10b981;
    --danger:#ef4444;
    --background:#f8fafc;
    --card:#ffffff;
    --text:#1e293b;
}

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

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

body{
    font-family:
    Inter,
    Arial,
    sans-serif;

    background:
    var(--background);

    color:
    var(--text);

    min-height:100vh;
}

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

.header{

    background:
    linear-gradient(
        135deg,
        #6366f1,
        #8b5cf6
    );

    color:white;

    text-align:center;

    padding:50px 20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.12);
}

.header h1{

    font-size:48px;

    margin-bottom:10px;
}

.header p{

    font-size:18px;

    opacity:.9;
}

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

.hero{

    text-align:center;

    padding:40px 20px;
}

.hero h2{

    font-size:36px;

    margin-bottom:15px;
}

.hero p{

    font-size:18px;

    color:#64748b;
}

/* =========================
   TOOLBAR
========================= */

.toolbar{

    margin:20px;

    padding:18px;

    border-radius:24px;

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

    backdrop-filter:
    blur(16px);

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:12px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

/* =========================
   BUTTONS
========================= */

button{

    border:none;

    border-radius:14px;

    padding:12px 18px;

    background:
    var(--primary);

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.25s;
}

button:hover{

    transform:
    translateY(-2px);

    box-shadow:
    0 8px 18px rgba(99,102,241,.35);
}

button:active{

    transform:scale(.96);
}

/* =========================
   INPUTS
========================= */

input[type="color"]{

    width:50px;
    height:50px;

    border:none;

    border-radius:12px;

    cursor:pointer;
}

input[type="range"]{

    cursor:pointer;
}

/* =========================
   AD BANNER
========================= */

.ad-box{

    margin:20px;

    padding:25px;

    border-radius:20px;

    text-align:center;

    background:white;

    border:
    2px dashed #cbd5e1;

    color:#64748b;

    font-weight:600;
}

/* =========================
   CANVAS CARD
========================= */

.canvas-wrapper{

    margin:20px;

    background:white;

    border-radius:30px;

    overflow:hidden;

    box-shadow:
    0 20px 40px rgba(0,0,0,.12);
}

canvas{

    width:100%;

    height:70vh;

    display:block;

    background:white;

    touch-action:none;
}

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

footer{

    text-align:center;

    padding:30px;
}

footer a{

    color:
    var(--primary);

    text-decoration:none;

    margin:0 10px;

    font-weight:600;
}

footer a:hover{

    text-decoration:underline;
}

/* =========================
   CONTENT PAGES
========================= */

.content{

    max-width:1000px;

    margin:40px auto;

    background:white;

    padding:40px;

    border-radius:24px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    line-height:1.8;
}

.content h2{

    margin-top:20px;

    color:
    var(--primary);
}

.content ul{

    padding-left:25px;
}

/* =========================
   DARK MODE
========================= */

.dark{

    background:#0f172a;

    color:white;
}

.dark .toolbar{

    background:
    rgba(30,41,59,.85);
}

.dark .canvas-wrapper{

    background:#1e293b;
}

.dark canvas{

    background:#222;
}

.dark .content{

    background:#1e293b;

    color:white;
}

.dark footer a{

    color:#93c5fd;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .header h1{

        font-size:34px;
    }

    .hero h2{

        font-size:28px;
    }

    .toolbar{

        margin:10px;
    }

    button{

        padding:10px 14px;

        font-size:14px;
    }

    canvas{

        height:60vh;
    }

    .content{

        margin:15px;

        padding:20px;
    }
}
.content{
    max-width:1000px;
    margin:40px auto;
    padding:40px;
    background:white;
    border-radius:24px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    line-height:1.8;
}

.content h2{
    color:#6366f1;
    margin-top:25px;
    margin-bottom:10px;
}

.content h3{
    margin-top:15px;
}

.content ul{
    padding-left:25px;
}
