:root {
  --color-text: #ffffff;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-dark: #0f172a;
  --radius: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-dark);
  overflow: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 0.75)
  );
  z-index: -1;
}

.content {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

.title {
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  animation: fade-up 0.8s ease both;
}

.subtitle {
  max-width: 38ch;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  animation: fade-up 0.8s ease 0.15s both;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  animation: fade-up 0.8s ease 0.3s both;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fade-in 0.25s ease both;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: var(--color-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem 2rem;
  animation: scale-in 0.25s ease both;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal__close:hover {
  color: var(--color-dark);
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 1.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form__submit {
  margin-top: 0.75rem;
  width: 100%;
  animation: none;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form__status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}

.form__status.is-success {
  color: #059669;
}

.form__status.is-error {
  color: #dc2626;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
