:root {
  color-scheme: dark;
  --bg-top: #30323f;
  --bg-mid: #111219;
  --bg-bottom: #000;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(39, 41, 52, 0.78);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #eef2f8;
  --muted: #8a94a6;
  --blue: #64d2ff;
  --purple: #bf5af2;
  --green: #30d158;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(100, 210, 255, 0.08), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(191, 90, 242, 0.07), transparent 28rem),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg-mid) 28rem, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.dashboard {
  width: min(calc(100% - 28px), var(--page));
  margin: 0 auto;
  padding: 18px 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 0 10px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px);
}

.topbar {
  min-height: 20px;
  padding: 22px 16px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.overline,
.panel-title,
.project-id,
.metrics span,
.tags,
footer {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.overline {
  margin: 0 0 12px;
  color: var(--blue);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 850;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.github-link {
  display: inline-flex;
  margin-bottom: 7px;
  align-items: center;
  gap: 8px;
  color: #c4ccda;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.github-link:hover {
  color: var(--blue);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.65);
}

.intro {
  min-height: 112px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.avatar {
  display: block;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(190, 198, 210, 0.42);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(190, 198, 210, 0.2);
}

.panel-title {
  margin: 0 0 5px;
  color: var(--muted);
}

.intro p:last-child {
  max-width: 760px;
  margin: 0;
  color: #c8cfda;
  font-size: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.project {
  position: relative;
  min-height: 580px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project::after {
  position: absolute;
  width: 210px;
  height: 210px;
  top: -125px;
  right: -95px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(30px);
  opacity: 0.18;
  content: "";
  pointer-events: none;
}

.rival {
  --accent: var(--blue);
}

.launcher {
  --accent: var(--blue);
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.app-icon {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.app-icon img {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 18px;
  object-fit: contain;
}

.launcher .app-icon img {
  border-radius: 0;
}

.project-id {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--muted);
}

.project-id b {
  color: var(--accent);
  font-size: 11px;
}

.project-copy {
  margin-top: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 43px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.project-copy > p:last-child {
  min-height: 100px;
  margin: 15px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

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

.metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 7px;
}

.metrics b {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}

.tags {
  display: flex;
  margin: 14px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tags li {
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #aab4c3;
  font-size: 8px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.action {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(44, 44, 46, 0.72);
  color: #dfe5ef;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.action:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
}

.action.primary {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

footer {
  min-height: 70px;
  margin-top: 12px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 760px) {
  .dashboard {
    width: min(calc(100% - 16px), var(--page));
    padding: 8px 0;
  }

  .topbar {
    min-height: 210px;
    padding: 20px 10px 24px;
    display: block;
  }

  h1 {
    font-size: clamp(43px, 14vw, 68px);
  }

  .github-link {
    margin-top: 25px;
    white-space: normal;
  }

  .intro {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }

  .avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

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

  .project {
    min-height: 570px;
    padding: 20px;
  }

  .project-copy > p:last-child {
    min-height: 0;
  }

  footer {
    padding: 18px;
    display: grid;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
