/* ====================================================================
   DESIGN TOKENS — copied 1:1 from main website
==================================================================== */
:root {
  --bg: #F6F4FD;
  --surface: #FFFFFF;
  --text: #0E1024;
  --text-muted: #6B7090;
  --text-soft: #8A8EAD;
  --border: #EAE6F8;
  --border-soft: #F0ECFA;

  --primary: #6D4AFF;
  --primary-dark: #5935E5;
  --primary-light: #A78BFA;
  --primary-soft: #EDE7FF;
  --primary-softer: #F5F1FF;

  --logo-blue: #4E75FA;
  --logo-mid:  #6366F1;
  --logo-purple: #8B5CF6;

  --accent-pink: #EC4899;
  --accent-red: #EF4444;
  --accent-green: #10B87A;

  --shadow-sm: 0 2px 8px rgba(20, 16, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 16, 48, 0.06);
  --shadow-lg: 0 20px 48px rgba(60, 40, 150, 0.08);
  --shadow-cta: 0 12px 28px rgba(109, 74, 255, 0.35), 0 2px 8px rgba(109, 74, 255, 0.2);

  --gradient-text: linear-gradient(135deg, #6D4AFF 0%, #A78BFA 50%, #7C3AED 100%);
  --gradient-logo: linear-gradient(92deg, #4E75FA 0%, #6366F1 48%, #8B5CF6 100%);
  --gradient-cta: linear-gradient(135deg, #6D4AFF 0%, #7C3AED 100%);
  --gradient-bg: radial-gradient(ellipse at top, #F1EDFC 0%, #F8F6FD 50%, #FDFCFF 100%);

  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --ease-liquid: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--primary-soft); color: var(--primary-dark); }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img { max-width: 100%; display: block; user-select: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }

/* ====================================================================
   PAGE WRAPPER + AMBIENT BLOBS (same as homepage)
==================================================================== */
.page-wrap {
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-wrap::before,
.page-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.page-wrap::before {
  top: -100px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, #C4B5FD 0%, transparent 70%);
}
.page-wrap::after {
  top: 300px; right: -150px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, #DDD6FE 0%, transparent 70%);
}

/* Extra ambient blob lower down to keep the long form page lively */
.page-wrap > .hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #E9DFFC 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

/* ====================================================================
   WATER DROP / LIQUID GLASS — SHARED (same as homepage)
==================================================================== */
.water {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.12) 55%,
    rgba(255, 255, 255, 0.20) 100%
  );
  backdrop-filter: url(#water-lens) saturate(170%) contrast(108%) blur(2.5px);
  -webkit-backdrop-filter: saturate(170%) contrast(108%) blur(2.5px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 4px 12px rgba(255, 255, 255, 0.35),
    inset 0 -1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 14px rgba(180, 200, 255, 0.15),
    inset 0 0 30px rgba(160, 180, 255, 0.22),
    0 10px 32px rgba(70, 40, 160, 0.14),
    0 2px 8px rgba(70, 40, 160, 0.08),
    0 0 0 1px rgba(140, 130, 200, 0.08);
}
.water::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 50% 30% at 25% 15%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(ellipse 30% 20% at 80% 80%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.9;
}
.water::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 18%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  filter: blur(0.5px);
  animation: sparkle 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes sparkle {
  0%,100% { opacity: 0.6; transform: translate(0,0) scale(1); }
  50%     { opacity: 1;   transform: translate(14px,-2px) scale(1.3); }
}

/* ====================================================================
   NAVBAR — WATER DROP (same as homepage)
==================================================================== */
.nav-shell {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 980px;
  transition: max-width 700ms var(--ease-liquid), top 500ms var(--ease-liquid);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 22px;
  border-radius: var(--radius-pill);
  transition: padding 700ms var(--ease-liquid), background 500ms ease, box-shadow 500ms ease;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  position: relative;
  transition: transform 500ms var(--ease-liquid);
}
.logo-mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 1px 2px rgba(78, 117, 250, 0.3));
  transition: transform 500ms var(--ease-liquid);
}
.logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  max-width: 220px;
  transition: opacity 300ms ease, max-width 500ms var(--ease-liquid), transform 500ms var(--ease-liquid);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  z-index: 1;
  position: relative;
  transition: opacity 400ms ease, max-width 600ms var(--ease-liquid), transform 500ms var(--ease-liquid);
  max-width: 500px;
  overflow: hidden;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 200ms ease, color 200ms ease;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 250ms ease;
}
.nav-links a:hover { opacity: 1; color: var(--primary); }
.nav-links a:hover::after { width: 20px; }

/* ====================================================================
   BUTTON CURSOR-SPREAD EFFECT (same as homepage)
==================================================================== */
.spread-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --x: 50%;
  --y: 50%;
}
.spread-btn::before {
  content: '';
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    var(--spread-color, rgba(255, 255, 255, 0.8)) 0%,
    var(--spread-color-soft, rgba(255, 255, 255, 0.3)) 40%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 700ms ease-out, height 700ms ease-out;
  pointer-events: none;
  z-index: 0;
}
.spread-btn:hover::before { width: 440px; height: 440px; }
.spread-btn > * { position: relative; z-index: 1; }

.nav-cta {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: white;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 18px rgba(109, 74, 255, 0.32);
  transition: transform 200ms ease, box-shadow 300ms ease;
  --spread-color: rgba(255, 215, 120, 0.75);
  --spread-color-soft: rgba(255, 180, 90, 0.35);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(109, 74, 255, 0.4); }

