/* Awnsy site — the one home for the shared design system.
   Tokens, backdrop (aurora + noise), chrome (nav, footer), reveal animation,
   and the prose styles used by the text pages. Page-specific presentation
   (the landing's hero, demo scene and bento grid) lives in that page alone. */

:root {
  --bg: #0a0a10;
  --bg-soft: #101018;
  --ink: #f2f0f5;
  --muted: #9a97a6;
  --faint: #6b6878;
  --line: rgba(255,255,255,.08);
  --glass: rgba(255,255,255,.04);
  --glass-strong: rgba(255,255,255,.07);
  --pink: #ff7ac4;
  --pink-deep: #e94db0;
  --violet: #8b6cf0;
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(233,77,176,.35); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- aurora backdrop ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #16121f 0%, var(--bg) 60%);
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
  will-change: transform;
}
.aurora::before {
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  left: 50%; top: -22vw;
  background: radial-gradient(circle at 40% 40%, rgba(233,77,176,.34), rgba(233,77,176,0) 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora::after {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  left: 8%; top: 8vw;
  background: radial-gradient(circle at 60% 40%, rgba(139,108,240,.22), rgba(139,108,240,0) 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(-60%, 0) } to { transform: translate(-40%, 6%) } }
@keyframes drift2 { from { transform: translate(0, 0) } to { transform: translate(14%, -6%) } }

/* fine noise for texture */
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--glass-strong); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--glass); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  color: var(--faint); font-size: 13px;
}
.foot-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot-row a { color: var(--muted); text-decoration: none; }
.foot-row a:hover { color: var(--ink); }
.foot-row .spacer { margin-left: auto; }
.disclaimer { margin-top: 14px; font-size: 11.5px; color: var(--faint); max-width: 52em; }

/* ---------- prose (text pages) ---------- */
.prose { max-width: 700px; margin: 0 auto; padding: 42px 0 70px; }
.prose h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  letter-spacing: -0.02em; font-weight: 800; line-height: 1.12;
  margin: 6px 0 8px; text-wrap: balance;
}
.prose .eff { color: var(--faint); font-size: 14px; margin-bottom: 30px; }
.prose .lead { font-size: 16.5px; }
.prose h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line);
}
.prose p, .prose li, .prose dd { color: var(--muted); font-size: 15px; }
.prose p { margin: 10px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); }
.prose a { color: var(--pink); text-decoration: none; border-bottom: 1px solid rgba(255,122,196,.3); transition: border-color .2s; }
.prose a:hover { border-color: var(--pink); }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 7px 0; }
.prose dt { color: var(--ink); font-weight: 650; margin-top: 18px; }
.prose dd { margin: 4px 0 0; }

/* glass callout, e.g. the support contact card */
.note-card {
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 20px 0 8px;
}
.note-card a { font-weight: 700; font-size: 17px; border-bottom: none; }
.note-card p { font-size: 13.5px; color: var(--faint); margin: 6px 0 0; }

/* reveal-on-load */
.up { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .15s } .d3 { animation-delay: .25s } .d4 { animation-delay: .4s }
@keyframes rise { to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none !important; }
  .up { animation: none; opacity: 1; transform: none; }
}
