:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --text: #e8eef7;
  --muted: #93a4bd;
  --line: rgba(232, 238, 247, 0.12);
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --sand: #f4efe6;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0e1628 45%, #0b1220 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Top */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--teal);
}

.brand:hover {
  color: var(--text);
}

.brand:hover span {
  color: var(--teal);
}

.nav a.nav-active {
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.lang-wrap {
  position: relative;
}

.lang-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn:hover,
.lang-wrap.open .lang-btn {
  border-color: rgba(45, 212, 191, 0.45);
  background: var(--teal-soft);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  max-height: min(60vh, 360px);
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-wrap.open .lang-menu {
  display: grid;
}

.lang-option {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
  background: var(--teal-soft);
  color: var(--teal);
}

/* Geo banner */
.geo {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.08));
}

.geo.hidden {
  display: none;
}

.geo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.geo p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.geo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.kicker {
  display: inline-block;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 600;
  max-width: 14ch;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #5eead4, var(--teal));
  color: #042f2e;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(45, 212, 191, 0.4);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(45, 212, 191, 0.16), transparent 40%),
    linear-gradient(20deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--bg-elev);
  min-height: 320px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.35), transparent 55%);
  pointer-events: none;
}

.panel-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.panel-stack {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.55);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chip strong {
  font-weight: 650;
}

.chip span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sections */
section {
  padding: 56px 0;
}

.section-head {
  max-width: 54ch;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: rgba(18, 26, 43, 0.72);
  min-height: 160px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.license {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.license-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.08), transparent 40%),
    var(--bg-elev);
}

.license-box .note {
  margin-top: 14px;
  color: var(--teal);
  font-size: 0.9rem;
}

.contacts-home {
  padding: 64px 0 72px;
}

.contacts-page {
  padding: 56px 0 72px;
}

.contacts-layout {
  max-width: none;
}

.contacts-hero {
  margin-bottom: 36px;
}

.contacts-hero h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 14px;
}

.contacts-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.contact-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  transform: translateY(-2px);
}

.contact-card.muted-card {
  opacity: 0.92;
}

.contact-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.contact-mail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}

.contact-mail {
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 500;
  word-break: break-all;
  min-width: 0;
  flex: 1;
}

.contact-mail-row .contact-mail {
  margin-bottom: 0;
}

.copy-icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.copy-icon-btn:hover {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.45);
  background: var(--teal-soft);
}

.copy-icon-btn.is-copied {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.55);
}

.copy-icon-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* EULA */
.page-eula .eula-page {
  padding: 56px 0 72px;
}

.eula-layout {
  max-width: none;
}

.eula-hero {
  margin-bottom: 28px;
}

.eula-hero h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 10px;
}

.eula-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eula-body {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 28px;
  background: rgba(18, 26, 43, 0.72);
  max-width: 820px;
}

.eula-body h2 {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 26px 0 10px;
}

.eula-body h2:first-of-type {
  margin-top: 18px;
}

.eula-body p,
.eula-body li {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

.eula-body ul {
  padding-left: 1.2rem;
  margin: 0 0 12px;
}

/* FAQ page */
.page-faq .faq-page {
  padding: 56px 0 72px;
  border-top: 0;
}

.faq-layout {
  max-width: none;
}

.faq-hero {
  margin-bottom: 36px;
}

.faq-hero h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 14px;
}

.faq-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 46ch;
  font-weight: 500;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 30px;
  margin-bottom: 28px;
  background:
    linear-gradient(125deg, rgba(45, 212, 191, 0.14), transparent 42%),
    linear-gradient(20deg, rgba(56, 189, 248, 0.06), transparent 50%),
    var(--bg-elev);
}

.download-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.6;
}

.demo-key-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.demo-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.demo-key-row code {
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
  letter-spacing: 0.02em;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 26, 43, 0.78);
  padding: 6px 18px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(18, 26, 43, 0.92);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 4px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.35em;
  color: var(--teal);
  font-family: var(--font);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "–";
}

.faq-item p,
.faq-steps {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-steps {
  padding-left: 1.35rem;
  display: grid;
  gap: 10px;
}

.faq-steps li::marker {
  color: var(--teal);
  font-weight: 700;
}

html[dir="rtl"] .faq-steps {
  padding-left: 0;
  padding-right: 1.35rem;
}

.faq-back {
  margin: 28px 0 0;
}

.faq-back a {
  color: var(--muted);
  font-weight: 600;
}

.faq-back a:hover {
  color: var(--teal);
}

/* Footer */
.foot {
  margin-top: auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.55);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.foot-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.foot-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 560;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.foot-links a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(232, 238, 247, 0.04);
}

.foot-links a[aria-current="page"] {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.35);
  background: var(--teal-soft);
}

