/* SpaceNames, one-page site. Night-sky palette from the app icon. */
:root {
  --bg: #0f0c26;
  --bg-2: #1b1640;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f3f1ff;
  --muted: #b4aedb;
  --accent: #8f7cff;
  --accent-2: #f472b6;
  --blue: #0a84ff;
  --green: #30b35a;
  --purple: #8e5ce6;
  --orange: #f2852b;
  --teal: #2bb3b3;
  --yellow: #f5c542;
  --radius: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #3a2a85 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 40%, rgba(244, 114, 182, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 900px);
  background-color: var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }

/* faint starfield */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 66%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 80%, #fff 50%, transparent 51%);
}
header, main, footer { position: relative; z-index: 1; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(15, 12, 38, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 17px; }
.brand img { border-radius: 22.5%; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #7c6cff, #b15cf0); color: #fff; box-shadow: 0 8px 30px rgba(143, 124, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(143, 124, 255, 0.5); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-small { padding: 8px 16px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.btn-large { padding: 16px 30px; font-size: 18px; }
.btn.disabled { opacity: 0.55; pointer-events: none; }

/* hero */
.hero { text-align: center; padding: 72px 16px 40px; max-width: 1120px; margin: 0 auto; }
.hero-icon { margin: 0 auto 24px; width: 112px; height: 112px; border-radius: 22.5%; filter: drop-shadow(0 18px 40px rgba(124, 108, 255, 0.45)); }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.grad { background: linear-gradient(90deg, #a99bff, #f2a2ff 55%, #ffc48a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* pills (shared) */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: #fff; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.pill.blue { background: var(--blue); }
.pill.green { background: var(--green); }
.pill.green.dark { background: #23863f; }
.pill.purple { background: var(--purple); }
.pill.orange { background: var(--orange); }
.pill.teal { background: var(--teal); }
.pill.tiny { font-size: 12px; padding: 2px 9px; border-radius: 6px; }

/* Mission Control mock */
.mc {
  margin: 56px auto 0; max-width: 980px; border-radius: 22px; overflow: hidden; text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #2c3e66, #4a3a7a 55%, #7a4b6e);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.mc-bar {
  display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 26px); padding: 22px 16px 18px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px);
}
.mc-space { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.thumb {
  width: clamp(70px, 13vw, 138px); aspect-ratio: 16 / 10; border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  position: relative; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.thumb::before, .thumb::after { content: ""; position: absolute; border-radius: 3px; background: rgba(40, 40, 70, .18); }
.thumb::before { left: 10%; top: 16%; width: 52%; height: 60%; }
.thumb::after { right: 8%; top: 30%; width: 34%; height: 52%; background: rgba(40, 40, 70, .28); }
.t2 { background: linear-gradient(135deg, #e8f7ee, #bfe7cd); }
.t3 { background: linear-gradient(135deg, #f1e9ff, #d4c2ff); }
.t4 { background: linear-gradient(135deg, #fff1e4, #ffd2ad); }
.t5 { background: linear-gradient(135deg, #e3fafa, #b6ecec); }
.mc-space.current .thumb { outline: 3px solid #3d8bff; outline-offset: 2px; }
.mc-space .pill { font-size: clamp(11px, 1.5vw, 15px); padding: 4px clamp(8px, 1.2vw, 14px); }
.mc-windows { position: relative; height: clamp(160px, 26vw, 260px); }
.win { position: absolute; border-radius: 10px; background: rgba(255,255,255,.9); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.win::before { content: ""; position: absolute; left: 12px; top: 10px; width: 46px; height: 10px; border-radius: 5px;
  background: radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 5px), radial-gradient(circle at 21px 5px, #febc2e 4px, transparent 5px), radial-gradient(circle at 37px 5px, #28c840 4px, transparent 5px); }
.w1 { left: 8%; top: 18%; width: 34%; height: 70%; }
.w2 { left: 46%; top: 10%; width: 28%; height: 56%; background: rgba(245, 247, 255, .92); }
.w3 { left: 64%; top: 40%; width: 28%; height: 52%; background: rgba(250, 245, 255, .92); }

/* sections */
.section { max-width: 1120px; margin: 0 auto; padding: 96px 16px 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.03em; text-align: center; font-weight: 800; }
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: 14px auto 0; font-size: 18px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.feature h3 { font-size: 19px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature.wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 32px; padding: 32px; }
.feature.wide .feature-text { flex: 1; }
.feature.wide h3 { font-size: 24px; }
.feature.wide p { font-size: 17px; }
.mini-mc { flex: 1; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 26px; border-radius: 14px;
  background: linear-gradient(160deg, #2c3e66, #4a3a7a 55%, #7a4b6e); }

.menu-mock, .hud-mock, .icons-mock, .shortcut-mock, .dock-mock, .lock-mock {
  height: 128px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px; overflow: hidden;
}
.menu-mock { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 8px 14px; gap: 6px; }
.menu-mock .mb { display: flex; justify-content: flex-end; }
.menu-mock ul { list-style: none; background: rgba(255,255,255,.1); border-radius: 10px; padding: 6px; font-size: 13px; }
.menu-mock li { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 6px; }
.menu-mock li.on { background: #3d7bff; }
.tile { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-style: normal; font-size: 11px; }
.tile.blue { background: var(--blue); } .tile.green { background: var(--green); } .tile.purple { background: var(--purple); } .tile.orange { background: var(--orange); }
.hud-mock { font-size: 28px; font-weight: 700; gap: 12px; }
.hud-mock { background: radial-gradient(circle at 50% 50%, rgba(142, 92, 230, .55), rgba(0,0,0,.25) 70%); }
.icons-mock { gap: 12px; font-size: 26px; flex-wrap: wrap; padding: 0 12px; }
.icons-mock .sym { font-size: 22px; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--blue); }
.icons-mock .img { font-size: 13px; font-weight: 800; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #0f2a22; color: #2bd79a; }
.shortcut-mock { gap: 10px; font-weight: 600; }
.shortcut-mock .bolt { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #ff5f8a, #ff9a3c); }
.dock-mock { gap: 10px; }
.dock-mock .tile { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
.lock-mock { font-size: 44px; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700;
  background: linear-gradient(135deg, #7c6cff, #b15cf0); margin-bottom: 12px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* pricing */
.price-card {
  max-width: 520px; margin: 40px auto 0; text-align: center; padding: 40px 32px;
  border-radius: 24px; border: 1px solid rgba(169, 155, 255, 0.35);
  background: linear-gradient(180deg, rgba(143, 124, 255, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.price { font-size: 72px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.currency { font-size: 26px; vertical-align: top; position: relative; top: 10px; margin-right: 4px; color: var(--muted); }
.once { color: var(--muted); margin-top: 8px; }
.included { list-style: none; text-align: left; margin: 26px auto 0; max-width: 360px; display: grid; gap: 10px; }
.included li { padding-left: 30px; position: relative; }
.included li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--green); }

/* download */
.download { text-align: center; }
.download .btn-large { margin-top: 28px; }

/* faq */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; }
.faq a { color: #c7bdff; }

/* footer */
.footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 36px 16px 48px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.privacy { max-width: 1120px; margin: 28px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.privacy h3 { font-size: 15px; }
.privacy p { color: var(--muted); font-size: 13.5px; margin-top: 8px; max-width: 820px; }
.privacy a { color: #c7bdff; }
.privacy code { font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.legal { opacity: .75; }

/* responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature.wide { grid-column: span 2; flex-direction: column; align-items: stretch; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav nav a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; padding: 24px; }
  .mc-bar { justify-content: flex-start; overflow-x: auto; }
  .hero { padding-top: 48px; }
  .section { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }
