:root {
  --bg: #08111f;
  --bg-alt: #0d1830;
  --panel: rgba(15, 28, 52, 0.86);
  --panel-strong: #132341;
  --text: #eff5ff;
  --muted: #a8bad6;
  --line: rgba(158, 184, 255, 0.16);
  --primary: #4da3ff;
  --primary-strong: #1f7ae0;
  --secondary: #7df9d0;
  --accent: #9f86ff;
  --success: #29d391;
  --warning: #ffcb6b;
  --danger: #ff6f91;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(125, 249, 208, 0.12), transparent 24%),
    linear-gradient(180deg, #060d18 0%, #091120 38%, #08111f 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: #b9ffe9;
}

button {
  font: inherit;
}

code,
pre {
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(5, 10, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.brand__text {
  white-space: nowrap;
}

.hero__logo {
  width: clamp(84px, 14vw, 132px);
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav__links a:hover {
  color: var(--text);
}

.hero {
  padding: 5.8rem 0 3.2rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 1.35rem 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero__actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 16px 35px rgba(44, 125, 232, 0.35);
}

.button--primary:hover {
  color: white;
}

.button--secondary {
  background: rgba(125, 249, 208, 0.08);
  border-color: rgba(125, 249, 208, 0.35);
  color: var(--secondary);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.button--block {
  width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card,
.card,
.feature-card,
.profile-card,
.code-card,
.panel,
.onboarding__box,
.notice,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1rem 1.1rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.12rem;
}

.stat-card__label {
  color: var(--muted);
  font-size: 0.88rem;
}

.panel {
  padding: 1.35rem;
  position: sticky;
  top: 96px;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.network-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.network-list li {
  padding: 0.78rem 0;
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.network-list li:last-child {
  border-bottom: none;
}

.network-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.network-list code {
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9e8ff;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.wallet-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.status {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.status--info {
  background: rgba(77, 163, 255, 0.12);
  border-color: rgba(77, 163, 255, 0.3);
  color: #dcecff;
}

.status--success {
  background: rgba(41, 211, 145, 0.14);
  border-color: rgba(41, 211, 145, 0.35);
  color: #d8ffef;
}

.status--warning {
  background: rgba(255, 203, 107, 0.14);
  border-color: rgba(255, 203, 107, 0.35);
  color: #fff0c7;
}

.status--error {
  background: rgba(255, 111, 145, 0.14);
  border-color: rgba(255, 111, 145, 0.35);
  color: #ffdbe4;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.feature-card,
.profile-card,
.code-card,
.onboarding__box {
  padding: 1.35rem;
}

.card h3,
.feature-card h3,
.profile-card h3,
.code-card h3,
.onboarding__box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p,
.feature-card p,
.profile-card p,
.code-card p,
.onboarding__content p,
.notice,
.faq-item p {
  color: var(--muted);
}

.card--highlight {
  background:
    linear-gradient(180deg, rgba(77, 163, 255, 0.06), rgba(159, 134, 255, 0.04)),
    var(--panel);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.35rem;
  align-items: start;
}

.steps {
  padding-left: 1.3rem;
}

.steps li + li {
  margin-top: 0.4rem;
}

.notice {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
}

.manual-config {
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.manual-config div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.manual-config div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.manual-config dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.manual-config dd {
  margin: 0.35rem 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.link-list {
  margin: 0;
  padding-left: 1.15rem;
}

.link-list li + li {
  margin-top: 0.45rem;
}

.code-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.code-card pre {
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dbe8ff;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin-bottom: 0;
}

.site-footer {
  padding: 2.3rem 0 3rem;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 1080px) {
  .hero__grid,
  .onboarding,
  .feature-grid,
  .code-panels,
  .grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .hero__stats,
  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav,
  .footer,
  .nav__links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero__grid,
  .hero__stats,
  .feature-grid,
  .onboarding,
  .code-panels,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .brand__text {
    white-space: normal;
  }

  .button,
  .hero__actions a {
    width: 100%;
  }

  .section {
    padding: 3.3rem 0;
  }
}
