/* styles.css */

/* Reset */
*,*::before,*::after{box-sizing:border-box}
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}
body{min-height:100vh;line-height:1.6;text-rendering:optimizeLegibility}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

/* Theme */
:root{
  --bg:#f7f9fc; 
  --panel:#ffffff; 
  --text:#0f1725; 
  --muted:#475569; 
  --border:#e6eef7; 
  --brand:#2563eb; 
  --brand2:#60a5fa; 
  --radius:18px; 
  --pad:clamp(18px,3.2vw,32px); 
  --maxw:1100px;
}
body{font-family:ui-sans-serif, system-ui, Segoe UI, Roboto, Inter, Helvetica, Arial; background:var(--bg); color:var(--text)}

/* Layout helpers */
.wrapper{max-width:var(--maxw); margin:0 auto; padding:0 var(--pad)}
.stack{display:grid; gap:clamp(18px,3vw,28px)}
.panel{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:clamp(14px,2vw,20px); box-shadow:0 12px 30px rgba(2,6,23,.06)}
.grid{display:grid; gap:clamp(16px,2.5vw,24px)}

/* Typographic */
h1{font-size:clamp(1.8rem,4.5vw,3rem); line-height:1.15}
h2{font-size:clamp(1.3rem,3vw,2rem); line-height:1.2}
h3{font-size:clamp(1.05rem,2.2vw,1.25rem)}
p,li{color:var(--muted)}

/* Nav bar */
.topbar{position:sticky; top:0; background:#fff;border-bottom:1px solid var(--border);box-shadow:0 8px 20px rgba(2,6,23,.04); backdrop-filter:saturate(1.2) blur(10px)}
.topbar .nav{display:flex; align-items:center; justify-content:space-between; padding:12px var(--pad)}
.nav a{padding:8px 10px; border-radius:10px; color:var(--muted)}
.nav a:hover{background:rgba(37,99,235,.08); color:var(--text)}

/* Columns */
.cols{display:grid; gap:clamp(16px,2.5vw,24px)}
.cols-2{grid-template-columns:repeat(2, minmax(0,1fr))}
.cols-3{grid-template-columns:repeat(3, minmax(0,1fr))}
@media (width<=900px){.cols-2,.cols-3{grid-template-columns:1fr}}

/* Buttons */
.btn{display:inline-block; padding:10px 14px; border-radius:999px; border:1px solid var(--border)}
.btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand2)); color:#ffffff; border:0; font-weight:700}

/* Footer */
footer{border-top:1px solid var(--border); padding:28px 0; color:var(--muted)}

/* Carousel */
.carousel{position:relative; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:#fff}
.carousel-track{display:flex; transition:transform .5s ease; will-change:transform}
.carousel-slide{min-width:100%; display:grid; place-items:center}
.carousel-slide a{display:block; width:100%}
.carousel-slide img{width:100%; height:auto}
.carousel-nav{position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; pointer-events:none}
.carousel-btn{pointer-events:auto; background:#ffffff; border:1px solid var(--border); border-radius:999px; width:40px; height:40px; display:grid; place-items:center; box-shadow:0 6px 16px rgba(2,6,23,.08)}
.carousel-btn:hover{background:#f8fafc}
.carousel-dots{position:absolute; left:50%; transform:translateX(-50%); bottom:10px; display:flex; gap:8px}
.carousel-dot{width:8px; height:8px; border-radius:999px; background:#cbd5e1; border:0}
.carousel-dot[aria-current="true"]{background:var(--brand)}