:root {
  --bg: #080d0f;
  --panel: #11191d;
  --line: rgba(204, 224, 228, 0.18);
  --text: #eef6f6;
  --muted: #abb7bb;
  --teal: #41d7df;
  --amber: #ffb72b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(65, 215, 223, 0.14), transparent 35%),
    linear-gradient(135deg, #050809, #0d1417 52%, #070a0b);
}

a,
button {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.topbar,
.hero,
.steps,
.ports {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 21, 24, 0.88);
  box-shadow: var(--shadow);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--amber);
  font-size: 24px;
  font-weight: 900;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--amber);
  border-radius: 8px;
  font-size: 16px;
}

.topbar-link,
.primary-button,
.secondary-button,
.connect-card button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.topbar-link,
.secondary-button,
.connect-card button {
  border: 1px solid rgba(65, 215, 223, 0.5);
  color: var(--teal);
  background: rgba(65, 215, 223, 0.055);
}

.primary-button {
  color: #141102;
  background: linear-gradient(180deg, #ffc75b, var(--amber));
}

.hero {
  margin-top: 16px;
  padding: clamp(28px, 6vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  color: var(--amber);
  font-size: clamp(38px, 7vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.connect-card {
  min-height: 260px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid rgba(255, 183, 43, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 183, 43, 0.1), rgba(8, 12, 14, 0.72));
}

.card-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.connect-card strong {
  color: var(--amber);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(18px, 5.2vw, 24px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.steps,
.ports {
  margin-top: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  box-shadow: none;
}

.ports {
  grid-template-columns: repeat(2, 1fr);
}

.steps article,
.ports div {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 12, 0.42);
}

.steps span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111405;
  background: var(--amber);
  font-weight: 900;
}

h2 {
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.2;
}

.steps p,
.ports p,
footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.ports strong {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 24px;
}

footer {
  margin-bottom: 0;
  padding: 18px 4px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(65, 215, 223, 0.44);
  border-radius: 6px;
  color: var(--text);
  background: rgba(8, 13, 15, 0.96);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  .hero,
  .steps,
  .ports {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .topbar-link {
    width: 100%;
  }
}
