:root {
  --bg: #090b10;
  --card: #12161e;
  --text: #f4f7fb;
  --muted: #aeb6c4;
  --line: rgba(244, 247, 251, 0.1);
  --blue: #0098ea;
  --blue-soft: rgba(0, 152, 234, 0.14);
  --green: #5ddeaf;
  --header: 72px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

button,
input {
  font: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid #7cc4ff;
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 152, 234, 0.35);
  color: #fff;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.glow {
  position: fixed;
  z-index: 0;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  top: 0;
  right: 0;
  transform: translate(25%, -35%);
  background: radial-gradient(circle, rgba(10, 132, 214, 0.38), transparent 68%);
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header);
  background: rgba(9, 11, 16, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Unbounded, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.btn-primary {
  background: #f4f7fb;
  color: #10131a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn-label-short {
  display: none;
}

.hero {
  padding: 36px 0 28px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: #8ecfff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
.balance-value,
.sheet-title {
  font-family: Unbounded, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 12px;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.98;
}

h1 span {
  color: #4cb4ff;
}

.lede {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 340px);
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.screen {
  padding: 16px 16px 12px;
  border-radius: 32px;
  background: #0c1017;
}

.notch {
  width: 92px;
  height: 16px;
  margin: 2px auto 16px;
  border-radius: 999px;
  background: #07080c;
}

.mock-top,
.asset,
.tx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-name {
  font-weight: 700;
}

.mock-net {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.balance-label,
.asset small,
.tx small {
  color: var(--muted);
  font-size: 0.78rem;
}

.balance-block {
  margin: 22px 0 18px;
}

.balance-value {
  margin-top: 4px;
  font-size: clamp(1.8rem, 4vw, 2.15rem);
  line-height: 1.1;
}

.balance-value span {
  color: var(--muted);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.mock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-btn {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: default;
}

.mock-btn.alt {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.assets,
.txs {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.asset,
.tx {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.asset strong,
.tx strong {
  display: block;
  font-size: 0.92rem;
}

.plus {
  color: var(--green);
  font-weight: 700;
}

.minus {
  color: var(--muted);
  font-weight: 700;
}

.home-bar {
  width: 96px;
  height: 4px;
  margin: 16px auto 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.stats {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.stats li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.stats strong {
  display: block;
  font-family: Unbounded, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 28px 0 72px;
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.12;
  text-wrap: balance;
}

.cards,
.steps,
.security-grid {
  display: grid;
  gap: 14px;
}

.card,
.step,
.security-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: #8ecfff;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3,
.step h3 {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p,
.step p,
.security-copy p,
.cta-card p,
.footer-brand p,
.footer-legal p {
  margin-top: 8px;
  color: var(--muted);
}

.step-index {
  color: #4cb4ff;
  font-family: Unbounded, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.security-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  color: var(--green);
}

.cta-band {
  padding-bottom: 80px;
}

.cta-card {
  display: grid;
  gap: 18px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(0, 152, 234, 0.22), transparent 55%),
    var(--card);
}

.site-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-row,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-legal p {
  max-width: 62ch;
}

dialog {
  width: min(480px, calc(100% - 24px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(8px);
}

.sheet {
  max-height: min(640px, calc(100vh - 32px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #12151c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sheet-title {
  font-size: 1.2rem;
  line-height: 1.3;
}

.sheet-note {
  margin: 8px 0 16px;
  color: var(--muted);
}

.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.platform {
  position: relative;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.platform-name {
  display: block;
  font-weight: 700;
}

.platform-meta,
.here {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.here {
  display: none;
  color: #8ecfff;
  font-weight: 700;
}

.platform.is-current .here {
  display: block;
}

.platform.is-selected {
  border-color: rgba(76, 180, 255, 0.9);
  background: rgba(0, 152, 234, 0.12);
}

.sheet-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sheet-actions .btn {
  width: 100%;
}

.install-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0 4px;
}

#wallet-app {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.install-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #1a1f29;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.toast[hidden] {
  display: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.step-no {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #8ecfff;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: #fff;
  }

  .btn-ghost:hover,
  .nav-links a:hover,
  .footer-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-links a:hover,
  .footer-nav a:hover {
    background: transparent;
  }

  .platform:hover {
    border-color: rgba(255, 255, 255, 0.22);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 16, 0.97);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .header .btn-label-full,
  .site-header .btn-label-full {
    display: none;
  }

  .btn-label-short {
    display: inline;
  }

  .platforms {
    grid-template-columns: 1fr;
  }

  dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: fixed;
    inset: auto 0 0;
  }

  .sheet {
    max-height: min(85vh, 720px);
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .wrap {
    width: min(1120px, calc(100% - 48px));
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-card {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 40px 36px;
  }

  .section {
    padding: 40px 0 104px;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 64px 0 36px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 56px;
  }

  .hero-visual {
    justify-content: flex-end;
  }

  .security-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
