/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0e0618;
  --primary:   #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dim: rgba(139, 92, 246, 0.15);
  --text:      #ffffff;
  --muted:     rgba(255, 255, 255, 0.45);
  --border:    rgba(139, 92, 246, 0.2);
  --font:      'Inter', sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background chevron pattern ── */
.pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpolyline points='10,22 20,12 30,22' fill='none' stroke='%238b5cf6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.09'/%3E%3Cpolyline points='10,36 20,26 30,36' fill='none' stroke='%238b5cf6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.05'/%3E%3Cpolyline points='30,22 40,12 50,22' fill='none' stroke='%238b5cf6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.05'/%3E%3Cpolyline points='30,36 40,26 50,36' fill='none' stroke='%238b5cf6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  animation: pattern-drift 30s linear infinite;
}

@keyframes pattern-drift {
  from { background-position: 0 0; }
  to   { background-position: 120px 60px; }
}

/* ── Aurora orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: float-1 18s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.14) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation: float-2 22s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  top: 50%; left: 60%;
  animation: float-3 16s ease-in-out infinite;
}
.orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  bottom: 20%; left: 10%;
  animation: float-4 25s ease-in-out infinite;
}

@keyframes float-1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(80px,60px) scale(1.08); }
  66%      { transform: translate(30px,120px) scale(0.95); }
}
@keyframes float-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-70px,-50px) scale(1.1); }
  66%      { transform: translate(-20px,-110px) scale(0.92); }
}
@keyframes float-3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-60px,80px) scale(1.15); }
}
@keyframes float-4 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(50px,-70px) scale(1.05); }
  80%      { transform: translate(-30px,40px) scale(0.97); }
}

/* ── Entrance animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.6s ease forwards 0.2s;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeInLeft {
  to { opacity: 1; transform: translateX(0); }
}

/* ── Layout ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 10;
}

.logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
}

.accent {
  color: var(--primary-light);
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}

.content {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(139,92,246,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Headline ── */
.headline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-light), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtext {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 440px;
  margin: 0 auto;
}

/* ── Email form ── */
.email-form {
  width: 100%;
  max-width: 440px;
  position: relative;
  display: flex;
  align-items: center;
}

.email-form input {
  width: 100%;
  height: 56px;
  padding: 0 148px 0 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.email-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.email-form input:focus {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.email-form button {
  position: absolute;
  right: 6px;
  height: 44px;
  padding: 0 22px;
  background: var(--primary);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(139,92,246,0.35);
}

.email-form button:hover {
  background: #7c3aed;
  box-shadow: 0 0 30px rgba(139,92,246,0.55);
}

/* ── Success message ── */
.success-msg {
  display: none;
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: -16px;
}

.success-msg.visible {
  display: block;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .email-form input {
    padding-right: 130px;
    font-size: 0.85rem;
  }
  .email-form button {
    padding: 0 16px;
    font-size: 0.82rem;
  }
}
