@font-face {
  font-family: "HelveticaNeueCyr";
  src: url("../fonts/HelveticaNeueCyr-Light.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNeueCyr";
  src: url("../fonts/HelveticaNeueCyr-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {

  --vault-ink:   #041126;
  --vault-ink-2: #071B34;
  --vault-ink-3: #0B2340;
  --vault-edge:  #030B16;

  --paper-light: #081B34;
  --paper-line:  rgba(196, 222, 255, 0.14);

  --steel-blue:  #355F9B;
  --atomex-blue: #53698F;
  --chain-cyan:  #00D7CB;
  --cyan-soft:   rgba(0, 215, 203, 0.14);

  --paper:       #DDEAFA;
  --cool-gray:   rgba(196, 222, 255, 0.72);
  --dim-gray:    rgba(196, 222, 255, 0.50);
  --ink:         #DDEAFA;
  --ink-soft:    rgba(196, 222, 255, 0.72);

  --line:        rgba(196, 222, 255, 0.12);
  --line-strong: rgba(196, 222, 255, 0.24);
  --line-cyan:   rgba(0, 215, 203, 0.45);

  --font-display: "HelveticaNeueCyr", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(22px, 5vw, 68px);
  --radius: 5px;
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--vault-ink);
  color: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.mono { font-family: var(--font-mono); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.shell {
  width: min(100% - (2 * var(--gutter)), var(--maxw));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); color: var(--paper); }
.section-lede {
  color: var(--cool-gray);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 56ch;
  margin-top: 1.2rem;
}

.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--chain-cyan);
  opacity: 0.9;
}
.bracket::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bracket::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  background: var(--atomex-blue);
  color: var(--paper);
  border: 1.5px solid var(--atomex-blue);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.btn:hover { background: var(--steel-blue); border-color: var(--steel-blue); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--atomex-blue); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: rgba(221,234,250,0.46); background: rgba(221,234,250,0.08); }

.btn--ghost-ink { color: var(--paper); border-color: var(--line-strong); }
.btn--ghost-ink:hover {
  color: var(--paper);
  border-color: rgba(196,222,255,0.42);
  background: rgba(196,222,255,0.08);
}

.atomex-header .btn--ghost-ink,
.atomex-header.is-docked .btn--ghost-ink { color: var(--paper); border-color: rgba(221,234,250,0.30); }
.atomex-header .btn--ghost-ink:hover,
.atomex-header.is-docked .btn--ghost-ink:hover {
  color: var(--paper);
  border-color: rgba(221,234,250,0.54);
  background: rgba(221,234,250,0.10);
}

.atomex-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.atomex-header.is-docked {
  background: rgba(5, 20, 41, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  color: var(--paper);
}
.atomex-header .shell {
  width: min(100% - (2 * var(--gutter)), var(--maxw));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: inherit; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: 0;
  opacity: 0.9;
}

.atomex-nav { display: flex; align-items: center; gap: 2rem; }
.atomex-nav a {
  font-family: var(--font-body);
  font-size: 0.94rem;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.72;
  position: relative;
  padding: 0.3em 0;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.atomex-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.atomex-nav a:hover { opacity: 1; color: var(--chain-cyan); }
.atomex-nav a:hover::after { transform: scaleX(1); }
.atomex-header.is-docked .atomex-nav a:hover { color: var(--chain-cyan); }

.atomex-nav a.is-active {
  opacity: 1;
  color: var(--steel-blue);
  transform: translateY(-3px);
}
.atomex-header.is-docked .atomex-nav a.is-active { color: var(--chain-cyan); }
.atomex-nav a.is-active::after { transform: scaleX(1); }

.header-cta { display: inline-flex; align-items: center; gap: 0.8rem; }
.btn--docs { padding-inline: 1.15em; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  min-height: clamp(640px, 82svh, 820px);
  padding: clamp(136px, 17vh, 172px) var(--gutter) clamp(112px, 14vh, 148px);
  overflow: hidden;
  isolation: isolate;
  background: #051429;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -4;
  background: url("../media/atomex-hero-bg.webp") center bottom / cover no-repeat;
  opacity: 1;
  filter: none;
}
.hero::before {
  content: none;
}
.hero::after {
  content: none;
}

.hero__inner {
  width: min(100%, var(--maxw));
  margin-inline: auto;
}
.hero__stage {
  display: grid;
  grid-template-columns: minmax(430px, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(2rem, 4vw, 3.8rem);
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero__title-row {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.1rem);
  width: max-content;
  max-width: 100%;
}
.hero__mark {
  width: clamp(34px, 3.6vw, 46px);
  height: clamp(34px, 3.6vw, 46px);
  flex: none;
  margin: 0;
  color: var(--paper);
  filter: drop-shadow(0 12px 32px rgba(0, 215, 203, 0.18));
}
.hero h1 {
  font-size: clamp(2.1rem, 3.35vw, 3rem);
  letter-spacing: 0;
  line-height: 0.98;
  color: var(--paper);
  white-space: nowrap;
}
.hero h1 .accent { color: #C4DEFF; }
.hero__sub {
  margin: 1.35rem 0 0;
  max-width: 38ch;
  line-height: 1.2;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: rgba(221, 234, 250, 0.74);
}
.hero__actions {
  margin-top: 2.05rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: flex-start;
}
.hero__actions .btn { white-space: nowrap; }
.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 700px);
  transform: translateX(clamp(0px, 2vw, 24px));
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 7% 5% 1%;
  border-radius: 18px;
  background: rgba(0, 215, 203, 0.18);
  filter: blur(42px);
  opacity: 0.55;
}
.hero__visual img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,0.26));
}
.hero__chains {
  margin: 2.2rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(196, 222, 255, 0.18);
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(196, 222, 255, 0.72);
  width: fit-content;
  max-width: 100%;
}
.hero__chains b { color: var(--paper); font-weight: 600; }
.hero .btn--ghost-ink {
  color: var(--paper);
  border-color: rgba(196, 222, 255, 0.28);
}
.hero .btn--ghost-ink:hover {
  color: var(--paper);
  border-color: rgba(196, 222, 255, 0.52);
  background: rgba(196, 222, 255, 0.08);
}

