@import url("../fonts/fonts.css");

/* COSMO site, «star atlas»: deep black sky, starlight-white ink, one pale-gold star colour,
   a classical serif for headlines (old celestial charts), Manrope for everything you read. */
:root {
  --bg: #030304;
  --bg-2: #070709;
  --card: #09090b;
  --card-2: #0e0e11;
  --line: rgba(236, 232, 223, 0.085);
  --line-strong: rgba(236, 232, 223, 0.17);
  --ink: #ece8df;
  --dim: #98958d;
  --faint: #615f5a;
  --white: #efebe2;
  --on-white: #0b0a09;
  --star: #e8d3a2;
  --ok: #8fd6a8;
  --warn: #e8c27a;
  --danger: #e8787a;
  --r: 10px;
  --r-sm: 6px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, ol, ul, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1.5px solid var(--star); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--star); color: #000; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--on-white); padding: 8px 14px; border-radius: 4px; }
.skip:focus { left: 16px; }

/* ------------------------------------------------------------------ sky backdrop */
.space { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background: radial-gradient(1100px 700px at 85% -10%, rgba(232, 211, 162, 0.045), transparent 60%), var(--bg); }
.space canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ header: a thin bar across */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.35s var(--ease), border-color 0.35s var(--ease); }
.top.is-scrolled { background: rgba(3, 3, 4, 0.78); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top__bar { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo svg { width: 24px; height: 24px; }
.logo b { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.08em; line-height: 1; }
.logo i { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 19px; letter-spacing: 0.02em; color: var(--dim); line-height: 1; }
.nav { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 13.5px; color: var(--dim); transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--star); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.top__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.langs { display: flex; gap: 0; }
.langs button { font-size: 12px; font-weight: 600; padding: 4px 7px; color: var(--faint); transition: color 0.2s; }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { color: var(--star); }
.chip-user { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  background: radial-gradient(circle at 35% 30%, #3a3833, #15140f); color: var(--star); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--ink); content: ""; transition: transform 0.25s var(--ease); }
.burger span { top: 19px; }
.burger span::before { top: -6px; left: 0; }
.burger span::after { top: 6px; left: 0; }

/* ------------------------------------------------------------------ buttons, small parts */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 4px;
  font-size: 14px; font-weight: 650; border: 1px solid var(--line-strong); background: transparent;
  transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s, color 0.25s; white-space: nowrap; }
.btn:hover { border-color: rgba(236, 232, 223, 0.38); background: rgba(236, 232, 223, 0.04); }
.btn:active { transform: scale(0.98); }
.btn--white { background: var(--white); color: var(--on-white); border-color: transparent; }
.btn--white:hover { background: #fff; box-shadow: 0 0 0 4px rgba(232, 211, 162, 0.12), 0 0 40px rgba(232, 211, 162, 0.18); }
.btn--small { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--mono { font-size: 13px; }
.btn--danger { color: var(--danger); border-color: rgba(232, 120, 122, 0.35); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }

.label { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
.num { display: none; }

/* Plain filter chips (features page). The hero's chips are stars, see .chart. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 4px; font-size: 13px;
  border: 1px solid var(--line); color: var(--dim); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { color: var(--on-white); background: var(--white); border-color: transparent; }

/* ------------------------------------------------------------------ sections */
section { position: relative; }
.section { padding: 120px 0; }
.section--line { border-top: 1px solid var(--line); }
.head { display: grid; gap: 16px; align-content: start; max-width: 700px; margin-bottom: 52px; }
.head h2, .about h2 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.015em; }
.head p { color: var(--dim); font-size: 16.5px; max-width: 60ch; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--dim); }
.facts li::before { content: "✦"; color: var(--star); font-size: 10px; margin-right: 8px; vertical-align: 1px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - 68px); display: flex; padding: 56px 0 44px; margin-top: -1px; }
.hero__sky { position: absolute; inset: -68px 0 0; z-index: -1; overflow: hidden; }
.hero__sky::before { content: ""; position: absolute; inset: 0; background: url("../img/hero.jpg") center 30% / cover no-repeat; opacity: 0.5;
  animation: drift 40s ease-in-out infinite alternate; }
.hero__sky::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(3, 3, 4, 0.92) 0%, rgba(3, 3, 4, 0.55) 45%, rgba(3, 3, 4, 0.35) 100%),
  linear-gradient(180deg, rgba(3, 3, 4, 0.2) 0%, transparent 40%, var(--bg) 100%); }
@keyframes drift { to { transform: scale(1.08) translate(-1.5%, 1%); } }
.hero__in { display: flex; flex-direction: column; }
.hero__news { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--dim); }
.hero__news svg { width: 13px; height: 13px; fill: var(--star); flex: none; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 7.4vw, 112px); line-height: 0.92; letter-spacing: -0.025em; margin: 30px 0 44px; max-width: 1000px; }
.hero h1 span { display: block; }
.hero h1 span + span { font-style: italic; font-weight: 500; color: var(--dim); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: 56px; align-items: end; }
.hero__hint { margin-top: 10px; font-size: 13px; color: var(--faint); }
.hero__aside { padding-bottom: 28px; }
.hero__aside p { color: var(--dim); font-size: 16px; min-height: 104px; max-width: 46ch; }
.hero__aside h3 { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; margin-bottom: 10px; display: flex; gap: 14px; align-items: baseline; }
.hero__aside h3 button { font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.hero__aside h3 button:hover { color: var(--ink); }
.hero__aside .acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.hero__note { font-size: 13px; color: var(--faint); }

/* The star chart: every feature is a star; four constellations are joined by thin lines. */
.chart { position: relative; height: 420px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.chart polyline { fill: none; stroke: rgba(236, 232, 223, 0.22); stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke 0.4s var(--ease); }
.chart.is-drawn polyline { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(0.7s + var(--i) * 0.25s); }
.chart polyline.is-lit { stroke: rgba(232, 211, 162, 0.65); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .chip { position: absolute; left: var(--x); top: var(--y); height: auto; padding: 4px 6px 4px 0; border: 0; border-radius: 0; background: none;
  gap: 10px; font-size: 12.5px; color: var(--dim); transform: translate(calc(var(--s) / -2), -50%); opacity: 0;
  text-shadow: 0 0 4px var(--bg), 0 0 8px var(--bg), 0 0 14px var(--bg); }
.chart.is-drawn .chip { animation: starIn 0.7s var(--ease) forwards; animation-delay: calc(0.3s + var(--n) * 0.04s); }
@keyframes starIn { to { opacity: 1; } }
.chart .chip::before { content: ""; width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); opacity: 1; flex: none;
  box-shadow: 0 0 calc(var(--s) * 2) rgba(236, 232, 223, 0.45); transition: background 0.25s, box-shadow 0.3s, transform 0.3s var(--ease); }
.chart .chip.is-left { flex-direction: row-reverse; padding: 4px 0 4px 6px; transform: translate(calc(-100% + var(--s) / 2), -50%); }
.chart .chip:hover { color: var(--ink); background: none; }
.chart .chip:hover::before { transform: scale(1.5); }
.chart .chip[aria-pressed="true"] { color: var(--star); background: none; }
.chart .chip[aria-pressed="true"]::before { background: var(--star); transform: scale(1.7); box-shadow: 0 0 0 5px rgba(232, 211, 162, 0.14), 0 0 22px rgba(232, 211, 162, 0.8); }
.chart .chip:focus-visible { outline-offset: 2px; }

/* A legend under the chart, like the key on a star map. */
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.legend div { padding: 20px 0 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.legend div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.legend dt { font-size: 13px; color: var(--faint); }
.legend dd { font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }

/* ------------------------------------------------------------------ marquee: feature names drifting by */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 70s linear infinite; }
.marquee span { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1; color: var(--faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; }
.marquee span::after { content: "✦"; font-style: normal; font-size: 12px; color: rgba(232, 211, 162, 0.5); }
.marquee span.is-on { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ cards and galleries */
.card { position: relative; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 26px; transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { border-color: var(--line-strong); box-shadow: 0 30px 80px -40px rgba(232, 211, 162, 0.12); }
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.card p { color: var(--dim); font-size: 14px; }
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo h3 { margin: 22px 26px 8px; }
.card--photo p { margin: 0 26px 26px; }
.card__img { border-radius: 6px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; background: #000; }
.card--photo .card__img { border-radius: 0; aspect-ratio: auto; flex: 1; min-height: 280px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.035); }
.card__img .tag { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: #ddd8cc; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ico { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 14px; }
.ico svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.small-checks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--faint); }
.small-checks span::before { content: "✓ "; color: var(--star); }

/* Three short notes in a row, divided by hairlines instead of boxes. */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); }
.trio article { padding: 26px 26px 0 0; }
.trio article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.trio h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.trio p { color: var(--dim); font-size: 14px; }

/* A photo gallery of the ecosystem: wide and narrow frames, captions under the picture. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
.shot--wide { grid-column: span 2; }
.shot--full { grid-column: 1 / -1; }
.shot--full img { aspect-ratio: 24 / 8; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #000; transition: transform 1.2s var(--ease), border-color 0.35s; }
.shot--wide img { aspect-ratio: 21 / 9; }
.shot:hover img { transform: translateY(-4px); border-color: var(--line-strong); }
.shot div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; margin-top: 16px; }
.shot h3 { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.02; }
.shot p { color: var(--dim); font-size: 14px; }
.shot:not(.shot--wide):not(.shot--full) div { grid-template-columns: 1fr; gap: 6px; }

/* A mock of the in-game menu: sections on the left, switches and a slider on the right. */
.mock { margin-top: 20px; border-radius: 8px; border: 1px solid var(--line); background: #060607; overflow: hidden; }
.mock__top { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--faint); }
.mock__body { display: grid; grid-template-columns: 120px 1fr; min-height: 260px; }
.mock__side { padding: 10px 8px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.mock__side button { text-align: left; font-size: 12.5px; color: var(--dim); padding: 6px 10px; border-radius: 4px; position: relative; }
.mock__side button[aria-pressed="true"] { color: var(--ink); background: rgba(236, 232, 223, 0.06); }
.mock__side button[aria-pressed="true"]::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 2px; background: var(--star); }
.mock__list { padding: 8px 14px; display: grid; align-content: start; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(236, 232, 223, 0.045); }
.mock__row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { width: 30px; height: 17px; border-radius: 999px; background: #24231f; position: relative; flex: none; transition: background 0.25s var(--ease); }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #66645e; transition: transform 0.25s var(--ease), background 0.25s; }
.switch[aria-checked="true"] { background: var(--star); }
.switch[aria-checked="true"]::after { transform: translateX(13px); background: var(--on-white); }
.mock__slider { padding: 12px 0 4px; }
.mock__label { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.mock__slider i { display: block; height: 3px; border-radius: 3px; background: #24231f; margin-top: 8px; position: relative; }
.mock__slider i::before { content: ""; position: absolute; inset: 0 30% 0 0; background: var(--star); border-radius: 3px; }

/* ------------------------------------------------------------------ quote */
.quote { margin: 0 auto; padding: 70px 0; text-align: center; border-block: 1px solid var(--line); }
.quote p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.05; color: var(--ink); }

/* ------------------------------------------------------------------ steps: four stops on one orbit */
.orbit { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.orbit::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--line-strong), rgba(232, 211, 162, 0.5), var(--line-strong)); }
.step { position: relative; padding: 40px 28px 0 0; }
.step__dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); transition: border-color 0.3s, box-shadow 0.4s, background 0.3s; }
.step__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--faint); transition: background 0.3s; }
.step b { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 56px; line-height: 0.8; color: var(--faint); margin-bottom: 16px; transition: color 0.3s; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 14px; max-width: 30ch; }
.step.is-hot .step__dot { border-color: var(--star); box-shadow: 0 0 0 6px rgba(232, 211, 162, 0.1), 0 0 24px rgba(232, 211, 162, 0.5); }
.step.is-hot .step__dot::after { background: var(--star); }
.step.is-hot b { color: var(--ink); }

