:root {
  --font-main: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --bg: #07111f;
  --panel: rgba(15, 33, 55, 0.72);
  --panel-strong: rgba(15, 33, 55, 0.86);
  --line: rgba(56, 189, 248, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --purple: #38bdf8;
  --purple-strong: #22d3ee;
  --purple-soft: #bae6fd;
  --shadow: 0 26px 90px rgba(56, 189, 248, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.16), transparent 35%),
    radial-gradient(circle at 22% 33%, rgba(34, 211, 238, 0.1), transparent 26rem),
    radial-gradient(circle at 72% 23%, rgba(99, 102, 241, 0.12), transparent 27rem),
    linear-gradient(180deg, #0b1630 0%, #050914 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 18%, transparent 82%, rgba(99, 102, 241, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%);
}

body.is-loading .site-header,
body.is-loading .avatar,
body.is-loading h1,
body.is-loading .subtitle,
body.is-loading .hero-socials,
body.is-loading .cta-row,
body.is-loading .info-card,
body.is-loading .markdown-page,
body.is-loading footer {
  opacity: 0;
}

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

code,
pre,
.terminal,
.mono,
.terminal-text {
  font-family: var(--font-mono);
}

.terminal-text {
  font-size: 14px;
  letter-spacing: 0;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 30px 72px 20px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(100%, 1510px);
  margin: 0 auto;
  animation: slideDown 700ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  color: var(--purple);
  font-size: 27px;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.62);
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #dfd8ed;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 13px 0 16px;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  width: 0;
  height: 2px;
  margin: auto;
  content: "";
  background: var(--purple);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--purple);
  transition: width 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--purple-soft);
}

.nav a.active::after,
.nav a:hover::after {
  width: 100%;
}

.header-socials {
  display: flex;
  justify-self: end;
  gap: 24px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--purple-soft);
  font: inherit;
  cursor: pointer;
  background: rgba(8, 23, 40, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(15, 45, 72, 0.78);
  border-color: rgba(56, 189, 248, 0.54);
  box-shadow: 0 18px 35px rgba(56, 189, 248, 0.18);
}

.icon-button svg,
.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-top: 18px;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  padding: 5px;
  background: linear-gradient(135deg, #38bdf8, #6366f1 52%, #22d3ee);
  border-radius: 999px;
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.14),
    0 0 42px rgba(56, 189, 248, 0.36);
  animation: scaleIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid rgba(6, 14, 28, 0.86);
  border-radius: inherit;
  background: #07111f;
}

h1 {
  font-family: var(--font-main);
  margin: 14px 0 5px;
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 3px 24px rgba(255, 255, 255, 0.13);
  animation: fadeUp 720ms cubic-bezier(0.22, 1, 0.36, 1) 350ms both;
}

.subtitle {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 500;
  animation: fadeUp 720ms cubic-bezier(0.22, 1, 0.36, 1) 450ms both;
}

.subtitle span {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--purple);
}

.hero-socials {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  animation: fadeUp 720ms cubic-bezier(0.22, 1, 0.36, 1) 560ms both;
}

.icon-button.large {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.icon-button.large svg {
  width: 22px;
  height: 22px;
}

.cta-row {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  animation: fadeUp 720ms cubic-bezier(0.22, 1, 0.36, 1) 660ms both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 44px;
  padding: 0 24px;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 500;
  border: 1px solid rgba(56, 189, 248, 0.52);
  border-radius: 9px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow:
    0 0 24px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.button.secondary {
  color: #f2eefb;
  background: rgba(5, 14, 28, 0.55);
}

.button.secondary:hover {
  background: rgba(15, 33, 55, 0.76);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: min(100%, 1080px);
  margin: 22px auto 14px;
}

.info-card {
  display: block;
  font-family: var(--font-main);
  min-height: 156px;
  padding: 20px 24px;
  background:
    linear-gradient(145deg, rgba(19, 48, 78, 0.62), rgba(15, 33, 55, 0.72) 58%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 45px rgba(0, 0, 0, 0.18);
  animation: fadeUp 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 55px rgba(56, 189, 248, 0.12);
}

.info-card:nth-child(1) {
  animation-delay: 760ms;
}

.info-card:nth-child(2) {
  animation-delay: 860ms;
}

.info-card:nth-child(3) {
  animation-delay: 960ms;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--purple-soft);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(99, 102, 241, 0.42));
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
  box-shadow:
    0 12px 30px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.info-card h2 {
  margin: 0;
  font-size: 20px;
}

.info-card p {
  max-width: 360px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.card-action {
  display: inline-flex;
  margin-top: 14px;
  color: var(--purple);
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.about-page {
  padding-bottom: 34px;
}

.markdown-page {
  width: min(100%, 680px);
  margin: 38px auto 0;
  animation: fadeUp 760ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.markdown-page .section-heading {
  margin-bottom: 16px;
}

.markdown-page .section-heading h1 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 42px);
}

.markdown-body {
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(19, 48, 78, 0.62), rgba(15, 33, 55, 0.72) 58%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 45px rgba(0, 0, 0, 0.18);
}

.markdown-body h1,
.markdown-body h2 {
  margin: 0;
}

.markdown-body h1 {
  font-size: clamp(25px, 2.8vw, 32px);
}

.markdown-body h2 {
  margin-top: 18px;
  color: var(--purple-soft);
  font-size: 19px;
}

.markdown-body p,
.markdown-body li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.markdown-body p {
  margin: 11px 0 0;
}

.markdown-body ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding-left: 20px;
}

.markdown-body code {
  color: var(--purple-soft);
  background: rgba(8, 23, 40, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 6px;
  padding: 2px 6px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 64px;
  color: #9c95af;
  font-size: 17px;
  animation: fadeUp 760ms cubic-bezier(0.22, 1, 0.36, 1) 1040ms both;
}

footer strong {
  color: var(--purple);
}

.footer-dot {
  width: 5px;
  height: 5px;
  background: var(--purple);
  border-radius: 999px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1100px) {
  .page {
    padding: 34px 28px 28px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand,
  .header-socials {
    justify-self: center;
  }

  .quick-links {
    grid-template-columns: 1fr;
    width: min(100%, 620px);
  }

  .info-card p {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 24px 16px 22px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 15px;
  }

  .header-socials {
    gap: 12px;
  }

  .icon-button {
    width: 43px;
    height: 43px;
  }

  .hero {
    padding-top: 24px;
  }

  .avatar {
    width: 132px;
    height: 132px;
  }

  h1 {
    font-size: 41px;
  }

  .subtitle {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 18px;
  }

  .hero-socials {
    gap: 14px;
  }

  .cta-row {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .quick-links {
    margin-top: 24px;
  }

  .info-card {
    min-height: 0;
    padding: 22px;
    border-radius: 14px;
  }

  .info-card p {
    font-size: 16px;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .markdown-page {
    margin-top: 34px;
  }

  .markdown-body {
    padding: 20px;
  }

  .markdown-body p,
  .markdown-body li {
    font-size: 15px;
  }

  footer {
    flex-wrap: wrap;
    font-size: 14px;
  }
}
