:root {
  color-scheme: dark;
  --bg: #050806;
  --panel: #0d1512;
  --panel-2: #111d19;
  --panel-3: #17251f;
  --line: #24362f;
  --text: #eef8f2;
  --muted: #93a79d;
  --brand: #37f29a;
  --brand-2: #40bfff;
  --warn: #ffbd59;
  --danger: #ff746b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(55, 242, 154, 0.16), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(64, 191, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #07100d 0%, var(--bg) 58%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(55, 242, 154, 0.45);
  border-radius: 10px;
  color: var(--brand);
  background: rgba(55, 242, 154, 0.1);
  box-shadow: 0 0 30px rgba(55, 242, 154, 0.12);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 21, 18, 0.7);
}

.lang a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.lang a[aria-current="page"] {
  color: var(--text);
  background: var(--panel-3);
}

.button,
.wallet-button,
.copy-button,
.pay-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.wallet-button,
.button-primary {
  padding: 10px 14px;
  color: #06110c;
  background: linear-gradient(135deg, var(--brand), #9cffce);
  box-shadow: 0 14px 32px rgba(55, 242, 154, 0.18);
}

.wallet-button.is-connected {
  color: var(--brand);
  background: rgba(55, 242, 154, 0.1);
  border: 1px solid rgba(55, 242, 154, 0.35);
  box-shadow: none;
}

.button-secondary {
  padding: 10px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 24px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.intro,
.wallet-panel,
.trade-card,
.trust-strip,
.faq-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 21, 18, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro {
  min-height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 4vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 29, 25, 0.82);
}

.metric strong {
  display: block;
  font-size: 1.15rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 760;
}

.warning {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 189, 89, 0.28);
  border-radius: 12px;
  color: #ffe3ad;
  background: rgba(255, 189, 89, 0.08);
  font-size: 0.94rem;
  font-weight: 780;
}

.dashboard {
  display: grid;
  gap: 12px;
}

.wallet-panel {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.wallet-panel p {
  margin: 0;
  color: var(--muted);
}

.wallet-address {
  color: var(--brand);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.status[data-state="success"] {
  color: var(--brand);
}

.status[data-state="error"] {
  color: var(--danger);
}

.trade-grid {
  display: grid;
  gap: 12px;
}

.trade-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 14px;
}

.trade-card h2 {
  margin-bottom: 6px;
  font-size: 1.34rem;
}

.trade-copy {
  margin-bottom: 12px;
  color: var(--muted);
}

.plans,
.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.plan,
.rule {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.plan strong,
.rule strong {
  display: block;
  font-size: 1.02rem;
}

.plan span,
.rule span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.pay-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.pay-button {
  padding: 10px 12px;
  color: #06110c;
  background: var(--brand);
}

.address-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.address-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.address-text {
  min-height: 44px;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
  color: #d8f8e7;
  background: rgba(5, 8, 6, 0.46);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
}

.copy-button {
  padding: 8px 12px;
  color: var(--text);
  background: var(--panel-3);
}

.copy-button.is-copied {
  color: #06110c;
  background: var(--brand);
}

.qr-card {
  display: grid;
  place-items: center;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111b18;
}

.qr-card canvas {
  width: 156px;
  height: 156px;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(170px, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.field input,
.estimate {
  min-height: 44px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(5, 8, 6, 0.46);
}

.estimate {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.estimate.is-valid {
  color: var(--brand);
}

.trust-strip {
  margin: 16px 0 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  box-shadow: none;
}

.trust-strip article {
  padding: 12px;
  border-radius: 12px;
  background: var(--panel-2);
}

.trust-strip h3 {
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.trust-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-card {
  margin-bottom: 28px;
  padding: 14px;
  box-shadow: none;
}

.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.faq-head h2 {
  margin-bottom: 0;
  font-size: 1.24rem;
}

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

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.faq summary {
  min-height: 48px;
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
}

.footer {
  padding: 20px 0 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .trade-card,
  .trust-strip,
  .faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-right {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    padding-top: 8px;
  }

  .intro,
  .wallet-panel,
  .trade-card,
  .faq-card {
    padding: 12px;
  }

  .wallet-panel,
  .metrics,
  .plans,
  .rules,
  .pay-row,
  .calculator,
  .address-box {
    grid-template-columns: 1fr;
  }

  .wallet-button,
  .copy-button,
  .pay-button,
  .button {
    width: 100%;
  }

  .qr-card {
    min-height: 164px;
  }

  .faq-head {
    align-items: stretch;
    flex-direction: column;
  }
}
