/* UFO Studios — site styles. No framework, no external requests. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #04061a;
  --bg-2: #090c26;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef0ff;
  --muted: #aab1d3;
  --faint: #8189b0;
  --violet: #a594ff;
  --cyan: #74d8ff;
  --focus: #9be7ff;
  --radius: 20px;
  --max: 1080px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 55% at 85% -5%, rgba(116, 82, 230, 0.30), transparent 65%),
    radial-gradient(ellipse 70% 50% at -10% 70%, rgba(32, 140, 190, 0.20), transparent 65%),
    radial-gradient(ellipse 60% 40% at 110% 105%, rgba(160, 70, 200, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Starfield canvas (drawn by /assets/js/stars.js) + a static CSS fallback layer. */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 72% 11%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 32%, rgba(200,210,255,.65), transparent 60%),
    radial-gradient(1px 1px at 93% 88%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,.5), transparent 60%);
}
.sky.is-live { background-image: none; }
.sky canvas { display: block; width: 100%; height: 100%; }

.page { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #a9e8ff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; line-height: 0; border-radius: 8px; }
.brand img { width: 74px; height: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-hover); }
@media (max-width: 479px) {
  .nav a { padding: 8px 10px; }
  .nav .nav-extra { display: none; } /* Privacy + Terms stay in the footer on small screens */
}

/* Hero */
.hero { padding: 40px 0 56px; text-align: center; position: relative; }
@media (min-width: 720px) { .hero { padding: 72px 0 88px; } }
.hero-logo { position: relative; display: block; width: fit-content; margin: 0 auto 36px; }
.hero-logo::before {
  content: ""; position: absolute; inset: -38% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(150, 120, 255, 0.34), rgba(90, 170, 255, 0.10) 60%, transparent 100%);
  filter: blur(8px);
}
.hero-logo img { display: block; width: min(68vw, 360px); height: auto; filter: drop-shadow(0 0 22px rgba(170, 150, 255, 0.28)); }

.eyebrow {
  display: block; text-wrap: balance; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet); font-weight: 600; margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
.hero h1 { text-wrap: balance; font-size: clamp(2rem, 6.2vw, 3.4rem); font-weight: 600; max-width: 17ch; margin: 0 auto 18px; }
.hero h1 .glow {
  background: linear-gradient(92deg, #ffffff 10%, #c9bfff 55%, #8fe0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { text-wrap: pretty; color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.15rem); max-width: 38em; margin: 0 auto 30px; }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--surface-hover); color: var(--text); border-color: rgba(255,255,255,.28); }
.btn-primary {
  background: linear-gradient(135deg, #8d7bff, #5ab8f0); border-color: transparent; color: #070a22;
}
.btn-primary:hover { background: linear-gradient(135deg, #a091ff, #74c7f5); color: #070a22; }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.section-head { margin-bottom: 28px; max-width: 40em; }
.section-head h2 { font-size: clamp(1.6rem, 4.2vw, 2.25rem); font-weight: 600; margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }

/* App cards */
.apps { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .apps { grid-template-columns: 1fr 1fr; gap: 22px; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 720px) { .card { padding: 26px; } }
.card-top { display: flex; gap: 16px; align-items: center; }
.app-icon {
  flex: none; width: 64px; height: 64px; border-radius: 15px;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
}
.card h3 { font-size: 1.35rem; font-weight: 600; }
.tag {
  display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 500; color: var(--muted);
  letter-spacing: .02em;
}
.card p { margin: 0; color: #d3d7ef; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 0; list-style: none; }
.links a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03);
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.links a:hover { background: var(--surface-hover); border-color: rgba(255,255,255,.3); }
.links svg { width: 15px; height: 15px; flex: none; fill: currentColor; opacity: .9; }

/* Info band */
.band {
  display: grid; gap: 18px; grid-template-columns: 1fr; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
@media (min-width: 760px) { .band { grid-template-columns: repeat(3, 1fr); padding: 30px; } }
.band h3 { font-size: 1.06rem; font-weight: 600; margin-bottom: 6px; }
.band p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Prose pages (support, privacy, terms) */
.doc { padding: 24px 0 64px; }
@media (min-width: 720px) { .doc { padding: 48px 0 88px; } }
.doc-head { max-width: 46em; margin-bottom: 32px; }
.doc-head h1 { text-wrap: balance; font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 600; margin-bottom: 12px; }
.doc-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.4rem; font-weight: 600; margin: 40px 0 12px; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose li { color: #d3d7ef; }
.prose ul { padding-left: 1.25em; }
.prose li { margin: 6px 0; }
.updated { color: var(--faint); font-size: .9rem; }

.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; margin: 0 0 8px;
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: linear-gradient(140deg, rgba(141,123,255,.16), rgba(90,184,240,.08));
}
.contact-card .label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); font-weight: 600; }
.contact-card a.email {
  font-family: var(--font-display); font-size: clamp(1.35rem, 5.4vw, 1.9rem); font-weight: 600;
  color: var(--text); text-decoration: none; word-break: break-word;
}
.contact-card a.email:hover { color: #c9bfff; }
.contact-card p { margin: 4px 0 0; color: var(--muted); }

.app-help { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .app-help { grid-template-columns: 1fr 1fr; } }
.app-help .card { gap: 12px; }
.app-help .card-top { gap: 12px; }
.app-help .app-icon { width: 44px; height: 44px; border-radius: 11px; }
.app-help h3 { font-size: 1.15rem; }
.app-help dl { margin: 0; display: grid; gap: 10px; }
.app-help dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.app-help dd { margin: 2px 0 0; color: #d3d7ef; font-size: .96rem; }
.app-help dd a { overflow-wrap: anywhere; }

details.faq {
  border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.03);
  margin: 10px 0; padding: 0 18px;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 600; color: var(--text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.faq > div { padding: 0 0 16px; }
details.faq > div p { margin: 0 0 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--faint); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.site-footer nav a { color: var(--muted); text-decoration: none; padding: 6px 4px; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer .sep { color: var(--faint); }

/* 404 */
.lost { text-align: center; padding: 64px 0 96px; }
.lost h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 600; margin-bottom: 12px; }
.lost p { color: var(--muted); margin: 0 auto 28px; max-width: 32em; }
.lost .planet {
  width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #b9a8ff, #5a46c9 55%, #1c1650 100%);
  box-shadow: 0 0 60px rgba(140, 115, 255, .35), inset -14px -10px 30px rgba(0,0,0,.45);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.section-title { font-size: 1.4rem; font-weight: 600; margin: 44px 0 0; }
.section-head h2 { text-wrap: balance; }
