:root {
  --ink: #152033;
  --muted: #5d6878;
  --line: #dbe4ee;
  --soft: #f5f8fb;
  --paper: #ffffff;
  --navy: #10233f;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #17845b;
  --amber: #b45309;
  --red: #b42318;
  --shadow: 0 18px 44px rgba(16, 35, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #edf3f8;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
canvas {
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #67e8f9;
  font-size: 13px;
}

.brand-text {
  font-size: 22px;
}

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

.main-nav a {
  color: #25324a;
  padding: 10px 11px;
  border-radius: 7px;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #edf5ff;
  text-decoration: none;
}

.main-nav .nav-cta {
  background: var(--teal);
  color: #fff;
  margin-left: 6px;
}

.main-nav .nav-cta:hover {
  background: #0d665f;
}

.nav-toggle {
  display: none;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 700;
}

.hero {
  background: linear-gradient(135deg, #10233f 0%, #17436a 58%, #0f766e 100%);
  color: #fff;
  padding: 46px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 26px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: #d8f7ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 14px;
  font-size: 44px;
}

h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

p {
  margin: 0 0 14px;
}

.hero-copy p {
  color: #d7e6f7;
  font-size: 18px;
  max-width: 620px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
}

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

.hero-stat span {
  color: #dbeafe;
  font-size: 13px;
}

.converter-shell {
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.converter-shell h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.converter-shell p {
  color: var(--muted);
  font-size: 14px;
}

.converter {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.converter-large {
  grid-template-columns: 1fr 1.2fr auto 1.2fr;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd9e5;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue);
}

.swap-button,
.button {
  min-height: 46px;
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.swap-button:hover,
.button:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.button.secondary {
  background: #eaf1f8;
  color: var(--navy);
}

.result-panel {
  grid-column: 1 / -1;
  border-radius: 8px;
  background: #f3f7fb;
  border: 1px solid var(--line);
  padding: 14px;
  min-height: 92px;
}

.result-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.result-panel strong {
  display: block;
  font-size: 28px;
  color: var(--navy);
}

.result-panel small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-row button {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  border-radius: 7px;
  padding: 7px 10px;
  cursor: pointer;
}

.section {
  padding: 44px 0;
}

.section.alt {
  background: #fff;
}

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

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.tool-card,
.rate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.04);
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.rate-card {
  display: grid;
  gap: 8px;
}

.rate-card a {
  color: var(--navy);
  font-weight: 800;
}

.rate-card strong {
  font-size: 22px;
}

.rate-card small,
.muted {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ecfdf3;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

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

.notice {
  border-left: 4px solid var(--amber);
  background: #fff8ed;
  border-radius: 8px;
  padding: 14px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f3f7fb;
  color: #263650;
  font-size: 13px;
}

tbody tr:hover {
  background: #fbfdff;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 34px 0;
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p {
  color: #dbeafe;
  max-width: 780px;
  font-size: 17px;
}

.breadcrumbs {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs span {
  margin: 0 6px;
}

.pair-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.chart-card canvas {
  width: 100%;
  min-height: 280px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.faq-list p {
  margin-top: 10px;
  color: var(--muted);
}

.directory-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 16px;
}

.currency-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.code-badge {
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf7f6;
  color: var(--teal);
  font-weight: 800;
}

.form-card {
  display: grid;
  gap: 12px;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 28px;
}

.site-footer {
  background: #0f172a;
  color: #dbeafe;
  padding: 36px 0 18px;
}

.site-footer a {
  display: block;
  color: #dbeafe;
  margin: 6px 0;
}

.site-footer h2 {
  font-size: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 22px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand .brand-mark {
  background: #1e3a5f;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #b9c9de;
  font-size: 13px;
}

@media (max-width: 960px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .hero-grid,
  .pair-layout,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .converter,
  .converter-large {
    grid-template-columns: 1fr;
  }

  .swap-button {
    width: 100%;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    padding: 30px 0;
  }

  .hero-stats,
  .grid-2,
  .directory-controls {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 34px 0;
  }

  .section-head {
    display: block;
  }

  .result-panel strong {
    font-size: 23px;
  }

  .card img {
    display: none;
  }

  th,
  td {
    padding: 10px;
  }
}
