/* Base */
:root {--bg:#0b0d10;--panel:#11161c;--text:#e6ebef;--muted:#9aa8b4;--brand:#0ea5e9;--accent:#22c55e;--stroke:#1f2730}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,13,16,.6); backdrop-filter: blur(6px); border-bottom: 1px solid var(--stroke); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; }
.brand-mark { width: 28px; height: 28px; background: linear-gradient(135deg, var(--brand), #38bdf8); color: #0b0d10; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.brand-text { font-size: 18px; }
.brand-dot { color: var(--brand); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-link { color: var(--muted); padding: 8px 10px; border-radius: 6px; }
.nav-link:hover { color: var(--text); background: #171c23; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.slides { position: relative; }
.slide { position: relative; height: 56vh; min-height: 420px; display: none; }
.slide.active { display: block; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(1.1); }
.slide .content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-title { font-size: clamp(28px, 4vw, 48px); margin: 0 0 10px; }
.hero-sub { font-size: clamp(15px, 2.2vw, 20px); color: var(--muted); margin: 0; }
.hero-ctrl { position: absolute; inset: auto 20px 20px auto; display: flex; gap: 10px; }
.btn { appearance: none; border: 1px solid var(--stroke); background: #171c23; color: var(--text); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.btn:hover { background: #1c232c; }

/* Stats */
.stats { background: var(--panel); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 22px 0; }
.stat { background: #0f1318; border: 1px solid var(--stroke); border-radius: 10px; padding: 14px; text-align: center; }
.stat .val { font-weight: 700; font-size: 18px; }
.stat .lbl { color: var(--muted); font-size: 13px; }

/* Cards section */
.section { padding: 42px 0; }
.section h2 { margin: 0 0 16px; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { grid-column: span 3; background: #0f1318; border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); border-color: #2a333e; }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card .body { padding: 14px; }
.card .title { margin: 0 0 6px; font-weight: 600; }
.card .desc { margin: 0; color: var(--muted); font-size: 14px; }

/* Carousel (projects, testimonials) */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; transition: transform .3s ease; }
.carousel-item { background: #0f1318; border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden; }
.carousel-item img { width: 100%; height: 160px; object-fit: cover; }
.carousel-item .body { padding: 12px; }
.carousel-ctrl { display: flex; gap: 10px; margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke); background: #0f1318; margin-top: 38px; }
.footer-inner { padding: 20px 0; text-align: center; }
.foot-tagline { color: var(--muted); margin: 6px 0 0; }
.brand-line { display: inline-flex; align-items: center; gap: 8px; }

/* Responsive */
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .card { grid-column: span 4; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card { grid-column: span 6; }
  .slide { height: 48vh; }
}