.legal-strip {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 26, 43, 0.65);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legal-strip a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Demo page — compact duo centered: copy | card */
.page-demo .demo-page {
  padding: 56px 0 72px;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-demo .demo-layout {
  width: 100%;
  display: flex;
  justify-content: center;
}
.page-demo .demo-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: min(920px, 100%);
}
.page-demo .demo-copy {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.page-demo .demo-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}
.page-demo .demo-copy .dl-lead {
  max-width: none;
  font-size: 1.05rem;
}
.page-demo .demo-back-inline {
  margin: 24px 0 0;
}
.page-demo .demo-panel {
  display: block;
  margin: 0;
  flex: 0 0 auto;
  width: min(400px, 100%);
}
.page-demo .demo-card {
  min-height: 0;
  gap: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.page-demo .demo-steps {
  margin: 4px 0 8px;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.page-demo .demo-steps li {
  margin: 0 0 6px;
}
.page-demo .demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
@media (max-width: 860px) {
  .page-demo .demo-page {
    min-height: 0;
    align-items: stretch;
    padding-top: 36px;
  }
  .page-demo .demo-split {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: min(520px, 100%);
  }
  .page-demo .demo-copy,
  .page-demo .demo-panel {
    max-width: none;
    width: 100%;
  }
}

/* Download page */
.page-download .dl-page {
  padding: 56px 0 72px;
}

.dl-layout {
  max-width: none; /* same width as header .wrap */
}

.dl-hero {
  margin-bottom: 36px;
}

.dl-hero h1 {
  max-width: none;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 14px;
}

.dl-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 52ch;
  font-weight: 500;
}

.dl-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.dl-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px 22px;
  background:
    linear-gradient(140deg, rgba(45, 212, 191, 0.12), transparent 45%),
    var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.dl-card-server {
  background:
    linear-gradient(140deg, rgba(56, 189, 248, 0.12), transparent 45%),
    var(--bg-elev);
}

.dl-card-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 5px 10px;
}

.dl-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dl-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.dl-whats {
  flex: 1;
  margin: 2px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.dl-whats-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.dl-whats ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.dl-whats li + li {
  margin-top: 6px;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.dl-ver {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.dl-date {
  opacity: 0.85;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.dl-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.dl-split .btn-primary {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.dl-caret {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid rgba(4, 16, 22, 0.22);
  padding-left: 12px;
  padding-right: 12px;
  min-width: 42px;
}

.dl-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dl-lang-menu-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 4px 10px 8px;
}

.dl-lang-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.dl-lang-item:hover,
.dl-lang-item.is-active {
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
}

.dl-cmd-row {
  margin-top: 8px;
}

.dl-cmd-row code,
.dl-card code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  max-width: 100%;
  overflow-x: auto;
}

.dl-history-head {
  margin-bottom: 22px;
}

.dl-ladder {
  display: grid;
  gap: 28px;
}

.dl-rail-block h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dl-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  position: relative;
}

.dl-step-rail {
  width: 10px;
  justify-self: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), rgba(45, 212, 191, 0.15));
  min-height: 100%;
  position: relative;
}

.dl-step-rail::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.dl-step-body {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 12px;
  background: rgba(18, 26, 43, 0.72);
  margin-bottom: 14px;
}

.dl-step-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dl-step-top strong {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
}

.dl-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #042f2e;
  background: var(--teal);
  border-radius: 999px;
  padding: 3px 8px;
}

.dl-step-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.dl-step-body li {
  margin: 0 0 4px;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .dl-channels {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .nav .hide-sm {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }
}

/* ── Offer PDF modal ── */
body.offer-modal-open {
  overflow: hidden;
}

.offer-modal[hidden] {
  display: none !important;
}

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(6px);
}

.offer-modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: #0b1220;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.offer-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.95);
}

.offer-modal-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2px;
}

.offer-modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

.offer-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.offer-modal-actions .btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
  width: auto;
}

.offer-modal-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.offer-modal-x:hover {
  color: var(--text);
  border-color: rgba(45, 212, 191, 0.45);
}

.offer-modal-frame-wrap {
  flex: 1;
  min-height: 0;
  background: #f1f5f9;
  overflow: auto;
}

.offer-modal-doc {
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 24px 28px;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.offer-modal-doc h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.25rem;
  color: #0f172a;
}

.offer-modal-doc .meta {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.offer-modal-doc h4 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.98rem;
  color: #0f766e;
}

.offer-modal-doc p {
  margin: 0 0 0.65rem;
  color: #334155;
}

.offer-modal-frame {
  display: none;
}

@media (max-width: 720px) {
  .offer-modal {
    padding: 0;
  }
  .offer-modal-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .offer-modal-head {
    flex-direction: column;
  }
}
