/* === GLOBAL === */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === STARS BACKGROUND === */
.stars {
  position: fixed;
  width: 200%;
  height: 200%;
  background: url('stars.png');
  animation: starAnim 200s linear infinite;
  z-index: -2;
}

@keyframes starAnim {
  from { transform: translate(0, 0); }
  to   { transform: translate(-50%, -50%); }
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, #0b0f1a, #05070d);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  width: 200%;
  height: 200%;
  background: url('stars.png');
  background-repeat: repeat;
  background-size: contain;
  animation: moveStars 180s linear infinite;
  opacity: 0.15;
  z-index: -2;
}

@keyframes moveStars {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-200px, -200px); }
}

/* === CONTAINER === */
.container {
  text-align: center;
  background: #111a25;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 0 20px #00ffff44;
  max-width: 480px;
  width: 90%;
  margin: 80px auto;
  position: relative;
  z-index: 1;
}

.container::before {
  content: "";
  position: absolute;
  top: -20px; left: -20px;
  right: -20px; bottom: -20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #00ffff, #0066ff, #00ff99);
  background-size: 300% 300%;
  animation: rotateBorder 15s ease infinite;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.25;
}

@keyframes rotateBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === LOGO === */
.logo {
  width: 160px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px #00ffff);
}

/* === SOCIALS === */
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-btn img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 5px #00ffff);
  transition: transform 0.2s ease, filter 0.3s ease;
}

.social-btn:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px #00ffff);
}

/* === INPUT === */
.input-group {
  display: flex;
  justify-content: center;
  max-width: 320px;
  margin: 24px auto 0;
}

.input-group input {
  flex: 1;
  padding: 14px;
  border-radius: 8px 0 0 8px;
  border: none;
  background: linear-gradient(145deg, #0b1f33, #1a2f44);
  color: #aefbff;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
  transition: 0.3s ease;
}

/* === CLEAR BUTTON === */
.clear-button {
  border: 2px solid #00ffff;
  border-left: none;
  background: transparent;
  color: #00ffff;
  font-weight: bold;
  padding: 0 14px;
  font-size: 16px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-button:hover {
  background-color: #00ffff;
  color: #000;
  box-shadow: 0 0 10px #00ffffaa;
}

/* === ACTION BUTTON === */
.button-wrap {
  margin-top: 24px;
}

.clean-button {
  padding: 14px 30px;
  color: #00ffff;
  border: 2px solid #00ffff;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.clean-button:hover {
  background-color: #00ffff;
  color: #000;
  box-shadow: 0 0 12px #00ffffaa;
}

/* === LOADING TEXT === */
#loadingSpinner {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #00f6ff;
  font-weight: 600;
  animation: fadeIn 0.5s ease-in-out;
}

#loadingSpinner .dot {
  animation: blink 1.4s infinite;
}

#loadingSpinner .dot:nth-child(2) {
  animation-delay: 0.2s;
}

#loadingSpinner .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

/* === RESULT BOX === */
#resultBox {
  display: none;
  margin-top: 32px;
  color: #ccc;
}

.result-card {
  background: #101e28;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  animation: slideUp 0.5s ease;
  margin-top: 20px;
}

.result-header {
  font-size: 1.2em;
  font-weight: 600;
  color: #00f6ff;
  text-align: center;
}

.result-body {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  text-align: left;
}

.result-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 255, 255, 0.08);
  padding-bottom: 6px;
  font-size: 14px;
  color: #d9f6ff;
}

.result-row span:first-child {
  font-weight: bold;
  color: #00eaff;
  text-transform: uppercase;
}

/* === RISK COLORS === */
.result-risk {
  font-weight: bold;
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 16px;
  animation: fadeIn 0.8s ease;
}

.result-risk.green {
  background: #00ff99;
  color: #001b12;
}

.result-risk.orange {
  background: #ffcc66;
  color: #402700;
}

.result-risk.red {
  background: #ff4c4c;
  color: #1b0000;
}

/* === ERROR BOX === */
#errorBox {
  color: #ff4c4c;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

/* === FOOTER === */
footer {
  margin-top: 40px;
  font-size: 0.8em;
  color: #888;
  text-align: center;
}

.about-link {
  all: unset;
  color: #00ffff;
  cursor: pointer;
  text-decoration: underline;
}

.about-link:hover {
  color: #66faff;
  text-decoration: none;
}

/* === ABOUT SECTION === */
.about-section-footer {
  max-width: 600px;
  margin: 20px auto 60px;
  padding: 20px 24px;
  background: #101e28;
  color: #d9f6ff;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.6;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  text-align: left;
}

.about-section-footer h2 {
  color: #00ffff;
  margin-bottom: 10px;
  text-align: center;
}

/* === ANIMATIONS === */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* === MOBILE === */
@media (max-width: 480px) {
  .social-btn img { width: 24px; height: 24px; }
  .clean-button { font-size: 14px; padding: 12px 24px; }
  input { font-size: 14px; padding: 12px; }
  .logo { width: 130px; }
  .container { padding: 40px 20px; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #00ffff44;
  border-radius: 8px;
  background: #0b1f33;
  color: #fff;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  font-size: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #88f8ff;
}

.contact-form button {
  padding: 12px;
  border: 2px solid #00ffff;
  background: transparent;
  color: #00ffff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.contact-form button:hover {
  background-color: #00ffff;
  color: #000;
  box-shadow: 0 0 10px #00ffffaa;
}

.about-section-footer a {
  color: #00ffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.about-section-footer a:hover {
  color: #66faff;
  text-decoration: none;
}


/* === PRESALE BUTTON === */
.presale-hero-cta {
  margin-top: 22px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.presale-hero-cta a {
  background: rgba(0, 255, 255, 0.08);
  color: #aefbff;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #00ffff55;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.presale-hero-cta a:hover {
  background: rgba(0, 255, 255, 0.18);
  color: #ffffff;
  border-color: #00f6ff;
  transform: scale(1.03);
}
