:root {
  color-scheme: light;
  --ink: #14142f;
  --muted: #687089;
  --line: #dfe6f5;
  --paper: #f7f9ff;
  --surface: #ffffff;
  --brand: #155cff;
  --violet: #4c00ff;
  --cyan: #00a6ff;
  --mint: #36d7a8;
  --amber: #f3b23c;
  --night: #050018;
  --warning-bg: #fff7e6;
  --warning-border: #f1d39b;
  --warning-ink: #83540c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(76, 0, 255, .28), transparent 28%),
    radial-gradient(circle at 12% 10%, rgba(54, 215, 168, .18), transparent 27%),
    linear-gradient(180deg, #050018 0%, #080022 37%, #f7f9ff 37%, #ffffff 100%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(5, 0, 24, .9);
  color: #f7f9ff;
  backdrop-filter: blur(18px);
}

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

.brand img {
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(247, 249, 255, .78);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(296px, .68fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 52px 0 38px;
  color: #f7f9ff;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .94;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: rgba(247, 249, 255, .8);
  font-size: 20px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border: 1px solid rgba(21, 92, 255, .68);
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 92, 255, .18);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #f7f9ff;
}

.button.wallet {
  border: 1px solid rgba(54, 215, 168, .55);
  background: rgba(54, 215, 168, .14);
  color: #f7f9ff;
}

.button.outline {
  border: 1px solid rgba(21, 92, 255, .24);
  background: #fff;
  color: var(--brand);
}

.button:disabled {
  cursor: wait;
  opacity: .68;
}

.wallet-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(247, 249, 255, .82);
  font-size: 14px;
  line-height: 1.5;
}

.token-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(216, 226, 244, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 48px rgba(19, 0, 50, .18);
  backdrop-filter: blur(14px);
}

.token-card img {
  width: 164px;
  height: 164px;
  border-radius: 32px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .28);
}

.token-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.token-card div,
.contract-box p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(216, 226, 244, .2);
}

.token-card dt,
.contract-box span {
  color: rgba(247, 249, 255, .68);
}

.token-card dd {
  margin: 0;
  font-weight: 850;
}

.notice,
.section,
footer {
  color: var(--ink);
}

.notice {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.notice p {
  margin: 0;
  line-height: 1.55;
}

.wallet-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 24px;
  align-items: center;
  margin: 14px 0 20px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(216, 226, 244, .92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(19, 0, 50, .07);
}

.wallet-copy {
  min-width: 0;
}

.wallet-copy .eyebrow {
  color: var(--brand);
}

.wallet-copy h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.wallet-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wallet-note,
.manual-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.wallet-note {
  padding: 12px 14px;
  border: 1px solid rgba(21, 92, 255, .18);
  border-radius: 8px;
  background: #eef4ff;
  color: #263a6c;
  font-weight: 750;
}

.manual-status {
  min-height: 22px;
  color: var(--brand);
  font-weight: 800;
}

.manual-token {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid rgba(216, 226, 244, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.manual-token div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.manual-token dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.manual-token dd {
  min-width: 0;
  margin: 0;
  font-weight: 800;
}

.manual-token code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: 13px;
}

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

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(216, 226, 244, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(19, 0, 50, .07);
}

.qr-panel img {
  width: min(184px, 100%);
  height: auto;
  border: 10px solid #fff;
  border-radius: 8px;
}

.qr-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.qr-panel span {
  color: var(--warning-ink);
  font-size: 13px;
  font-weight: 850;
}

.qr-panel code {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: 13px;
}

.section {
  padding: 44px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p:last-child,
.section > div > p {
  color: var(--muted);
  line-height: 1.65;
}

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

.feature-grid article,
.plan-grid article,
.contract-box {
  border: 1px solid rgba(216, 226, 244, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(19, 0, 50, .07);
}

.feature-grid article,
.plan-grid article {
  padding: 20px;
}

.feature-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--brand);
  font-weight: 850;
}

.feature-grid h3,
.plan-grid h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.feature-grid p,
.plan-grid p,
.plan-grid small {
  color: var(--muted);
  line-height: 1.55;
}

.plan-grid strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.plan-grid .highlight {
  border-color: rgba(21, 92, 255, .55);
  box-shadow: 0 22px 60px rgba(21, 92, 255, .14);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .75fr);
  gap: 24px;
  align-items: start;
}

.contract-box {
  padding: 20px;
}

.contract-box span {
  color: var(--muted);
}

.contract-box strong {
  text-align: right;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a {
  color: var(--brand);
  font-weight: 800;
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .split,
  .wallet-section {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 28px;
  }

  .wallet-section {
    padding: 20px;
  }

  .feature-grid,
  .plan-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .token-card img {
    width: 132px;
    height: 132px;
  }
}
