*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: #0a0a12;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 252, 0, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 252, 0, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(100, 100, 255, 0.08), transparent);
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  padding: 1rem 1.25rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-logo img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.site-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-logo .accent {
  color: #fffc00;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
  box-sizing: border-box;
}

main > .hero-icon,
main > h1,
main > .hero-sub {
  align-self: center;
}

main > .search-wrap,
main > .telegram-section,
main > .features {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

main > .features {
  max-width: 48rem;
}

.hero-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 252, 0, 0.2);
  background: rgba(255, 252, 0, 0.1);
}

.hero-icon img {
  width: 2.5rem;
  height: 2.5rem;
}

h1 {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(to right, #fffc00, #ffe600);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 1rem auto 0;
  max-width: 28rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.05rem;
}

.search-wrap {
  width: 100%;
  max-width: 36rem;
  margin-top: 2.5rem;
}

.search-box {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.search-box:focus-within {
  border-color: rgba(255, 252, 0, 0.4);
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1.05rem;
  color: #fff;
  outline: none;
}

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

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.35;
}

.search-btn-desktop {
  display: none;
}

.search-btn-mobile {
  display: flex;
  width: 100%;
  margin-top: 0.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 1rem;
  padding: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fffc00;
  color: #1a1a2e;
  cursor: pointer;
}

.search-btn-mobile:disabled,
.search-btn-desktop:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .search-input {
    padding-right: 8.5rem;
  }
  .search-btn-desktop {
    display: flex;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: #fffc00;
    color: #1a1a2e;
    cursor: pointer;
  }
  .search-btn-mobile {
    display: none;
  }
}

.telegram-section {
  width: 100%;
  max-width: 36rem;
  margin-top: 2.5rem;
}

.telegram-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 252, 0, 0.7);
  margin-bottom: 1rem;
}

.telegram-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(255, 252, 0, 0.25);
  background: rgba(255, 252, 0, 0.06);
  padding: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.telegram-card:hover {
  border-color: rgba(255, 252, 0, 0.45);
  background: rgba(255, 252, 0, 0.1);
}

.telegram-row {
  display: flex;
  gap: 1rem;
}

.telegram-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #fffc00;
  color: #1a1a2e;
  font-size: 1.25rem;
}

.telegram-bar {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: #fffc00;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
}

#features {
  scroll-margin-top: 1.25rem;
}

.features {
  display: grid;
  width: 100%;
  max-width: 48rem;
  margin-top: 1.25rem;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4rem;
  }

  .feature-card-primary {
    grid-column: 1 / -1;
  }
}

.feature-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1rem;
}

.feature-card p {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.feature-icon {
  color: #fffc00;
  font-size: 1.75rem;
  line-height: 1;
}

.feature-card-primary {
  border-color: rgba(255, 252, 0, 0.12);
  background: rgba(255, 252, 0, 0.04);
}

.feature-card-primary h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
}

.feature-card-primary p {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 42rem;
}

.feature-card-centered {
  text-align: center;
}

.feature-card-centered h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
}

.feature-card-centered p {
  margin-left: auto;
  margin-right: auto;
}

.feature-title-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12121c;
  padding: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-inner {
  position: relative;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(255, 252, 0, 0.2);
  border-top-color: #fffc00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1.5rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 1rem;
  border: 2px solid rgba(255, 252, 0, 0.35);
  box-shadow: 0 0 20px rgba(255, 252, 0, 0.15);
  overflow: hidden;
  background: #1a1a2e;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secrets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.secret-box {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  font-size: 0.875rem;
}

.secret-box label {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.blur-text {
  margin-top: 0.25rem;
  filter: blur(5px);
  user-select: none;
}

.blur-text.mono {
  font-family: ui-monospace, monospace;
}

.modal-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.private-hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 252, 0, 0.8);
}

.proof-box {
  margin: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 252, 0, 0.2);
  background: rgba(255, 252, 0, 0.07);
  padding: 0.625rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.btn-telegram {
  display: flex;
  margin-top: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: #fffc00;
  padding: 0.6875rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
}

.btn-outline {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  padding: 0.625rem;
  color: #fff;
  cursor: pointer;
}

.text-muted {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.text-error {
  color: #f87171;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}
