@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b0d10;
  --surface: #12161b;
  --border: #242a31;
  --text: #f2f4f7;
  --muted: #a5adb8;
  --accent: #d9ff62;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  font-weight: 800;
}

.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--muted); font-size: 14px; }
.nav nav a:hover, .links a:hover { color: var(--accent); }

main { width: min(var(--max), calc(100% - 40px)); margin: auto; }

.hero {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 850px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 1;
  letter-spacing: -.06em;
}

.hero h2 {
  margin: 18px 0;
  color: #c7cdd5;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
}

.intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.buttons { display: flex; gap: 12px; margin-top: 25px; }

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

.primary { background: var(--accent); color: #0b0d10; border-color: var(--accent); }
.secondary:hover { border-color: var(--accent); }

.links { display: flex; gap: 24px; margin-top: 30px; color: var(--muted); font-size: 14px; }

.section {
  padding: 110px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 50px;
}

.section-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.section p { color: var(--muted); max-width: 750px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.card h3 { font-size: 27px; margin-top: 14px; }
.card p { font-size: 15px; }

.tag {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.tech {
  margin: 24px 0;
  color: #d1d6dc;
  font-size: 13px;
}

.card a { color: var(--accent); font-size: 14px; font-weight: 600; }
.muted { color: #707985; font-size: 13px; }

.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.skills > div { padding: 25px; background: var(--bg); }
.skills h4 { margin: 0; }
.skills p { margin-bottom: 0; }

.contact {
  margin: 60px 0 100px;
  padding: 70px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact h3 { max-width: 750px; }

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 30px 0 45px;
  display: flex;
  justify-content: space-between;
  color: #707985;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  .nav nav { gap: 12px; }
  .nav nav a:nth-child(2) { display: none; }
  .hero { min-height: 560px; }
  .section { grid-template-columns: 1fr; gap: 20px; padding: 75px 0; }
  .project-grid, .skills { grid-template-columns: 1fr; }
  .contact { padding: 35px 25px; }
  footer { flex-direction: column; gap: 8px; }
}
