/* =========================================================
   JoinMyPlan — Launching Soon
   Shared styles for landing + privacy pages
   ========================================================= */

:root {
  --bg: #0c0a1f;
  --bg-2: #140f33;
  --ink: #f5f3ff;
  --ink-soft: #c9c2f0;
  --ink-mute: #948cc4;
  --accent: #6c5ce7;
  --accent-2: #00d2ff;
  --accent-3: #ff5c8a;
  --accent-4: #ffd166;
  --card: rgba(255, 255, 255, 0.06);
  --card-brd: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --maxw: 980px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* =========================================================
   Animated background
   ========================================================= */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(135deg, #0c0a1f, #1a1145, #0c0a1f, #131a40);
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-blobs { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -120px; left: -100px;
  animation: drift1 22s ease-in-out infinite;
}
.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -160px; right: -120px;
  animation: drift2 26s ease-in-out infinite;
}
.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  top: 40%; left: 55%;
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-100px, -60px) scale(1.1); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-80px, 100px) scale(1.2); }
}

.bg-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle var(--tw, 4s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50%      { opacity: 0.9;  transform: scale(1.3); }
}

/* Activity icons flying across the sky */
.floaters { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.floater {
  position: absolute;
  top: var(--top, 20%);
  font-size: calc(2rem * var(--s, 1));
  opacity: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  animation-duration: var(--dur, 30s);
  animation-delay: var(--d, 0s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

/* Each icon drifts in a straight line and tumbles continuously,
   like an object thrown in zero gravity. --spin sets total turn,
   --sp adds a slow drift along the cross-axis. */
.floater.fly-right  { left: 0;  animation-name: flyRight; }
.floater.fly-left   { right: 0; animation-name: flyLeft; }
.floater.fly-diag   { left: 0;  animation-name: flyDiag; }
.floater.fly-diag2  { left: 0;  animation-name: flyDiag2; }

/* straight drift left → right, tumbling the whole way */
@keyframes flyRight {
  0%   { transform: translate(-15vw, -6vh) rotate(0deg) scale(0.7); opacity: 0; }
  8%   { opacity: 0.9; }
  92%  { opacity: 0.9; }
  100% { transform: translate(120vw, 6vh) rotate(var(--spin, 720deg)) scale(1.1); opacity: 0; }
}

/* straight drift right → left */
@keyframes flyLeft {
  0%   { transform: translate(15vw, 5vh) rotate(0deg) scale(1.1); opacity: 0; }
  8%   { opacity: 0.9; }
  92%  { opacity: 0.9; }
  100% { transform: translate(-120vw, -5vh) rotate(var(--spin, -720deg)) scale(0.7); opacity: 0; }
}

/* straight diagonal: bottom-left → top-right */
@keyframes flyDiag {
  0%   { transform: translate(-15vw, 15vh) rotate(0deg) scale(0.65); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translate(120vw, -70vh) rotate(var(--spin, 900deg)) scale(1.15); opacity: 0; }
}

/* straight diagonal: top-left → bottom-right */
@keyframes flyDiag2 {
  0%   { transform: translate(-15vw, -12vh) rotate(0deg) scale(1.1); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translate(120vw, 65vh) rotate(var(--spin, -840deg)) scale(0.7); opacity: 0; }
}

/* =========================================================
   Layout shell
   ========================================================= */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Brand bar */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  animation: bob 3.5s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.logo-text { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-text .accent {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 16px;
  border: 1px solid var(--card-brd);
  border-radius: 999px;
  transition: all 0.25s ease;
}
.nav-link:hover { background: var(--card); color: var(--ink); transform: translateY(-2px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 40px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-4);
  box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 209, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}

.title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
/* Rotating word */
.rotator {
  display: inline-grid;
  height: 1.05em;
  overflow: hidden;
  vertical-align: bottom;
}
.rotator-track {
  display: flex;
  flex-direction: column;
  animation: rotate 9s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
.rotator-track span {
  height: 1.05em;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3), var(--accent-4));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes rotate {
  0%, 18%   { transform: translateY(0); }
  25%, 43%  { transform: translateY(-1.05em); }
  50%, 68%  { transform: translateY(-2.1em); }
  75%, 93%  { transform: translateY(-3.15em); }
  100%      { transform: translateY(-4.2em); }
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

.subtitle {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.6;
  font-weight: 300;
}

/* =========================================================
   Countdown
   ========================================================= */
.countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.unit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flip {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 1.9em;
  padding: 18px 10px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.flip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.35);
}
.flip.tick { animation: tick 0.5s ease; }
@keyframes tick {
  0%   { transform: rotateX(0) scale(1); }
  45%  { transform: rotateX(-18deg) scale(1.04); color: var(--accent-2); }
  100% { transform: rotateX(0) scale(1); }
}
.label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 600;
}
.colon {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--ink-mute);
  align-self: flex-start;
  margin-top: 10px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.launched {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: revealUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================
   Notify form
   ========================================================= */
.notify { width: 100%; max-width: 460px; margin-top: 6px; }
.field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.25);
}
.field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 0 18px;
  outline: none;
}
.field input::placeholder { color: var(--ink-mute); }
.field button {
  position: relative;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 8px 22px rgba(108, 92, 231, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.field button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(108, 92, 231, 0.6); }
.field button:active { transform: translateY(0) scale(0.98); }
.btn-shine {
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -120%; }
  100%    { left: 160%; }
}
.form-msg {
  min-height: 1.2em;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-2);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}
.form-msg.show { opacity: 1; transform: translateY(0); }
.form-msg.error { color: var(--accent-3); }

/* Feature pills */
.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  transition: transform 0.2s ease, background 0.2s ease;
}
.features li:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); }
.features .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-4));
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-mute);
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--card-brd);
}
.footer-links { display: flex; gap: 8px; align-items: center; }
.footer-links a { text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); }

/* =========================================================
   Reveal-on-load animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Privacy page
   ========================================================= */
.doc {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 22px 80px;
}
.doc .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 28px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.doc .back:hover { gap: 12px; color: var(--ink); }
.doc h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.doc .updated { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 32px; }
.doc-card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 28px 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}
.doc h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 30px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); line-height: 1.7; font-weight: 300; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a.inline { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.doc a.inline:hover { border-bottom-color: var(--accent-2); }
.doc .toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px;
}
.doc .toc a {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  transition: all 0.2s ease;
}
.doc .toc a:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 560px) {
  .countdown { gap: 4px; }
  .colon { margin-top: 6px; }
  .flip { padding: 14px 6px; border-radius: 12px; }
  .field { flex-direction: column; border-radius: 18px; }
  .field input { padding: 14px 18px; text-align: center; }
  .field button { width: 100%; }
  .footer { flex-direction: column; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
