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

:root {
  --purple-core:  #F4BC33;
  --purple-mid:   #f7ca5a;
  --purple-glow:  #c9921a;
  --purple-soft:  #fde89a;
  --white:        #ffffff;
  --white-60:     rgba(255,255,255,0.6);
  --white-30:     rgba(255,255,255,0.3);
  --white-10:     rgba(255,255,255,0.08);
  --black:        #000000;
  --bg:           #06050a;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ─── Star Canvas ──────────────────────────────────────────── */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Planet ───────────────────────────────────────────────── */
.planet-wrapper {
  position: fixed;
  bottom: -38vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(120vw, 1000px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
}

.planet-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(244, 188, 51, 0.50) 0%,
    rgba(201, 146, 26, 0.30) 35%,
    transparent 70%
  );
  filter: blur(40px);
  animation: planetPulse 6s ease-in-out infinite alternate;
}

.planet-body {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 48% 35%,
    #261a00 0%,
    #0f0a00 40%,
    #050400 80%
  );
  box-shadow:
    0 0 80px 20px rgba(244,188,51,0.22),
    0 0 200px 60px rgba(244,188,51,0.10),
    inset 0 0 60px rgba(244,188,51,0.12);
  overflow: hidden;
}

/* Subtle surface texture lines */
.planet-body::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      -8deg,
      transparent,
      transparent 18px,
      rgba(244,188,51,0.04) 18px,
      rgba(244,188,51,0.04) 19px
    );
}

/* Atmospheric edge highlight */
.planet-shine {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    inset -20px -20px 60px rgba(0,0,0,0.9),
    inset 6px 6px 30px rgba(244,188,51,0.08);
}

/* Top thin atmospheric glow arc */
.planet-shine::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(253,232,154,0.5) 30%,
    rgba(244,188,51,0.8) 50%,
    rgba(253,232,154,0.5) 70%,
    transparent
  );
  filter: blur(1px);
}

@keyframes planetPulse {
  from { opacity: 0.85; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.015); }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: 4rem 1.5rem 6rem;
  max-width: 700px;
  width: 100%;
  min-height: 100dvh;
}

/* ─── Form Card ─────────────────────────────────────────────── */
.form-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(12, 11, 15, 0.88);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 2.4rem 2.2rem 2rem;
  backdrop-filter: blur(24px);
  animation: fadeDown 0.7s 0.3s ease both;
  margin-top: 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(244,188,51,0.04);
}

/* ─── Card Badge ─────────────────────────────────────────────── */
.card-badge {
  position: absolute;
  top: -18px;
  left: 24px;
  background: linear-gradient(135deg, #F4BC33 0%, #f7ca5a 100%);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border-radius: 100px;
  box-shadow:
    0 0 18px rgba(244,188,51,0.6),
    0 0 40px rgba(244,188,51,0.25);
  animation: fadeDown 0.6s ease both;
}

/* ─── Headline ─────────────────────────────────────────────── */
.headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
  animation: fadeDown 0.7s 0.1s ease both;
}

.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  /* golden shimmer */
  background: linear-gradient(
    135deg,
    #fff 0%,
    #F4BC33 40%,
    #fde89a 70%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Subline ──────────────────────────────────────────────── */
.subline {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 2rem;
  animation: fadeDown 0.7s 0.2s ease both;
}

/* ─── Form ─────────────────────────────────────────────────── */
.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.5rem;
}

/* ─── Field Group ────────────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  user-select: none;
}

.field-optional {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.28);
  text-transform: none;
  font-size: 0.68rem;
}

.field-input {
  width: 100%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--purple-core);
}

.field-input::placeholder {
  color: rgba(255,255,255,0.22);
}

.field-input:focus {
  border-color: rgba(244,188,51,0.35);
  box-shadow: 0 0 0 3px rgba(244,188,51,0.08);
}

/* ─── Submit Button ──────────────────────────────────────────── */
.notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0e0d12;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 15px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 1px 0 rgba(255,255,255,0.04);
  margin-top: 0.3rem;
}

/* shimmer overlay on hover */
.notify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(244,188,51,0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s;
}

.notify-btn:hover {
  border-color: rgba(244,188,51,0.4);
  box-shadow:
    0 0 0 1px rgba(244,188,51,0.2),
    0 0 30px rgba(244,188,51,0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.notify-btn:hover::before { opacity: 1; }

.notify-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.notify-btn.loading .btn-text { opacity: 0; }
.notify-btn.loading .btn-icon { opacity: 0; }

.notify-btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-icon {
  font-size: 1.05rem;
  transition: transform 0.2s;
}

.notify-btn:hover .btn-icon { transform: translate(2px, -2px); }

/* ─── Trust Line ─────────────────────────────────────────────── */
.trust-line {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
  text-align: center;
  margin-top: 0.2rem;
}

.trust-highlight {
  color: var(--purple-core);
  font-weight: 500;
}

.form-error {
  margin-top: -0.4rem;
  font-size: 0.76rem;
  color: #f87171;
  min-height: 1em;
  text-align: left;
  padding-left: 2px;
  transition: opacity 0.2s;
}

/* ─── Success Message ──────────────────────────────────────── */
.success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--purple-soft);
  font-size: 0.88rem;
  font-weight: 400;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  animation: fadeUp 0.5s ease both;
}

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

/* ─── Credit ───────────────────────────────────────────────── */
.credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  margin-top: 2rem;
  animation: fadeDown 0.7s 0.45s ease both;
}

.credit-avatar {
  font-size: 1rem;
  filter: grayscale(0.3);
}

.credit-link {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.credit-link:hover { color: var(--purple-soft); }

/* ─── Keyframes ────────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Radial vignette ──────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 40%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ─── Responsive ───────────────────────────────────────────── */

/* Large desktop — give headline more room to breathe */
@media (min-width: 1200px) {
  .headline {
    font-size: clamp(3.8rem, 5vw, 5rem);
  }

  .subline {
    font-size: 1rem;
    max-width: 460px;
  }

  .form-card {
    padding: 2.8rem 2.6rem 2.4rem;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .headline {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  }

  .hero {
    padding: 3rem 2rem 5rem;
  }

  .planet-wrapper {
    width: min(140vw, 900px);
    bottom: -32vh;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .hero {
    padding: 3.5rem 1.25rem 4rem;
    min-height: unset;
    justify-content: flex-start;
  }

  .headline {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
    line-height: 1.12;
    margin-bottom: 0.9rem;
  }

  .subline {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .form-card {
    padding: 2rem 1.25rem 1.6rem;
    border-radius: 16px;
  }

  .card-badge {
    font-size: 0.63rem;
    padding: 6px 14px;
  }

  .field-input {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .notify-btn {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .planet-wrapper {
    bottom: -18vh;
    width: 160vw;
  }

  .credit {
    margin-top: 1.5rem;
    font-size: 0.72rem;
  }
}

/* Small phones (≤400px) */
@media (max-width: 400px) {
  .headline {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }

  .hero {
    padding: 2.5rem 1rem 3.5rem;
  }

  .form-card {
    padding: 1.75rem 1rem 1.4rem;
  }

  .subline {
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
  }
}

/* Landscape / very short screens */
@media (max-height: 700px) and (max-width: 900px) {
  .hero {
    min-height: unset;
    padding-top: 2rem;
    padding-bottom: 3rem;
    justify-content: flex-start;
  }

  .headline {
    margin-bottom: 0.65rem;
  }

  .subline {
    margin-bottom: 1rem;
  }

  .planet-wrapper {
    bottom: -40vh;
    opacity: 0.7;
  }
}
