
:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --panel2:#101b28;
  --text:#e6edf3;
  --muted:#9fb0c0;
  --line:#1e2a3a;
  --accent:#56d364;
  --accent2:#2f81f7;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(47,129,247,.18), transparent 60%),
              radial-gradient(900px 600px at 80% 0%, rgba(86,211,100,.12), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
a:hover{color:var(--accent2)}
img{max-width:100%;display:block}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.grid{display:grid;gap:18px}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card.pad{padding:18px}
.card .muted{color:var(--muted)}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(16,27,40,.55);
  color:var(--muted);
  font-family: var(--mono);
  font-size:12px;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:10px 14px;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(16,27,40,.6);
  color:var(--text);
  font-weight:650;
}
.btn.primary{border-color: rgba(86,211,100,.35); background: rgba(86,211,100,.12)}
.btn.primary:hover{background: rgba(86,211,100,.18)}
.btn.secondary{border-color: rgba(47,129,247,.35); background: rgba(47,129,247,.12)}
.btn.secondary:hover{background: rgba(47,129,247,.18)}

.topbar{
  position:sticky;top:0;z-index:30;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.65);
  border-bottom:1px solid var(--line);
}
.topbar .row{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;gap:14px;
}
.brand{
  display:flex;align-items:center;gap:12px;min-width: 210px;
}
.brand .logo{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, rgba(86,211,100,.25), rgba(47,129,247,.25));
  border:1px solid rgba(255,255,255,.08);
  display:grid;place-items:center;
  font-family: var(--mono);
  color: var(--accent);
}
.brand .title{display:flex;flex-direction:column;line-height:1.15}
.brand .title strong{font-size:14px;letter-spacing:.2px}
.brand .title span{font-size:12px;color:var(--muted)}
.nav{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;
}
.nav a{
  padding:8px 10px;border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:650;
}
.nav a.active{
  color:var(--text);
  border-color: rgba(47,129,247,.35);
  background: rgba(47,129,247,.10);
}
.nav a:hover{color:var(--text);border-color: rgba(255,255,255,.10);background: rgba(255,255,255,.03)}

.hero{
  margin:18px 0;
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero .inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:0;
}
.hero .content{padding:22px}
.hero h1{margin:8px 0 10px 0;font-size:30px;line-height:1.12}
.hero p{margin:0 0 14px 0;color:var(--muted)}
.hero .cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.hero .figure{position:relative;min-height:260px}
.hero .figure img{
  width:100%;height:100%;object-fit:cover;
  filter:saturate(1.05) contrast(1.05);
}
.hero .figure:after{
  content:"";position:absolute;inset:0;
  background: linear-gradient(90deg, rgba(15,22,32,1), rgba(15,22,32,.25) 40%, rgba(15,22,32,.0));
}

.section{margin:18px 0}
.section h2{margin:0 0 10px 0;font-size:18px}
.kpi{
  display:grid;gap:12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.kpi .box{
  padding:14px;border-radius:var(--radius-sm);
  border:1px solid var(--line);
  background: rgba(16,27,40,.45);
}
.kpi .box strong{display:block;font-size:18px}
.kpi .box span{color:var(--muted);font-size:12px}

.cols{
  grid-template-columns: 1.2fr .8fr;
  align-items:start;
}
.list{display:grid;gap:10px}
.list .item{
  padding:12px;border-radius:var(--radius-sm);
  border:1px solid var(--line);
  background: rgba(16,27,40,.35);
}
.list .item .t{font-weight:700}
.list .item .d{color:var(--muted);font-size:13px;margin-top:4px}

.cards-3{grid-template-columns: repeat(3, minmax(0,1fr))}
.project{
  display:grid;grid-template-rows: 170px auto;
}
.project .thumb{height:170px}
.project .thumb img{width:100%;height:100%;object-fit:cover}
.project .body{padding:14px}
.project .body h3{margin:0 0 6px 0;font-size:16px}
.project .body p{margin:0 0 12px 0;color:var(--muted);font-size:13px}
.project .body .meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}

.table{
  width:100%;
  border-collapse:separate;border-spacing:0;
  overflow:hidden;border-radius:var(--radius);
  border:1px solid var(--line);
  background: rgba(16,27,40,.35);
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
.table th{color:var(--muted);font-family:var(--mono);font-size:12px}
.table tr:last-child td{border-bottom:none}

.footer{
  margin-top:26px;padding:18px 0 30px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}
.footer .row{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}
.footer code{font-family:var(--mono);color:var(--text)}
.small{font-size:12px;color:var(--muted)}
.codebox{
  font-family:var(--mono);
  background: rgba(0,0,0,.35);
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  padding:12px;
  overflow:auto;
  color: #c9d1d9;
  font-size:12px;
}

@media (max-width: 920px){
  .hero .inner{grid-template-columns: 1fr}
  .hero .figure{min-height:220px}
  .hero .figure:after{background: linear-gradient(180deg, rgba(15,22,32,1), rgba(15,22,32,.15) 55%, rgba(15,22,32,.0))}
  .cols{grid-template-columns: 1fr}
  .cards-3{grid-template-columns: 1fr}
  .kpi{grid-template-columns: 1fr}
  .brand{min-width:auto}
}
