:root {
  color-scheme: dark;
  --bg: #03111f;
  --panel: rgba(8, 23, 38, 0.78);
  --panel-strong: rgba(10, 30, 49, 0.92);
  --line: rgba(151, 219, 255, 0.18);
  --line-strong: rgba(151, 219, 255, 0.36);
  --text: #edf8ff;
  --muted: #9db4c6;
  --soft: #c9dae8;
  --aqua: #43e8ff;
  --cyan: #79f9ff;
  --gold: #e0bd52;
  --orange: #ff9c4a;
  --green: #83ffcf;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(67, 232, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, #02101e 0%, #041829 52%, #071421 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#oceanScene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: #03111f;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  content: "";
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(2, 13, 25, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.top-actions,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(67, 232, 255, 0.24);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text {
  font-size: 18px;
}

.nav {
  gap: 26px;
  color: var(--soft);
  font-size: 14px;
}

.nav a,
.top-link,
.lang-toggle {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover,
.top-link:hover,
.lang-toggle:hover {
  color: var(--cyan);
}

.top-actions {
  gap: 12px;
}

.lang-toggle,
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--soft);
  font: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-toggle {
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 86svh;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 118px) 0 clamp(42px, 6vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--aqua);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-weight: 820;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(67, 232, 255, 0.22);
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--soft);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.58;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 760;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #03111f;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  box-shadow: 0 16px 46px rgba(67, 232, 255, 0.25);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-strong);
}

.hero-console {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(67, 232, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(10, 29, 48, 0.62), rgba(8, 19, 32, 0.92));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-console::before {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(121, 249, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.hero-console::after {
  position: absolute;
  inset: 70px;
  background:
    conic-gradient(from 140deg, transparent, rgba(67, 232, 255, 0.32), transparent 36%, rgba(224, 189, 82, 0.28), transparent 68%),
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 62%);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
  content: "";
}

.signal-orbit {
  position: absolute;
  inset: 82px;
  z-index: 1;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.signal-orbit span {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 22px var(--cyan);
}

.signal-orbit span:nth-child(1) {
  top: 5%;
  left: 50%;
}

.signal-orbit span:nth-child(2) {
  right: 7%;
  bottom: 24%;
  background: var(--gold);
  box-shadow: 0 0 22px var(--gold);
}

.signal-orbit span:nth-child(3) {
  bottom: 16%;
  left: 12%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green);
}

.metric-stack {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-stack div {
  padding: 16px;
  background: rgba(3, 17, 31, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.metric-stack strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.metric-stack span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.trust-band div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.trust-band strong {
  color: var(--text);
  font-size: 17px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) 0;
}

.split-section,
.integration-section,
.cta-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

h2 {
  margin-bottom: 20px;
  font-weight: 790;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-copy,
article p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.feature-grid,
.wallet-grid,
.ops-grid {
  display: grid;
  gap: 16px;
}

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

article {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

article::after {
  position: absolute;
  inset: auto -30% -55% 25%;
  height: 140px;
  background: radial-gradient(circle, rgba(67, 232, 255, 0.18), transparent 68%);
  content: "";
}

.feature-grid article span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
}

.wallet-section,
.ops-section,
.demo-section {
  border-top: 1px solid var(--line);
}

.demo-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.demo-copy {
  max-width: 650px;
}

.demo-flow {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(11, 38, 61, 0.74), rgba(4, 19, 33, 0.9)),
    radial-gradient(circle at 82% 18%, rgba(224, 189, 82, 0.18), transparent 30%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.flow-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 18px;
  align-items: start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(151, 219, 255, 0.14);
  border-radius: 8px;
}

.flow-step span {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #03111f;
  font-weight: 820;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  border-radius: 50%;
}

.flow-step strong {
  font-size: 20px;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-line {
  width: 1px;
  height: 24px;
  margin-left: 42px;
  background: linear-gradient(var(--cyan), var(--gold));
  opacity: 0.64;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.wallet-grid article {
  min-height: 360px;
  padding: 34px;
  background: linear-gradient(145deg, rgba(9, 30, 50, 0.88), rgba(7, 19, 32, 0.78));
}

.card-topline {
  width: 64px;
  height: 3px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
  color: var(--soft);
}

li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--aqua);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--aqua);
  content: "";
}

.api-panel {
  overflow: hidden;
  background: rgba(2, 12, 23, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.api-header {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.api-header span {
  width: 11px;
  height: 11px;
  background: #ff6b6b;
  border-radius: 50%;
}

.api-header span:nth-child(2) {
  background: #f6c85f;
}

.api-header span:nth-child(3) {
  background: #5bf0b6;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #dcf8ff;
  font-size: 14px;
  line-height: 1.72;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.link-row {
  margin-top: 26px;
}

.link-row a {
  padding: 10px 14px;
  color: var(--cyan);
  background: rgba(67, 232, 255, 0.08);
  border: 1px solid rgba(67, 232, 255, 0.22);
  border-radius: 999px;
}

.ops-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cta-section {
  align-items: center;
  padding: 48px;
  margin-bottom: 64px;
  background:
    linear-gradient(135deg, rgba(67, 232, 255, 0.16), rgba(224, 189, 82, 0.1)),
    rgba(4, 20, 34, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-section h2 {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 110px;
  padding: 28px clamp(20px, 4vw, 64px);
  color: var(--muted);
  background: rgba(2, 10, 18, 0.72);
  border-top: 1px solid var(--line);
}

.footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--soft);
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .hero,
  .split-section,
  .integration-section,
  .cta-section,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-console {
    min-height: 380px;
  }

  .feature-grid,
  .wallet-grid,
  .ops-grid,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-band div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 18px;
  }

  .brand-text {
    font-size: 16px;
  }

  .top-actions {
    gap: 8px;
  }

  .top-link,
  .lang-toggle {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero,
  .section,
  .trust-band {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 72px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-console {
    min-height: 330px;
  }

  .metric-stack {
    grid-template-columns: 1fr;
  }

  .hero-console::before {
    inset: 36px;
  }

  .hero-console::after {
    inset: 70px;
  }

  article,
  .wallet-grid article,
  .cta-section {
    padding: 22px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero-console::after {
    animation: none;
  }
}