.band { position: relative; padding-block: clamp(5.5rem, 10vw, 9rem); z-index: 1; }
.band--raised { background: var(--vault-ink-2);}

.band::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 104px 104px;
  opacity: 0.25;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 88%);
}

.chain-strip {
  background: #EEF4FB;
  color: #0A1D33;
  overflow: hidden;
}
.chain-strip::before {
  background-image:
    linear-gradient(rgba(46,95,159,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,95,159,0.09) 1px, transparent 1px);
  opacity: 0.55;
  mask-image: radial-gradient(110% 90% at 50% 20%, #000 18%, transparent 86%);
}
.chain-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 66% at 82% 52%, rgba(238,244,251,0.36), rgba(238,244,251,0.80) 72%, rgba(238,244,251,0.93) 100%),
    url("../media/chain-network-field.png") right clamp(-220px, -10vw, -92px) center / min(620px, 48vw) auto no-repeat,
    radial-gradient(70% 80% at 14% 12%, rgba(42,199,217,0.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(238,244,251,0.16));
}
.chain-strip__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: center;
}
.chain-strip__statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  color: #0A1D33;
  max-width: 16ch;
}
.chain-strip__statement em { font-style: normal; color: #2E5F9F; }
.chain-strip__meta { margin-top: 1.4rem; color: #35506e; max-width: 46ch; font-size: 1.02rem; }

.chain-list { display: flex; flex-direction: column; }
.chain-row {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  align-items: center;
  gap: 1.45rem;
  padding: 1.65rem 1.35rem;
  border-top: 1px solid rgba(46,95,159,0.14);
}
.chain-row:first-child { border-top: 0; }
.chain-row:last-child { border-bottom: 0; }
.chain-row:hover .chain-row__glyph { border-color: rgba(46,95,159,0.46); }
.chain-row__glyph {
  width: 75px; height: 82px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(46,95,159,0.32);
  clip-path: var(--hex);
  background:
    linear-gradient(145deg, rgba(235,243,252,0.98), rgba(190,213,238,0.84));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.62),
    0 14px 28px rgba(46,95,159,0.16);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.chain-row__glyph img {
  display: block;
  width: 76%;
  max-height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(10,29,51,0.16));
}
.chain-row__glyph--ltc img { width: 82%; max-height: 82%; }
.chain-row__glyph--eth img { width: 58%; max-height: 82%; }
.chain-row__glyph--xtz img { width: 48%; max-height: 84%; }
.chain-row__body {
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.48rem 0.22rem;
  margin-left: -0.48rem;
  background: linear-gradient(90deg, rgba(238,244,251,0.84), rgba(238,244,251,0.54) 72%, transparent);
}
.chain-row__body h3 { font-size: 1.38rem; font-weight: 600; display: flex; align-items: baseline; gap: 0.6rem; color: #0A1D33; }
.chain-row__body h3 .ticker { font-family: var(--font-mono); font-size: 0.88rem; color: #6E86A2; letter-spacing: 0.06em; }
.chain-row__body p { color: #203d5f; font-size: 1.06rem; font-weight: 500; margin-top: 0.25rem; }
.chain-row__spec {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: #2E5F9F;
  text-align: right;
  white-space: nowrap;
  display: none;
}

.swap-heritage { overflow: hidden; }
.swap-heritage__plate {
  position: absolute; inset: 0; z-index: 0;
  background: url("../media/mesh-constellation.jpg") center / cover no-repeat;
  opacity: 0.38;
  mask-image: radial-gradient(95% 130% at 80% 20%, #000 5%, transparent 78%);
  -webkit-mask-image: radial-gradient(95% 130% at 80% 20%, #000 5%, transparent 78%);
}
.swap-heritage .shell { position: relative; z-index: 1; }
.swap-heritage__head {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.swap-heritage__head .section-lede { margin-top: 0; justify-self: end; }

.protocol-steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.protocol-step { position: relative; background: var(--vault-ink); padding: 2rem 1.7rem; }
.protocol-step__idx {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--chain-cyan);
}
.protocol-step h3 { font-size: 1.5rem; margin-top: 1rem; }
.protocol-step p { color: var(--cool-gray); font-size: 0.98rem; margin-top: 0.7rem; }
.protocol-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px; top: 50%;
  width: 26px; height: 26px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 4px solid var(--line-cyan);
  border-right: 4px solid var(--line-cyan);
  background: var(--vault-ink);
  z-index: 2;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 0.4em 0.8em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cool-gray);
}
.pill--go { color: var(--chain-cyan); border-color: var(--line-cyan); }

.heritage-note {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--vault-ink-3);
}
.heritage-note .glyph { color: var(--chain-cyan); font-family: var(--font-mono); font-size: 1rem; }
.heritage-note p { color: var(--cool-gray); font-size: 0.98rem; }
.heritage-note strong { color: var(--paper); font-weight: 600; }

.transition-band {
  position: relative;
  height: clamp(150px, 24vw, 260px);
  background: url("../media/perspective-grid.jpg") center / cover no-repeat;
  display: grid;
  place-items: center;
}
.transition-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--vault-ink) 0%, transparent 28%, transparent 72%, var(--vault-ink-2) 100%);
}
.transition-band__label {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: center;
}
.transition-band__label span { display: block; color: var(--chain-cyan); font-size: clamp(0.8rem, 1.3vw, 0.95rem); margin-top: 0.85rem; letter-spacing: 0.2em; }

