:root {
  --bg: #080c10;
  --bg-2: #0d141c;
  --panel: rgba(17, 24, 33, 0.82);
  --panel-strong: #121b26;
  --text: #e9eef4;
  --muted: #93a0ad;
  --line: #253343;
  --accent: #74d0ff;
  --accent-2: #9ef0c7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(116, 208, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(158, 240, 199, 0.09), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 22px;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

nav a { text-decoration: none; }
nav a:hover { color: var(--text); }

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-content: center;
  padding: 76px 0 44px;
}

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

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.lead {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.hero-actions, .landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.ghost {
  background: rgba(255,255,255,0.035);
}

.section { padding: 54px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-head h2, .about h2, .landing h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}

.section-head p, .about p, .landing p {
  color: var(--muted);
  line-height: 1.62;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(116, 208, 255, 0.72);
  background: rgba(22, 34, 48, 0.92);
}

.card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(116, 208, 255, 0.18), rgba(158, 240, 199, 0.08)),
    var(--panel-strong);
}

.tag {
  width: fit-content;
  color: var(--accent-2);
  border: 1px solid rgba(158, 240, 199, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 28px 0 10px;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.meta {
  color: var(--accent);
  font-size: 14px;
}

.landing {
  margin: 22px 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
  scroll-margin-top: 96px;
}

.landing ul {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.landing li {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 12px 14px;
}

.landing-actions {
  grid-column: 1 / -1;
}

.inline-link,
.project-link {
  width: fit-content;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.project-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.035);
}

.project-link.muted {
  color: var(--muted);
}

.inline-link:hover,
.project-link:hover {
  text-decoration: underline;
}

.about {
  padding: 72px 0 48px;
  max-width: 760px;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card.featured {
    grid-column: auto;
  }

  .landing {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .landing ul {
    margin-top: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }
}
