/* =========================================================
   VaiTej Innovators · Neo Dark Gradient + Motion
   Fully replaceable styles.css
   ========================================================= */

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* THEME TOKENS */
:root {
  --bg: #020617;
  --bg-soft: #020617;
  --surface: #020617;
  --panel: rgba(15, 23, 42, 0.92);
  --panel-strong: #020617;

  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);

  --text-main: #f9fafb;
  --text-soft: #e5e7eb;
  --text-faint: #9ca3af;
  --eyebrow: #a5b4fc;

  --border-subtle: rgba(148, 163, 184, 0.25);
  --border-input: #374151;
  --border-strong: #38bdf8;

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.8);
  --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.95);
  --shadow-outline: 0 0 0 1px rgba(148, 163, 184, 0.5);

  --transition-fast: 150ms ease-out;
  --transition-med: 260ms ease-out;
  --transition-slow: 600ms ease-out;
}

/* GLOBAL */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, #1d4ed8 0, transparent 40%),
    radial-gradient(circle at bottom right, #0f766e 0, transparent 40%),
    radial-gradient(circle at top right, #7c3aed 0, transparent 35%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain + glow overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.6) 0px,
      rgba(15, 23, 42, 0.6) 1px,
      transparent 1px,
      transparent 2px
    );
  mix-blend-mode: soft-light;
  opacity: 0.45;
  z-index: -4;
}

/* Particle canvas (from script.js) */
#particle-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.eyebrow {
  color: var(--eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-strong);
}

/* LAYOUT */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 92px 0;
  position: relative;
}

/* Light “panel strip” for contrast blocks */
.white-section {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header.narrow {
  max-width: 640px;
}

.section-header h2 {
  margin-bottom: 12px;
}

/* GRID / COLUMNS */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: flex-start;
}

/* HERO + ORBITS */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-dark {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.hero-copy {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* Animated gradient halo behind hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 15% 10% auto 10%;
  height: 320px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.18), transparent 60%);
  filter: blur(12px);
  opacity: 0.7;
  z-index: -1;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

/* Orbit rings */
.bg-orbit {
  position: fixed;
  top: 45%;
  left: 50%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  box-shadow: 0 0 80px rgba(56, 189, 248, 0.15);
  opacity: 0.5;
}

.bg-orbit-2 {
  width: 1040px;
  height: 1040px;
  border-radius: 50%;
  border-style: solid;
  border-color: rgba(56, 189, 248, 0.2);
  opacity: 0.4;
}

/* We animate glow + blur instead of transform to avoid conflicts with JS parallax */
.bg-orbit,
.bg-orbit-2 {
  animation: orbitPulse 7s ease-in-out infinite alternate;
}

.hero-copy h1 {
  margin-bottom: 16px;
}

.hero-copy p {
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto 32px;
}

/* HERO CTA */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.tagline span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 6px;
}

/* PAGE-SPECIFIC HEROES */
.page-hero {
  text-align: center;
}

.page-hero .section-header {
  margin-bottom: 0;
}

/* CTA SECTION */
.cta-section {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2), #020617);
}

.cta-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.9);
  background: radial-gradient(circle at top left, #38bdf8, #0ea5e9);
  color: #020617;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.35);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    filter var(--transition-fast),
    background var(--transition-fast);
  white-space: nowrap;
}

/* New: Small Primary Button (for footer/nav) */
.btn-primary-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px; /* Slightly smaller padding */
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.9);
  background: radial-gradient(circle at top left, #38bdf8, #0ea5e9);
  color: #020617;
  font-size: 0.85rem; /* Slightly smaller font */
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(56, 189, 248, 0.3); /* Smaller shadow */
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    filter var(--transition-fast),
    background var(--transition-fast);
  white-space: nowrap;
  margin-top: 10px; /* Space below paragraph in footer */
}

.btn-primary-small:hover {
  background-color: #38bdf8;
  color: #020617;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 20px rgba(56, 189, 248, 0.4);
  filter: brightness(1.03);
}

.btn-primary-small:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.9);
}

/* keep button content above card/glass overlays */
.btn-primary,
.btn-ghost {
  position: relative;
  margin-top: 20px;
  z-index: 2;
}

.btn-primary:hover {
  background-color: #38bdf8;
  color: #020617;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 40px rgba(56, 189, 248, 0.45);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.98),
    rgba(15, 23, 42, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-text span {
  color: var(--accent);
  font-weight: 600;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-faint);
  padding: 4px 0;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #a855f7);
  transition: width var(--transition-med);
}

.nav-link:hover {
  color: var(--text-soft);
}

.nav-link.active {
  color: var(--accent-strong);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  color: var(--text-main);
}

/* CARDS / PANELS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  list-style: none;
}

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.95));
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: translateY(0) translateZ(0);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.28), transparent 60%);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
}

.card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card-title {
  margin-bottom: 6px;
}

/* Glass panel */
.glass-panel {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.98)
  );
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.36);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-med),
    background var(--transition-med);
}

