/* ═══════════════════════════════════════════════════════════
   Peaksur Landing Page — Solead Design System
   Brand Shape: ChamferRect (cut + smooth arcs)
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand: #37F4B5;
  --brand-accent: #33FFC2;
  --brand-deep: #0F6B4E;
  --brand-dark: #0D2F2B;
  --bg-primary: #0A0A0F;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.25);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Ambient Background ─────────────────────────────────── */
.ambient-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.12; will-change: transform; }
.glow-1 { width: 600px; height: 600px; background: var(--brand); top: -200px; right: -150px; animation: drift1 20s ease-in-out infinite; }
.glow-2 { width: 500px; height: 500px; background: var(--brand-deep); bottom: -150px; left: -100px; animation: drift2 25s ease-in-out infinite; }
.glow-3 { width: 350px; height: 350px; background: var(--brand-accent); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.05; animation: pulse 8s ease-in-out infinite; }

@keyframes drift1 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-60px,40px) scale(1.05); } 66% { transform: translate(30px,-20px) scale(0.95); } }
@keyframes drift2 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(0.95); } 66% { transform: translate(-30px,20px) scale(1.05); } }
@keyframes pulse { 0%, 100% { opacity: 0.05; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.09; transform: translate(-50%,-50%) scale(1.15); } }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 40px 24px;
}

/* ── Logo ────────────────────────────────────────────────── */
.logo-wrapper {
  margin-bottom: 48px;
  animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0; transform: translateY(20px) scale(0.9);
}
.logo-img {
  height: 44px; width: auto;
  filter: drop-shadow(0 0 40px rgba(55, 244, 181, 0.15));
  transition: filter 0.5s ease;
}
.logo-wrapper:hover .logo-img { filter: drop-shadow(0 0 60px rgba(55, 244, 181, 0.3)); }

@keyframes logoReveal { to { opacity: 1; transform: translateY(0) scale(1); } }

/* ── Waitlist Card ──────────────────────────────────────── */
.waitlist-card {
  width: 100%; max-width: 440px;
  padding: 36px 32px;
  position: relative;
  animation: cardReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  opacity: 0; transform: translateY(20px);
}

@keyframes cardReveal { to { opacity: 1; transform: translateY(0); } }

/* ── Form ────────────────────────────────────────────────── */
.form-label {
  font-size: 0.875rem; color: var(--text-secondary);
  text-align: center; margin-bottom: 20px; line-height: 1.5;
}

.input-group { display: flex; gap: 10px; }

.input-chamfer {
  flex: 1; position: relative; height: 50px;
}

#email-input {
  width: 100%; height: 100%;
  padding: 0 18px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  position: relative; z-index: 1;
}
#email-input::placeholder { color: var(--text-muted); }

#submit-btn {
  height: 50px; padding: 0 28px;
  background: transparent;
  border: none;
  color: #0A0A0F;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem; font-weight: 700;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-width: 90px;
  transition: transform 0.2s ease;
  z-index: 1;
}
#submit-btn:hover { transform: translateY(-1px); }
#submit-btn:active { transform: translateY(0); }
#submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-text, .btn-loader { position: relative; z-index: 1; }
.btn-loader { display: flex; align-items: center; }
.btn-loader[hidden], .btn-text[hidden] { display: none; }

/* ── Error ───────────────────────────────────────────────── */
.form-error {
  font-size: 0.8125rem; color: #E57373;
  text-align: center; margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

/* ── Success ─────────────────────────────────────────────── */
.success-state { text-align: center; padding: 8px 0; }
.success-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.success-state:not([hidden]) .check-circle { animation: drawCircle 0.6s ease 0.2s forwards; }
.success-state:not([hidden]) .check-mark { animation: drawCheck 0.4s ease 0.7s forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.success-text { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 20px; text-align: center; }
.footer p { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.02em; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .logo-img { height: 34px; }
  .logo-wrapper { margin-bottom: 36px; }
  .waitlist-card { padding: 28px 22px; }
  .input-group { flex-direction: column; }
  #submit-btn { height: 48px; width: 100%; }
  .input-chamfer { width: 100%; }
}
