:root {
  --bg: #ffffff;
  --ink: #10141f;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --green: #08b976;
  --green-dark: #06945f;
  --green-soft: #dff8ee;
  --amber: #f1b84b;
  --graphite: #081016;
  --graphite-2: #101a22;
  --shadow: 0 22px 70px rgba(8, 16, 22, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 48px;
  color: #fff;
  background: rgba(8, 16, 22, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.header-action,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(140deg, #13d487, #048958);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nav {
  gap: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover,
.header-action:hover {
  color: #fff;
}

.header-action {
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(8, 185, 118, 0.55);
  border-radius: 8px;
  font-weight: 700;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 30%, rgba(8, 185, 118, 0.22), transparent 34%),
    linear-gradient(145deg, var(--graphite), var(--graphite-2) 55%, #071118);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg span {
  position: absolute;
  display: block;
  border: 1px solid rgba(8, 185, 118, 0.18);
  transform: rotate(-18deg);
}

.hero-bg span:nth-child(1) {
  width: 520px;
  height: 520px;
  left: 40%;
  top: 80px;
  border-radius: 50%;
}

.hero-bg span:nth-child(2) {
  width: 840px;
  height: 1px;
  left: 24%;
  top: 315px;
  background: linear-gradient(90deg, transparent, rgba(8, 185, 118, 0.38), transparent);
}

.hero-bg span:nth-child(3) {
  width: 320px;
  height: 320px;
  right: 12%;
  bottom: -140px;
  border-radius: 40px;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 56px 48px 34px;
}

.hero-copy {
  align-self: center;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.25vw, 64px);
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #08c77d, var(--green-dark));
  box-shadow: 0 16px 38px rgba(8, 185, 118, 0.28);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.button.line {
  color: var(--green-dark);
  background: #fff;
  border: 1px solid rgba(8, 185, 118, 0.35);
  box-shadow: none;
}

.button.full {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 700px;
  margin-top: 28px;
}

.trust-row span {
  padding: 13px 18px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 14px;
}

.trust-row b {
  display: block;
  color: #fff;
  font-size: 17px;
  margin-bottom: 4px;
}

.exchange-panel {
  align-self: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-currency-top {
  margin-bottom: 16px;
}

.currency-chips.panel-currency-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.panel-currency-chips .currency-chip {
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 760;
}

.panel-currency-chips .currency-chip.active {
  color: #09130f;
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}

.panel-currency-chips .currency-chip.disabled {
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.035);
}

.panel-currency-chips .currency-dot {
  display: none;
}

.rate-spotlight {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.panel-label {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rate-spotlight strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.status-dot {
  align-self: flex-start;
  position: relative;
  padding-left: 16px;
  color: #d8f6e9;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 999px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  padding: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.mode-button {
  height: 44px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
}

.mode-button.active {
  color: #09130f;
  background: #fff;
}

.currency-controls {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin-bottom: 14px;
}

.asset-controls {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin-bottom: 16px;
}

.currency-controls label,
.asset-controls label {
  display: grid;
  gap: 8px;
}

.currency-controls span,
.asset-controls span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 760;
}

.currency-controls select,
.asset-controls select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  outline: 0;
  font-size: 14px;
  font-weight: 760;
}

.currency-controls select option,
.asset-controls select option {
  color: #111;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.calculator label {
  display: grid;
  gap: 8px;
}

.calculator label > span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 760;
}

.input-line {
  display: flex;
  align-items: center;
  height: 62px;
  min-height: 62px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.input-line input,
.input-line output {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 18px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 20px;
  font-weight: 760;
}

.input-line output {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-line span {
  display: flex;
  flex: 0 0 86px;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 100%;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  outline: 0;
  font-size: 18px;
  font-weight: 820;
}

.input-line input {
  appearance: textfield;
}

.input-line input::-webkit-outer-spin-button,
.input-line input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.swap-button {
  display: grid;
  width: 64px;
  height: 62px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  cursor: pointer;
}

.calc-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.55;
}

.deal-route {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(8, 185, 118, 0.1);
  border: 1px solid rgba(8, 185, 118, 0.24);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.deal-route strong {
  color: #fff;
  font-size: 14px;
}

.minimum-alert {
  margin-top: 14px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.minimum-alert.ready {
  color: #d8f6e9;
  background: rgba(8, 185, 118, 0.12);
  border-color: rgba(8, 185, 118, 0.28);
}

.exchange-next {
  margin-top: 14px;
}

.section-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 48px;
}

.currency-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.currency-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.currency-chip.active {
  border-color: rgba(8, 185, 118, 0.55);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.currency-chip.disabled {
  cursor: default;
  color: var(--muted);
  background: #f6f8fa;
}

.currency-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #1474a5);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.work-section,
.rates-section,
.faq-section {
  padding: 64px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.72fr);
  gap: 56px;
  align-items: start;
}

.work-section h2,
.rates-section h2,
.faq-section h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.steps article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps article span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  font-weight: 900;
}

.steps h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.steps article p {
  grid-column: 2;
}

.steps p,
.faq-section p,
.section-head p {
  color: var(--muted);
  line-height: 1.6;
}

.deal-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.09);
}

.exchange-flow {
  scroll-margin-top: 96px;
}

.deal-card h2 {
  font-size: 28px;
}

.deal-card > p {
  margin: -6px 0 4px;
  color: var(--muted);
  line-height: 1.5;
}

.step-kicker {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-intro {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.5;
}

.flow-intro strong {
  color: var(--ink);
}

.card-step,
.payment-step,
.received-step,
.exchange-form {
  display: grid;
  gap: 14px;
}

.deal-mode-note,
.deal-next {
  padding: 14px;
  color: #15533d;
  background: var(--green-soft);
  border: 1px solid rgba(8, 185, 118, 0.24);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.deal-details {
  display: grid;
  gap: 12px;
}

.deal-details div {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-details span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.deal-details strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.deal-next {
  color: #344054;
  background: #f8fafc;
  border-color: var(--line);
}

.exchange-form label {
  display: grid;
  gap: 8px;
}

.exchange-form label > span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.exchange-form input,
.exchange-form textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.exchange-form input {
  height: 46px;
  padding: 0 13px;
}

.exchange-form textarea {
  min-height: 82px;
  padding: 12px 13px;
  resize: vertical;
}

.exchange-form input:focus,
.exchange-form textarea:focus {
  border-color: rgba(8, 185, 118, 0.75);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.exchange-form input.invalid,
.exchange-form textarea.invalid {
  border-color: #f04438;
  box-shadow: 0 0 0 3px #fee4e2;
}

.exchange-form input[readonly] {
  color: #344054;
  background: #f7f9fb;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field-error {
  min-height: 17px;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.card-brand-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.card-brand-preview.known {
  color: #15533d;
  background: var(--green-soft);
  border-color: rgba(8, 185, 118, 0.28);
}

.card-brand-preview.warning {
  color: #7a2e0e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.card-brand-logo,
.card-brand-bank {
  display: grid;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 9px;
  color: #fff;
  background: #344054;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-brand-logo.visa {
  background: #1434cb;
}

.card-brand-logo.mastercard {
  background: linear-gradient(90deg, #eb001b 0 50%, #f79e1b 50%);
}

.card-brand-logo.mir {
  background: #0f8f72;
}

.card-brand-logo.amex {
  background: #2e77bc;
}

.card-brand-logo.unionpay {
  background: #b51f34;
}

.card-brand-bank {
  color: #10141f;
  background: #fff;
  border: 1px solid rgba(16, 20, 31, 0.14);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-line {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.payment-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-head span,
.wallet-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.payment-head strong {
  font-size: 30px;
  line-height: 1;
}

.status-pill {
  padding: 8px 12px;
  color: #15533d;
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.expired {
  color: #8a261f;
  background: #fff0ed;
}

.wallet-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #101820;
  border-radius: 8px;
}

.wallet-box span {
  color: rgba(255, 255, 255, 0.68);
}

.wallet-box strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.55;
}

.flow-status {
  padding: 14px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.flow-status.error {
  color: #8a261f;
  background: #fff0ed;
  border-color: #ffd0c7;
}

.received-step {
  place-items: center;
  padding: 28px 12px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 50%;
  font-size: 31px;
  font-weight: 900;
}

.received-step h3 {
  font-size: 24px;
}

.received-step p {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.55;
}

.rates-section {
  background: #f7f9fb;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.rate-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rate-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.rate-table th,
.rate-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.rate-table th {
  color: #667085;
  background: #fbfcfd;
  font-size: 13px;
  font-weight: 850;
}

.rate-table td {
  font-size: 15px;
}

.rate-table tr:last-child td {
  border-bottom: 0;
}

.rate-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 54px;
}

.faq-section h2 {
  margin-bottom: 14px;
}

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

details {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 24px;
  }

  .nav {
    display: none;
  }

  .hero-content,
  .two-column,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .section-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .exchange-panel {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-action {
    width: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .hero-content {
    padding: 52px 16px 34px;
    gap: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-actions,
  .trust-row,
  .form-grid,
  .payment-head,
  .calculator,
  .currency-controls,
  .asset-controls,
  .panel-currency-chips {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .trust-row {
    display: grid;
  }

  .calculator {
    display: grid;
  }

  .swap-button {
    width: 100%;
  }

  .rate-spotlight {
    display: grid;
  }

  .rate-spotlight strong {
    font-size: 28px;
  }

  .section-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .work-section,
  .rates-section,
  .faq-section {
    padding: 48px 0;
  }

  .deal-card {
    padding: 22px;
  }

  .steps article {
    grid-template-columns: 40px 1fr;
  }

  .steps article span {
    width: 40px;
    height: 40px;
  }
}
