:root {
  --primary: #ffffff;
  --secondary: #a1a1aa;
  --accent: #ffffff;
  --bg: #0a0a0a;
  --border: #27272a;
  --hover: #18181b;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--primary);
}

body {
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 20px 20px, #333 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}

.brand {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2.5s steps(13, end) forwards;
  display: inline-block;
  text-align: center;
}

@keyframes typing {
  0% { width: 0 }
  100% { width: 13ch }
}

.dot-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.dot {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #333;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  min-height: 100vh;
}

.search-input-container {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.search-box {
  flex: 1;
  max-width: 400px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 0 16px;
  font-size: 1rem;
  background: transparent;
  color: var(--primary);
}

.search-box::placeholder {
  color: var(--secondary);
}

.search-btn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--hover);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

.profile-card {
  width: 100%;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: none;
}

.profile-card.show {
  display: block;
}

.profile-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.profile-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.username, .bio {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  font-size: 0.875rem;
}

footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--secondary);
}

@media (max-width: 480px) {
  .brand {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    width: max-content;
  }

  .search-box, .search-btn {
    height: 42px;
  }
}
