:root {
  --fx-ink: #07111f;
  --fx-muted: #64707d;
  --fx-blue: #00419f;
  --fx-cyan: #00a8ea;
  --fx-green: #71eb30;
  --fx-lime-soft: #e7fbdc;
  --fx-orange: #f59e0b;
  --fx-line: #dce6ef;
  --fx-soft: #f6f9fc;
  --fx-white: #ffffff;
  --fx-shadow: 0 26px 70px rgba(7, 17, 31, .13);
  --fx-radius: 8px;
}

.forex-redesign {
  color: var(--fx-ink);
  background: #f8fafc;
}

.fx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 7vw, 104px) 0 44px;
  background:
    linear-gradient(90deg, rgba(0, 65, 159, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 65, 159, .04) 1px, transparent 1px),
    linear-gradient(112deg, #ffffff 0 54%, #edf9ff 54% 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.fx-hero::before {
  position: absolute;
  right: -160px;
  top: -160px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(0, 168, 234, .22);
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(113, 235, 48, .24), rgba(0, 168, 234, .18), rgba(245, 158, 11, .12), transparent);
  content: "";
}

.fx-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .82fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.fx-kicker,
.fx-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fx-blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fx-kicker {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(0, 65, 159, .12);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 17, 31, .06);
}

.fx-kicker img {
  width: 15px;
  height: 15px;
  filter: invert(22%) sepia(93%) saturate(1738%) hue-rotate(207deg) brightness(84%) contrast(105%);
}

.fx-hero h1,
.fx-section h2 {
  margin: 16px 0 18px;
  color: var(--fx-ink);
  letter-spacing: 0;
}

.fx-hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .9;
}

.fx-hero p,
.fx-section-copy p,
.fx-example-grid > div:first-child p,
.fx-flow-copy p,
.fx-risk-panel p {
  max-width: 710px;
  margin: 0;
  color: var(--fx-muted);
  font-size: 16px;
  line-height: 1.78;
}

.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 1000;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.fx-button::after {
  width: 9px;
  height: 9px;
  margin-left: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.fx-button:hover {
  transform: translateY(-2px);
}

.fx-button-primary {
  color: #09220a;
  background: var(--fx-green);
  box-shadow: 0 18px 38px rgba(113, 235, 48, .25);
}

.fx-button-secondary {
  color: var(--fx-ink);
  border-color: rgba(7, 17, 31, .12);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 32px rgba(7, 17, 31, .08);
}

.fx-terminal {
  position: relative;
}

.fx-terminal > img {
  width: 100%;
  border: 1px solid rgba(220, 230, 239, .86);
  border-radius: var(--fx-radius);
  background: #fff;
  box-shadow: var(--fx-shadow);
}

.fx-price-board {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(370px, calc(100% - 44px));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(220, 230, 239, .9);
  border-radius: var(--fx-radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 50px rgba(7, 17, 31, .13);
  backdrop-filter: blur(12px);
}

.fx-pair-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--fx-radius);
  color: var(--fx-muted);
  background: #f6f9fc;
  font-size: 12px;
  font-weight: 900;
}

.fx-pair-row.is-active {
  color: #0b2b0d;
  background: var(--fx-lime-soft);
}

.fx-pair-row strong {
  color: var(--fx-ink);
  font-size: 18px;
  text-align: right;
}

.fx-pair-row em {
  font-style: normal;
  text-align: right;
}

.fx-subnav {
  position: sticky;
  top: 111px;
  z-index: 12;
  border-top: 1px solid rgba(220, 230, 239, .7);
  border-bottom: 1px solid rgba(220, 230, 239, .86);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
}

.fx-subnav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.fx-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #2d3948;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.fx-subnav a:hover {
  color: #fff;
  background: var(--fx-ink);
}

.fx-section {
  padding: clamp(64px, 7vw, 104px) 0;
}

.fx-conditions,
.fx-pairs-section,
.fx-risk-section {
  background: #fff;
}

.fx-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fx-metric-grid article,
.fx-pair-cards article,
.fx-why-grid article,
.fx-flow-steps article,
.fx-ticket,
.fx-risk-panel {
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(7, 17, 31, .06);
}

.fx-metric-grid article {
  min-height: 190px;
  padding: 24px;
}

.fx-metric-grid span,
.fx-flow-steps span {
  display: block;
  color: var(--fx-muted);
  font-size: 12px;
  font-weight: 900;
}

.fx-metric-grid strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--fx-blue);
  font-size: clamp(36px, 4vw, 54px);
  line-height: .95;
}

