
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(17, 25, 46, 0.82);
  --panel-solid: #11192e;
  --border: rgba(148, 163, 184, 0.15);
  --text: #f1f5ff;
  --muted: #929db5;
  --blue: #7c8cff;
  --cyan: #54d6f5;
  --green: #4ade80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  background: #536dfe;
  top: -180px;
  left: 10%;
}

.ambient-two {
  background: #0e9acb;
  top: 38%;
  right: -240px;
}

.navbar {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(124, 140, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(145deg, #283b70, #161e38);
}

.brand-icon svg {
  width: 23px;
  height: 23px;
}

.brand-dot {
  color: var(--cyan);
}

.nav-link {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: white;
}

.container {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
}

.hero {
  padding: 90px 0 45px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  color: #bdc7e0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  margin-top: 25px;
  font-size: clamp(40px, 7vw, 67px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -3.2px;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 540px;
  margin: 20px auto 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(660px, 100%);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 17px;
  background: rgba(17, 25, 46, 0.9);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-form:focus-within {
  border-color: rgba(124, 140, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.08);
}

.search-icon {
  display: grid;
  place-items: center;
  padding-left: 12px;
  color: var(--muted);
}

.search-icon svg {
  width: 21px;
  height: 21px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-form input::placeholder {
  color: #68748e;
}

.search-form input:focus-visible {
  outline: none;
}

.search-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px 19px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(110deg, #6477ff, #5366e8);
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.search-form button:hover {
  filter: brightness(1.13);
  transform: translateY(-1px);
}

.search-form button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.search-hint {
  margin-top: 17px;
  color: #74809a;
  font-size: 12px;
}

.suggestion {
  border: none;
  background: none;
  color: #a9b6ff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results {
  min-height: 160px;
  scroll-margin-top: 24px;
}

.welcome-card,
.error-card {
  padding: 35px 20px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  text-align: center;
}

.welcome-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(124, 140, 255, 0.08);
  color: #a9b6ff;
}

.welcome-icon svg {
  width: 25px;
  height: 25px;
}

.welcome-card h2,
.error-card h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}

.welcome-card p,
.error-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.error-card h2 {
  color: #fca5a5;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
  animation: appear 0.35s ease both;
}

.profile-banner {
  height: 95px;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(84, 214, 245, 0.2), transparent 45%),
    linear-gradient(120deg, #1c2850, #20254a 50%, #162c42);
  border-bottom: 1px solid var(--border);
}

.profile-content {
  padding: 0 30px 28px;
}

.profile-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: -43px;
}

.avatar {
  width: 92px;
  height: 92px;
  border: 5px solid #11192e;
  border-radius: 50%;
  object-fit: cover;
  background: #202c46;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #dce4f6;
  font-size: 12px;
  transition: background 0.2s;
}

.github-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.profile-name {
  margin-top: 16px;
  font-size: 26px;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

.profile-login {
  margin-top: 1px;
  color: #a4b0cb;
  font-size: 14px;
}

.profile-bio {
  max-width: 650px;
  margin-top: 14px;
  color: #c0c9dd;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow-wrap: anywhere;
}

.meta-item a:hover {
  color: var(--cyan);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 27px;
}

.stat {
  padding: 17px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
}

.stat-value {
  margin-top: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.repo-section {
  margin-top: 29px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}

.section-heading h3 {
  font-size: 17px;
}

.section-heading span {
  color: var(--muted);
  font-size: 11px;
}

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

.repo-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.2s, border-color 0.2s;
}

.repo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 140, 255, 0.4);
}

.repo-name {
  color: #aebaff;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.repo-description {
  min-height: 40px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 15px;
  color: #a9b4cb;
  font-size: 11px;
}

.language-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 55px 0 65px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-number {
  color: #8697ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.feature h3 {
  font-size: 12px;
  font-weight: 600;
}

.feature p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px max(24px, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--border);
  color: #7f8aa4;
  font-size: 11px;
}

.footer-heart {
  color: #f28ba8;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (max-width: 600px) {
  .navbar {
    width: calc(100% - 32px);
    min-height: 72px;
  }

  .container {
    width: calc(100% - 30px);
  }

  .hero {
    padding-top: 65px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 13px;
  }

  .search-form {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: 15px;
  }

  .search-icon {
    padding-left: 5px;
  }

  .search-form input {
    font-size: 13px;
  }

  .search-form button {
    width: 100%;
  }

  .profile-content {
    padding: 0 18px 22px;
  }

  .profile-top {
    align-items: flex-end;
    gap: 8px;
  }

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

  .github-link {
    padding: 8px 10px;
    font-size: 11px;
  }

  .profile-name {
    font-size: 23px;
  }

  .stat {
    padding: 13px 8px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

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

  .features {
    grid-template-columns: 1fr;
    gap: 23px;
    margin: 40px 0;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}

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