:root{
  --bg: #f5f5f7;
  --panel: rgba(255,255,255,0.78);
  --text: #1d1d1f;
  --muted: rgba(29,29,31,0.62);
  --line: rgba(210,210,215,0.75);
  --shadow: 0 18px 55px rgba(0,0,0,0.10);
  --blue: #0071e3;
  --blue2: #005fcc;
}

[data-theme="dark"]{
  --bg: #0b0c10;
  --panel: rgba(20,22,28,0.62);
  --text: #f5f5f7;
  --muted: rgba(245,245,247,0.62);
  --line: rgba(255,255,255,0.14);
  --shadow: 0 18px 65px rgba(0,0,0,0.55);
  --blue: #4aa3ff;
  --blue2: #2d7fe0;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 450px at 20% 20%, rgba(0,113,227,0.12), transparent 60%),
    radial-gradient(900px 450px at 80% 10%, rgba(34,197,94,0.08), transparent 55%),
    radial-gradient(900px 450px at 60% 90%, rgba(220,38,38,0.06), transparent 55%),
    var(--bg);
}

.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.hero{
  padding: 54px 0 22px;
}

.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
}

h1{
  margin:0;
  font-size: 42px;
  letter-spacing: -0.03em;
}
.tagline{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.hero-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

.btn{
  border: none;
  text-decoration:none;
  background: linear-gradient(180deg, var(--blue), var(--blue2));
  color:white;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(0,113,227,0.18);
  transition: transform 120ms ease, filter 120ms ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0); }

.btn.ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-card{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.lead{
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.chips{ display:flex; flex-wrap:wrap; gap: 8px; }
.chip{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}
[data-theme="dark"] .chip{
  background: rgba(255,255,255,0.06);
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.35);
  border-radius: 16px;
  padding: 12px;
  text-align:center;
}
[data-theme="dark"] .stat{
  background: rgba(255,255,255,0.06);
}
.stat-num{
  font-size: 18px;
  font-weight: 700;
}
.stat-label{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

main{ padding: 24px 0 60px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.card{
  padding: 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

h2{
  margin: 0 0 10px;
  font-size: 18px;
}
h3{
  margin: 0;
  font-size: 16px;
}
p{ margin: 10px 0 0; line-height: 1.6; }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; }

.project{ padding: 6px 0; }
.project-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.project-links{ display:flex; align-items:center; gap: 10px; }
.project-links a{
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  border-bottom: 1px dashed var(--line);
}
.project-links a:hover{ border-bottom-style: solid; }

.dot{
  width: 4px; height: 4px;
  background: var(--muted);
  border-radius: 99px;
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.contact{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact a{
  text-decoration:none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.35);
  transition: transform 120ms ease, filter 120ms ease;
}
[data-theme="dark"] .contact a{
  background: rgba(255,255,255,0.06);
}
.contact a:hover{ transform: translateY(-1px); filter: brightness(1.02); }

.footer{
  margin-top: 14px;
  display:flex;
  gap: 8px;
  justify-content:center;
  align-items:center;
  flex-wrap: wrap;
  color: var(--muted);
}

.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }

@media (max-width: 860px){
  h1{ font-size: 34px; }
  .hero-card{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 440px){
  .stats{ grid-template-columns: 1fr; }
}