/* ensure inner content sits above overlay */
.glass-panel > * {
  position: relative;
  z-index: 1;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.14),
    transparent 30%,
    transparent 70%,
    rgba(129, 140, 248, 0.08)
  );
  opacity: 0;
  transform: translateX(-10%);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
  pointer-events: none;
}

.glass-panel:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 1)
  );
}

.glass-panel:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.panel-title {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 10px;
}

/* Rolling Private Beta spacing */
.rolling-beta-panel p {
  margin-bottom: 14px;
}

.rolling-beta-panel .btn-primary {
  margin-top: 10px;
}

/* BULLET LISTS */
.bullet-list {
  list-style: none;
  padding: 20px 0px;
}

.bullet-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #38bdf8, #a855f7);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

/* WAITLIST SECTION + FORM */
.waitlist-section {
  padding: 96px 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
}

.waitlist-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.waitlist-card h2 {
  margin-bottom: 10px;
}

.waitlist-card p {
  margin-bottom: 22px;
  font-size: 0.98rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.waitlist-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 12px;
}

/* Input + select shared */
input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-input);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
  color: var(--text-main);
  font-size: 0.94rem;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
  background: #020617;
  transform: translateY(-1px);
}

/* Custom select arrow */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239ca3af' viewBox='0 0 20 20'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Contact page layout tweaks */
.contact-layout {
  align-items: stretch;
}

.contact-panel {
  height: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-faint);
}

.form-status {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.small-text {
  font-size: 0.92rem;
}

/* Waitlist meta */
.waitlist-meta {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* FOOTER */
.footer {
  padding: 48px 0 26px; /* Increased top padding */
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Custom grid for columns */
  gap: 40px;
  padding-bottom: 40px; /* Space above the copyright bar */
}

.footer-column h4 {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-brand .tagline {
  justify-content: flex-start; /* Align tagline left */
  margin-top: 8px;
}

.footer-logo {
  text-decoration: none;
}

.footer-column p {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-faint);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(30, 64, 175, 0.3);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

/* Removed the original .footer-inner styles */
/* .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-faint);
} */

/* .footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-faint);
}

.footer-links a:hover {
  color: var(--accent);
} */

/* SCROLL REVEAL ANIMATION (re-enabled) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition:
    opacity 480ms ease-out,
    transform 480ms ease-out,
    filter 480ms ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Optional stagger helpers for manual use */
.reveal.delay-1 {
  transition-delay: 120ms;
}
.reveal.delay-2 {
  transition-delay: 220ms;
}
.reveal.delay-3 {
  transition-delay: 320ms;
}

/* KEYFRAMES */
@keyframes heroGlow {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.06);
  }
  100% {
    opacity: 0.5;
    transform: scale(1.02);
  }
}

@keyframes orbitPulse {
  0% {
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.22);
  }
  50% {
    box-shadow: 0 0 95px rgba(56, 189, 248, 0.3);
    border-color: rgba(129, 140, 248, 0.45);
  }
  100% {
    box-shadow: 0 0 70px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }

  .nav-inner {
    padding-inline: 18px;
  }

  .section {
    padding: 80px 0;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .waitlist-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    inset: 62px 16px auto 16px;
    border-radius: 18px;
    background: radial-gradient(circle at top, #020617, #020617);
    border: 1px solid rgba(31, 41, 55, 0.9);
    flex-direction: column;
    padding: 10px;
    gap: 4px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--transition-med),
      transform var(--transition-med);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 9px 4px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle::before {
    content: "☰";
  }

  .nav-toggle.open::before {
    content: "✕";
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tagline {
    flex-direction: column;
    align-items: flex-start;
  }

  .waitlist-card,
  .cta-card {
    padding-inline: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-brand .tagline {
    justify-content: center;
  }

  .footer-bottom .container {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .logo-text span {
    display: none;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }
}

/* =========================================================
   Form status message + button loading animation
   ========================================================= */

/* Base status pill */
.form-status {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-faint);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 220ms ease-out,
    transform 220ms ease-out,
    background 200ms ease-out,
    border-color 200ms ease-out,
    color 200ms ease-out;
}

/* little dot icon inside (we inject it from JS using text only, so this is optional) */
.form-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.25);
}

/* visible state */
.form-status.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* success */
.form-status.success {
  background: radial-gradient(circle at left, rgba(34,197,94,0.16), rgba(15,23,42,0.98));
  border-color: rgba(34,197,94,0.8);
  color: #bbf7d0;
}

/* error */
.form-status.error {
  background: radial-gradient(circle at left, rgba(239,68,68,0.18), rgba(15,23,42,0.98));
  border-color: rgba(239,68,68,0.9);
  color: #fecaca;
}

/* subtle entry animation (extra) */
@keyframes statusPop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-status.visible {
  animation: statusPop 220ms ease-out;
}

/* Button loading state */
.btn-primary.loading {
  position: relative;
  opacity: 0.9;
  cursor: wait;
}

.btn-primary.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.25);
  border-top-color: rgba(15, 23, 42, 0.9);
  margin-left: 8px;
  display: inline-block;
  animation: btnSpinner 0.6s linear infinite;
}

@keyframes btnSpinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}