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

body{
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial;
background:#f5f7fb;
color:#111;
}

/* HEADER */

header{
background:white;
border-bottom:1px solid #eee;
padding:18px 30px;
}

header h2{
font-size:20px;
font-weight:600;
}

/* MAIN */

main{
padding:60px 20px;
max-width:1100px;
margin:auto;
}

/* HERO */

.hero{
text-align:center;
margin-bottom:50px;
}

.hero h1{
font-size:42px;
margin-bottom:10px;
}

.hero p{
font-size:18px;
color:#666;
}

/* GRID DE TOOLS */

.tools-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:20px;
margin-top:40px;
}

/* CARDS */

.tool-card{
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 6px 20px rgba(0,0,0,0.06);
text-decoration:none;
color:#111;
transition:all 0.2s ease;
display:block;
}

.tool-card:hover{
transform:translateY(-4px);
box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

.tool-card h3{
font-size:18px;
margin-bottom:6px;
}

.tool-card p{
font-size:14px;
color:#666;
}

/* TOOL PAGE */

.tool-wrapper{
max-width:600px;
margin:auto;
text-align:center;
}

.tool-title{
font-size:36px;
margin-bottom:10px;
}

.tool-description{
color:#666;
margin-bottom:30px;
}

/* NAV BACK */

.tool-nav{
text-align:left;
margin-bottom:20px;
}

.tool-nav a{
text-decoration:none;
color:#666;
font-size:14px;
}

.tool-nav a:hover{
color:#111;
}

/* TOOL BOX */

.tool-box{
background:white;
padding:40px;
border-radius:14px;
box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

/* INPUT */

input{
width:100%;
padding:14px;
font-size:16px;
border:1px solid #ddd;
border-radius:8px;
margin-bottom:15px;
}

/* BUTTON */

button{
width:100%;
padding:14px;
font-size:16px;
border:none;
background:#111;
color:white;
border-radius:8px;
cursor:pointer;
margin-bottom:15px;
}

button:hover{
background:#333;
}

/* PREVIEW BOX */

.preview-box{
width:100%;
max-height:400px;
overflow:hidden;
margin-top:20px;
border-radius:10px;
background:#f5f5f5;
display:flex;
align-items:center;
justify-content:center;
}

.preview-box canvas{
max-width:100%;
max-height:380px;
height:auto;
}

/* DOWNLOAD BUTTON */

.download-btn{
display:block;
margin-top:20px;
background:#111;
color:white;
padding:12px;
border-radius:8px;
text-decoration:none;
}

.download-btn:hover{
background:#333;
}

/* RESULT */

.result-box{
margin-top:30px;
background:#f7f7f7;
padding:20px;
border-radius:10px;
}

.result-box p{
font-size:18px;
margin:6px 0;
}

/* RELATED TOOLS */

.related-tools{
margin-top:60px;
text-align:left;
}

.related-tools h3{
margin-bottom:10px;
}

/* FOOTER */

footer{
text-align:center;
padding:40px;
color:#777;
font-size:14px;
margin-top:60px;
}
.preview-box{
width:100%;
height:300px;
background:#f5f5f5;
border-radius:10px;
display:flex;
align-items:center;
justify-content:center;
margin-top:20px;
overflow:hidden;
}
