:root {
  --primary: #000;
  --primary-soft: #272727;
  --accent: #b8b8b8;
  --secondary: #ffffff;
  --muted: #a0a0a0;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --max-width: 1180px;
}

@font-face {
  font-family: "TheFuture";
  src: url("./the-future-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--primary);
  color: var(--secondary);
  font-family: "TheFuture", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 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, black 0%, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
strong,
b {
  font-family: inherit;
  font-weight: 400;
}

h1 span,
h2 span,
h3 span,
strong span,
b span {
  font-size: 100px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,h2 {
  font-feature-settings: "ss02", "ss09"
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
}

.header-logo {
  height: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
}

.nav {
  width: min(100% - 32px, var(--max-width));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(184, 184, 184, 0.78);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 3px, transparent 4px),
    conic-gradient(from 30deg, transparent, rgba(184, 184, 184, 0.85), transparent 44%);
  box-shadow: 0 0 24px rgba(184, 184, 184, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a,
.support-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link-label {
  line-height: 1;
}

.nav-link-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: currentColor;
  transition: transform 220ms ease, color 220ms ease, opacity 220ms ease;
  transform-origin: center;
}

.nav-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links a,
.support-trigger,
.footer-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.support-trigger:hover,
.footer-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover .nav-link-icon,
.support-trigger:hover .nav-link-icon,
.support-menu[open] .support-trigger .nav-link-icon {
  transform: rotate(45deg);
  color: var(--secondary);
  opacity: 0.95;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-cta,
.button-primary {
  background: white;
  color: #000;
  box-shadow: none;
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #fff;
  font-size: 1rem;
  line-height: 1;
}

.support-menu {
  position: relative;
}

.support-trigger {
  list-style: none;
  cursor: pointer;
  color: inherit;
}

.support-trigger::-webkit-details-marker {
  display: none;
}

.support-menu-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: max-content;
  max-width: min(360px, calc(100vw - 60px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(7, 7, 7, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  display: none;
  transform: translateX(-50%);
}

.support-menu[open] .support-menu-panel {
  display: grid;
  gap: 8px;
}

.support-menu-link {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--secondary);
  font-size: 0.96rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.support-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.download-icon {
  display: inline-block;
  width: 9px;
  height: 14px;
  flex: 0 0 auto;
}

.download-action .download-icon {
  transform: rotate(90deg);
  transform-origin: center;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.download-action:hover {
  background: #1e1f20;
  color: #fff;
  border-color: transparent;
}

.download-action:hover .download-button-icon-linux img {
  filter: brightness(1);
}

.button-primary.download-action:hover {
  background: #1e1f20;
  color: #fff;
}

.nav-cta.download-action:hover {
  cursor: pointer;
  background: #1e1f20;
  color: #fff;
  border-color: transparent;
}

.nav-cta.download-action {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.hero-actions .download-action {
  background: #1e1f20;
  color: #fff;
  border-color: transparent;
}

.hero-actions .download-action:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.hero-actions .download-action:hover .download-button-icon-linux img {
  filter: brightness(0);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  border-color: rgba(184, 184, 184, 0.6);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  padding: 130px 0 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.66) 72%, var(--primary)),
    url("./hero%20cosmo.jpg") center/cover no-repeat;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.36)),
    url("./hero%20cosmo.jpg") center/cover no-repeat;
  pointer-events: none;
}

.orbit {
  position: absolute;
  left: clamp(340px, calc((100vw - min(100% - 40px, var(--max-width))) / 2 + 380px), 50%);
  top: clamp(250px, 43vh, 430px);
  border: 1px solid rgba(184, 184, 184, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(184, 184, 184, 0.8);
}

.orbit::before {
  top: 18%;
  right: 10%;
}

.orbit::after {
  left: 14%;
  bottom: 16%;
}

.orbit-one {
  width: min(92vw, 960px);
  height: 360px;
}

.orbit-two {
  width: min(76vw, 720px);
  height: 260px;
  transform: translate(-50%, -50%) rotate(16deg);
}

.wallet-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wallet-top span:first-child {
  width: 96px;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.wallet-top span:last-child {
  width: 34px;
  height: 12px;
  border-radius: 99px;
  background: var(--accent);
}

.balance-card {
  min-height: 142px;
  padding: 22px;
  border: 1px solid rgba(184, 184, 184, 0.32);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(184, 184, 184, 0.14), rgba(255, 255, 255, 0.05));
}

.balance-card small,
.asset-row small {
  display: block;
  color: var(--muted);
}

.balance-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.05rem;
}

.balance-card span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 800;
}

.asset-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.token-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.24);
}

.token-dot.alt {
  background: #ffffff;
}

.approval-pill {
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 13px;
  border: 1px solid rgba(184, 184, 184, 0.34);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-content {
  position: relative;
  align-self: start;
  z-index: 2;
  max-width: 1180px;
  text-align: center;
}

.eyebrow,
.card-eyebrow {
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
}

.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;
}

.hero-title-mark {
  width: min(100%, 952px);
  margin-top: 18px;
  margin-inline: auto;
  line-height: 0;
}

.hero-logo {
  width: 100%;
  height: auto;
  max-width: 952px;
  margin-inline: auto;
}

.hero-copy {
  width: min(100%, 56ch);
  margin-inline: auto;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 46px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-actions .download-buttons {
  justify-content: center;
}

.trust-copy .download-buttons {
  justify-content: space-evenly;
  flex-wrap: nowrap;
  gap: 14px;
  max-width: 100%;
}

.download-buttons-stacked {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.download-buttons .button {
  justify-content: flex-start;
  min-height: 72px;
  padding: 16px 22px;
  text-align: left;
  gap: 14px;
}

.download-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.download-button-icon-macos {
  width: 40px;
  height: 40px;
}

.download-button-icon-linux {
  width: 34px;
  height: 34px;
}

.download-button-icon svg,
.download-button-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-button-icon-linux img {
  filter: brightness(0);
  transition: filter 180ms ease;
}

.hero-actions .download-action .download-button-icon-linux img {
  filter: brightness(1);
}

.download-button-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  padding-right: 5px;
}

.download-button-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.82;
  padding-bottom: 2px;
}

.download-button-platform {
  font-size: 1.18rem;
  font-weight: 800;
}

.download-buttons .download-icon {
  margin-left: auto;
  width: 11px;
  height: 17px;
}

.consent-popups {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  width: calc(100% - 60px);
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.consent-popup {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 24px 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 7, 7, 0.94);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.consent-popup-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
  justify-self: end;
}

.consent-popup-header h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.1;
}

