/* =========================================================================
   Moventus — shared site styles
   One source of truth for colour, type, spacing, nav, footer, buttons,
   forms and motion. Every page links this file; page files only add
   layout for their own sections.
   ========================================================================= */

:root {
  /* Primary — Purple: accents, CTAs, active states. The only saturated hue. */
  --purple-50:  #ebe7fe;
  --purple-100: #d5ccfd;
  --purple-200: #c0b1fc;
  --purple-300: #9c85fa;
  --purple-400: #7959f8;
  --purple-500: #7a5af8;
  --purple-600: #3f11f5;
  --purple-700: #2a08b2;
  --purple-800: #1f0687;
  --purple-900: #15045b;
  --purple-950: #0b022f;

  /* Secondary — Slate blue: icons, secondary actions, quiet surfaces. */
  --slate-50:  #eff3f5;
  --slate-100: #dee6ea;
  --slate-200: #cdd9df;
  --slate-300: #b1c3cd;
  --slate-400: #95adbc;
  --slate-500: #7494a7;
  --slate-600: #557486;
  --slate-700: #3c525f;
  --slate-800: #2e3e48;
  --slate-900: #1f2a31;
  --slate-950: #10161a;

  /* Neutrals — background, text, lines. */
  --neutral-50:  #e4e7f0;
  --neutral-100: #dddfe9;
  --neutral-200: #cbcdd9;
  --neutral-300: #b4b5c5;
  --neutral-400: #908fa7;
  --neutral-500: #6c698b;
  --neutral-600: #565074;
  --neutral-700: #443b62;
  --neutral-800: #31254d;
  --neutral-900: #241541;
  --neutral-950: #140b25;

  /* Roles */
  --bg: #f7f7fa;
  --paper: #ffffff;
  --ink: var(--neutral-950);
  --muted: var(--neutral-600);
  --soft: var(--neutral-400);
  --line: rgba(20, 11, 37, 0.10);
  --line-strong: rgba(20, 11, 37, 0.18);
  --accent: var(--purple-500);
  --accent-strong: var(--purple-700);
  --accent-soft: var(--purple-50);
  --dark: var(--neutral-950);
  --dark-2: var(--neutral-900);

  /* Type */
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: var(--sans); /* small labels use Inter too — one family across the site */

  /* Layout */
  --max: 1320px;
  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--purple-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Small type ---------- */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.label.on-dark { color: var(--purple-200); }
.label.quiet { color: var(--soft); }

/* ---------- Headings ---------- */
.display {
  font-size: clamp(46px, 7.2vw, 110px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(34px, 4.6vw, 70px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 600;
}
.h3 {
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 600;
}
.accent { color: var(--accent); }
.lede {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.38;
  letter-spacing: -.02em;
  color: var(--muted);
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 900;
  background: rgba(247, 247, 250, .8);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; height: 40px; flex-shrink: 0; }
.brand img { height: 100%; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
  color: var(--muted); transition: color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0; z-index: 850;
  background: var(--bg); padding: 16px var(--pad) 40px; border-top: 1px solid var(--line);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 8.5vw, 44px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600;
}
.mobile-menu a.mm-cta { color: var(--accent); }

/* ---------- Beta ribbon (sits under the nav on every page) ---------- */
.beta-ribbon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; letter-spacing: -.01em; color: var(--muted);
  transition: border-color .2s ease, transform .2s ease;
}
.beta-ribbon:hover { border-color: var(--purple-200); transform: translateY(-1px); }
.beta-ribbon .tag {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 999px;
}
.beta-ribbon strong { color: var(--ink); font-weight: 600; }
.beta-ribbon .arrow { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(122, 90, 248, .65); }
.btn-primary:hover { background: var(--purple-400); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--purple-300); color: var(--accent-strong); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 72px 0 36px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-top .brand { height: 44px; margin-bottom: 20px; }
.footer-top p { color: rgba(255, 255, 255, .6); font-size: 15px; line-height: 1.55; max-width: 34ch; }
.footer-col h4 {
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple-200); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .72); font-size: 15px; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px;
  font-size: 13px; color: rgba(255, 255, 255, .45);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .field-label {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.field .opt { font-weight: 400; color: var(--soft); }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: -2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number],
.field select, .field textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23565074' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(122, 90, 248, .14);
}
.field textarea { min-height: 96px; resize: vertical; }

/* Choice chips (radio / checkbox styled as pills) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-strong); font-size: 14.5px; color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}
.choice input:hover + span { border-color: var(--purple-300); }
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--purple-800); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check strong { color: var(--ink); font-weight: 600; }

.notice {
  display: none; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 12px;
  background: var(--slate-50); border: 1px solid var(--slate-200); color: var(--slate-800);
}
.notice.show { display: block; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
.rise-words .w { display: inline-block; opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-links, .nav-right .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .brand { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .rise-words .w { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   Moven + aurora — shared futuristic layer
   ========================================================================= */

