/* NestPad launching-soon page */

:root {
  --bg: #030726;
  --bg-soft: #07102e;
  --text: #f4f7ff;
  --muted: #9aa3c2;
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --teal: #10e5a0;
  --teal-2: #5eead4;
  --line: rgba(165, 180, 230, 0.14);
  --card: rgba(10, 16, 42, 0.72);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --header-h: 58px;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 12px;
}

/* Background */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}


.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: orb-drift 22s ease-in-out infinite alternate;
}

.orb-purple {
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  background: #6d28d9;
  top: -8%;
  left: 8%;
}

.orb-teal {
  width: 36vw;
  height: 36vw;
  max-width: 480px;
  max-height: 480px;
  background: #0f766e;
  right: 2%;
  bottom: 8%;
  animation-delay: -8s;
  animation-duration: 26s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

.hex-grid {
  position: absolute;
  inset: -20%;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath fill='none' stroke='rgba(139,92,246,0.22)' stroke-width='1' d='M28 2 L54 17 V47 L28 62 L2 47 V17 Z'/%3E%3Cpath fill='none' stroke='rgba(16,229,160,0.12)' stroke-width='1' d='M28 62 L54 77 V107 L28 122 L2 107 V77 Z'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  animation: grid-drift 80s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-97px); }
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Header */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.header-links {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: rgba(16, 229, 160, 0.5);
  background: rgba(16, 229, 160, 0.08);
  color: var(--teal);
  outline: none;
}

.icon-btn:focus-visible,
.btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Hero */

.hero {
  text-align: center;
  padding: 4px clamp(20px, 4vw, 48px) 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 229, 160, 0.35);
  background: rgba(16, 229, 160, 0.08);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(16, 229, 160, 0.7);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 229, 160, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 229, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 229, 160, 0); }
}


.hero-logo-wrap {
  position: relative;
  width: clamp(156px, 18vw, 196px);
  height: clamp(156px, 18vw, 196px);
  margin: 0;
}

.hero-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, rgba(16, 229, 160, 0.28) 45%, transparent 70%);
  filter: blur(22px);
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 82%);
  mask-image: radial-gradient(circle, #000 62%, transparent 82%);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, 5.6vw, 3.65rem);
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff 0%, #e9d5ff 32%, #a5f3e0 68%, #10e5a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.tagline {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: -0.02em;
  color: #c9d0ea;
}


.bio {
  margin: 12px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-x {
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.28);
}


.btn-discord {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(165, 180, 230, 0.28);
  color: var(--text);
}

.btn-discord:hover,
.btn-discord:focus-visible {
  border-color: rgba(16, 229, 160, 0.55);
  background: rgba(16, 229, 160, 0.08);
}

.btn-x:hover,
.btn-x:focus-visible {
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.42);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* How it works */

.how {
  width: min(100%, 1000px);
  margin: 4px auto 0;
  padding: 4px clamp(20px, 4vw, 48px) 12px;
}


.how-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}


.mascot {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
}

.mascot img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle, #000 68%, transparent 88%);
  mask-image: radial-gradient(circle, #000 68%, transparent 88%);
}

.how h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 15px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  opacity: 0.85;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--teal-2);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(16, 229, 160, 0.18));
  border: 1px solid rgba(16, 229, 160, 0.25);
}

.step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 10px 24px 14px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #7b84a3;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 720px) {
  :root { --header-h: 58px; }

  .hero {
    padding-top: 12px;
  }

  .hero-logo-wrap {
    width: 168px;
    height: 168px;
  }

  .bio {
    font-size: 0.98rem;
  }

  .cta {
    width: 100%;
    max-width: 360px;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .how {
    padding-top: 20px;
  }

  .mascot,
  .mascot img {
    width: 84px;
    height: 84px;
  }
  .mascot { flex-basis: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb,
  .hex-grid,
  .hero-glow,
  .pill-dot,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}


/* Test launch form (used by /test only) */

.pill-test {
  border-color: rgba(245, 197, 66, 0.45);
  background: rgba(245, 197, 66, 0.1);
  color: #f5c542;
}

.pill-test .pill-dot {
  background: #f5c542;
  box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.7);
  animation: pulse-gold 2s ease-out infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 197, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0); }
}

.test-page {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 48px) 32px;
}

.test-page .hero {
  padding-left: 0;
  padding-right: 0;
}

.test-banner {
  margin: 16px 0 0;
  max-width: 36rem;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 197, 66, 0.35);
  background: rgba(245, 197, 66, 0.08);
  color: #fde68a;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.launch-form,
.success-card {
  position: relative;
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px 22px 20px;
}

.launch-form::before,
.success-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  opacity: 0.85;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.req {
  color: var(--teal);
  font-weight: 700;
}

.field .hint,
.char-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.char-count {
  margin-left: auto;
}

.label-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.field input[type="text"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d7696;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(16, 229, 160, 0.55);
  box-shadow: 0 0 0 3px rgba(16, 229, 160, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.field input.invalid,
.field textarea.invalid {
  border-color: rgba(248, 113, 113, 0.7);
}

.field-error {
  color: #fca5a5;
  font-size: 0.8rem;
  min-height: 0;
}

.image-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(165, 180, 230, 0.35);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.image-drop:hover,
.image-drop:focus-within {
  border-color: rgba(16, 229, 160, 0.55);
  background: rgba(16, 229, 160, 0.06);
}

.image-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-preview-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.image-preview-wrap.show {
  display: flex;
}

.image-preview {
  max-width: 180px;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #04081c;
}

.remove-image {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.remove-image:hover {
  color: var(--text);
  border-color: rgba(248, 113, 113, 0.5);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-launch {
  width: 100%;
  background: linear-gradient(135deg, var(--purple), #0f766e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.28);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-launch:hover,
.btn-launch:focus-visible {
  box-shadow: 0 10px 28px rgba(16, 229, 160, 0.28);
}

.btn-launch:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  color: #fca5a5;
  min-height: 1.2em;
}

.form-status.info {
  color: var(--muted);
}

.success-card {
  text-align: center;
  display: none;
}

.success-card.show {
  display: block;
}

.success-card h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.success-check {
  width: 52px;
  height: 52px;
  margin: 4px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 229, 160, 0.14);
  color: var(--teal);
  font-size: 1.4rem;
}

.success-card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.success-next {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  text-align: left;
}

.success-next h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.success-next p {
  margin: 0;
  font-size: 0.92rem;
}

.btn-again {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(165, 180, 230, 0.28);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.btn-again:hover,
.btn-again:focus-visible {
  border-color: rgba(16, 229, 160, 0.55);
  background: rgba(16, 229, 160, 0.08);
}

@media (max-width: 720px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .launch-form,
  .success-card {
    padding: 18px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill-test .pill-dot {
    animation: none !important;
  }
}