.fx-metric-grid p,
.fx-pair-cards p,
.fx-why-grid p,
.fx-flow-steps p,
.fx-ticket p {
  margin: 0;
  color: var(--fx-muted);
  font-size: 14px;
  line-height: 1.72;
}

.fx-split,
.fx-example-grid,
.fx-flow-layout {
  display: grid;
  grid-template-columns: minmax(280px, .38fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.fx-section-copy {
  position: sticky;
  top: 178px;
}

.fx-section h2 {
  max-width: 650px;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.06;
}

.fx-pair-cards {
  display: grid;
  gap: 16px;
}

.fx-pair-cards article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
}

.fx-pair-cards img {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: var(--fx-radius);
  background: var(--fx-soft);
}

.fx-pair-cards h3,
.fx-why-grid h3,
.fx-flow-steps h3 {
  margin: 0 0 9px;
  color: var(--fx-ink);
  font-size: 21px;
  line-height: 1.2;
}

.fx-pair-cards p {
  grid-column: 2;
}

.fx-pair-cards div {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--fx-line);
}

.fx-pair-cards div span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--fx-blue);
  background: rgba(0, 168, 234, .08);
  font-size: 12px;
  font-weight: 1000;
}

.fx-example-section,
.fx-flow-section {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(135deg, #07111f, #07367a 58%, #0a5c80);
  background-size: 46px 46px, 46px 46px, auto;
}

.fx-example-section .fx-label,
.fx-example-section h2,
.fx-example-section p,
.fx-flow-section .fx-label,
.fx-flow-section h2,
.fx-flow-section p {
  color: #fff;
}

.fx-example-section .fx-example-grid > div:first-child p,
.fx-flow-copy p {
  color: rgba(255, 255, 255, .74);
}

.fx-ticket {
  overflow: hidden;
  color: var(--fx-ink);
}

.fx-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  color: #09220a;
  background: var(--fx-lime-soft);
}

.fx-ticket-head span {
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.fx-ticket-head strong {
  font-size: 28px;
}

.fx-ticket dl {
  margin: 0;
}

.fx-ticket dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .42fr);
  gap: 20px;
  padding: 18px 24px;
  border-top: 1px solid var(--fx-line);
}

.fx-ticket dt {
  color: var(--fx-muted);
  font-weight: 900;
}

.fx-ticket dd {
  margin: 0;
  color: var(--fx-ink);
  font-weight: 1000;
  text-align: right;
}

.fx-ticket p {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--fx-line);
}

.fx-why-section {
  background: var(--fx-soft);
}

.fx-section-title {
  max-width: 760px;
  margin-bottom: 30px;
}

.fx-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fx-why-grid article {
  min-height: 210px;
  padding: 24px;
}

.fx-flow-copy .fx-button {
  margin-top: 28px;
}

.fx-flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fx-flow-steps article {
  min-height: 210px;
  padding: 24px;
  color: var(--fx-ink);
}

.fx-flow-steps span {
  color: var(--fx-orange);
  margin-bottom: 14px;
}

.fx-risk-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.fx-risk-panel img {
  width: 58px;
  height: 58px;
  padding: 14px;
  border-radius: var(--fx-radius);
  background: var(--fx-soft);
}

.fx-risk-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
}

@media (max-width: 1120px) {
  .fx-hero-grid,
  .fx-split,
  .fx-example-grid,
  .fx-flow-layout,
  .fx-risk-panel {
    grid-template-columns: 1fr;
  }

  .fx-section-copy {
    position: static;
  }

  .fx-metric-grid,
  .fx-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fx-hero {
    padding: 54px 0 26px;
  }

  .fx-hero h1 {
    font-size: 54px;
  }

  .fx-terminal {
    display: grid;
    gap: 12px;
  }

  .fx-price-board {
    position: static;
    width: 100%;
  }

  .fx-subnav {
    position: static;
  }

  .fx-section {
    padding: 58px 0;
  }

  .fx-section h2 {
    font-size: 32px;
  }

  .fx-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fx-button {
    width: 100%;
  }

  .fx-metric-grid,
  .fx-flow-steps,
  .fx-why-grid {
    grid-template-columns: 1fr;
  }

  .fx-pair-cards article {
    grid-template-columns: 1fr;
  }

  .fx-pair-cards p {
    grid-column: auto;
  }

  .fx-ticket dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fx-ticket dd {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .fx-hero h1 {
    font-size: 44px;
  }

  .fx-pair-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 12px;
  }

  .fx-pair-row strong,
  .fx-pair-row em {
    text-align: left;
  }
}
