:root {
  --bg: #08090b;
  --bg-2: #0e1114;
  --panel: #13171a;
  --panel-2: #191e22;
  --panel-3: #20262b;
  --line: #262d33;
  --line-soft: rgba(255, 255, 255, 0.06);
  --ink: #f1f5f7;
  --muted: #a1adb4;
  --faint: #6f7c83;
  --teal: #4dbdc6;
  --teal-2: #3aa8b1;
  --teal-hi: #72d6de;
  --green: #2ea44f;
  --green-hi: #3cb85c;
  --red: #e03131;
  --red-hi: #f03e3e;
  --telegram: #229ed9;
  --telegram-hi: #2eb0ef;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --max: 1180px;
  --prose: 46rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 66px;
  --display: Oswald, Impact, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-hi);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #041416;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.15rem;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  color: var(--ink);
}

.logo-link:hover {
  color: var(--ink);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.logo-word {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.logo-word span {
  color: var(--teal);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
  margin-left: 1.25rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: var(--panel-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn-ghost,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn-ghost {
  display: none;
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-hi);
}

.btn-solid {
  background: var(--teal);
  color: #062022;
}

.btn-solid:hover {
  background: var(--teal-hi);
  color: #041416;
  transform: translateY(-1px);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0.4rem 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a,
.mobile-nav form {
  display: block;
}

.mobile-nav a {
  padding: 0.75rem 0.2rem;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav input {
  width: 100%;
  margin-top: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: inherit;
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero__bg,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__img {
  position: absolute;
  inset: -30px;
  background: #000 center top / cover no-repeat;
  transform: scale(1.08);
  filter: blur(14px) saturate(0.9) brightness(0.5);
}

.hero__img--desktop {
  background-image: url("../assets/bg-desktop.png");
}

.hero__img--mobile {
  display: none;
  background-image: url("../assets/bg-mobile.jpg");
}

.hero__veil {
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(77, 189, 198, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.35) 0%, rgba(8, 9, 11, 0.6) 65%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.4rem;
  border: 1px solid rgba(77, 189, 198, 0.35);
  border-radius: 999px;
  background: rgba(77, 189, 198, 0.08);
  color: var(--teal-hi);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow b {
  background: var(--teal);
  color: #062022;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.1rem 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.hero h1 span {
  color: var(--teal);
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: rgba(236, 241, 244, 0.84);
  font-size: 1.08rem;
}

.hero-lead a {
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--green-hi);
}

.hero-card {
  position: relative;
  padding: 1.5rem;
  background: rgba(19, 23, 26, 0.72);
  border: 1px solid rgba(77, 189, 198, 0.3);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card img {
  display: block;
  width: 100%;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.live-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.7rem 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.live-link .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-hi);
  box-shadow: 0 0 0 4px rgba(60, 184, 92, 0.18);
  flex: 0 0 auto;
  animation: pulse 2s infinite;
}

.live-link div {
  flex: 1;
  min-width: 0;
}

.live-link small {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-link a {
  color: var(--ink);
  font-weight: 700;
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.is-done {
  color: var(--teal-hi);
  border-color: var(--teal);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.stats div {
  padding: 0.7rem 0.5rem;
  text-align: center;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-hi);
  line-height: 1.1;
}

.stats span {
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 600;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(60, 184, 92, 0.05);
  }
}

/* —— CTA buttons —— */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 28rem;
}

.cta {
  --accent: var(--green);
  --accent-hi: var(--green-hi);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.75rem 1rem 0.75rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cta--private {
  --accent: var(--red);
  --accent-hi: var(--red-hi);
}

.cta--telegram {
  --accent: var(--telegram);
  --accent-hi: var(--telegram-hi);
}

.cta:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px rgba(0, 0, 0, 0.45);
}

.cta svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

.cta span {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1.25;
}

.cta .arrow {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.85;
  transition: transform 0.25s var(--ease);
}

.cta:hover .arrow {
  transform: translateX(3px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cta-row .cta {
  flex: 1 1 15rem;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-head > div {
  max-width: 40rem;
}

.kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* —— Steps —— */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.4rem 1.3rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--teal);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Blog cards —— */
.posts {
  display: grid;
  gap: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(77, 189, 198, 0.45);
  box-shadow: var(--shadow);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: url("../assets/bg-desktop.png") center / cover no-repeat;
  filter: blur(6px) brightness(0.55) saturate(0.9);
  transform: scale(1.05);
  transition: transform 0.6s var(--ease);
}

.card:hover .thumb::before {
  transform: scale(1.12);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tint, rgba(77, 189, 198, 0.45)), transparent 70%);
  mix-blend-mode: screen;
}

.thumb--red {
  --tint: rgba(224, 49, 49, 0.5);
}

.thumb--blue {
  --tint: rgba(34, 158, 217, 0.5);
}

.thumb--green {
  --tint: rgba(46, 164, 79, 0.5);
}

.thumb--violet {
  --tint: rgba(140, 90, 230, 0.5);
}

.thumb-word {
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  bottom: 0.9rem;
  right: 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.tag {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.25rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 600;
}

.card h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card .read {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.86rem;
}

.card--feature h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

.card--feature p {
  font-size: 1rem;
}

/* —— Guide / long-form article —— */
.guide-layout {
  display: grid;
  gap: 2rem;
}

.toc {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.32rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  padding-top: 0.08rem;
}

.toc a:hover,
.toc a.is-current {
  color: var(--teal-hi);
}

.toc .side-cta {
  margin-top: 1rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--teal), #1a6f77);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.byline strong {
  display: block;
  font-size: 0.94rem;
}

.byline span {
  color: var(--faint);
  font-size: 0.82rem;
}

.prose {
  max-width: var(--prose);
  font-size: 1.05rem;
  color: #d4dde2;
}

.prose h2 {
  margin: 2.6rem 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1.05rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose li::marker {
  color: var(--teal);
}

.prose strong {
  color: var(--ink);
}

.callout {
  margin: 1.4rem 0 1.6rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(77, 189, 198, 0.3);
  background: linear-gradient(135deg, rgba(77, 189, 198, 0.12), rgba(77, 189, 198, 0.03));
  border-radius: 12px;
}

.callout p {
  margin: 0;
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.2rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
}

.inline-cta strong {
  display: block;
  font-size: 1.02rem;
}

.inline-cta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-cta .cta {
  flex: 0 0 auto;
  min-height: 2.9rem;
  padding: 0.6rem 1.1rem;
}

/* —— FAQ —— */
.faq {
  display: grid;
  gap: 0.7rem;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: rgba(77, 189, 198, 0.4);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--teal);
  font-weight: 700;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.faq-group + .faq-group {
  margin-top: 2.4rem;
}

.faq-group h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* —— CTA band —— */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 1.6rem;
  align-items: center;
  padding: 2.2rem 1.6rem;
  border: 1px solid rgba(77, 189, 198, 0.3);
  border-radius: 22px;
  background: var(--panel);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -2;
  background: url("../assets/bg-desktop.png") center / cover no-repeat;
  filter: blur(14px) brightness(0.35);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(8, 9, 11, 0.92) 30%, rgba(77, 189, 198, 0.18));
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.2rem 0 2.6rem;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -2;
  background: url("../assets/bg-desktop.png") center / cover no-repeat;
  filter: blur(16px) brightness(0.32);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.page-hero h1 {
  margin: 0.4rem 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.06;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero .cta-row {
  margin-top: 1.5rem;
  max-width: 40rem;
}

/* —— Blog post (full) —— */
.post-full {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.post-full:first-of-type {
  border-top: 0;
}

.post-full .card-meta {
  margin-bottom: 0.4rem;
}

.post-full h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1;
}

.post-full .thumb {
  margin: 0 0 1.4rem;
  border-radius: var(--radius);
  aspect-ratio: 21 / 8;
}

.post-full .cta {
  display: inline-flex;
  margin-top: 0.4rem;
}

/* —— Shared panels (forms, search, forums index) —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem 3.5rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 1.4rem 0 1rem;
  font-size: 0.82rem;
  color: var(--faint);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--teal);
}

.layout {
  display: grid;
  gap: 1.15rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.panel-head h1,
.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #062022;
  background: var(--teal);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

.thread-sub {
  margin: 0;
  padding: 0.35rem 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article {
  padding: 0.6rem 1.1rem 1.35rem;
  font-size: 1rem;
  color: #d4dde2;
}

.article h2 {
  margin: 1.5rem 0 0.55rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.article p {
  margin: 0 0 0.9rem;
}

.article ol,
.article ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.node {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--line);
  color: inherit;
}

.node:hover {
  background: var(--panel-2);
  color: inherit;
}

.node-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--teal);
  border: 1px solid var(--line);
}

.node-icon svg {
  width: 22px;
  height: 22px;
}

.node h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.node p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.node-stats {
  display: none;
  color: var(--faint);
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}

.side-block {
  padding: 1rem 1.1rem 1.1rem;
}

.side-cta {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  background: var(--teal);
  color: #062022;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.8rem 0.8rem;
  border-radius: 10px;
}

.side-cta:hover {
  color: #041416;
  background: var(--teal-hi);
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.7rem;
}

.side-links a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.side-links a:hover {
  color: var(--teal-hi);
  background: var(--panel-2);
}

/* —— Forms —— */
.form {
  padding: 1.1rem 1.1rem 1.3rem;
}

.form-row {
  margin-bottom: 0.9rem;
}

.form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--teal);
  outline: none;
}

.form .hint {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}

.form .error {
  color: #ff8a8a;
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}

.check input {
  width: auto;
  margin-top: 0.2rem;
}

.btn-submit {
  width: 100%;
  margin-top: 0.4rem;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--teal-hi), var(--teal-2));
  color: #062022;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-submit:hover {
  filter: brightness(1.05);
}

.form-success {
  display: none;
  padding: 1.2rem 1.1rem;
  color: var(--teal-hi);
}

.form-success.is-visible {
  display: block;
}

.result {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.result h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.empty {
  padding: 1.2rem 1.1rem;
  color: var(--muted);
}

.prose h2,
.prose h3,
#guide,
#blog,
#faq,
#start {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060708;
  padding: 3rem 1.15rem 2rem;
  color: var(--faint);
  font-size: 0.86rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.8rem 0 0;
  max-width: 22rem;
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 0.22rem 0;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--teal-hi);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  margin-right: 0.4rem;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red-hi);
  font-size: 0.72rem;
  font-weight: 800;
}

/* —— Announcement bar —— */
.announce {
  position: relative;
  z-index: 41;
  background: linear-gradient(90deg, #0f3a3e, #12252a 55%, #3a1416);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
}

.announce p {
  margin: 0;
  color: rgba(241, 245, 247, 0.86);
}

.announce a {
  color: var(--teal-hi);
  font-weight: 700;
}

.announce-badge {
  flex: 0 0 auto;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* —— Landing hero —— */
.hero--landing {
  padding-bottom: 3.5rem;
}

.hero--landing .hero__veil {
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(77, 189, 198, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.3) 0%, rgba(8, 9, 11, 0.62) 65%, var(--bg) 100%);
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(420px, 86%);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6));
}