.custody-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: center;
}
.custody-aside h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.custody-aside .section-lede {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.28vw, 1.12rem);
  max-width: 48ch;
}
.custody-aside .keyline {
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.custody-aside .keyline div { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: baseline; font-size: 1.15rem; color: var(--cool-gray); }
.custody-aside .keyline b {
  width: 22px;
  height: 1px;
  background: var(--chain-cyan);
  color: transparent;
  font-size: 0;
  flex: none;
  transform: translateY(-0.28em);
}
.custody-aside__cap {
  display: block;
  margin-top: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--chain-cyan);
}

.custody-principles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.custody-principles::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url("../media/network-dome-black.jpg") center / cover no-repeat;
}
.custody-principles::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(155deg, rgba(5,20,41,0.74) 0%, rgba(5,20,41,0.9) 100%);
}
.principle {
  position: relative;
  z-index: 1;
  padding: 2.4rem 2rem;
  background: rgba(8, 27, 52, 0.34);
  transition: background 0.3s var(--ease);
}
.principle__icon { width: 38px; height: 38px; color: var(--chain-cyan); margin: 0 0 0.2rem; }
.principle h3 { font-size: 1.42rem; margin-top: 0.78rem; color: var(--paper); }
.principle p { color: var(--cool-gray); font-size: 1.04rem; margin-top: 0.68rem; line-height: 1.2;}
.principle__tag { display: inline-block; margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--chain-cyan); }

