/* Phantom — Landing Page Styles */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

main {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

/* ── Header ───────────────────────────────────────── */

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

h1 {
  font-family: Rubik, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

/* ── Text ─────────────────────────────────────────── */

.tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.description {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ── Features ─────────────────────────────────────── */

.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ── Signup Form ──────────────────────────────────── */

.signup-form {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.signup-form__field {
  display: flex;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.signup-form__field input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
}

.signup-form__field input[type="email"]::placeholder {
  color: var(--text-faint);
}

.signup-form__field button {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.signup-form__field button:hover {
  background: var(--accent-hover);
}

.signup-form__field button:active {
  transform: scale(0.98);
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ── Status Messages ──────────────────────────────── */

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.status--confirmed {
  background: color-mix(in srgb, #22c55e 12%, transparent);
  border: 1px solid color-mix(in srgb, #22c55e 30%, transparent);
  color: #86efac;
}

.status--email-sent {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, white);
}

.status__icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Mobile ───────────────────────────────────────── */

@media (max-width: 480px) {
  .content {
    padding: 1.5rem;
  }

  .signup-form__field {
    flex-direction: column;
    border-radius: 10px;
  }

  .signup-form__field input[type="email"] {
    border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  }

  .signup-form__field button {
    padding: 0.8rem 1.25rem;
    border-radius: 0;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
}