.hero-center h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}

.hero-center .hero-lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-grid {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  max-width: 28rem;
}

.address-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  background: rgba(8, 9, 11, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.address-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-hi);
  box-shadow: 0 0 0 4px rgba(60, 184, 92, 0.18);
  animation: pulse 2s infinite;
}

.address-label {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address-pill a {
  color: var(--ink);
  font-weight: 700;
}

.address-pill .copy-btn {
  border-radius: 999px;
}

.hero-center .hero-meta {
  justify-content: center;
}

/* —— Features —— */
.features {
  display: grid;
  gap: 1rem;
}

.feature {
  padding: 1.3rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature:hover {
  border-color: rgba(77, 189, 198, 0.45);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border-radius: 11px;
  background: rgba(77, 189, 198, 0.1);
  border: 1px solid rgba(77, 189, 198, 0.3);
  color: var(--teal-hi);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-head--center {
  justify-content: center;
  text-align: center;
}

.section--flush {
  padding-top: 0;
}

.faq-more {
  margin: 1.4rem 0 0;
  text-align: center;
}

/* —— Blog layout —— */
.blog-layout {
  display: grid;
  gap: 1.6rem;
}

.blog-main {
  display: grid;
  gap: 1.15rem;
  min-width: 0;
}

.card--hero .thumb {
  aspect-ratio: 16 / 7;
}

.card--hero .thumb-word {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.card--hero h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

.card--hero p {
  font-size: 1rem;
}

.post-list {
  display: grid;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  color: inherit;
  transition: background 0.2s;
}

.post-row + .post-row {
  border-top: 1px solid var(--line);
}

.post-row:hover {
  color: inherit;
  background: var(--panel-2);
}

.post-row .thumb {
  aspect-ratio: 1;
  border-radius: 10px;
}

.post-row .thumb-word {
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.post-row h3 {
  margin: 0.25rem 0 0.25rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.post-row:hover h3 {
  color: var(--teal-hi);
}

.post-row p {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-meta .cat {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.blog-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.widget {
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.widget--cta {
  border-color: rgba(77, 189, 198, 0.35);
  background: linear-gradient(180deg, rgba(77, 189, 198, 0.1), var(--panel) 55%);
}

.widget--cta img {
  display: block;
  width: 100%;
  margin-bottom: 0.9rem;
}

.widget--cta h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
}

.widget--cta p {
  margin: 0.2rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.widget--cta .cta-stack {
  max-width: none;
}

.widget--cta .cta {
  min-height: 2.9rem;
}

.widget-title {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags a {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.tags a:hover {
  border-color: var(--teal);
  color: var(--teal-hi);
}

.popular {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pop;
}

.popular li {
  counter-increment: pop;
}

.popular li + li {
  border-top: 1px solid var(--line);
}

.popular a {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.popular a::before {
  content: counter(pop, decimal-leading-zero);
  font-family: var(--display);
  color: var(--teal);
  font-size: 1rem;
  line-height: 1.25;
}

.popular a:hover {
  color: var(--teal-hi);
}

.search-field {
  display: flex;
  gap: 0.4rem;
}

.search-field input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
}

.search-field input:focus {
  border-color: var(--teal);
  outline: none;
}

.search-field button {
  display: grid;
  place-items: center;
  width: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #062022;
  cursor: pointer;
}

.search-field svg {
  width: 18px;
  height: 18px;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-row {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .post-row .thumb {
    aspect-ratio: 4 / 3;
  }

  .post-row p {
    display: block;
  }

  .btn-ghost {
    display: inline-flex;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .node {
    grid-template-columns: 44px 1fr auto;
  }

  .node-stats {
    display: block;
  }

  .cta-band {
    grid-template-columns: 1.2fr 1fr;
    padding: 2.8rem 2.6rem;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: calc(var(--header-h) + 4.5rem) 0 6rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .posts--home {
    grid-template-columns: repeat(3, 1fr);
  }

  .posts--home .card--feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .posts--home .card--feature .thumb {
    aspect-ratio: 16 / 8.5;
  }

  .posts--blog {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 60rem;
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
  }

  .guide-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .guide-layout .toc {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 12px);
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 0.5rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .logo-word {
    font-size: 1.02rem;
    letter-spacing: 0.04em;
  }

  .btn-solid {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 759px) {
  .hero__img--desktop {
    display: none;
  }

  .hero__img--mobile {
    display: block;
  }

  .cta-stack {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .card,
  .reveal,
  .thumb::before {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .live-link .dot,
  .address-pill .dot {
    animation: none;
  }
}