.consent-popup-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.consent-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.consent-link-button {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-popup-actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
}

.consent-popup-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.consent-popup-button:hover {
  transform: translateY(-1px);
  background: #1e1f20;
  color: #fff;
  border-color: transparent;
}

.cosmo-note {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 64vw, 820px);
  overflow: hidden;
  background:
    linear-gradient(to bottom, var(--primary) 0%, rgba(30, 30, 30, 0) 18%, rgba(30, 30, 30, 0) 78%, var(--primary) 100%),
    #050505;
}

.cosmo-note::before,
.cosmo-note::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 28%;
  pointer-events: none;
}

.cosmo-note::before {
  top: 0;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.cosmo-note::after {
  bottom: 0;
  background: linear-gradient(to top, var(--primary), transparent);
}

.cosmo-note img {
  width: min(100%, 1536px);
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.wallet-summary {
  padding: 72px 0 34px;
}

.wallet-summary-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: start;
}

.wallet-summary-layout .eyebrow {
  line-height: 1;
  padding-top: 0.78rem;
}

.wallet-summary-layout p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.65vw, 1.45rem);
  line-height: 1.45;
  padding-top: 0.02rem;
  text-wrap: balance;
}

.stats {
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 22px 0;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.intro,
.features,
.trust,
.ecosystem,
.download {
  padding: 104px 0;
}

.trust {
  padding-bottom: 0;
}

.security-bridge {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.security-bridge::before,
.security-bridge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 30%;
  pointer-events: none;
}

.security-bridge::before {
  top: 0;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.security-bridge::after {
  bottom: 0;
  background: linear-gradient(to top, var(--primary), transparent);
}

.security-bridge img {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 420px);
  object-fit: cover;
  object-position: center;
}

.ecosystem {
  padding-top: 0;
}

.download{
  padding-top: 300px;
}

.intro {
  background-image:
    linear-gradient(to bottom, var(--primary) 0%, rgba(30, 30, 30, 0.72) 20%, rgba(30, 30, 30, 0.78) 78%, var(--primary) 100%),
    linear-gradient(90deg, rgba(30, 30, 30, 0.92), rgba(30, 30, 30, 0.32) 48%, rgba(30, 30, 30, 0.88)),
    url("./backcosmo.png");
  background-size: auto, auto, 4000px auto;
}

.trust {
  background-image:
    linear-gradient(to bottom, var(--primary) 0%, rgba(30, 30, 30, 0.68) 24%, rgba(30, 30, 30, 0.76) 76%, var(--primary) 100%),
    linear-gradient(90deg, rgba(30, 30, 30, 0.86), rgba(30, 30, 30, 0.38) 58%, rgba(30, 30, 30, 0.92)),
    url("./backcosmo.png");
  background-position: left;
  background-size: auto, auto, 5000px auto;
}

.download {
  background-image:
    linear-gradient(to bottom, var(--primary) 0%, rgba(30, 30, 30, 0.62) 30%, rgba(30, 30, 30, 0.84) 82%, var(--primary) 100%),
    linear-gradient(90deg, rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.46), rgba(30, 30, 30, 0.9)),
    url("./backcosmo.png");
  background-position: bottom;
  background-size: auto, auto, 1800px auto;
}