/* ------------------------------------------------------------------ pricing: three columns, hairlines */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan:first-child { padding-left: 0; }
.plan--hit::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 1px; background: var(--star); box-shadow: 0 0 18px rgba(232, 211, 162, 0.7); }
.plan__for { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan__hit { color: var(--star); font-weight: 700; }
.plan h3 { font-size: 18px; font-weight: 700; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font-family: var(--display); font-size: 72px; font-weight: 600; line-height: 0.9; letter-spacing: -0.02em; }
.plan__price span { color: var(--dim); }
.plan ul { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--dim); }
.plan li::before { content: "✦"; display: inline-block; width: 20px; color: var(--star); font-size: 10px; vertical-align: 1px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.note { margin-top: 26px; color: var(--faint); font-size: 13.5px; }
/* The paid PC reset, a quiet row under the plans. */
.addon { margin-top: 44px; padding: 24px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 30px; align-items: center; }
.addon h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.addon p { color: var(--dim); font-size: 14px; max-width: 64ch; }
.addon__price { display: flex; align-items: baseline; gap: 6px; }
.addon__price b { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; }
.addon__price span { color: var(--dim); }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 650; font-size: 15.5px; transition: color 0.2s; }
.faq summary:hover { color: var(--star); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 28px; line-height: 0.6; color: var(--dim); flex: none; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--star); }
.faq details p { color: var(--dim); padding: 0 0 20px; font-size: 14.5px; max-width: 62ch; }

