
:root {
  --accent:#8b7cf6;
  --accent2:#55c2ff;
  --bg:#0c1018;
  --surface:#151b26;
  --text:#edf1f7;
  --muted:#9da8ba;
  --border: color-mix(in srgb, var(--text) 10%, transparent);
  --radius:24px;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}
a { color:inherit; text-decoration:none; }
.header {
  width:min(1180px,calc(100% - 40px));
  height:82px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo { display:flex;align-items:center;gap:11px;font-size:16px; }
.brand-mark {
  width:34px;height:34px;border-radius:11px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:white;font-weight:800;
  box-shadow:0 8px 26px color-mix(in srgb,var(--accent) 25%,transparent);
}
.brand-mark.small { width:28px;height:28px;border-radius:9px;font-size:12px; }
nav { display:flex;gap:28px;font-size:14px;color:var(--muted); }
nav a:hover { color:var(--text); }
.menu-button { display:none;background:none;border:0;color:inherit;font-size:24px; }

main { width:min(1180px,calc(100% - 40px)); margin:auto; }
.hero {
  min-height:640px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
  padding:70px 0 95px;
}
.eyebrow,.kicker {
  font-size:12px;font-weight:750;letter-spacing:.12em;
  text-transform:uppercase;color:var(--accent);
}
h1 {
  font-size:clamp(48px,6vw,78px);
  line-height:1.02;
  letter-spacing:-.045em;
  margin:18px 0 25px;
}
h2 {
  font-size:clamp(31px,4vw,47px);
  line-height:1.08;
  letter-spacing:-.035em;
  margin:12px 0 20px;
}
h3 { font-size:20px;letter-spacing:-.02em; }
.lead { font-size:20px;color:var(--muted);max-width:590px; }
.lead.narrow { max-width:700px; }
.actions { display:flex;gap:12px;margin-top:32px; }
.button {
  min-height:48px;padding:0 20px;border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:700;
}
.button.primary { color:white;background:linear-gradient(135deg,var(--accent),var(--accent2)); }
.button.secondary { border:1px solid var(--border);background:var(--surface); }
.trust-row { display:flex;gap:24px;margin-top:34px;color:var(--muted);font-size:13px; }

.hero-panel,.archive-visual { position:relative; }
.window,.archive-window {
  overflow:hidden;border-radius:24px;
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:0 35px 100px rgba(15,30,70,.15);
}
.window-bar,.archive-top {
  height:48px;padding:0 17px;display:flex;align-items:center;gap:8px;
  border-bottom:1px solid var(--border);color:var(--muted);font-size:12px;
}
.window-bar i { width:8px;height:8px;border-radius:50%;background:var(--border); }
.window-bar span { margin-left:10px; }
.dashboard { height:390px;display:grid;grid-template-columns:62px 1fr; }
.dash-side {
  border-right:1px solid var(--border);padding:18px;
  display:flex;align-items:center;flex-direction:column;gap:18px;
}
.dash-side span { width:22px;height:5px;border-radius:4px;background:var(--border); }
.dash-side .side-active { background:var(--accent); }
.dash-main { padding:25px; }
.dash-title { font-weight:750;margin-bottom:20px; }
.dash-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:12px; }
.media-card {
  height:100px;border-radius:14px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 18%,var(--surface)),color-mix(in srgb,var(--accent2) 10%,var(--surface)));
}
.media-card.tall { height:212px;grid-row:span 2; }
.media-card.wide { grid-column:span 2; }

.section { padding:100px 0; }
.section-head { display:grid;grid-template-columns:1.2fr .8fr;gap:60px;align-items:end;margin-bottom:42px; }
.section-head p { color:var(--muted);font-size:18px; }

.feature-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:18px; }
.feature-card {
  padding:30px;border-radius:var(--radius);
  border:1px solid var(--border);background:var(--surface);
}
.feature-card p { color:var(--muted); }
.icon { color:var(--accent);font-size:12px;font-weight:800; }

.split {
  margin:50px 0 120px;
  display:grid;grid-template-columns:1fr 1fr;gap:24px;
}
.split-card,.split-copy,.timeline {
  border-radius:var(--radius);padding:44px;
  border:1px solid var(--border);
}
.split-card { background:var(--surface); }
.split-copy { display:flex;flex-direction:column;justify-content:center;min-height:390px; }
.split-copy p { color:var(--muted);font-size:18px; }
.text-link { color:var(--accent);font-weight:750;margin-top:15px; }