.features {
  background: #f4f4f0;
  color: #050505;
}

.features .eyebrow,
.features .card-eyebrow {
  color: #555;
}

.features h2,
.features h3 {
  color: #050505;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 42px;
}

.intro .section-heading {
  grid-template-columns: 1fr;
  gap: 12px;
}

.features .section-heading {
  grid-template-columns: 1fr;
  gap: 12px;
}

.ecosystem .section-heading {
  grid-template-columns: 1fr;
  gap: 12px;
}

h2 {
  font-size: 60px;
  line-height: 1;
  letter-spacing: 0;
}

.intro-title {
  justify-self: start;
  text-align: left;
  text-wrap: balance;
}

.features-title {
  justify-self: start;
  text-align: left;
  text-wrap: balance;
}

.ecosystem-title {
  justify-self: start;
  text-align: left;
  text-wrap: balance;
}

.start-grid,
.feature-grid,
.ecosystem-grid {
  display: grid;
  gap: 16px;
}

.start-grid {
  grid-template-columns: repeat(3, 1fr);
}

.start-card,
.feature-card,
.ecosystem-item,
.security-panel,
.download-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.start-card,
.feature-card {
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.start-card:hover,
.feature-card:hover,
.ecosystem-item:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 184, 184, 0.46);
  background: var(--panel-strong);
}

.step {
  color: var(--accent);
  font-weight: 700;
}

.start-card h3,
.feature-card h3 {
  margin-top: 58px;
  font-size: 1.65rem;
}

.start-card h3 {
  margin-top: 19px;
}

.start-card p,
.feature-card p,
.trust-copy p,
.download-panel p,
.footer p,
.security-panel p {
  color: var(--muted);
}

.start-card p,
.feature-card p {
  margin-top: 10px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card h3 {
  margin-top: 14px;
}

.features .feature-card {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #050505;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.features .feature-card:hover {
  border-color: rgba(0, 0, 0, 0.24);
  background: #fbfbf8;
}

.features .feature-card p {
  color: #4c4c4c;
}

.icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border: 1px solid rgba(184, 184, 184, 0.36);
  border-radius: 8px;
  background: rgba(184, 184, 184, 0.08);
}

.features .icon {
  width: 70px;
  height: 70px;
  border-color: rgba(0, 0, 0, 0.12);
  background: #050505;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 58%;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 58%;
}

.features .icon-circle {
  mask-image: url("./circle.svg");
  -webkit-mask-image: url("./circle.svg");
}

.features .icon-connection {
  mask-image: url("./connection.svg");
  mask-size: 72%;
  -webkit-mask-image: url("./connection.svg");
  -webkit-mask-size: 72%;
}

.features .icon-planet {
  mask-image: url("./planet.svg");
  mask-size: 68%;
  -webkit-mask-image: url("./planet.svg");
  -webkit-mask-size: 68%;
}

.features .icon-rocket {
  mask-image: url("./rocket.svg");
  mask-size: 42%;
  -webkit-mask-image: url("./rocket.svg");
  -webkit-mask-size: 42%;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
  gap: 52px;
  align-items: stretch;
}

.trust-copy p {
  max-width: 630px;
  margin: 24px 0 32px;
  font-size: 1.08rem;
}

.security-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-header strong {
  color: var(--accent);
  font-size: 2.25rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--secondary);
}