.download-dock {
  overflow: hidden;
  background: #EEF4FB;
  color: #0A1D33;
}
.download-dock::before { display: none; }
.download-dock__layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.6rem, 6vw, 5.5rem);
  align-items: center;
}
.dock-card {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(46,95,159,0.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.58);
}
.dock-card h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: #0A1D33; }
.dock-card > p { color: #35506e; margin-top: 1.1rem; max-width: 42ch; font-size: 1.02rem; }

.os-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.os-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.28rem 1.5rem;
  border: 1.5px solid rgba(46,95,159,0.20);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.34);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.os-row:hover { border-color: #2E5F9F; background: #2E5F9F; color: #EAF1F8; }
.os-row .os-name { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.24rem; }
.os-row .os-name svg,
.os-row .os-name .os-icon { width: 44px; height: 44px; color: #2AC7D9; flex: none; }
.os-row .os-name .os-icon { display: block; object-fit: contain; }
.os-row .os-name .os-icon--linux { width: 40px; height: 46px; }
.os-row .os-meta { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; color: #6E86A2; }
.os-row .os-get { font-family: var(--font-mono); font-size: 0.96rem; font-weight: 600; color: #2E5F9F; letter-spacing: 0.06em; }
.os-row:hover .os-meta,
.os-row:hover .os-get { color: rgba(234,241,248,0.82); }
.os-row:hover .os-name svg { color: #EAF1F8; }

.dock-fineprint { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.78rem; color: #6E86A2; letter-spacing: 0.02em; line-height: 1.4; }
.dock-fineprint a { color: inherit; border-bottom: 1px solid rgba(46,95,159,0.32); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.dock-fineprint a:hover { color: #2E5F9F; border-color: currentColor; }

.faq-panel h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.4rem; color: #0A1D33; }
.faq__item { border-bottom: 1px solid rgba(46,95,159,0.18); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0.2rem;
  background: none; border: 0; text-align: left;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: #0A1D33;
}
.faq__q .sign { flex: none; width: 24px; height: 24px; position: relative; }
.faq__q .sign::before, .faq__q .sign::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: #2E5F9F; transform: translate(-50%, -50%);
}
.faq__q .sign::before { width: 17px; height: 2px; }
.faq__q .sign::after  { width: 2px; height: 17px; transition: transform 0.35s var(--ease); }
.faq__item.is-open .sign::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height 0.35s var(--ease); }
.faq__a-inner { padding: 0 0.2rem 1.5rem; color: #35506e; font-size: 1rem; max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq__a { transition: none; } }

.atomex-footer { position: relative; z-index: 1; background: var(--vault-edge); overflow: hidden; border-top: 1px solid var(--line); }
.atomex-footer__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../media/network-dome.jpg") center 30% / cover no-repeat;
  opacity: 0.48;
  mask-image: radial-gradient(95% 130% at 50% 116%, #000 18%, transparent 82%);
  -webkit-mask-image: radial-gradient(95% 130% at 50% 116%, #000 18%, transparent 82%);
}
.atomex-footer .shell { position: relative; z-index: 1; padding-block: clamp(4rem, 8vw, 6rem) 2.2rem; }

.footer-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}
.footer-lockup { display: flex; align-items: center; gap: 1.1rem; }
.footer-lockup .brand__mark { width: 52px; height: 52px; color: var(--paper); }
.footer-lockup__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1;
}
.footer-hero p { color: var(--cool-gray); max-width: 34ch; font-size: 1.05rem; }

.footer-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col { display: grid; justify-items: center; text-align: center; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-gray); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--cool-gray); font-size: 0.98rem; padding: 0.36rem 0; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--chain-cyan); }

.footer-bottom {
  margin-top: 2.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
}
.footer-bottom .disclaimer { font-size: 0.78rem; color: var(--dim-gray); white-space: nowrap; }
.footer-bottom__links { justify-self: center; display: inline-flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-bottom__links a { color: var(--cool-gray); transition: color 0.25s var(--ease); }
.footer-bottom__links a:hover { color: var(--chain-cyan); }
.footer-bottom .sig { justify-self: end; font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim-gray); letter-spacing: 0.04em; white-space: nowrap; }

[data-reveal] {
  opacity: 0.01;
  clip-path: inset(0 0 7% 0);
  transition: opacity 0.42s var(--ease), clip-path 0.42s var(--ease);
}
[data-reveal].is-in { opacity: 1; clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; clip-path: inset(0); transition: none; } }

.subpage-main {
  min-height: 100vh;
  padding-top: 76px;
  background: var(--vault-ink);
}
.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, rgba(5,20,41,0.84), rgba(5,20,41,0.95)),
    url("../media/mesh-constellation.jpg") center / cover no-repeat;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}