.mini-files { margin-top:35px;display:grid;gap:12px; }
.mini-files div {
  display:flex;justify-content:space-between;align-items:center;
  padding:16px;border-radius:14px;background:var(--bg);
}
small { color:var(--muted); }

.page { min-height:650px;padding:85px 0 120px; }
.page > h1 { max-width:900px; }
.prose { max-width:760px;margin-top:55px; }
.prose h2 { font-size:30px;margin-top:48px; }
.prose p { color:var(--muted);font-size:17px; }

.story-list { margin-top:60px;border-top:1px solid var(--border); }
.story-list article {
  padding:30px 0;display:grid;grid-template-columns:80px 1fr;
  border-bottom:1px solid var(--border);
}
.story-list span { color:var(--muted); }
.story-list h3 { margin:0 0 8px; }
.story-list p { margin:0;color:var(--muted); }

.docs-layout {
  margin-top:60px;display:grid;grid-template-columns:230px 1fr;gap:65px;
}
.docs-layout aside { display:flex;flex-direction:column;gap:14px;color:var(--muted); }
.docs-body { max-width:700px; }
.docs-body h2 { margin-top:45px;font-size:28px; }
.docs-body p { color:var(--muted); }

.faq { margin-top:55px;max-width:850px; }
details { border-top:1px solid var(--border);padding:23px 0; }
details:last-child { border-bottom:1px solid var(--border); }
summary { cursor:pointer;font-weight:700;font-size:17px; }
details p { color:var(--muted);max-width:720px; }