.check-row span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px #2a2a2a;
}

.meter {
  height: 11px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter span {
  display: block;
  width: 87%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.security-panel p {
  margin-top: 18px;
}

.ecosystem-grid {
  grid-template-columns: repeat(4, 1fr);
}

.ecosystem-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  padding: 18px;
  font-weight: 800;
  cursor: default;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ecosystem-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.ecosystem-item-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ecosystem-item p {
  max-width: 31ch;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
}

.mini-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--secondary);
}

.mini-mark svg {
  width: 9px;
  height: 14px;
  flex: 0 0 auto;
  transform: scaleX(-1);
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(120deg, rgba(184, 184, 184, 0.13), rgba(255, 255, 255, 0.055));
}

.download-panel h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3.2vw, 3.55rem);
  line-height: 0.96;
}

.download-panel p {
  max-width: 650px;
  margin-top: 14px;
  font-size: 1.32rem;
  line-height: 1.42;
}

.faq {
  padding: 34px 0 84px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: start;
}

.faq-copy {
  max-width: 350px;
}

.faq-title {
  margin-top: 12px;
  font-size: clamp(2rem, 2.9vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.faq-copy p:last-child {
  margin-top: 14px;
  max-width: 31ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease;
}

.faq-item[open] {
  border-color: rgba(184, 184, 184, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--secondary);
  font-size: 1.05rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-marker {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-marker::before {
  width: 12px;
  height: 1px;
}

.faq-marker::after {
  width: 1px;
  height: 12px;
}

.faq-item[open] .faq-marker::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0.2);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.footer {
  padding: 48px 0 30px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent 18%),
    #111111;
}

.legal-page {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7) 76%, var(--primary)),
    url("./backcosmo.png") center/cover no-repeat fixed;
}

.privacy-page {
  min-height: 100vh;
}

.privacy-header {
  display: flex;
  justify-content: center;
  padding: 28px 20px 0;
}

.privacy-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.privacy-logo {
  height: 28px;
}

.privacy-main {
  padding: 42px 0 72px;
}

.privacy-shell {
  width: min(100%, 920px);
}

.privacy-hero {
  padding-bottom: 28px;
}

.privacy-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
  text-align: left;
}

.privacy-updated,
.privacy-notice {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.privacy-article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.privacy-section + .privacy-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.privacy-section h2 {
  margin-bottom: 12px;
  font-size: 1.38rem;
  line-height: 1.15;
}

.privacy-section p,
.privacy-section li {
  color: var(--muted);
}

.privacy-section p + p,
.privacy-section ul + p {
  margin-top: 10px;
}

.privacy-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.privacy-section li + li {
  margin-top: 8px;
}

.privacy-toc {
  columns: 2;
  column-gap: 24px;
  list-style: disc;
}

.privacy-toc li {
  margin: 0 0 8px;
  break-inside: avoid;
}

.legal-hero {
  padding: 88px 0 32px;
}

.legal-shell {
  width: min(100%, 920px);
}

.legal-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1;
}

.legal-intro {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-content {
  padding: 0 0 72px;
}

.legal-article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.legal-section + .legal-section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.42rem;
  line-height: 1.15;
}

.legal-section p {
  color: var(--muted);
}

.legal-section p + p {
  margin-top: 10px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 42px;
  align-items: center;
}