.subpage-hero .shell,
.subpage-content .shell {
  z-index: 1;
}
.page-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chain-cyan);
}
.subpage-title {
  max-width: 13ch;
  margin-top: 1rem;
  color: var(--paper);
  font-size: clamp(2.35rem, 6vw, 4.5rem);
}
.subpage-lede {
  max-width: 62ch;
  margin-top: 1.4rem;
  color: var(--cool-gray);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  line-height: 1.42;
}
.subpage-content {
  padding: clamp(3.6rem, 7vw, 6rem) 0;
  background: #EEF4FB;
  color: #0A1D33;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.page-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: #35506e;
}
.page-aside a {
  width: fit-content;
  color: inherit;
  border-bottom: 1px solid rgba(46,95,159,0.24);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.page-aside a:hover { color: #2E5F9F; border-color: currentColor; }
.page-stack {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.page-section {
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(46,95,159,0.18);
}
.page-section:last-child { border-bottom: 0; padding-bottom: 0; }
.page-section h2 {
  color: #0A1D33;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 600;
}
.page-section h3 {
  margin-top: 1.25rem;
  color: #0A1D33;
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  font-weight: 600;
}
.page-section p,
.page-section li {
  color: #35506e;
  font-size: 1.02rem;
}
.page-section code {
  font-family: var(--font-mono);
  color: #0A1D33;
  background: rgba(46,95,159,0.08);
  padding: 0.12rem 0.28rem;
  border-radius: 3px;
}
.page-section p { margin-top: 0.82rem; max-width: 76ch; }
.plain-list,
.check-list {
  margin-top: 1rem;
  padding-left: 1.1rem;
}
.plain-list li,
.check-list li { margin-top: 0.48rem; }
.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.4rem;
  border: 1px solid rgba(46,95,159,0.16);
  background: rgba(46,95,159,0.16);
}
.meta-strip span {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  background: rgba(255,255,255,0.52);
  color: #35506e;
  font-size: 0.92rem;
}
.meta-strip b {
  font-family: var(--font-mono);
  color: #2E5F9F;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-table {
  width: 100%;
  margin-top: 1.2rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.doc-table th,
.doc-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(46,95,159,0.16);
  text-align: left;
  vertical-align: top;
}
.doc-table th {
  font-family: var(--font-mono);
  color: #2E5F9F;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc-table td { color: #35506e; }
.status-note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid #2E5F9F;
  background: rgba(255,255,255,0.44);
  color: #35506e;
}
.checksum-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  color: #0A1D33;
}

@media (max-width: 940px) {
  .hero {
    text-align: center;
  }
  .hero__stage {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .hero__copy {
    max-width: 620px;
    margin-inline: auto;
  }
  .hero__title-row {
    margin-inline: auto;
  }
  .hero__mark,
  .hero__sub {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__visual {
    justify-self: center;
    width: min(100%, 720px);
    transform: none;
  }
  .chain-strip__grid,
  .custody-layout,
  .download-dock__layout { grid-template-columns: 1fr; align-items: start; }
  .page-grid { grid-template-columns: 1fr; }
  .page-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid rgba(46,95,159,0.18);
  }
  .protocol-steps { grid-template-columns: 1fr; }
  .swap-heritage__head { grid-template-columns: 1fr; gap: 1.1rem; }
  .swap-heritage__head .section-lede { justify-self: start; }
  .protocol-step:not(:last-child)::after {
    right: 50%; top: auto; bottom: -14px;
    transform: translateX(50%) rotate(135deg);
  }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.55rem); }
  .hero__mark {
    width: clamp(34px, 9vw, 42px);
    height: clamp(34px, 9vw, 42px);
  }
  .hero__actions { flex-wrap: wrap; }
  .atomex-nav, .header-cta .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: transparent;
    border: 1.5px solid currentColor; border-radius: var(--radius); opacity: 0.8;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after  { position: absolute; top: 6px; }

  .mobile-nav {
    position: fixed; inset: 76px 0 auto 0;
    background: rgba(5,20,41,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    z-index: 45; flex-direction: column;
    padding: 1rem var(--gutter) 1.8rem;
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { font-family: var(--font-mono); font-size: 1rem; color: var(--cool-gray); padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 1.3rem; justify-content: center; color: var(--paper); }

  .subpage-title { max-width: 11ch; }
  .meta-strip { grid-template-columns: 1fr; }
  .doc-table { display: block; overflow-x: auto; white-space: nowrap; }
  .custody-principles { grid-template-columns: 1fr; }
  .principle:nth-child(odd) { border-right: 0; }
  .principle { border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom .disclaimer,
  .footer-bottom .sig { justify-self: center; white-space: normal; }
  .footer-hero { align-items: flex-start; }
  .chain-row { grid-template-columns: 75px 1fr; }
  .chain-row__spec { grid-column: 2; text-align: left; }
}
