:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --text: #f5f5f5;
  --muted: #b6b6b6;
  --gold: #c9a24d;
  --gold-soft: #e0c27a;
  --line: #2a2a2a;
  --topbar-height: 72px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #111;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #111;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
  border: 2px solid #111;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f0d79d, #d2ab58);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.4rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  background: linear-gradient(120deg, rgba(20, 20, 20, 0.58), rgba(20, 20, 20, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.brand:hover {
  opacity: 0.92;
}

.brand-logo {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.menu a {
  color: var(--muted);
}

.menu a:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.lang-flag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
}

.lang-btn.is-active {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.hero {
  margin-top: calc(-1 * var(--topbar-height));
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 7rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 77, 0.28), transparent 42%),
    radial-gradient(circle at 10% 85%, rgba(201, 162, 77, 0.14), transparent 38%);
}

.hero-bg-logo {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  height: 144%;
  width: auto;
  opacity: 0.07;
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
}

h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.hero-copy {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: #1c1c1c;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.blockchains {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.chain {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-soft);
  font-weight: 700;
}

.chain-logo {
  width: 18px;
  height: 18px;
  display: block;
}

.blockchains-note {
  margin: 0.4rem 0 0;
  color: rgba(224, 194, 122, 1);
  font-size: 0.92rem;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 42px rgba(201, 162, 77, 0.22));
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-soft);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-indicator-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 999px;
  position: relative;
}

.scroll-indicator-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  transform: translateX(-50%);
  animation: scroll-dot 1.4s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

.section {
  padding: 6.5rem 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.78rem;
}

h2 {
  margin: 0.5rem 0 1.4rem;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.2;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: #0d0d0d;
  border-radius: 16px;
  padding: 1.2rem;
}

.card p {
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.stat h3 {
  margin: 0;
  color: var(--gold-soft);
}

.stat p {
  margin-bottom: 0;
  color: var(--muted);
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1rem;
  align-items: stretch;
}

.reserve-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  background: #0d0d0d;
}

.reserve-label {
  margin-bottom: 0.2rem;
  color: var(--muted);
}

.reserve-box h3 {
  margin: 0.2rem 0 0.8rem;
  color: var(--gold-soft);
}

.reserve-foot {
  color: var(--muted);
  margin-top: 1rem;
}

.contracts-copy,
.help-box p {
  color: var(--muted);
}

.contract-card {
  max-width: 520px;
}

.contract-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  color: var(--gold-soft);
}

.help-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.help-actions {
  display: flex;
  gap: 0.8rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d0d0d;
  padding: 0.9rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-soft);
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  z-index: 100;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d0d0d;
  padding: 1.2rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.modal-copy {
  margin-top: 0.4rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--gold-soft);
}

.required-star {
  color: #ff5c5c;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-phone-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.4fr;
  gap: 0.55rem;
}

.country-select-wrap {
  position: relative;
}

.country-picker-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  text-align: left;
}

.country-picker-btn::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.country-flag-preview {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

.country-picker-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
  display: none;
  position: absolute;
  z-index: 5;
  width: 100%;
  max-height: 220px;
  overflow: auto;
}

.country-select-wrap.is-open .country-picker-list {
  display: block;
}

.country-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.country-option img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

.country-option:hover,
.country-option.is-selected {
  background: rgba(224, 194, 122, 0.14);
}

.contact-feedback {
  min-height: 1.2rem;
  margin: 0.25rem 0 0;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.form-required-note {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(224, 194, 122, 0.45);
  background: rgba(18, 18, 18, 0.84);
  color: var(--gold-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 30;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .contact-phone-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .topbar {
    top: 0.35rem;
    width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .menu {
    display: none;
  }

  .hero-grid,
  .cards-3,
  .stats-grid,
  .transparency-grid {
    grid-template-columns: 1fr;
  }

  .help-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 5rem 0;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 4.8rem;
  }

  .hero-bg-logo {
    height: 116%;
    right: -14%;
    opacity: 0.07;
  }

  .scroll-indicator {
    bottom: 1rem;
  }
}
