:root {
  --font-geist-sans: "Neue Haas Grotesk Text";
  --font-geist-mono: "IBM Plex Mono";
  --void-black: #070609;
  --plum-black: #120c16;
  --violet-charcoal: #1b1622;
  --graphite-plum: #2a2433;
  --soft-steel: #666070;
  --execution-white: #f5f7fa;
  --signal-purple: #7a5cff;
  --rule: rgba(102, 96, 112, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--void-black);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(56, 25, 120, 0.12), transparent 25%),
    radial-gradient(circle at 42% 38%, rgba(35, 18, 72, 0.08), transparent 34%),
    var(--void-black);
  color: var(--execution-white);
  font-family: var(--font-geist-sans), "Neue Haas Grotesk Text", "Helvetica Neue",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-shell {
  width: min(100%, 1536px);
  min-height: 100vh;
  margin-inline: auto;
  padding-inline: 48px;
  overflow: hidden;
}

.hero {
  position: relative;
  height: 750px;
}

.brand-header {
  position: absolute;
  z-index: 5;
  top: 120px;
  left: 0;
  width: min(410px, 36vw);
}

.brand-header a {
  display: block;
}

.brand-lockup {
  display: block;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  top: 244px;
  left: 10px;
  width: min(650px, 47vw);
}

.signal-rule {
  display: block;
  width: 38px;
  height: 2px;
  margin-bottom: 30px;
  background: var(--signal-purple);
}

.hero h1 {
  margin: 0;
  font-size: clamp(39px, 3.7vw, 56px);
  font-weight: 350;
  line-height: 1.19;
  letter-spacing: -0.035em;
}

.market-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1200px;
}

.market-art picture {
  position: absolute;
  display: block;
  backface-visibility: hidden;
}

.line-chart {
  top: 55px;
  left: 43.5%;
  width: 29%;
  opacity: 0.54;
  transform: matrix(0.99, -0.12, 0.05, 0.91, 0, 0);
  transform-origin: center;
  filter: saturate(0.84) drop-shadow(0 0 14px rgba(122, 92, 255, 0.12));
}

.network-map {
  bottom: -2px;
  left: -4.5%;
  width: 45%;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(122, 92, 255, 0.24));
}

.order-book {
  top: 330px;
  left: 43.25%;
  width: 29%;
  max-height: 390px;
  opacity: 0.66;
  transform: matrix(0.99, -0.065, 0.04, 0.96, 0, 0);
  transform-origin: 50% 0;
  filter: drop-shadow(0 0 20px rgba(122, 92, 255, 0.14));
}

.order-book img {
  max-height: 390px;
  object-fit: contain;
}

.application-panel {
  position: absolute;
  z-index: 7;
  top: 208px;
  right: 4.2%;
  width: 315px;
}

