:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: rgba(20, 28, 40, 0.74);
  --panel-solid: #141c28;
  --text: #eef4ff;
  --muted: #a9b5c7;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #62b6ff;
  --green: #61d394;
  --red: #ff6b6b;
  --yellow: #f2c94c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(98, 182, 255, 0.11), transparent 34%),
    linear-gradient(240deg, rgba(97, 211, 148, 0.1), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

#network {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.header-link {
  font-weight: 800;
}

.brand {
  font-size: 1.04rem;
}

.nav {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a,
.header-link {
  transition: color 180ms ease;
}

.nav a:hover,
.header-link:hover {
  color: var(--blue);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5.8vw, 4.9rem);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: var(--text);
  color: #0d1117;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.signal-panel,
.work-grid article,
.project-card,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.signal-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.signal-panel div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.signal-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  font-weight: 900;
}

.caption {
  color: var(--muted);
  line-height: 1.55;
}

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

.work-grid article {
  min-height: 250px;
  padding: 24px;
}

.work-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--yellow);
  font-weight: 900;
}

.work-grid p,
.project-card span,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #dce7f7;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.project-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 182, 255, 0.52);
  background: rgba(25, 36, 53, 0.9);
}

.project-card p {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card.featured {
  background:
    linear-gradient(145deg, rgba(98, 182, 255, 0.18), transparent 58%),
    var(--panel);
}

.client-sites {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.client-sites a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.client-sites a:hover {
  border-color: rgba(97, 211, 148, 0.55);
  color: var(--text);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
}

.contact h2 {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
}

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

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero,
  .section-head,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .work-grid,
  .portfolio-grid,
  .client-sites {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .header-link {
    font-size: 0.9rem;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 54px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.45rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