/* Iridescent aurora background (drifting soft colour fields) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85;
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 62vw; height: 46vw; left: -14vw; top: 6%;  background: radial-gradient(closest-side, #c9d9ee, rgba(201,217,238,0)); animation-duration: 26s; }
.aurora i:nth-child(2) { width: 58vw; height: 52vw; right: -16vw; top: -8%; background: radial-gradient(closest-side, #c3b4fb, rgba(195,180,251,0)); animation-duration: 20s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 46vw; height: 36vw; left: 26%; top: 30%;  background: radial-gradient(closest-side, #f1dcf3, rgba(241,220,243,0)); animation-duration: 24s; animation-delay: -12s; }
.aurora i:nth-child(4) { width: 40vw; height: 30vw; left: 4%; bottom: -6%; background: radial-gradient(closest-side, #dcefe9, rgba(220,239,233,0)); animation-duration: 28s; animation-delay: -3s; }
.aurora i:nth-child(5) { width: 36vw; height: 30vw; right: 6%; bottom: 4%; background: radial-gradient(closest-side, #a996fa, rgba(169,150,250,0)); opacity: .55; animation-duration: 18s; animation-delay: -9s; }
.aurora::after { /* fade to page at the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(to bottom, rgba(247,247,250,0), var(--bg));
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(4vw, -3vw, 0) scale(1.08) rotate(8deg); }
  100% { transform: translate3d(-3vw, 2vw, 0) scale(.96) rotate(-6deg); }
}
.grain { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Moven — the pearl */
.pearl {
  --size: 168px;
  position: relative; width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.98) 0 7%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 74% 30%, rgba(246,221,244,.95), rgba(246,221,244,0) 46%),
    radial-gradient(circle at 70% 78%, rgba(150,124,248,.62), rgba(150,124,248,0) 54%),
    radial-gradient(circle at 24% 76%, rgba(165,190,214,.7), rgba(165,190,214,0) 52%),
    radial-gradient(circle at 50% 50%, #f4f0fb, #e3daf6);
  box-shadow:
    inset -14px -18px 34px rgba(98,64,214,.32),
    inset 12px 14px 26px rgba(255,255,255,.95),
    0 0 0 calc(var(--size) * .035) rgba(255,255,255,.85),
    0 0 0 calc(var(--size) * .06) rgba(156,133,250,.55),
    0 30px 80px -10px rgba(122,90,248,.45);
  animation: breathe 6s ease-in-out infinite;
}
.pearl::before { /* slow iridescent sheen */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.55) 40deg, rgba(255,255,255,0) 90deg,
    rgba(201,184,255,.5) 170deg, rgba(255,255,255,0) 220deg, rgba(196,226,240,.55) 290deg, rgba(255,255,255,0) 360deg);
  mix-blend-mode: soft-light; filter: blur(7px); opacity: .8; animation: spinSheen 14s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%); mask: radial-gradient(circle, #000 55%, transparent 72%);
}
.pearl::after { /* specular arc */
  content: ""; position: absolute; inset: 9% 14% auto auto; width: 38%; height: 22%; border-radius: 50%;
  border-top: 2px solid rgba(255,255,255,.85); transform: rotate(28deg); filter: blur(.4px); opacity: .8;
}
.pearl.sm { --size: 34px; animation: none; }
.pearl.sm::after { display: none; }
@keyframes breathe { 50% { transform: scale(1.035); } }
@keyframes spinSheen { to { transform: rotate(360deg); } }

/* Listening ripples around Moven */
.ripples { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ripples span {
  position: absolute; width: var(--r, 168px); height: var(--r, 168px); border-radius: 50%;
  border: 1px solid rgba(122,90,248,.35); animation: ripple 5.4s cubic-bezier(.2,.7,.3,1) infinite; opacity: 0;
}
.ripples span:nth-child(2) { animation-delay: 1.8s; }
.ripples span:nth-child(3) { animation-delay: 3.6s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }

/* Glass panels */
.glass {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 80px -40px rgba(43,8,178,.28);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-radius: 28px;
}

/* Live status pill */
.live {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 8px 10px 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--neutral-700);
}
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf7f; box-shadow: 0 0 0 0 rgba(47,191,127,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(47,191,127,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,127,0); } }
.live .clock { font-variant-numeric: tabular-nums; color: var(--muted); }
.live .today { color: var(--ink); font-weight: 600; }
.live .today b { color: var(--accent); font-weight: 600; }
.week { display: inline-flex; gap: 4px; }
.week span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--neutral-500); background: rgba(255,255,255,.6);
}
.week span.on { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px rgba(122,90,248,.25); }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .pearl, .pearl::before, .ripples span, .live .dot { animation: none !important; }
  .ripples span { opacity: 0 !important; }
}