.application-panel > p {
  margin: 0 0 20px 4px;
  color: var(--signal-purple);
  font-family: var(--font-geist-mono), "IBM Plex Mono", monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.application-card {
  min-height: 408px;
  padding: 64px 24px 30px;
  border: 1px solid rgba(102, 96, 112, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(27, 22, 34, 0.16), rgba(7, 6, 9, 0.52)),
    rgba(7, 6, 9, 0.8);
  box-shadow:
    inset 0 0 32px rgba(122, 92, 255, 0.025),
    0 22px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(7px);
}

.sonic-lockup {
  display: block;
  width: 100%;
  max-width: 278px;
  margin-inline: auto;
}

.card-rule {
  display: block;
  width: 40px;
  height: 2px;
  margin: 55px auto 28px;
  background: var(--signal-purple);
}

.launch-button {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px 0 28px;
  border: 1px solid var(--signal-purple);
  border-radius: 6px;
  color: var(--signal-purple);
  font-family: var(--font-geist-mono), "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.075em;
  box-shadow:
    inset 0 0 0 1px rgba(122, 92, 255, 0.05),
    0 0 16px rgba(122, 92, 255, 0.04);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.launch-arrow {
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 200;
  line-height: 1;
}

.launch-button:hover,
.launch-button:focus-visible {
  color: var(--execution-white);
  background: rgba(122, 92, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(122, 92, 255, 0.16),
    0 0 24px rgba(122, 92, 255, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.contact-strip {
  min-height: 157px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  border-block: 1px solid var(--rule);
}

.contact-card {
  min-width: 330px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.contact-icon {
  display: block;
  flex: 0 0 auto;
}

.email-icon {
  width: 56px;
}

.support-icon {
  width: 54px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-copy strong {
  font-family: var(--font-geist-mono), "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.contact-copy small {
  color: #98939f;
  font-size: 16px;
  letter-spacing: 0.025em;
  transition: color 180ms ease;
}

.contact-card:hover small,
.contact-card:focus-visible small {
  color: var(--signal-purple);
}

.contact-card:focus-visible {
  outline: 1px solid var(--signal-purple);
  outline-offset: 9px;
}

.contact-divider {
  width: 1px;
  height: 80px;
  background: var(--rule);
}

.site-footer {
  min-height: 117px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #aaa6ae;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.company-line,
.site-footer nav {
  display: flex;
  align-items: center;
}

.company-line {
  gap: 34px;
}

.footer-divider {
  width: 1px;
  height: 40px;
  background: var(--rule);
}

.site-footer nav a {
  padding: 0 27px;
  border-left: 1px solid var(--rule);
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}

.site-footer nav a:first-child {
  border-left: 0;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--signal-purple);
  outline: none;
}

/* Tablet / narrow-window layout: switches from the absolute hero
   composition to a stacked flow so nothing overlaps as width shrinks.
   This range covers split-screen and iPad-portrait widths. */
@media (max-width: 1180px) {
  .site-shell {
    padding-inline: clamp(22px, 4vw, 38px);
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: 44px 0 58px;
    display: flex;
    flex-direction: column;
  }

  .brand-header,
  .hero-copy,
  .application-panel {
    position: relative;
    inset: auto;
  }

  .brand-header {
    width: min(350px, 60vw);
  }

  .hero-copy {
    width: min(640px, 100%);
    margin-top: 56px;
  }

  .signal-rule {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(34px, 5.6vw, 52px);
    line-height: 1.15;
  }

  .market-art {
    position: relative;
    inset: auto;
    order: 3;
    height: clamp(360px, 52vw, 500px);
    margin: 28px calc(-1 * clamp(22px, 4vw, 38px)) 0;
  }

  .line-chart {
    top: 0;
    right: -12%;
    left: auto;
    width: 55%;
  }

  .order-book {
    top: clamp(150px, 24vw, 200px);
    right: -3%;
    left: auto;
    width: 45%;
  }

  .network-map {
    bottom: 0;
    left: -8%;
    width: 80%;
  }

  .application-panel {
    order: 4;
    width: 100%;
    max-width: 380px;
    margin-top: 34px;
  }

  .application-panel > p {
    margin-left: 0;
  }

  .application-card {
    min-height: 0;
    padding: 54px 24px 26px;
  }

  .sonic-lockup {
    max-width: 320px;
  }

  .card-rule {
    margin-top: 46px;
  }

  .contact-strip {
    gap: 46px;
  }

  .site-footer {
    padding-block: 30px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .brand-header {
    width: min(350px, 88vw);
  }

  .contact-strip {
    padding: 36px 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .contact-card {
    min-width: 0;
    width: 100%;
    gap: 23px;
  }

  .contact-divider {
    width: 100%;
    height: 1px;
  }

  .site-footer {
    min-height: 0;
    padding: 34px 0 28px;
  }

  .company-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-divider {
    display: none;
  }

  .site-footer nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-footer nav a {
    padding: 0 11px;
    font-size: 10px;
  }

  .site-footer nav a:first-child {
    padding-left: 0;
  }

  .site-footer nav a:last-child {
    padding-right: 0;
  }
}

@media (max-width: 420px) {
  .hero-copy {
    margin-top: 54px;
  }

  .market-art {
    height: 400px;
  }

  .order-book {
    top: 140px;
  }

  .network-map {
    width: 100%;
  }

  .contact-copy strong {
    font-size: 13px;
  }

  .contact-copy small {
    font-size: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---- Legal pages (privacy / terms / security) ---- */
.legal-shell {
  width: min(100%, 860px);
  margin-inline: auto;
  padding: 64px 48px 96px;
}

.legal-shell .brand-header {
  margin-bottom: 56px;
}

.legal-shell .brand-lockup {
  width: 160px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--soft-steel);
}

.legal-back:hover {
  color: var(--signal-purple);
}

.legal-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 500;
  margin: 0 0 8px;
}

.legal-updated {
  font-family: var(--font-geist-mono), monospace;
  font-size: 13px;
  color: var(--soft-steel);
  letter-spacing: 0.04em;
  margin: 0 0 48px;
}

.legal-body h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--execution-white);
  margin: 40px 0 12px;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: #c8c4d0;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-body a {
  color: var(--signal-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 56px 0 32px;
}
