/* ============================================================
   Hermes Exchange — Header + Hero layout
   ============================================================ */

/* ---------- Header ---------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 280ms var(--ease), border-color 280ms, backdrop-filter 280ms;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled {
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 280ms var(--ease);
}
.hdr.is-scrolled .hdr-row { height: 64px; }

.hdr-nav { display: flex; align-items: center; gap: 28px; }
.hdr-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 160ms;
  position: relative;
}
.hdr-nav a:hover { color: var(--fg-1); }
.hdr-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1.5px; background: var(--mint); transition: right 200ms var(--ease);
}
.hdr-nav a:hover::after { right: 0; }

.hdr-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
}
.lang-toggle button {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  padding: 5px 9px; border-radius: var(--r-pill); color: var(--fg-3);
  transition: color 160ms, background 160ms;
}
.lang-toggle button.on { color: #042820; background: var(--mint); }

.hdr-burger { display: none; color: var(--fg-1); padding: 4px; }

.hdr-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10,11,16,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: max-height 320ms var(--ease), padding 320ms var(--ease), border-color 320ms;
}
.hdr-mobile.open { max-height: 460px; padding: 10px 18px 22px; border-color: var(--line); }
.hdr-mobile a:not(.btn) {
  padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--fg-1);
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 980px) {
  .hdr-nav { display: none; }
  .lang-toggle { display: none; }
  .hdr-cta { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-mobile { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; }
@media (max-width: 980px) { .hero { padding: 116px 0 56px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-h1 { margin: 22px 0 20px; font-size: clamp(40px, 6.2vw, 68px); }
.hero-flip {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--mint);
  transform-origin: center bottom;
  transition: transform 380ms var(--ease), opacity 280ms var(--ease);
}
.hero-flip.out { opacity: 0; transform: rotateX(-82deg) translateY(6px); }
.hero-flip-flag {
  width: 1.15em !important; height: 0.82em; border-radius: 5px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}
.hero-h1 { perspective: 800px; }

.hero-sub { font-size: clamp(16px, 2.1vw, 19px); color: var(--fg-2); max-width: 520px; line-height: 1.55; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 28px 0 30px; }
.trust {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 14px; color: var(--fg-1); font-weight: 500;
  background: var(--bg-1); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: var(--r-pill);
}
.trust b { font-weight: 700; }
.trust-ico { color: var(--mint); flex: none; }
.trust-ico.gold-ico { color: var(--gold); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-monitors {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px;
  margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-monitors-label { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.hero-mon { display: inline-flex; align-items: center; gap: 8px; }
.hero-mon-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--fg-2); filter: grayscale(1); }
.hero-mon-rate {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; color: var(--gold);
  background: var(--gold-soft); border-radius: var(--r-pill); padding: 2px 8px;
}

/* ---------- Hero board ---------- */
.hero-right { display: flex; justify-content: center; }
.hero-board { width: 100%; max-width: 400px; padding: 20px; }
.hero-board-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-board-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap; }
.hero-board-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-2); white-space: nowrap; }

.hero-board-rates { display: flex; flex-direction: column; gap: 2px; }
.hero-rate {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: var(--r-sm);
  transition: background 160ms;
}
.hero-rate:nth-child(odd) { background: var(--bg-inset); }
.hero-rate-cur { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.hero-rate-cur .fi { width: 1.3em; height: 0.95em; }
.hero-rate-val { font-size: 14px; font-weight: 600; }
.hero-rate-val .muted { font-weight: 400; font-size: 12px; }

.hero-board-last {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--fg-2);
}
.hero-board-last b { color: var(--fg-1); font-weight: 600; }
.hero-last-ago { margin-left: auto; color: var(--mint); font-weight: 600; white-space: nowrap; }

@media (max-width: 480px) {
  .hero-monitors-label { width: 100%; }
}
