:root {
  --ink: #101820;
  --muted: #60707c;
  --line: #d9e2dd;
  --paper: #eef3f0;
  --card: #ffffff;
  --green: #16a37d;
  --green-dark: #08705d;
  --mint: #88e8cf;
  --gold: #d7b76d;
  --blue: #111d2f;
  --navy: #07111f;
  --panel: #0e1b2c;
  --danger: #b0413e;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(8, 18, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef3f0 0%, #f8faf8 36%, #eef3f0 100%);
  line-height: 1.5;
}

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

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

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(136, 232, 207, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(22, 163, 125, 0.98), rgba(9, 42, 63, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.logo-mark span {
  display: block;
  width: 22px;
  height: 16px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--mint);
  transform: skew(-18deg) rotate(-8deg);
}

.brand-text {
  display: grid;
  line-height: 1.02;
}

.brand-text strong {
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-text small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.76);
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
}

.navlinks a:hover,
.navlinks a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

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

.btn,
.btn-ghost,
.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.btn {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(22, 163, 125, 0.25);
}

.btn:hover {
  background: var(--green-dark);
}

.btn-ghost {
  border-color: rgba(16, 24, 32, 0.14);
  background: #ffffff;
  color: var(--ink);
}

.header .btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-app {
  border-color: rgba(136, 232, 207, 0.35);
  background: rgba(136, 232, 207, 0.1);
  color: #ffffff;
}

.btn-app:hover {
  background: rgba(136, 232, 207, 0.18);
}

.mobile-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0 12px;
  font-weight: 850;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 42px;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.9)),
    radial-gradient(circle at 72% 18%, rgba(22, 163, 125, 0.34), transparent 34%),
    radial-gradient(circle at 12% 80%, rgba(215, 183, 109, 0.22), transparent 30%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.78fr);
  gap: 34px;
  align-items: start;
}

h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.3vw, 50px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badges span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(136, 232, 207, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 125, 0.16);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 660px;
}

.trust-chip {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.trust-chip strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
}

.trust-chip span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.exchange-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(136, 232, 207, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 34, 54, 0.98), rgba(8, 18, 32, 0.98));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.exchange-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(136, 232, 207, 0.14), transparent 36%);
}

.exchange-card-inner {
  position: relative;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.card-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(136, 232, 207, 0.35);
  border-radius: var(--radius);
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.input-stack {
  display: grid;
  gap: 12px;
}

.field {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 10px;
}

.field input,
.field select,
.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.request-form textarea {
  padding-top: 12px;
}

select[data-currency],
.request-form select {
  appearance: auto;
  -webkit-appearance: menulist;
  color-scheme: light;
}

select[data-currency] option,
.request-form select option {
  background: #ffffff;
  color: var(--ink);
}

.exchange-card .field input {
  border-color: rgba(255, 255, 255, 0.12);
  background: #07111f;
  color: #ffffff;
  font-weight: 800;
}

.exchange-card .field select {
  border-color: rgba(255, 255, 255, 0.2);
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.swapline {
  display: flex;
  justify-content: center;
  margin: -4px 0;
}

.swapline button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(136, 232, 207, 0.3);
  border-radius: 999px;
  background: rgba(136, 232, 207, 0.12);
  color: var(--mint);
  cursor: pointer;
  font-size: 20px;
}

.calc-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.metric span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 20px;
}

.status,
.form-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.status {
  min-height: 20px;
}

.form-note {
  margin: 12px 0 0;
}

.section {
  padding: 72px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.rate-board,
.content-card,
.request-form,
.step,
.currency {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(8, 18, 31, 0.08);
}

.rate-board {
  overflow: hidden;
}

.rate-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfb;
}

.rate-toolbar strong {
  font-size: 18px;
}

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

.rates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.rate-tile {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rate-tile:nth-child(4n) {
  border-right: 0;
}

.pair {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rate-value {
  margin: 8px 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.rate-meta {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.workflow {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.step {
  padding: 22px;
}

.step-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 15px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--mint);
  font-weight: 900;
}

.step h3,
.panel h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.step p,
.panel p {
  margin: 0;
  color: var(--muted);
}

.panel {
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #142238, #0b1728);
  color: #ffffff;
}

.panel p {
  color: rgba(255, 255, 255, 0.72);
}

.panel-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-row span {
  color: rgba(255, 255, 255, 0.6);
}

.panel-row strong {
  color: #ffffff;
}

.currency-cloud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.currency {
  padding: 18px;
  text-align: center;
}

.currency strong {
  display: block;
  font-size: 20px;
}

.currency span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: start;
}

.request-form {
  padding: 24px;
}

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

.request-form label {
  display: grid;
  gap: 7px;
  color: #405264;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-form textarea {
  min-height: 124px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.subhero {
  padding: 48px 0 36px;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.98), rgba(14, 32, 51, 0.94));
  color: #ffffff;
}

.subhero h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 56px);
}

.subhero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin-top: 0;
  letter-spacing: 0;
}

.content-card p,
.content-card li {
  color: #4b5d70;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.app-shell {
  min-height: calc(100vh - 70px);
  padding: 42px 0 72px;
  background: var(--navy);
  color: #ffffff;
}

.app-frame {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.app-sidebar {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #0e2136;
}

.app-main {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.app-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8e4ec;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer {
  padding: 44px 0 28px;
  background: var(--navy);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 24px;
}

.footer a {
  color: #d9e6ef;
}

.footer p,
.footer li {
  color: #b9c6d2;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-line {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #d4e1e9;
  font-size: 13px;
}

.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(7, 18, 31, 0.2);
}

.cookie p {
  margin: 0;
  color: #445669;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .workflow,
  .split,
  .app-frame {
    grid-template-columns: 1fr;
  }

  .rates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rate-tile:nth-child(2n) {
    border-right: 0;
  }

  .rate-tile:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .trust-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .currency-cloud {
    grid-template-columns: repeat(3, 1fr);
  }

  .navlinks {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .field-row,
  .calc-output,
  .steps,
  .form-grid,
  .legal-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

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

  .rate-tile,
  .rate-tile:nth-child(4n) {
    border-right: 0;
  }

  .currency-cloud {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

  .cookie {
    display: block;
  }

  .cookie button {
    width: 100%;
    margin-top: 10px;
  }
}