/* ------------------------------------------------------------------ statement, about, footer */
.statement { text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(42px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.02em; max-width: 1050px; margin: 0 auto; }
.statement > span { display: block; }
.statement > span + span { font-style: italic; font-weight: 500; color: var(--star); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about h2 { margin-bottom: 20px; }
.about p { color: var(--dim); max-width: 52ch; }
.stack { display: grid; }
.stack div { padding: 20px 0; border-top: 1px solid var(--line); }
.stack div:last-child { border-bottom: 1px solid var(--line); }
.stack dt { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.05; margin-bottom: 6px; }
.stack dd { color: var(--dim); font-size: 14px; }
.foot { border-top: 1px solid var(--line); padding: 0 0 30px; }
.foot__cta { text-align: center; padding: 110px 0 90px; display: grid; justify-items: center; gap: 26px; }
.foot__cta h3 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 40px 0; border-top: 1px solid var(--line); }
.foot p { color: var(--dim); font-size: 14px; max-width: 360px; margin-top: 14px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--faint); }
.foot nav { display: grid; gap: 8px; font-size: 14px; color: var(--dim); }
.foot nav a:hover { color: var(--ink); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* ------------------------------------------------------------------ forms, modal */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-strong); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
textarea.input { height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: rgba(232, 211, 162, 0.6); box-shadow: 0 0 0 3px rgba(232, 211, 162, 0.1); }
.input[aria-invalid="true"] { border-color: rgba(232, 120, 122, 0.7); }
.hint { font-size: 12.5px; color: var(--faint); }
.err { font-size: 12.5px; color: var(--danger); min-height: 0; }
.msg { padding: 12px 14px; border-radius: 6px; font-size: 14px; border: 1px solid var(--line-strong); background: rgba(236, 232, 223, 0.03); }
.msg--ok { border-color: rgba(143, 214, 168, 0.4); color: #c3e8d0; }
.msg--err { border-color: rgba(232, 120, 122, 0.45); color: #f1b8b9; }
.modal { width: min(840px, calc(100% - 24px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: #09090b; color: var(--ink); }
.modal::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }
.modal[open] { animation: pop 0.35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); filter: blur(6px); } }
.modal__in { padding: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; }
.modal__head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; }
.modal__head h2 { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1; }
.modal__head p { color: var(--dim); font-size: 14px; margin-top: 8px; }
.modal__x { width: 34px; height: 34px; border-radius: 50%; color: var(--dim); font-size: 22px; line-height: 1; }
.modal__x:hover { background: rgba(236, 232, 223, 0.06); color: var(--ink); }
.why { border-radius: 8px; border: 1px solid var(--line); padding: 18px; display: grid; gap: 14px; align-content: start; }
.why__big { padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.why__big b { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; display: block; color: var(--star); }
.why__big span { font-size: 13px; color: var(--dim); }
.why__item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13px; color: var(--dim); }
.why__item .ico { width: 26px; height: 26px; margin: 0; color: var(--star); font-size: 13px; border-color: rgba(232, 211, 162, 0.25); }
.why__item b { display: block; color: var(--ink); font-size: 13.5px; }
.plan-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.plan-pick label { cursor: pointer; display: grid; }
.plan-pick span { align-content: center; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick span { display: grid; gap: 2px; padding: 12px 10px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 12.5px; text-align: center; transition: all 0.2s; }
.plan-pick b { font-size: 14px; }
.plan-pick input:checked + span { border-color: var(--star); background: rgba(232, 211, 162, 0.08); color: var(--ink); box-shadow: 0 0 0 1px var(--star) inset; }
.plan-pick input:focus-visible + span { outline: 1.5px solid var(--star); outline-offset: 2px; }
.direct { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.direct__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.direct__row b { color: var(--ink); font-size: 14px; word-break: break-all; }
.foot__contact { font: inherit; color: var(--dim); }
.foot__contact:hover, .foot__contact.is-copied { color: var(--star); }
.foot__contact.is-copied::after { content: " ✓"; }

/* ------------------------------------------------------------------ pages: features, account, admin */
.page { padding: 80px 0 110px; min-height: 70vh; }
.page__title { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.02em; margin: 0 0 16px; }
.page__lead { color: var(--dim); max-width: 640px; font-size: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 38px 0 24px; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); stroke: var(--faint); fill: none; stroke-width: 1.8; }
.search .input { padding-left: 40px; }
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.mod { padding: 18px 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
.mod:hover { border-color: var(--line-strong); box-shadow: none; }
.mod h3 { font-size: 15px; margin: 0 0 4px; display: flex; justify-content: space-between; gap: 8px; }
.mod h3 small { font-weight: 600; font-size: 12px; color: var(--faint); }
.mod p { font-size: 13.5px; }
.empty { color: var(--faint); padding: 40px 0; text-align: center; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 22px; margin-top: 36px; }
.auth__box { padding: 28px; }
.tabs { display: inline-flex; gap: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 8px 0; font-size: 14px; font-weight: 650; color: var(--faint); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--star); }
.auth__side { padding: 0; display: grid; align-content: start; gap: 14px; overflow: hidden; }
.auth__side img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.auth__side h3, .auth__side p { margin-inline: 28px; }
.auth__side h3 { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; margin-top: 8px; }
.auth__side p { margin-bottom: 28px; }
.auth form .btn { width: 100%; margin-top: 20px; }
.linkish { color: var(--dim); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }

.cab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.kv { display: grid; gap: 8px; margin: 14px 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span { color: var(--dim); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.status--off .dot { background: var(--faint); box-shadow: none; }
.status--warn .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.row-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th { text-align: left; font-weight: 700; font-size: 12px; color: var(--faint); padding: 12px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table tr:hover td { background: rgba(236, 232, 223, 0.02); }
.adm-table .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-table .acts .input { width: 80px; height: 36px; }
.tag-mini { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: rgba(236, 232, 223, 0.06); color: var(--dim); white-space: nowrap; }
.tag-mini--ok { color: var(--ok); background: rgba(143, 214, 168, 0.08); }
.tag-mini--bad { color: var(--danger); background: rgba(232, 120, 122, 0.1); }
.scroll-x { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 80; padding: 11px 18px; border-radius: 6px;
  background: var(--white); color: var(--on-white); font-size: 14px; font-weight: 650; transition: all 0.35s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }

/* ------------------------------------------------------------------ motion
   1) the opening: the page waits blurred while «Cosmo Visuals» is written by hand;
   2) blocks come out of a blur as you scroll, headlines word by word;
   3) the quote ends with a blinking caret; 4) a click sends rings out from the cursor. */
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none;
  background: rgba(3, 3, 4, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: introOut 1s var(--ease) 2.1s forwards; }
.intro span { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(56px, 9vw, 128px); color: var(--ink);
  padding: 0.15em 0.2em; clip-path: inset(0 100% 0 0); animation: write 1.7s cubic-bezier(0.6, 0, 0.3, 1) 0.2s forwards; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } }
.intro.is-skip { display: none; }

[data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }
.w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.25em); transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--wi) * 0.07s); }
.is-in .w, .w.is-in { opacity: 1; filter: none; transform: none; }
.no-js .w { opacity: 1; filter: none; transform: none; }
[data-type].is-typed::after { content: ""; display: inline-block; width: 2px; height: 0.8em; margin-left: 0.12em; background: var(--star); vertical-align: -0.04em; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.ripple { position: fixed; z-index: 95; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(232, 211, 162, 0.7); animation: ripple 0.9s var(--ease) forwards; }
.ripple + .ripple, .ripple.ripple--2 { animation-delay: 0.12s; border-color: rgba(236, 232, 223, 0.35); }
@keyframes ripple { from { transform: scale(0.4); opacity: 1; } to { transform: scale(7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; animation-delay: 0s !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .intro, .ripple { display: none; }
  .hero__sky::before { animation: none; }
}

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 1080px) {
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: rgba(3, 3, 4, 0.97); border-bottom: 1px solid var(--line); display: none; }
  .top.is-open .nav { display: flex; }
  .top.is-open { background: rgba(3, 3, 4, 0.97); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .top__actions .langs { display: none; }
  .nav .langs { display: flex; align-self: flex-start; margin: 12px 0 0 -7px; }
  .hero__grid, .faq, .about, .auth, .cab, .modal__in { grid-template-columns: 1fr; }
  .hero__grid { gap: 28px; }
  .hero__aside { padding-bottom: 0; }
  .grid-3, .grid-4, .mods, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot--wide, .shot--full { grid-column: span 2; }
  .orbit { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan:first-child { padding: 30px 0; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan--hit::before { left: 0; right: 0; }
}
@media (min-width: 1081px) { .nav .langs { display: none; } }
@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .grid-2, .grid-3, .grid-4, .mods, .gallery, .foot__grid, .trio { grid-template-columns: 1fr; }
  .shot--wide, .shot--full { grid-column: auto; }
  .shot--wide img, .shot--full img { aspect-ratio: 16 / 9; }
  .shot div { grid-template-columns: 1fr; gap: 6px; }
  .trio article, .trio article + article { padding: 22px 0; border-left: 0; }
  .trio article + article { border-top: 1px solid var(--line); }
  .orbit { grid-template-columns: 1fr; row-gap: 0; padding-left: 30px; }
  .orbit::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-strong), rgba(232, 211, 162, 0.5), var(--line-strong)); }
  .step { padding: 0 0 36px; }
  .step__dot { left: -30px; }
  .step b { font-size: 44px; }
  .hero { padding-top: 34px; }
  .hero h1 { margin: 22px 0 30px; }
  .top__actions .btn--download { display: none; }
  .logo i { display: none; }
  .legend { grid-template-columns: 1fr; }
  .legend div + div { padding-left: 0; border-left: 0; }
  .legend dd { font-size: 34px; }
  /* The chart becomes a plain list of stars on a phone. */
  .chart { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
  .chart svg { display: none; }
  .chart .chip, .chart .chip.is-left { position: static; transform: none; flex-direction: row; padding: 7px 0; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .foot__bottom { flex-direction: column; }
  .adm-table { font-size: 12.5px; }
  .addon { grid-template-columns: 1fr; gap: 14px; }
  .plan-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marquee span { font-size: 24px; }
}