/* SCROLLED NAV — same as homepage */
.nav-shell.scrolled { max-width: 260px; top: 14px; }
.nav-shell.scrolled .navbar { padding: 8px 8px 8px 16px; }
.nav-shell.scrolled .logo-text { max-width: 0; opacity: 0; transform: translateX(-6px); }
.nav-shell.scrolled .logo-mark { transform: scale(0.92); }
.nav-shell.scrolled .nav-links { max-width: 0; opacity: 0; transform: scale(0.9); pointer-events: none; }
.nav-shell.scrolled .nav-cta { padding: 10px 20px; font-size: 13.5px; }

/* ====================================================================
   HERO (same animation timing & typography as homepage)
==================================================================== */
.hero {
  position: relative;
  padding: 140px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  margin-bottom: 48px;
}

/* Identical animation system to homepage */
.anim { opacity: 0; transform: translateY(14px); animation: fadeUp 0.7s var(--ease-soft) forwards; }
.anim.d1 { animation-delay: 0.10s; }
.anim.d2 { animation-delay: 0.28s; }
.anim.d3 { animation-delay: 0.55s; }
.anim.d4 { animation-delay: 0.85s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(245, 241, 255, 0.9);
  color: var(--primary-dark);
  border: 1px solid rgba(109, 74, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge svg { width: 14px; height: 14px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: 28px;
  margin-bottom: 22px;
  color: var(--text);
}
.gradient-word {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ====================================================================
   FORM CARD — water glass capsule
==================================================================== */
.form-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 520px;
  padding: 0 4px;
}
.form-card {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
}
.form-card > * { position: relative; z-index: 1; }

/* Trust counter */
.trust {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px dashed rgba(109, 74, 255, 0.18);
}
.trust__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.trust__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====================================================================
   FORM FIELDS
==================================================================== */
.form { display: flex; flex-direction: column; }

.field {
  position: relative;
  margin-bottom: 14px;
}
.field input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  outline: none;
  transition: border-color 250ms ease, box-shadow 250ms ease, background 250ms ease;
}
.field input::placeholder { color: transparent; }
.field input:hover { border-color: var(--primary-light); }
.field input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.12);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px white inset;
  transition: background-color 9999s;
}

.field label {
  position: absolute;
  left: 18px;
  top: 17px;
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  pointer-events: none;
  transition: all 220ms var(--ease-soft);
  background: transparent;
  padding: 0 6px;
}
.field label .muted {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 400;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: -8px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: linear-gradient(180deg, var(--bg) 50%, white 50%);
}

/* ====================================================================
   ROLE PILLS
==================================================================== */
.roles {
  border: 0;
  margin: 18px 0 8px;
}
.roles legend {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
  padding: 0;
}
.roles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.role { position: relative; cursor: pointer; }
.role input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
  transition: all 220ms var(--ease-soft);
}
.role__icon {
  width: 22px;
  height: 22px;
  color: var(--text-soft);
  transition: color 220ms ease;
}
.role__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  text-align: center;
}
.role:hover .role__inner {
  border-color: var(--primary-light);
  background: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.role input:checked + .role__inner {
  border-color: var(--primary);
  background: var(--primary-softer);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 20px -8px rgba(109, 74, 255, 0.3);
}
.role input:checked + .role__inner .role__icon { color: var(--primary); }
.role input:checked + .role__inner .role__label { color: var(--primary-dark); }
.role input:focus-visible + .role__inner {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ====================================================================
   SUBMIT BUTTON — uses .btn-primary .spread-btn from homepage
==================================================================== */
.btn-primary {
  padding: 16px 34px;
  background: var(--gradient-cta);
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 200ms ease, box-shadow 300ms ease, opacity 200ms ease;
  --spread-color: rgba(255, 220, 130, 0.85);
  --spread-color-soft: rgba(255, 180, 90, 0.4);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(109, 74, 255, 0.42);
}
.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 400ms var(--ease-soft);
}
.btn-primary:hover:not(:disabled) svg { transform: translateX(4px); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.submit {
  width: 100%;
  margin-top: 22px;
}
.submit.is-loading .submit__text::after {
  content: '...';
  display: inline-block;
  animation: dots 1.2s steps(4) infinite;
}
@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

/* ====================================================================
   FINEPRINT + FOOTER
==================================================================== */
.fineprint {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 24px 36px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ====================================================================
   TOAST
==================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 140%);
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  z-index: 200;
  transition: transform 500ms var(--ease-liquid);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast.is-success {
  border-color: rgba(16, 184, 122, 0.3);
  background: linear-gradient(180deg, white 0%, #F5FBF8 100%);
}
.toast.is-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, white 0%, #FFF7F7 100%);
}

/* ====================================================================
   MOBILE
==================================================================== */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-shell { max-width: 360px; }
  .hero { padding: 110px 18px 40px; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); margin-top: 22px; margin-bottom: 18px; }
  .hero-sub { font-size: 15.5px; }
  .form-card { padding: 22px 20px; }
  .roles__grid { grid-template-columns: 1fr; gap: 8px; }
  .role__inner {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 12px;
  }
  .role__icon { width: 20px; height: 20px; }
  .role__label { font-size: 13.5px; text-align: left; }
  .trust__count { font-size: 36px; }
  .spread-btn:hover::before { width: 340px; height: 340px; }
}

/* ====================================================================
   REDUCED MOTION
==================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .spread-btn::before { transition: none; }
}
