/* Crossrate — website styles. Dark, typographic, no framework. */

:root {
  --bg:        #07090D;
  --surface:   #0E1118;
  --surface-2: #141924;
  --line:      #1E2532;
  --line-soft: #171D28;
  --text:      #E9EDF5;
  --muted:     #7E8798;
  --dim:       #59616F;
  --accent:    #E0A33E;
  --accent-dk: #B9812A;
  --up:        #35C58A;
  --down:      #FF6B7D;
  --radius:    14px;
  --maxw:      1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------------------------------------------------------------- ticker */

.ticker {
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  gap: 34px;
  padding: 9px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ticker__track::-webkit-scrollbar { display: none; }
.ticker__item { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.ticker__item b { font-weight: 600; letter-spacing: 0.02em; }
.ticker__item span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.ticker__item i { font-style: normal; font-size: 11.5px; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; font-size: 17px; }
.brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; margin-top: -2px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav__links a { color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 550; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #131007; }
.btn--primary:hover { background: #EFB457; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: #2B3444; background: var(--surface-2); }
.btn--sm { padding: 8px 15px; font-size: 13.5px; }

.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  position: absolute; left: 11px; width: 16px; height: 1.5px; background: var(--text); content: '';
}
.nav__toggle span { top: 19px; }
.nav__toggle span::before { top: -5px; left: 0; }
.nav__toggle span::after { top: 5px; left: 0; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 84px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.028em; font-weight: 660;
  margin: 0 0 20px;
}
.hero__lede { font-size: 17.5px; color: var(--muted); max-width: 52ch; margin: 0 0 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; }
.hero__stat { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 12px; background: var(--surface); }
.hero__stat b { display: block; font-size: 21px; font-weight: 640; letter-spacing: -0.01em; }
.hero__stat span { display: block; font-size: 11.5px; color: var(--dim); margin-top: 3px; }

/* board — the live pair panel in the hero */
.board {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  overflow: hidden;
}
.board__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
}
.board__title { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); font-style: normal; }
.chip.is-offline i { background: var(--dim); }

.board__row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px;
  align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
}
.board__row:last-child { border-bottom: 0; }
.board__pair { font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em; }
.board__pair span { display: block; font-size: 11.5px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.board__rate { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.board__chg { font-size: 12.5px; min-width: 62px; text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------------------------------------------------------------- sections */

.section { padding: 78px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 640; }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

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

.card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; background: var(--bg);
}
.section--alt .card { background: var(--surface-2); border-color: var(--line); }
.card__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(224, 163, 62, 0.12); color: var(--accent); margin-bottom: 16px;
}
.card__icon--cool { background: rgba(53, 197, 138, 0.12); color: var(--up); }
.card h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 620; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- screens strip */

.screens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.screen {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 18px; background: var(--surface); transition: border-color .15s, transform .15s;
}
.screen:hover { border-color: #2B3444; transform: translateY(-2px); }
.screen b { display: block; font-size: 15px; margin-bottom: 6px; font-weight: 620; }
.screen span { display: block; font-size: 13.5px; color: var(--muted); }
.screen em {
  display: inline-block; font-style: normal; font-size: 11px; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}

/* ---------------------------------------------------------------- rates table */

.tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.field {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 0 13px; height: 42px;
}
.field input, .field select {
  background: transparent; border: 0; outline: 0; color: var(--text);
  font: inherit; font-size: 14.5px; height: 100%; min-width: 0;
}
.field input::placeholder { color: var(--dim); }
.field select { cursor: pointer; }
.field select option { background: var(--surface-2); color: var(--text); }

.quotechips { display: flex; gap: 8px; flex-wrap: wrap; }
.quotechip {
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--muted); font: inherit; font-size: 13px; padding: 8px 14px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.quotechip:hover { color: var(--text); border-color: #2B3444; }
.quotechip.is-on { background: rgba(224, 163, 62, 0.14); border-color: rgba(224, 163, 62, 0.4); color: var(--accent); }

.table { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.table__head, .table__row {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 40px;
  gap: 14px; align-items: center; padding: 13px 18px;
}
.table__head {
  font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid var(--line-soft); font-weight: 600;
}
.table__row { border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .12s; }
.table__row:last-child { border-bottom: 0; }
.table__row:hover { background: var(--surface-2); }
.table__pair { display: flex; align-items: center; gap: 12px; }
.badge {
  width: 34px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.04em; color: var(--muted);
  flex: none;
}
.table__name b { display: block; font-size: 14.5px; font-weight: 600; }
.table__name span { display: block; font-size: 12px; color: var(--dim); }
.num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; text-align: right; }
.table__more { color: var(--dim); text-align: right; }
.table__empty { padding: 34px 18px; text-align: center; color: var(--dim); font-size: 14.5px; }

/* ---------------------------------------------------------------- modal */

.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(3, 4, 7, 0.72); backdrop-filter: blur(4px);
  padding: 24px; overflow-y: auto;
}
.modal.is-on { display: grid; place-items: center; }
.modal__box {
  width: 100%; max-width: 540px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.modal__head h3 { margin: 0; font-size: 19px; font-weight: 640; letter-spacing: -0.01em; }
.modal__head p { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.modal__close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; flex: none; }
.modal__close:hover { color: var(--text); border-color: #2B3444; }
.modal__body { padding: 20px 22px 24px; }
.modal__rate { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 34px; letter-spacing: -0.02em; }
.modal__chg { font-size: 14px; margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.modal__chart { width: 100%; height: 132px; margin: 18px 0 6px; display: block; }
.modal__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 12px; background: var(--surface-2); }
.stat span { display: block; font-size: 11px; color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; }
.stat b { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14.5px; margin-top: 4px; font-weight: 550; }
.modal__note { margin: 16px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.55; }

/* ---------------------------------------------------------------- about + support */

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.prose p { color: var(--muted); font-size: 16px; }
.prose p:first-child { margin-top: 0; }
.notice {
  border: 1px solid rgba(224, 163, 62, 0.28); background: rgba(224, 163, 62, 0.07);
  border-radius: 12px; padding: 16px 18px; margin-top: 24px;
}
.notice b { color: var(--accent); }
.notice p { margin: 0; font-size: 14px; color: var(--muted); }

.facts { display: grid; gap: 12px; }
.fact { border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.fact b { display: block; font-size: 14.5px; margin-bottom: 4px; font-weight: 620; }
.fact span { display: block; font-size: 13.5px; color: var(--muted); }

form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 14.5px;
  outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(224, 163, 62, 0.5); }
textarea { resize: vertical; min-height: 116px; }
.form__msg { font-size: 14px; color: var(--muted); min-height: 20px; }
.form__msg.is-ok { color: var(--up); }

.contact { display: grid; gap: 14px; }
.contact__item b { display: block; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
.contact__item span, .contact__item a { font-size: 14.5px; color: var(--text); }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line-soft); background: var(--surface); padding: 56px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer address { font-style: normal; font-size: 13.5px; color: var(--muted); margin: 18px 0 0; line-height: 1.75; }
.footer h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer ul a:hover { color: var(--text); }

.footer__reg { margin-top: 22px; }
.footer__reg div { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.footer__reg .val { color: var(--dim); }
.reg-pending {
  display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); border: 1px solid rgba(224, 163, 62, 0.35);
  border-radius: 999px; padding: 4px 11px;
}

.footer__legal { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; }
.footer__legal p { font-size: 12.5px; color: var(--dim); line-height: 1.65; }
.footer__legal strong { color: var(--muted); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); padding-top: 10px; }

/* ---------------------------------------------------------------- legal docs */

.doc { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; background: var(--surface); }
.toc h4 { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; font-weight: 600; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { font-size: 13.5px; color: var(--muted); }
.toc a:hover { color: var(--accent); }
.doc h2 { font-size: 19px; margin: 40px 0 12px; letter-spacing: -0.01em; font-weight: 640; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: var(--muted); font-size: 15px; }
.doc ul { padding-left: 20px; display: grid; gap: 7px; }
.doc strong { color: var(--text); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero__grid, .split, .doc { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .toc { position: static; }
}

@media (max-width: 720px) {
  .nav__links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__toggle { display: block; }
  .nav__actions .btn--ghost { display: none; }
  .hero { padding: 56px 0 44px; }
  .grid--3, .grid--2, .screens { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .table__head { display: none; }
  .table__row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .table__row .num:nth-of-type(2) { display: none; }
  .table__more { display: none; }
  .modal__stats { grid-template-columns: 1fr; }
}
