:root {
  --bg: #0b0e14;
  --panel: #111722;
  --panel-2: #151d2a;
  --text: #eef3f8;
  --muted: #9aa9bb;
  --line: #253247;
  --accent: #8bd5ca;
  --accent-2: #b7a6ff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }
.brand {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }
section { padding: 82px 0; border-bottom: 1px solid var(--line); }
.hero { padding-top: 110px; }
.eyebrow, .section-heading span, .tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(50px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
}
h2 {
  margin: 20px 0 30px;
  max-width: 780px;
  color: var(--accent-2);
  font-size: clamp(25px, 4vw, 43px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
h3 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
h4 { margin: 12px 0; font-size: 21px; line-height: 1.25; }
.lead { max-width: 830px; font-size: clamp(22px, 3vw, 31px); line-height: 1.35; margin: 0; }
.sublead { max-width: 830px; color: var(--muted); font-size: 17px; margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-weight: 650;
  transition: .18s ease;
}
 .button:hover { transform: translateY(-2px); border-color: #3b506f; }
.button.primary { background: var(--accent); color: #07100f; border-color: transparent; }
.section-heading { margin-bottom: 34px; }
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card, .project {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  padding: 26px;
}
 .card p, .project p { color: var(--muted); }
.card ul { padding-left: 18px; color: #c9d3df; }
.note { max-width: 820px; color: var(--muted); margin: 24px 0 0; font-size: 14px; }
.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
.project {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 250px;
  transition: .18s ease;
}
 .project:hover { transform: translateY(-3px); border-color: #405675; }
.arrow { font-size: 28px; color: var(--accent); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
 .stack-grid > div { background: var(--panel); padding: 24px; }
.stack-grid strong { display: block; margin-bottom: 8px; }
.stack-grid span { color: var(--muted); }
.contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
}
 .contact p { color: var(--muted); max-width: 720px; }
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .cards, .portfolio-grid, .stack-grid, .contact { grid-template-columns: 1fr; }
  .nav { position: static; }
  nav { gap: 12px; font-size: 12px; }
  .hero { padding-top: 60px; }
  section { padding: 58px 0; }
  .contact { gap: 20px; }
  footer { flex-direction: column; }
}

@media (max-width: 540px) {
  .nav, main, footer { padding-left: 18px; padding-right: 18px; }
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  .card, .project { padding: 20px; }
}
