:root {
  /* Official Anshino brand tokens (01_brand/brand-tokens.json) */
  --midnight: #0b4a96;
  --blue: #0073b9;
  --sky: #14a0d4;
  --aqua: #4cc8d4;
  --mist: #e6f4f8;
  --ink: #1c2b3a;
  --grey: #5a6b7a;

  --line: rgba(11, 74, 150, 0.14);
  --shadow: 0 1px 2px rgba(11, 74, 150, 0.06), 0 14px 44px -14px rgba(11, 74, 150, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: "Nunito Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(125% 90% at 50% -8%, #ffffff 0%, #f4fbfd 44%, var(--mist) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

/* faint texture for depth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 1;
  margin: auto;
  width: 100%;
  max-width: 560px;
  padding: 7vh 28px 8vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* slow breathing aura — night-sky blue flowing into aqua */
.breath {
  position: absolute;
  top: 1vh;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 200, 212, 0.26) 0%, rgba(20, 160, 212, 0.12) 40%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: breathe 7s var(--ease) infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateX(-50%) scale(0.84); opacity: 0.5; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 0.9; }
}

header { margin-bottom: 24px; }

.logo {
  display: block;
  width: clamp(220px, 56vw, 290px);
  height: auto;
  margin: 0 auto;
  /* the logo art ships on white; let it sit cleanly on the near-white hero */
  mix-blend-mode: multiply;
}

.tagline {
  font-weight: 700;
  font-size: clamp(1.3rem, 4.8vw, 1.7rem);
  color: var(--blue);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1rem, 3.4vw, 1.12rem);
  line-height: 1.62;
  color: var(--grey);
  max-width: 32rem;
  margin: 0 0 30px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--midnight);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 46px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 160, 212, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(20, 160, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 160, 212, 0); }
}

/* ---- waitlist ---- */
.join { width: 100%; max-width: 26rem; }

.join-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 14px;
}

.field {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(20, 160, 212, 0.16), var(--shadow);
}

#email {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
}

#email::placeholder { color: var(--grey); opacity: 0.7; }
#email:focus { outline: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--midnight);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
}

#submit-btn:hover { background: var(--blue); }
#submit-btn:active { transform: scale(0.98); }
#submit-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
#submit-btn:disabled { opacity: 0.55; cursor: default; }

.btn-arrow { transition: transform 0.25s var(--ease); }
#submit-btn:hover .btn-arrow { transform: translateX(3px); }

.consent {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--grey);
  margin: 14px 4px 0;
}
.consent a { color: var(--blue); text-underline-offset: 2px; }

.form-status {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 0;
  min-height: 1.2em;
  transition: opacity 0.3s;
}
.form-status.ok  { color: var(--blue); }
.form-status.err { color: #c0392b; }

/* ---- footer ---- */
.foot {
  margin-top: 50px;
  font-size: 0.82rem;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.foot .contact { color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.foot .contact:hover { color: var(--midnight); border-color: var(--sky); }
.foot .sep { opacity: 0.6; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ---- entrance reveals ---- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; }
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.20s; }
.r3 { animation-delay: 0.34s; }
.r4 { animation-delay: 0.48s; }
.r5 { animation-delay: 0.62s; }
.r6 { animation-delay: 0.78s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .breath, .dot { animation: none; }
}

@media (max-width: 460px) {
  .field { flex-direction: column; }
  #submit-btn { justify-content: center; padding: 13px 18px; }
  .breath { width: 330px; height: 330px; }
}
