:root {
  color-scheme: light;
  --ink: #11201f;
  --muted: #5b6d69;
  --line: #d8e5e1;
  --soft: #eef8f5;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #0ea5e9;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(17, 32, 31, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfefd;
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(216, 229, 225, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.site-nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0 42px;
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
}

h3 {
  margin-bottom: 8px;
}

.converter-card,
.content-section article,
.legal-section,
.trust-strip div,
.pair-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.converter-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select {
  min-height: 48px;
  width: 100%;
  border: 1px solid #c9d9d5;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.22);
  outline-offset: 2px;
}

.currency-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}

.swap-button,
.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.swap-button {
  width: 52px;
  color: var(--brand-dark);
  background: var(--soft);
}

.primary-button {
  color: var(--white);
  background: var(--brand);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.result-box {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6fffa, #eff6ff);
}

.result-box span,
.result-box p,
.status-line,
.section-heading p,
.content-section p,
.site-footer {
  color: var(--muted);
}

.result-box strong {
  display: block;
  margin: 6px 0;
  color: var(--brand-dark);
  font-size: 2.4rem;
  line-height: 1.05;
}

.result-box p,
.status-line {
  margin-bottom: 0;
}

.trust-strip,
.pair-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.trust-strip div,
.pair-card,
.content-section article,
.legal-section {
  padding: 18px;
}

.trust-strip strong,
.pair-card strong {
  display: block;
  margin-bottom: 6px;
}

.trust-strip span,
.pair-card span {
  color: var(--muted);
}

.content-section {
  padding: 36px 0;
}

.section-heading {
  margin-bottom: 20px;
}

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

.pair-card {
  cursor: pointer;
  text-align: left;
}

.pair-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateY(-1px);
}

.legal-section {
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: #10201f;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #d7fffa;
}

.article-page {
  max-width: 780px;
  padding: 56px 0 30px;
}

.article-page h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.article-lede {
  color: var(--muted);
  font-size: 1.14rem;
  margin-bottom: 14px;
}

.legal-date {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 26px;
}

.article-toc {
  margin: 0 0 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.article-toc h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 22px;
}

.article-toc li {
  margin: 6px 0;
}

.article-toc a {
  color: var(--brand-dark);
  font-weight: 650;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-page section {
  margin-bottom: 30px;
}

.article-page section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.article-page section p {
  color: #334642;
  margin-bottom: 12px;
}

.article-page section p a,
.article-page section li a,
.legal-section p a,
.article-page .article-footer a {
  color: var(--brand-dark);
  font-weight: 650;
}

.article-page section p a:hover,
.legal-section p a:hover {
  text-decoration: underline;
}

.article-footer {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-footer h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.guide-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  transform: translateY(-1px);
}

.guide-card h3 {
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 2.4rem;
  }

  .currency-row,
  .trust-strip,
  .pair-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

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

  .article-page {
    padding-top: 40px;
  }
}
