/* millyone.com — Milly's home. Same Parel palette as the app (docs/DESIGN_SYSTEM.md, D-027). */
:root {
  --bg: #0C0B12; --raise: #16141F; --line: #2A2738;
  --text: #F7F5FF; --text-2: #D9D5EA; --muted: #9C98B0;
  --electric: #2E5BFF; --violet: #8C4BFF; --lavender: #A99BFF; --aqua: #2ED9C3;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(85% 45% at 50% -8%, rgba(140, 75, 255, .30), transparent 72%),
    radial-gradient(60% 40% at 108% 105%, rgba(46, 217, 195, .10), transparent 70%),
    radial-gradient(55% 35% at -10% 70%, rgba(255, 143, 203, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text); font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 20px 40px; max-width: 34rem; margin: 0 auto; }

.mark { position: relative; width: 148px; height: 148px; display: grid; place-items: center; margin-bottom: 34px; }
.mark img { position: relative; width: 112px; height: 112px; border-radius: 50%; filter: drop-shadow(0 12px 30px rgba(140, 75, 255, .55)); }
.ring { position: absolute; inset: 0; border-radius: 50%; padding: 4px; background: conic-gradient(from 0deg, var(--electric), var(--violet), var(--aqua), var(--electric));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
.halo { position: absolute; inset: -30px; border-radius: 50%; background: linear-gradient(135deg, var(--electric), var(--violet), var(--lavender)); filter: blur(38px); opacity: .55; animation: breathe 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .8; transform: scale(1.05); } }

h1 { font-family: var(--rounded); font-weight: 800; font-size: clamp(40px, 11vw, 60px); letter-spacing: -.03em; line-height: 1.08; margin: 0; }
h1 em { font-style: normal; background: linear-gradient(90deg, #A99BFF, #E4DEFF); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding: 0 .04em .2em 0; margin-bottom: -.2em; }
.lead { font-family: var(--rounded); font-size: 22px; font-weight: 600; color: var(--text-2); margin: 10px 0 0; }
.body { color: var(--muted); margin: 18px 0 0; font-size: 17px; }

.cta { margin-top: 34px; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--rounded); font-weight: 700; font-size: 17px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #2E5BFF 0%, #5B45F5 55%, #7B45F5 100%);
  box-shadow: 0 14px 32px -12px rgba(91, 69, 245, .75), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .15s ease; }
.cta:hover { transform: translateY(-1px); }
.cta:focus-visible, footer a:focus-visible, .lang:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.hint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.acronym { color: var(--muted); font-size: 12px; letter-spacing: .16em; margin-top: 56px; }

footer { border-top: 1px solid var(--line); padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 10px; }
footer nav { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
.lang { font: inherit; color: var(--text-2); background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 32px; }

/* Privacy page */
.doc { max-width: 40rem; margin: 0 auto; padding: 56px 20px 48px; }
.doc h1 { font-size: clamp(32px, 8vw, 44px); }
.doc h2 { font-family: var(--rounded); font-size: 19px; margin: 30px 0 6px; color: var(--text); }
.doc p, .doc li { color: var(--text-2); }
.doc a { color: var(--lavender); }
.back { display: inline-block; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { .ring, .halo { animation: none; } }

/* How to recognise Milly — trust, and protection against impersonation */
.trust { max-width: 40rem; margin: 0 auto; padding: 8px 20px 56px; }
.trust h2 { font-family: var(--rounded); font-size: 24px; font-weight: 800; letter-spacing: -.01em; text-align: center; margin: 0 0 18px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trust li { background: rgba(22, 20, 31, .8); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 14px 46px; position: relative; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.trust li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #B8FFF4, var(--aqua)); box-shadow: 0 0 12px rgba(46, 217, 195, .45); }
.trust b { display: block; font-weight: 650; color: var(--text); }
.trust span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.trust .acronym { text-align: center; margin-top: 40px; }
.hero { padding-bottom: 48px; }

/* Visitors usually arrive because Milly sent them something: confirm it's her, first. */
.welcome-note { margin: 0 0 30px; padding: 9px 16px; border-radius: 16px; max-width: 22rem; background: rgba(46, 217, 195, .10); border: 1px solid rgba(46, 217, 195, .30); color: #B8FFF4; font-size: 14px; font-weight: 600; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.ctas .cta { margin-top: 0; }
.cta.ghost { background: rgba(22, 20, 31, .8); border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.trust-sub { text-align: center; color: var(--muted); margin: -10px 0 18px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

footer p a, .trust span a { color: var(--text-2); text-decoration: underline; text-decoration-color: rgba(169,155,255,.5); text-underline-offset: 2px; }
