/* visionary - placeholder site. Black, quiet, quick. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f4f4f6;
  --fg-2: rgba(244, 244, 246, 0.7);
  --fg-3: rgba(244, 244, 246, 0.48);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.025);
  --tint: 150, 165, 255;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --z-nav: 10;
  --z-toast: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss03";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(255, 255, 255, 0.92); color: #000; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- background ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s var(--ease); }
.sky.on canvas { opacity: 1; }
.sky::before {
  content: ""; position: absolute; left: 50%; top: 38%;
  width: min(1100px, 140vw); aspect-ratio: 1.7; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(var(--tint), 0.09), rgba(var(--tint), 0.025) 55%, transparent);
  animation: breathe 9s var(--ease-io) infinite alternate;
}
.sky::after {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.045; animation: grain 1s steps(4) infinite;
}
@keyframes breathe { from { opacity: 0.7; scale: 0.94; } to { opacity: 1; scale: 1.04; } }
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ---------- nav: a plain top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  view-transition-name: nav;
}
.nav.scrolled { background: rgba(0, 0, 0, 0.82); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; margin-right: auto; }
.brand img { width: 26px; }
.links { display: flex; gap: 26px; font-size: 0.94rem; }
.links a { color: var(--fg-3); transition: color 0.2s var(--ease); }
.links a:hover, .links a[aria-current="page"] { color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--fg); color: #000; }
.btn-solid:hover { background: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-weight: 500; transition: color 0.2s var(--ease); }
.link-arrow:hover { color: var(--fg); }
.arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow, .way:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 110px 0 72px; }
.hero h1 { margin: 0; }
.wordmark { width: min(560px, 80vw); margin: 0 auto; filter: drop-shadow(0 0 40px rgba(var(--tint), 0.16)); }
.soon {
  margin: 18px 0 0; color: #fff; font-weight: 600; letter-spacing: -0.04em; line-height: 0.92;
  font-size: clamp(4rem, 14vw, 9.5rem);
}
.soon .ch { display: inline-block; }
.lede { max-width: 31rem; margin: 26px auto 0; color: var(--fg-2); font-size: clamp(1.04rem, 1.5vw, 1.15rem); text-wrap: balance; }
.lede strong { color: var(--fg); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 34px; }

/* the one idea below the fold: words light up as you scroll */
.about { padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 12vw, 150px); }
.statement {
  margin: 0; max-width: 21ch; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  font-size: clamp(2rem, 5.6vw, 4.4rem); text-wrap: balance;
}
.statement .w { color: rgba(255, 255, 255, 0.2); transition: color 0.45s var(--ease); }
.statement .w.lit { color: var(--fg); }
.statement .w.soft.lit { color: var(--fg-3); }
.about .actions { justify-content: flex-start; margin-top: 40px; }

/* ---------- inner page heads ---------- */
.page-hero { padding: 150px 0 8px; text-align: center; }
.page-hero h1 {
  margin: 0 auto; max-width: 15ch; font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(2.6rem, 7vw, 5rem); text-wrap: balance;
}
.page-hero p { max-width: 34rem; margin: 20px auto 0; color: var(--fg-2); font-size: 1.08rem; text-wrap: balance; }
.h2 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(2rem, 4.6vw, 3.2rem); text-wrap: balance; }
.h2 .dim { color: var(--fg-3); }
.section { padding: clamp(72px, 10vw, 120px) 0 0; }

/* ---------- modules page ---------- */
.tabs-wrap { text-align: center; margin-top: 36px; }
.tabs {
  position: relative; display: inline-flex; gap: 2px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 0.92rem; color: var(--fg-2); white-space: nowrap; transition: color 0.25s var(--ease); }
.tab[aria-selected="true"] { color: #000; }
.tab .n { margin-left: 6px; font-size: 0.8rem; opacity: 0.55; font-variant-numeric: tabular-nums; }
.tab-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--fg); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 36px; }
.mod {
  --mx: -200px; --my: -200px;
  position: relative; padding: 22px 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  overflow: hidden; transition: border-color 0.3s var(--ease);
}
.mod::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease); background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 60%); }
.mod:hover { border-color: var(--line-2); }
.mod:hover::before { opacity: 1; }
.mod .cat { display: block; font-size: 0.8rem; color: var(--fg-3); text-transform: capitalize; }
.mod h2 { margin: 18px 0 6px; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.mod p { margin: 0; color: var(--fg-2); font-size: 0.94rem; line-height: 1.55; }
.mod.hide, .xp.hide { display: none; }
.mod.pop, .xp.pop { animation: pop 0.45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.vault { margin-top: 12px; padding: clamp(26px, 4vw, 40px); border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.vault .h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.vault-n { font-variant-numeric: tabular-nums; }
.vault-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.xp {
  font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.6); filter: blur(3.5px); user-select: none;
  transition: filter 0.35s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.xp:hover { filter: blur(1.5px); color: var(--fg); border-color: var(--line-2); }
.note { text-align: center; color: var(--fg-3); margin: 28px 0 0; font-size: 0.94rem; }

/* ---------- support page ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.way {
  display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.way:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.way h2 { margin: 0; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.way p { margin: 0; color: var(--fg-2); }
.way .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; font-size: clamp(1.02rem, 2vw, 1.14rem); font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { flex: none; width: 14px; height: 14px; position: relative; transition: transform 0.45s var(--ease); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px; background: var(--fg-2); transition: transform 0.45s var(--ease); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm { transform: rotate(180deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0; padding: 0 40px 24px 2px; color: var(--fg-2); max-width: 44rem; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 110px 0 60px; }
.lost b { display: block; font-size: clamp(5rem, 20vw, 9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 34px; color: var(--fg-3); font-size: 0.88rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--fg-2); transition: color 0.2s var(--ease); }
.foot nav a:hover { color: var(--fg); }
.legal { margin: 18px 0 0; font-size: 0.8rem; }
.inner footer { margin-top: clamp(72px, 10vw, 120px); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); translate: -50% 0;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #0e0e10;
  font-size: 0.9rem; color: var(--fg); white-space: nowrap;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- motion ---------- */
/* One entrance, on load, for what is on screen first. It runs from CSS alone,
   so nothing waits on a script or a scroll event to become visible. */
[data-in] { animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
/* "very soon." is split into letters by the script; until then it stays hidden,
   and shows anyway after 1.2 s if the script never runs. */
.js .soon:not(.split) { opacity: 0; animation: appear 0.4s 1.2s forwards; }
@keyframes appear { to { opacity: 1; } }
.soon .ch { animation: letter 0.9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes letter { from { opacity: 0; transform: translateY(0.3em); filter: blur(10px); } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.16s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.36s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
  .nav-in { gap: 20px; height: 60px; }
  .links { gap: 18px; font-size: 0.92rem; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .toast { white-space: normal; text-align: center; width: calc(100% - 32px); border-radius: 14px; }
  .faq .ans p { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .statement .w { color: var(--fg); }
}
