html, body {
  margin: 0;
  padding: 0;
}

.projects-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
  color: white;
}
.projects-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/coincidence/coincidence_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
  z-index: 0;
}
.projects-page > * {
  position: relative;
  z-index: 1;
}

.logo-text {
  position: fixed;
  top: 0;
  right: 0;
  font-size: 20pt;
  font-family: Arial, Helvetica, sans-serif;
  color: gray;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 12px calc(20px + env(safe-area-inset-right, 0px));
  border-bottom-left-radius: 10px;
}
.logo-text .white {
  color: white;
}

.projects-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
}

.projects-cards-area {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px 0 10px;
}

.projects-bottom {
  padding: 10px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.project-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
  letter-spacing: 0.06em;
}
.project-card p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 22px;
}

.project-logo {
  display: block;
  margin: auto auto 0;
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.project-logo:hover {
  opacity: 1;
}

.beta-note {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.projects-beta-btn {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 8px 24px;
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-bottom: 0;
}
.projects-beta-btn:hover, .projects-beta-btn:focus {
  color: white;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.35);
  outline: none;
  box-shadow: none;
}

.beta-form-wrapper {
  display: none;
  max-width: 480px;
  margin: 24px auto 0;
  padding: 28px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.beta-form-wrapper .form-control {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  margin-bottom: 12px;
}
.beta-form-wrapper .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.beta-form-wrapper .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  box-shadow: none;
}
.beta-form-wrapper textarea.form-control {
  resize: vertical;
  min-height: 90px;
}
.beta-form-wrapper .honeypot-field {
  display: none;
}

.flash-notice {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(79, 209, 197, 0.85);
  color: #111;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100;
  white-space: nowrap;
}

.flash-alert {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220, 80, 80, 0.85);
  color: white;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100;
  white-space: nowrap;
}

.slide-to-send {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 50px;
  margin: 20px auto 0;
}
.slide-to-send .slider-track {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.slide-to-send .slider-track.verified {
  background-color: rgba(79, 209, 197, 0.6);
  border-color: rgba(79, 209, 197, 0.9);
}
.slide-to-send .slider-thumb {
  width: 46px;
  height: 46px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}
.slide-to-send .slider-thumb:active {
  cursor: grabbing;
}
.slide-to-send .slider-thumb.dragging {
  transition: none;
}
.slide-to-send .slider-thumb i {
  color: #222;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.slide-to-send .slider-thumb.verified i {
  transform: scale(1.3);
  animation: thumb-pop 0.3s ease;
}
@keyframes thumb-pop {
  0% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1.3);
  }
}
.slide-to-send .slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Inter", sans-serif;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 400;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .projects-cards-area {
    align-items: flex-start;
    padding-top: 6px;
  }
  .projects-inner {
    padding-top: 80px;
  }
  .project-card {
    padding: 14px 14px;
    background: rgba(0, 0, 0, 0.22);
    margin-bottom: 10px;
  }
  .project-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }
  .project-card p {
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .project-logo {
    max-width: 100px;
    max-height: 44px;
  }
  .beta-note {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }
  .projects-beta-btn {
    font-size: 0.93rem;
    padding: 6px 18px;
  }
  .projects-bottom {
    padding: 6px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  }
}
