:root {
  --bg: #0e0f13;
  --bg-accent: #16181f;
  --fg: #f4f4f5;
  --muted: #9aa0ac;
  --brand: #f5a623;
  --brand-dark: #d98c0a;
  --ring: rgba(245, 166, 35, 0.4);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(245, 166, 35, 0.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.hero__inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
  animation: rise 0.6s ease both;
}

.logo {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 6px 20px rgba(245, 166, 35, 0.25));
}

.title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  background: linear-gradient(180deg, #fff, #c9cdd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 2rem;
}

.video-wrap {
  position: relative;
  margin: 0 auto 2.5rem;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

.video__hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.15rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  pointer-events: none; /* let clicks fall through to the video */
  opacity: 1;
  transition: opacity 0.8s ease;
}

.video__hint.is-hidden {
  opacity: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-accent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 2.5rem;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--ring);
  animation: pulse 2s infinite;
}

.signup {
  margin: 0 auto;
  max-width: 440px;
}

.signup__label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.signup__row {
  display: flex;
  gap: 0.5rem;
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg-accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.signup__btn {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1206;
  background: var(--brand);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.05s;
}

.signup__btn:hover {
  background: var(--brand-dark);
}

.signup__btn:active {
  transform: translateY(1px);
}

.signup__msg {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.signup__msg.is-error {
  color: #ff6b6b;
}

.signup__msg.is-success {
  color: #5ed68a;
}

.footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--ring);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (max-width: 420px) {
  .signup__row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .status__dot {
    animation: none;
  }
}
