/* =========================
RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

:root{
--bg:#ffffff;
--text:#0f172a;
--muted:#475569;
--line:#e5e7eb;
--soft:#f8fafc;
--primary:#2563eb;
--primary-dark:#1d4ed8;
--shadow:0 10px 30px rgba(15,23,42,.06);
}

/* =========================
BASE
========================= */

body{
font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.65;
overflow-x:hidden;
}

img{
max-width:100%;
height:auto;
display:block;
}

.container{
max-width:1120px;
margin:auto;
padding:0 20px;
}

.section{
padding:40px 0;
}

/* =========================
TOPBAR
========================= */

.topbar{
background:#fff;
border-bottom:1px solid var(--line);
position:sticky;
top:0;
z-index:100;
}

.topbar-inner{
display:flex;
align-items:center;
justify-content:space-between;
max-width:1100px;
margin:auto;
padding:14px 20px;
}

.logo-img{
height:56px;
width:auto;
}

.nav{
display:flex;
gap:20px;
}

.nav a{
text-decoration:none;
color:var(--muted);
font-weight:600;
font-size:15px;
}

.nav a:hover{
color:var(--primary);
}

/* =========================
HERO
========================= */

.hero{
padding:60px 0;
}

.hero-grid{
display:grid;
grid-template-columns:1.1fr 0.9fr;
gap:34px;
align-items:center;
}

.hero h1{
font-size:42px;
margin-bottom:14px;
}

.lead{
color:var(--muted);
font-size:18px;
max-width:680px;
}

/* =========================
CARD / TOOL
========================= */

.card{
background:#fff;
border:1px solid var(--line);
border-radius:18px;
box-shadow:var(--shadow);
}

.tool{
padding:22px;
}

.input{
display:flex;
gap:10px;
margin-top:16px;
}

.input input{
flex:1;
height:48px;
border:1px solid #cbd5e1;
border-radius:10px;
padding:0 14px;
font-size:15px;
}

/* =========================
BUTTONS
========================= */

.btn{
display:inline-flex;
align-items:center;
justify-content:center;
border:none;
border-radius:10px;
padding:12px 16px;
font-weight:700;
cursor:pointer;
text-decoration:none;
transition:0.25s;
}

.btn-primary{
background:var(--primary);
color:#fff;
}

.btn-primary:hover{
background:var(--primary-dark);
transform:translateY(-2px);
}

.btn-ghost{
background:#fff;
border:1px solid var(--line);
}

/* =========================
THUMBNAIL PREVIEW
========================= */

.previewMain{
max-width:900px;
margin:auto;
}

.mainThumb{
border-radius:18px;
overflow:hidden;
background:#f1f5f9;
}

.mainThumb img{
width:100%;
}

#thumbImg{
width:100%;
border-radius:16px;
}

/* =========================
QUALITY GRID
========================= */

.qualityGrid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:16px;
margin-top:20px;
}

.qualityCard{
background:#f8f9fb;
border:1px solid #e3e6ea;
border-radius:14px;
padding:18px;
text-align:center;
}

.qualityCard h3{
margin-bottom:10px;
font-size:16px;
}

.qualityCard .btn{
width:100%;
margin-top:6px;
}

/* =========================
FEATURES
========================= */

.features-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:18px;
margin-top:20px;
}

.feature-box{
background:#fff;
border:1px solid var(--line);
border-radius:16px;
padding:20px;
box-shadow:var(--shadow);
}

/* =========================
BLOG
========================= */

.blog-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:18px;
margin-top:24px;
}

.blog-card{
background:#fff;
border:1px solid var(--line);
border-radius:18px;
padding:20px;
box-shadow:var(--shadow);
}

.blog-card h3{
margin-bottom:10px;
}

.blog-card p{
margin-bottom:14px;
color:var(--muted);
}

/* =========================
RELATED GUIDES
========================= */

.related-guides{
max-width:850px;
margin:40px auto;
}

.guides-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
margin-top:20px;
}

.guide-card{
display:block;
padding:20px;
border:1px solid #e5e7eb;
border-radius:12px;
background:#fff;
text-decoration:none;
color:#111827;
transition:0.25s;
}

.guide-card:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
FOOTER
========================= */

.footer{
border-top:1px solid var(--line);
background:#fafafa;
margin-top:40px;
}

.footer-inner{
display:flex;
justify-content:space-between;
flex-wrap:wrap;
padding:20px;
max-width:1100px;
margin:auto;
}

.footer-links{
display:flex;
gap:14px;
}

.footer-links a{
text-decoration:none;
color:var(--muted);
}

/* =========================
CODE BLOCK
========================= */

pre{
background:#0f172a;
color:#f1f5f9;
padding:18px;
border-radius:12px;
overflow-x:auto;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

.hero-grid{
grid-template-columns:1fr;
}

.hero h1{
font-size:34px;
}

.features-grid,
.blog-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.qualityGrid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:640px){

.hero h1{
font-size:30px;
}

.input{
flex-direction:column;
}

.features-grid,
.blog-grid{
grid-template-columns:1fr;
}

}.tools-section{
padding:60px 0;
background:#0f172a;
}

.tools-section .features-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-top:30px;
}

.tools-section .feature-box{
background:#020617;
padding:22px;
border-radius:12px;
border:1px solid #1e293b;
text-align:center;
}

.tools-section .feature-box h3{
margin-bottom:10px;
}

.tools-section .feature-box p{
font-size:14px;
margin-bottom:14px;
color:#94a3b8;
}.logo-mini{
height:40px;
width:auto;
}.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand img{
  height:42px;
  width:auto;
  max-width:160px;
}.logo-mini{
height:40px;
width:auto;
}.topbar img{
max-height:42px;
}.previewBox{
  opacity:0;
  transform:translateY(20px);
}

.previewBox.show{
  opacity:1;
  transform:translateY(0);
}