.footer p {
  margin-top: 14px;
  max-width: 420px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.footer-labs-logo {
  width: 200px;
  height: auto;
  display: block;
}

.footer-legal a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 180ms ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer .brand {
  gap: 0;
}

.footer-logo {
  height: 18px;
}

.footer-links {
  flex-wrap: wrap;
}

.footer-links,
.socials {
  display: flex;
  gap: 18px;
}

.footer-links {
  color: var(--muted);
}

.footer-links a {
  padding: 8px 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(184, 184, 184, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.socials a img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(74%) sepia(5%) saturate(0%) hue-rotate(204deg) brightness(92%) contrast(86%);
  transition: filter 180ms ease;
}

.socials a:hover {
  color: #fff;
  border-color: rgba(184, 184, 184, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.socials a:hover img {
  filter: brightness(0) saturate(100%) invert(1);
}

.copyright {
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.88rem;
}

.fade-up {
  animation: fadeUp 760ms ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 32%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  to {
    background-position: 54px 71px, 106px 100px, 189px 102px, 274px 202px, 375px 209px;
  }
}

@keyframes driftChaos {
  to {
    transform: translate3d(-72px, 48px, 0);
  }
}

@keyframes float {
  50% {
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .header-logo {
    height: 17px;
  }

  .privacy-logo {
    height: 24px;
  }

  .footer-logo {
    height: 17px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav {
    min-height: 74px;
  }

  .hero {
    min-height: 860px;
    padding: 112px 0 0;
  }

  .wallet-visual {
    top: 92px;
    right: 50%;
    width: min(360px, calc(100vw - 40px));
    transform: translateX(50%);
  }

  .wallet-visual {
    animation: mobileFloat 7s ease-in-out infinite;
  }

  .hero-content {
    margin: 0 auto;
    margin-top: 390px;
  }

  .orbit {
    left: 50%;
    top: 58%;
  }

  .hero-title-mark {
    width: min(100%, 833px);
  }

  .stats-grid,
  .feature-grid,
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .wallet-summary-layout,
  .trust-layout,
  .faq-layout,
  .download-panel,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .start-grid {
    grid-template-columns: 1fr;
  }

  .consent-popups {
    left: 50%;
    bottom: 12px;
    width: calc(100% - 60px);
    transform: translateX(-50%);
  }

  .privacy-main {
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 28px, var(--max-width));
  }

  .nav {
    min-height: 66px;
  }

  .header-logo {
    height: 16px;
  }

  .privacy-header {
    padding-top: 22px;
  }

  .privacy-logo {
    height: 22px;
  }

  .download-action {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 60;
  }

  .support-menu-panel {
    right: auto;
    left: 14px;
    top: calc(100% + 8px);
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .consent-popups {
    left: 50%;
    bottom: 72px;
    width: calc(100% - 60px);
    transform: translateX(-50%);
  }

  .consent-popup {
    width: 100%;
    padding: 20px 18px 18px;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    text-align: center;
  }

  .consent-popup-header h2 {
    font-size: 1.12rem;
  }

  .consent-popup-header p,
  .consent-link-button,
  .consent-popup-button {
    font-size: 0.92rem;
  }

  .consent-popup-button {
    min-height: 44px;
    padding: 0 18px;
  }

  .consent-popup-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .consent-popup-actions {
    justify-content: center;
  }

  .hero {
    min-height: 810px;
    padding: 86px 0 0;
  }

  .hero-content {
    margin-top: 374px;
  }

  .orbit {
    top: 55%;
  }

  .hero-title-mark {
    width: min(100%, 80vw);
  }

  .footer-logo {
    height: 16px;
  }

  .hero-actions .button,
  .download-panel .button,
  .download-buttons .button {
    width: 100%;
  }

  .privacy-main {
    padding: 28px 0 56px;
  }

  .privacy-hero {
    padding-bottom: 20px;
  }

  .privacy-article {
    padding: 22px 18px;
  }

  .privacy-section + .privacy-section {
    margin-top: 24px;
    padding-top: 24px;
  }

  .privacy-toc {
    columns: 1;
  }

  .download-buttons .button {
    min-height: 68px;
    padding: 14px 18px;
  }

  .download-buttons .download-icon {
    width: 10px;
    height: 16px;
  }

  .stats-grid,
  .feature-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .intro,
  .features,
  .trust,
  .ecosystem,
  .download {
    padding: 76px 0;
  }

  .faq {
    padding: 16px 0 76px;
  }

  .wallet-summary {
    padding: 56px 0 24px;
  }

  .intro {
    background-position: center, center, 50% 18%;
    background-size: auto, auto, 1250px auto;
  }

  .trust {
    background-position: center, center, 68% 48%;
    background-size: auto, auto, 1380px auto;
  }

  .download {
    background-position: center, center, 36% 76%;
    background-size: auto, auto, 1320px auto;
  }

  .start-card,
  .feature-card,
  .download-panel,
  .faq-item summary,
  .security-panel {
    padding: 22px;
  }

  .faq-item p {
    padding: 0 22px 22px;
  }

  .footer {
    padding-bottom: 78px;
  }

  .footer-links,
  .socials {
    flex-wrap: wrap;
  }

  .footer-labs-logo {
    width: min(100%, 170px);
  }
}

@keyframes mobileFloat {
  0%,
  100% {
    transform: translateX(50%) translateY(0);
  }
  50% {
    transform: translateX(50%) translateY(12px);
  }
}
