:root {
  --ink: #0f0f0d;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --muted: rgba(255, 255, 255, 0.66);
  --accent: #ffffff;
  --glow: 0 0 28px rgba(255, 255, 255, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

::selection {
  background: #fff;
  color: var(--ink);
}

img {
  display: block;
}

.bg-ink {
  background: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(15, 15, 13, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.menu-btn {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1px;
  background: #fff;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-btn::before {
  top: 17px;
}

.menu-btn::after {
  top: 24px;
}

.menu-btn[aria-expanded="true"]::before {
  top: 20px;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"]::after {
  top: 20px;
  transform: rotate(-45deg);
}

.menu-panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.4rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 13, 0.98);
}

.menu-panel.hidden {
  display: none;
}

.hero {
  padding-top: 4rem;
}

.banner-frame {
  position: relative;
  height: clamp(220px, 34vw, 460px);
  overflow: hidden;
  background: var(--ink);
}

.banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

.logo {
  display: block;
  width: auto;
  flex: none;
}

.logo-sm {
  height: 34px;
}

.logo-lg {
  height: 148px;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.28));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sig {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sig-line {
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.sig-dots {
  display: flex;
  gap: 5px;
}

.sig-dots i {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.node {
  width: 6px;
  height: 6px;
  flex: none;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.node-live {
  animation: live 2.2s ease-in-out infinite;
}

@keyframes live {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.25);
  }
}

.plus {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
}

.plus::before {
  width: 12px;
  height: 1px;
}

.plus::after {
  width: 1px;
  height: 12px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: #fff;
  box-shadow: var(--glow);
}

.btn-icon {
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: #fff;
  background: transparent;
  border-color: var(--line-strong);
}

.btn-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.btn-icon:hover {
  border-color: #fff;
  box-shadow: var(--glow);
  color: #fff;
}

.btn-copy.is-copied {
  box-shadow: var(--glow);
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.ca-label {
  flex: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ca-addr {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 5rem;
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.card-social {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
}

.card-social:hover {
  box-shadow: var(--glow);
}

.icon-line {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.icon-line svg,
.icon-bubble svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-bubble {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.icon-bubble svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  stroke: none;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  border-radius: 1.25rem;
  padding: 1.2rem 1.3rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-no {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.text-link,
.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-link {
  color: #fff;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.text-link:hover,
.footer-link:hover {
  color: #fff;
  text-decoration-color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.chart-shell {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.chart-placeholder {
  display: grid;
  min-height: 420px;
  place-items: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.chart-shell iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  background: #000;
}

.chart-shell iframe[hidden],
.chart-placeholder[hidden] {
  display: none;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  pointer-events: none;
}

.orbit-a {
  width: 520px;
  height: 520px;
  left: -280px;
  top: -80px;
}

.orbit-b {
  width: 460px;
  height: 460px;
  right: -240px;
  bottom: -160px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
}

.plus-float {
  position: absolute;
  right: 8%;
  top: 4.5rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .menu-panel {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .nav-link.is-active::after {
    display: none;
  }

  .card-social {
    min-height: 0;
  }
}

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

  .node-live,
  .btn,
  .card {
    animation: none;
    transition: none;
  }
}
