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

html, body {
  width: 100%;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #000000;
  background-size: auto;
  animation: none;
  color: #e7e7e7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 96px 18px 36px;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: min(940px, 100%);
  padding: 28px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.site-title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  color: #f5f5f5;
  letter-spacing: 0;
  user-select: none;
  text-transform: lowercase;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 118px);
  gap: 14px;
  width: 100%;
  justify-content: center;
}

.app-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 126px;
  padding: 14px 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.app-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.62);
}

.app-icon {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255,255,255,0.04);
  object-fit: cover;
  transition: border-color 0.2s;
}

.app-button:hover .app-icon {
  border-color: rgba(255, 255, 255, 0.72);
}

.app-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.76);
  letter-spacing: 0.03em;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color 0.15s;
}

.app-button:hover .app-label {
  color: #ffffff;
}


.search-form {
  display: flex;
  width: min(480px, 88vw);
}

.search-input {
  flex: 1;
  padding: 11px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-right: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.82);
}

.search-btn {
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-left: none;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: rgba(245, 245, 245, 0.86);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

@media (max-width: 760px) {
  body {
    padding-top: 148px;
  }

  .content-wrapper {
    padding: 18px;
  }

  .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(92px, 118px));
  }
}
