/* --------------------------------------------------
   Root variables (brand)
-------------------------------------------------- */

:root {
  --blue: #2b5fb8;
  --blue-dark: #224a91;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #ffffff;
}

/* --------------------------------------------------
   Reset / base
-------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* --------------------------------------------------
   Particles background
-------------------------------------------------- */

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #ffffff;
}

/* --------------------------------------------------
   Splash screen
-------------------------------------------------- */

.splash {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-inner {
  text-align: center;
  max-width: 600px;
  padding: 24px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.splash h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Brand line */

.splash-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.btn {
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* --------------------------------------------------
   Modal
-------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}

.modal.show {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-content {
  position: relative;
  background: #ffffff;
  max-width: 420px;
  margin: 10vh auto;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease forwards;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Modal inputs */

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-family: inherit;
  font-size: 14px;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* Close button */

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* --------------------------------------------------
   Form status feedback
-------------------------------------------------- */

.form-status {
  min-height: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}

.form-status.success {
  color: #15803d;
}

.form-status.error {
  color: #b91c1c;
}

/* --------------------------------------------------
   Animations
-------------------------------------------------- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 600px) {
  .splash h1 {
    font-size: 36px;
  }

  .modal-content {
    margin: 8vh 16px;
  }
}