.collection-row { display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:45px; }
.collection-card {
  min-height:280px;padding:28px;border-radius:24px;
  display:flex;flex-direction:column;justify-content:flex-end;
  color:white;position:relative;overflow:hidden;
}
.collection-card:before {
  content:"";position:absolute;width:150px;height:150px;border-radius:50%;
  background:rgba(255,255,255,.16);right:-40px;top:-40px;
}
.collection-card h3 { font-size:27px;margin:6px 0; }
.gradient-a { background:linear-gradient(145deg,#644fe2,#a55ef1); }
.gradient-b { background:linear-gradient(145deg,#175f8f,#29a6bf); }
.gradient-c { background:linear-gradient(145deg,#55416f,#ad6575); }

.archive-window { position:relative;z-index:3;padding-bottom:20px; }
.archive-top { justify-content:space-between; }
.moon-dot { width:11px;height:11px;border-radius:50%;background:var(--accent); }
.archive-grid { padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px; }
.archive-photo { aspect-ratio:1;border-radius:12px; }
.p1 { background:linear-gradient(140deg,#49355f,#9676d9); }
.p2 { background:linear-gradient(140deg,#294b5c,#6ea8b1); }
.p3 { background:linear-gradient(140deg,#5b4540,#b98b75); }
.p4 { background:linear-gradient(140deg,#2e3d55,#829dca); }
.p5 { background:linear-gradient(140deg,#59465e,#bd7ab8); }
.p6 { background:linear-gradient(140deg,#313c39,#7b998a); }
.archive-stack {
  position:absolute;left:5%;right:5%;height:100%;border-radius:24px;
  border:1px solid var(--border);background:var(--surface);
}
.archive-stack.back { top:-25px;opacity:.25;transform:scale(.91); }
.archive-stack.middle { top:-12px;opacity:.55;transform:scale(.96); }

.timeline { background:var(--surface);display:flex;flex-direction:column;justify-content:center;gap:28px; }
.timeline div { display:flex;gap:18px;align-items:center; }
.timeline i { width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 15%,transparent); }
.timeline span { display:flex;flex-direction:column; }

.status-box { margin-top:55px;max-width:800px;border:1px solid var(--border);border-radius:24px;overflow:hidden;background:var(--surface); }
.status-main { padding:25px;display:flex;gap:15px;align-items:center;border-bottom:1px solid var(--border); }
.status-main i { width:12px;height:12px;border-radius:50%;background:#36c778;box-shadow:0 0 0 6px rgba(54,199,120,.13); }
.status-main div { display:flex;flex-direction:column; }
.status-component { padding:17px 25px;display:flex;justify-content:space-between;border-bottom:1px solid var(--border); }
.status-component:last-child { border-bottom:0; }
.status-component b { color:#36c778;font-size:13px; }

.contact-card { margin-top:55px;padding:35px;border:1px solid var(--border);border-radius:24px;background:var(--surface);max-width:650px; }
.contact-card a { display:block;font-size:27px;font-weight:750;margin:7px 0 18px;color:var(--accent); }
.contact-card p { color:var(--muted); }

.changelog { margin-top:60px;max-width:800px; }
.changelog article { padding:25px 0 35px;border-bottom:1px solid var(--border); }
.changelog time { color:var(--muted);font-size:13px; }
.changelog p { color:var(--muted); }

.not-found { min-height:650px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center; }
.error-code { font-size:110px;font-weight:850;letter-spacing:-.07em;color:var(--accent);opacity:.24; }
.not-found h1 { font-size:42px;margin:-20px 0 10px; }
.not-found p { color:var(--muted);margin-bottom:25px; }

footer {
  width:min(1180px,calc(100% - 40px));
  margin:80px auto 0;padding:55px 0 30px;
  border-top:1px solid var(--border);
}
.footer-top { display:flex;justify-content:space-between;align-items:center;margin-bottom:45px; }
.footer-top p { color:var(--muted); }
.footer-links { display:grid;grid-template-columns:repeat(3,1fr);gap:40px;max-width:650px; }
.footer-links div { display:flex;flex-direction:column;gap:9px;color:var(--muted);font-size:14px; }
.footer-links b { color:var(--text);margin-bottom:5px; }
.footer-bottom { border-top:1px solid var(--border);margin-top:45px;padding-top:22px;display:flex;justify-content:space-between;color:var(--muted);font-size:12px; }

body.moon {
  background:
    radial-gradient(circle at 70% 8%,rgba(101,82,200,.13),transparent 35%),
    var(--bg);
}

@media(max-width:820px) {
  .header nav { display:none; }
  .menu-button { display:block; }
  .hero { grid-template-columns:1fr;gap:45px;padding-top:40px; }
  .hero-panel,.archive-visual { max-width:600px; }
  .section-head,.split,.docs-layout { grid-template-columns:1fr; }
  .feature-grid,.collection-row { grid-template-columns:1fr; }
  .section { padding:70px 0; }
  .page { padding-top:55px; }
  .footer-top { align-items:flex-start;flex-direction:column;gap:20px; }
}

@media(max-width:540px) {
  .header,main,footer { width:min(100% - 28px,1180px); }
  h1 { font-size:43px; }
  h2 { font-size:31px; }
  .lead { font-size:17px; }
  .actions { flex-direction:column; }
  .trust-row { gap:12px;flex-wrap:wrap; }
  .dashboard { height:300px; }
  .dash-grid { grid-template-columns:1fr 1fr; }
  .dash-side { display:none; }
  .dashboard { grid-template-columns:1fr; }
  .footer-links { grid-template-columns:1fr 1fr; }
}


/* ===== visual enhancement v2 ===== */

body {
  min-height:100vh;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

.header {
  position:relative;
  z-index:100;
}

.header:after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:var(--border);
  opacity:.55;
}

.logo b {
  letter-spacing:-.02em;
}

nav a {
  position:relative;
  padding:30px 0;
  transition:color .18s ease;
}

nav a:after {
  content:"";
  position:absolute;
  height:2px;
  left:0;
  right:100%;
  bottom:20px;
  background:var(--accent);
  transition:right .2s ease;
}

nav a:hover:after,
nav a.active:after {
  right:0;
}

.hero {
  position:relative;
}

.hero:before {
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  background:var(--accent);
  filter:blur(130px);
  opacity:.065;
  pointer-events:none;
  left:-300px;
  top:-40px;
}

.hero-copy {
  position:relative;
  z-index:2;
}

.hero h1 {
  max-width:680px;
}

.hero-visual-photo {
  width:100%;
  display:block;
  border-radius:28px;
  filter:drop-shadow(0 32px 55px rgba(13,26,55,.16));
}

.frost .hero-panel .window {
  display:none;
}

.frost .hero-panel:after,
.moon .archive-visual:after {
  content:"";
  position:absolute;
  width:88%;
  height:32px;
  left:6%;
  bottom:-14px;
  border-radius:50%;
  background:rgba(20,35,65,.14);
  filter:blur(20px);
  z-index:-1;
}

.moon .archive-stack,
.moon .archive-window {
  display:none;
}

.section {
  position:relative;
}

.feature-card {
  position:relative;
  overflow:hidden;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.feature-card:hover {
  transform:translateY(-5px);
  border-color:color-mix(in srgb,var(--accent) 35%,var(--border));
  box-shadow:0 22px 55px rgba(22,36,65,.08);
}

.feature-card:after {
  content:"";
  position:absolute;
  right:-35px;
  top:-35px;
  width:100px;
  height:100px;
  border-radius:50%;
  background:var(--accent);
  opacity:.045;
}

.button {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.button:hover {
  transform:translateY(-2px);
}

.button.primary:hover {
  box-shadow:0 14px 30px color-mix(in srgb,var(--accent) 22%,transparent);
}

.collection-card {
  transition:transform .22s ease,box-shadow .22s ease;
}

.collection-card:hover {
  transform:translateY(-5px);
  box-shadow:0 24px 60px rgba(0,0,0,.14);
}

.site-search {
  margin-left:auto;
  margin-right:22px;
  border:1px solid var(--border);
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:var(--surface);
  cursor:pointer;
  color:var(--muted);
  font-size:16px;
}

.search-overlay {
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(5,10,18,.52);
  backdrop-filter:blur(10px);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding-top:13vh;
}

.search-overlay.open {
  display:flex;
}

.search-box {
  width:min(650px,calc(100% - 30px));
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 30px 100px rgba(0,0,0,.25);
  overflow:hidden;
}

.search-box input {
  width:100%;
  padding:23px 24px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:18px;
  border-bottom:1px solid var(--border);
}

.search-results {
  padding:10px;
  max-height:430px;
  overflow:auto;
}

.search-result {
  display:block;
  padding:14px;
  border-radius:12px;
}

.search-result:hover {
  background:color-mix(in srgb,var(--accent) 8%,transparent);
}

.search-result b {
  display:block;
  margin-bottom:3px;
}

.search-result small {
  display:block;
}

.ambient {
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.2;
  z-index:-10;
  background-image:
    radial-gradient(circle at 20% 30%,var(--accent) 0 1px,transparent 1px),
    radial-gradient(circle at 75% 64%,var(--accent2) 0 1px,transparent 1px);
  background-size:170px 170px,220px 220px;
}

.frost .section:nth-of-type(even) {
  position:relative;
}

.frost .section:nth-of-type(even):before {
  content:"";
  position:absolute;
  left:-100vw;
  right:-100vw;
  top:0;
  bottom:0;
  background:linear-gradient(
    180deg,
    transparent,
    rgba(67,97,238,.018),
    transparent
  );
  z-index:-1;
}

.moon .hero-visual-photo {
  filter:drop-shadow(0 40px 65px rgba(0,0,0,.45));
}

.moon .feature-card {
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.025),
      rgba(255,255,255,.008)
    ),
    var(--surface);
}

.moon .header {
  backdrop-filter:blur(8px);
}

.moon footer {
  position:relative;
}

.moon footer:before {
  content:"";
  position:absolute;
  left:30%;
  right:30%;
  top:-1px;
  height:1px;
  background:linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  opacity:.35;
}

.reveal {
  opacity:0;
  transform:translateY(18px);
  transition:
    opacity .6s ease,
    transform .6s ease;
}

.reveal.visible {
  opacity:1;
  transform:none;
}

@media(max-width:820px) {
  .site-search {
    margin-left:auto;
    margin-right:10px;
  }

  .hero-visual-photo {
    max-width:650px;
    margin:auto;
  }
}

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

  .reveal {
    opacity:1;
    transform:none;
  }
}


/* ===== refinement v3 ===== */

.content-types {
  padding:90px 0 50px;
}

.content-type-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.content-type-grid article {
  padding:24px;
  border:1px solid var(--border);
  border-radius:20px;
  background:var(--surface);
}

.content-type-grid h3 {
  margin:20px 0 8px;
}

.content-type-grid p {
  color:var(--muted);
  min-height:72px;
}

.file-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:color-mix(in srgb,var(--accent) 11%,var(--surface));
  color:var(--accent);
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
}

.activity-layout {
  display:grid;
  grid-template-columns:1.5fr .75fr;
  gap:20px;
  margin:80px 0 120px;
}

.activity-panel,
.release-card {
  border:1px solid var(--border);
  border-radius:24px;
  background:var(--surface);
}

.activity-panel {
  padding:30px;
}

.activity-title {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:18px;
}

.activity-title h2 {
  font-size:32px;
}

.activity-meta {
  color:var(--muted);
  font-size:12px;
}

.activity-row {
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:14px;
  align-items:center;
  padding:18px 0;
  border-top:1px solid var(--border);
}

.activity-row > div:nth-child(2) {
  display:flex;
  flex-direction:column;
}

.activity-row span,
.activity-row time {
  color:var(--muted);
  font-size:13px;
}

.activity-avatar {
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:color-mix(in srgb,var(--accent) 13%,var(--surface));
  color:var(--accent);
  font-weight:800;
}

.release-card {
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.release-card p {
  color:var(--muted);
}

.release-card a {
  color:var(--accent);
  font-weight:700;
}

.release-badge {
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 12%,var(--surface));
  color:var(--accent);
  font-size:12px;
  font-weight:800;
}

.archive-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  margin:30px 0 100px;
  background:var(--border);
}

.stat-item {
  padding:26px;
  background:var(--surface);
  display:flex;
  flex-direction:column;
}

.stat-item strong {
  font-size:28px;
  letter-spacing:-.03em;
}

.stat-item span {
  color:var(--muted);
  font-size:13px;
}

.recent-archive {
  padding:20px 0 90px;
}

.recent-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.recent-item {
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  background:var(--surface);
}

.recent-item > div:last-child {
  padding:20px;
}

.recent-item h3 {
  margin:5px 0 8px;
}

.recent-item p {
  color:var(--muted);
  font-size:14px;
}

.recent-thumb {
  height:170px;
}

.thumb-a {
  background:
    radial-gradient(circle at 72% 28%,#a992f8 0 16%,transparent 17%),
    linear-gradient(135deg,#32294d,#7258a1);
}

.thumb-b {
  background:
    linear-gradient(35deg,transparent 0 40%,rgba(255,255,255,.08) 41% 44%,transparent 45%),
    linear-gradient(135deg,#1d3442,#427789);
}

.thumb-c {
  background:
    radial-gradient(circle at 25% 30%,#af7479 0 14%,transparent 15%),
    linear-gradient(135deg,#382d35,#73505d);
}

.archive-log {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:70px;
  margin:40px 0 120px;
  padding:42px;
  border:1px solid var(--border);
  border-radius:24px;
  background:var(--surface);
}

.archive-log-list {
  display:flex;
  flex-direction:column;
}

.archive-log-list > div {
  display:grid;
  grid-template-columns:150px 1fr;
  gap:25px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}

.archive-log-list > div:last-child {
  border-bottom:0;
}

.archive-log-list time {
  color:var(--muted);
  font-size:12px;
}

.footer-note {
  margin-bottom:35px;
  padding:18px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.frost-footer-note {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:13px;
}

.moon-footer-note {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
}

.moon-footer-note > div {
  display:flex;
  flex-direction:column;
}

.moon-footer-note span {
  color:var(--muted);
  font-size:12px;
}

@media(max-width:900px) {
  .content-type-grid,
  .archive-stats,
  .recent-grid {
    grid-template-columns:repeat(2,1fr);
  }

  .activity-layout,
  .archive-log {
    grid-template-columns:1fr;
  }
}

@media(max-width:560px) {
  .content-type-grid,
  .archive-stats,
  .recent-grid {
    grid-template-columns:1fr;
  }

  .activity-row {
    grid-template-columns:40px 1fr;
  }

  .activity-row time {
    grid-column:2;
  }

  .archive-log-list > div {
    grid-template-columns:1fr;
    gap:4px;
  }

  .frost-footer-note,
  .moon-footer-note {
    flex-direction:column;
    gap:8px;
    align-items:flex-start;
  }
}
