:root {
  --bg: #070b12;
  --bg-2: #0d1420;
  --surface: #121a28;
  --surface-2: #182233;
  --line: rgba(173, 196, 230, 0.12);
  --line-strong: rgba(173, 196, 230, 0.22);
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --faint: #6d7b91;
  --blue: #2962ff;
  --blue-2: #4d82ff;
  --cyan: #3ddcff;
  --amber: #f2a33a;
  --green: #26a69a;
  --red: #ef5350;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --header-h: 72px;
  --max: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans SC", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font-family: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  z-index: 80;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

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

.promo {
  background: linear-gradient(90deg, #132044, #1a1630 40%, #24160e);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  color: #d7e0f2;
}

.promo b {
  color: var(--amber);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 18, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}

.brand picture {
  display: block;
  line-height: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-desk {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

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

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  position: relative;
}

.lang-btn,
.ghost,
.nav-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #151d2c;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  min-width: 200px;
  max-height: min(70vh, 440px);
  overflow: auto;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.lang[data-open="true"] .lang-menu {
  display: grid;
}

.lang-menu a {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.lang-menu a:hover,
.lang-menu a.is-active {
  background: rgba(41, 98, 255, 0.16);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #4d82ff, #2962ff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(41, 98, 255, 0.35);
}

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

.btn-amber {
  background: linear-gradient(180deg, #ffc166, #f2a33a);
  color: #1a1206;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  padding: 0;
}

.drawer {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 110px);
  padding: 36px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(41, 98, 255, 0.28), transparent 58%),
    radial-gradient(720px 380px at 12% 86%, rgba(61, 220, 255, 0.12), transparent 52%),
    radial-gradient(900px 500px at 48% 48%, rgba(242, 163, 58, 0.07), transparent 62%),
    #070b12;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 18, 0.55) 0%, rgba(7, 11, 18, 0.14) 42%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 14px 0 12px;
  font-weight: 800;
}

.rotator {
  display: grid;
  color: #8eb6ff;
}

.rotator span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.45s ease;
  pointer-events: none;
}

.rotator span.is-on {
  opacity: 1;
  transform: none;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin: 18px 0 26px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-note {
  color: var(--muted);
  font-size: 14px;
  max-width: 540px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.hero-stage {
  position: relative;
}

.hero-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(61, 220, 255, 0.08);
  background: #070c14;
}

.term {
  background: #0a1018;
  color: var(--text);
  font-size: 12px;
  direction: ltr;
  text-align: left;
}

.term-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #0e1624;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.term-dots {
  display: flex;
  gap: 5px;
}

.term-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d4a5c;
}

.term-dots i:nth-child(1) { background: #ef5350; }
.term-dots i:nth-child(2) { background: #f2a33a; }
.term-dots i:nth-child(3) { background: #26a69a; }

.term-title {
  flex: 1;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.term-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
}

.term-body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 124px;
  min-height: 340px;
}

.term-scan,
.term-flow {
  background: #0c141f;
  overflow: hidden;
}

.term-scan {
  border-right: 1px solid var(--line);
}

.term-flow {
  border-left: 1px solid var(--line);
}

.term-scan header,
.term-chart header,
.term-flow header {
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.term-scan ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.term-scan li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: baseline;
  padding: 7px 10px;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(173, 196, 230, 0.06);
}

.term-scan .px {
  color: var(--muted);
}

.term-scan .px i {
  margin-left: 6px;
  font-style: normal;
}

.term-scan li b {
  font-size: 12px;
  color: var(--text);
}

.term-scan .tag {
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
}

.term-scan .tag.up,
.term .up {
  color: var(--green);
}

.term-scan .tag.down,
.term .down {
  color: var(--red);
}

.term-chart {
  position: relative;
  background:
    radial-gradient(800px 240px at 50% 80%, rgba(41, 98, 255, 0.14), transparent 62%),
    #070c14;
}

.term-chart svg {
  width: 100%;
  height: 268px;
  display: block;
}

.term-hud {
  position: absolute;
  top: 38px;
  left: 12px;
  z-index: 1;
  font-family: ui-monospace, Consolas, monospace;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.term-hud b {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.term-signal {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  background: rgba(12, 18, 28, 0.86);
  border: 1px solid rgba(38, 166, 154, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  max-width: calc(100% - 24px);
}

.term-signal b {
  display: block;
}

.fp-legend {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}

.fp-row {
  display: grid;
  grid-template-columns: 1fr 46px 1fr;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9px;
}

.fp-bid,
.fp-ask {
  height: 10px;
  border-radius: 1px;
  min-width: 4px;
}

.fp-bid {
  background: rgba(38, 166, 154, 0.88);
  justify-self: end;
}

.fp-ask {
  background: rgba(239, 83, 80, 0.88);
}

.fp-px {
  text-align: center;
  color: var(--muted);
}

.fp-row.is-last .fp-px {
  color: var(--cyan);
  font-weight: 700;
}

.fp-row.is-last {
  background: rgba(61, 220, 255, 0.06);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.ticker-wrap {
  border-block: 1px solid var(--line);
  background: rgba(18, 26, 40, 0.75);
  overflow: hidden;
}

.ticker {
  display: flex;
  gap: 36px;
  padding: 12px 0;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 13px;
  color: var(--muted);
}

.ticker span b {
  color: var(--text);
  margin-right: 8px;
}

.up { color: var(--green); }
.down { color: var(--red); }
.ticker .up { color: var(--green); }
.ticker .down { color: var(--red); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 92px 0;
}

#how {
  scroll-margin-top: 88px;
}

.section.alt {
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(41, 98, 255, 0.12), transparent 60%),
    var(--bg-2);
}

.kicker {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 8px 0 14px;
}

.sub {
  color: var(--muted);
  max-width: 640px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media picture {
  display: block;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.feature-list div {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.feature-list h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.how-grid article {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px 20px;
}

.how-n {
  display: block;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 10px;
}

.how-grid h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.how-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.engine-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 36px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.race-row {
  display: grid;
  grid-template-columns: 64px 1fr 78px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
}

.bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
}

.bar-track span.up { background: linear-gradient(90deg, #1b5e56, var(--green)); }
.bar-track span.down { background: linear-gradient(90deg, #6d2b2b, var(--red)); }

.stat-cards {
  display: grid;
  gap: 12px;
}

.stat-card {
  background: linear-gradient(180deg, rgba(41, 98, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.stat-card b {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.pricing-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.billing {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin: 18px auto 0;
}

.billing button {
  border: 0;
  background: transparent;
  color: var(--muted);
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.billing button.is-active {
  background: #fff;
  color: #111;
}

.save-pill {
  color: var(--amber);
  font-size: 12px;
  margin-left: 4px;
}

.free-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.free-band b {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.free-band p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr 1fr;
  gap: 14px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan.featured {
  background:
    linear-gradient(180deg, rgba(41, 98, 255, 0.18), rgba(18, 26, 40, 0.9));
  border-color: rgba(77, 130, 255, 0.55);
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(41, 98, 255, 0.18);
}

.plan .name {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 10px 0 2px;
}

.price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.plan-note {
  color: var(--faint);
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 14px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  color: #c9d4e6;
  font-size: 13.5px;
}

.plan li {
  padding-left: 18px;
  position: relative;
}

.plan li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  position: absolute;
  left: 0;
  top: 7px;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 28px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

.compare th,
.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare th:first-child,
.compare td:first-child {
  text-align: start;
  color: var(--muted);
}

.compare thead th {
  background: #101826;
  position: sticky;
  top: 0;
}

.yes {
  color: var(--green);
  font-weight: 800;
}

.no {
  color: #3d4a5e;
}

.markets {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: end;
}

.markets picture {
  position: absolute;
  inset: 0;
  display: block;
}

.markets img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.markets .copy {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 18, 0.92) 45%);
  padding: 80px 36px 36px;
}

.device-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}

.brokers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.broker {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 96px;
}

.broker b {
  display: block;
  margin-bottom: 6px;
}

.broker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  padding: 18px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-q span {
  color: var(--muted);
}

.faq-a {
  display: none;
  color: var(--muted);
  padding: 0 8px 18px;
  font-size: 15px;
}

.faq-item[data-open="true"] .faq-a {
  display: block;
}

.cta-band {
  margin: 20px 0 80px;
  border-radius: 28px;
  padding: 42px 36px;
  background:
    linear-gradient(120deg, rgba(41, 98, 255, 0.2), rgba(242, 163, 58, 0.12)),
    var(--surface);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--faint);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.gate.is-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  min-height: 100%;
}

.gate-bg {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url("./assets/hero-cover.webp") type("image/webp"),
    url("./assets/hero-cover.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(1.1);
  transform: scale(1.04);
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 32px));
  background: rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.gate-card picture {
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
}

.gate-card img.logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 0;
}

.progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 22px;
}

.progress span {
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--amber));
  animation: load 1.2s ease-in-out infinite;
}

@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(380%); }
}

.gate-note {
  color: var(--muted);
  font-size: 14px;
}

body.nav-open {
  overflow: hidden;
}

[dir="rtl"] .hero::after {
  background: linear-gradient(-90deg, rgba(7, 11, 18, 0.55) 0%, rgba(7, 11, 18, 0.14) 42%, transparent 72%);
}

[dir="rtl"] .plan li {
  padding-left: 0;
  padding-right: 18px;
}

[dir="rtl"] .plan li::before {
  left: auto;
  right: 0;
}

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

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .engine-grid,
  .device-grid,
  .plans,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .plan.featured {
    transform: none;
  }

  .hero-bg {
    opacity: 1;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(7, 11, 18, 0.35), rgba(7, 11, 18, 0.08) 40%, transparent);
  }

  .nav-desk {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .drawer {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
  }

  .drawer[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 88vw);
    background: #101826;
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 16px;
  }

  .drawer-panel a {
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  [dir="rtl"] .drawer-panel {
    right: auto;
    left: 0;
  }

  .term-flow {
    display: none;
  }

  .term-body {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .free-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
  }

  .brokers {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap,
  .header-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  h1 {
    font-size: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .term-body {
    grid-template-columns: 1fr;
  }

  .term-scan {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 188px;
    overflow: auto;
  }

  .term-chart svg {
    height: 220px;
  }

  .btn.header-cta {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .brokers {
    grid-template-columns: 1fr;
  }
}
