*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.section { padding-block: 76px; }
.section-band { padding-block: 76px; background: var(--bg-raised); border-block: 1px solid var(--line); }
main [id] { scroll-margin-top: 92px; }
.section-heading { max-width: 790px; margin-bottom: 42px; }
.section-heading.compact { max-width: 640px; }
.section-heading h2 {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}
.section-heading p:not(.eyebrow) { margin: 0; color: var(--paper-muted); font-size: 18px; }
.eyebrow { margin: 0; color: var(--gold); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.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;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  inset: 12px auto auto 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled { background: rgba(9, 11, 12, 0.96); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 19px; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 27px; }
.site-nav a { color: var(--paper-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--paper); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 13px; }
.network-state { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-muted); font-size: 12px; }
.network-state span, .audit-state span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(216, 185, 104, 0.14); }
.language-control select {
  height: 38px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--paper);
}
[dir="rtl"] .language-control select { padding: 0 11px 0 30px; }
.menu-button { display: none; }

.hero-principle-scene { position: relative; overflow: hidden; }
.hero-scene-media { position: absolute; z-index: 0; top: calc(min(900px, 94vh) / 2); left: 57%; width: 100%; height: auto; max-width: none; transform: translate(-57%, -50%); }
.hero { position: relative; z-index: 1; min-height: min(900px, 94vh); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.hero-content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 110px; }
.hero h1 {
  max-width: 880px;
  margin: 8px 0 24px;
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: 0;
}
.hero-lead { max-width: 680px; margin: 0; color: var(--paper-muted); font-size: 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  font-weight: 800;
  text-decoration: none;
}
.button-primary { background: var(--gold); border-color: var(--gold); color: #15120c; }
.button-primary:hover { background: #efd486; }
.button-secondary { background: rgba(9, 11, 12, 0.66); }
.button-secondary:hover { background: var(--paper); color: var(--bg); }
.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.hero-facts div { min-height: 96px; display: grid; align-content: center; padding: 16px 24px; border-inline-end: 1px solid var(--line); }
.hero-facts div:last-child { border: 0; }
.hero-facts strong { font-size: 18px; }
.hero-facts span { color: var(--muted); font-size: 12px; }

.principle {
  position: relative;
  isolation: isolate;
}
.principle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(9, 11, 12, 0.36) 0%, rgba(9, 11, 12, 0.52) 18%, rgba(9, 11, 12, 0.84) 34%, var(--bg) 50%, var(--bg) 100%);
  pointer-events: none;
}

.protocol-flow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.protocol-flow > div { min-height: 250px; padding: 28px; border-inline-end: 1px solid var(--line); }
.protocol-flow > div:last-child { border: 0; }
.protocol-flow span { display: block; margin-bottom: 42px; color: var(--gold); font: 700 13px/1 var(--font-body); }
.protocol-flow strong { font-size: 19px; }
.protocol-flow p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.purpose-intro { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr); gap: 64px; align-items: end; }
.purpose-intro .section-heading { margin-bottom: 0; }
.purpose-manifesto { padding-inline-start: 26px; border-inline-start: 2px solid var(--gold); }
.purpose-manifesto h3 { margin: 0 0 10px; font-size: 20px; }
.purpose-manifesto p { margin: 0; color: var(--paper-muted); }
.purpose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 48px; border: 1px solid var(--line); background: var(--line); }
.purpose-grid article { min-height: 220px; padding: 26px; background: var(--bg); }
.purpose-grid span { display: flex; justify-content: space-between; gap: 12px; color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.purpose-grid span i { font-style: normal; }
.purpose-grid span b { color: var(--paper-muted); font-size: 10px; text-align: end; }
.purpose-grid h3 { margin: 38px 0 10px; font-size: 19px; }
.purpose-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.privacy-boundary { display: grid; grid-template-columns: 210px 1fr; gap: 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--coral); }
.privacy-boundary strong { color: var(--coral); }
.privacy-boundary p { margin: 0; color: var(--paper-muted); }

.architecture-grid, .security-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.interface-figure, .security-media { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #050607; box-shadow: var(--shadow); }
.interface-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #050607; }
.interface-figure figcaption { position: static; padding: 11px 15px; background: rgba(9, 11, 12, 0.96); border-top: 1px solid var(--line); color: var(--paper-muted); font-size: 12px; }
.security-media { min-height: 480px; }
.security-media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }

.ecosystem { padding-bottom: 76px; }
.ecosystem-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 32px; align-items: stretch; }
.product-media { min-height: 520px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #050607; }
.product-media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: center 70%; }
.ecosystem-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.ecosystem-modules article { min-height: 260px; padding: 26px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ecosystem-modules article:nth-child(2n) { border-inline-end: 0; }
.ecosystem-modules article:nth-last-child(-n+2) { border-bottom: 0; }
.ecosystem-modules article > b { color: var(--gold); font-size: 12px; text-transform: uppercase; }
.ecosystem-modules h3 { margin: 34px 0 10px; font-size: 19px; }
.ecosystem-modules p { margin: 0; color: var(--muted); font-size: 14px; }

.bridge { padding: 0 0 112px; }
.bridge-layout { position: relative; min-height: 510px; display: grid; align-content: center; padding: 58px; overflow: hidden; border: 1px solid var(--line); }
.bridge-layout > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.bridge-layout::after { content: ""; position: absolute; inset: 0; background: rgba(9, 11, 12, 0.68); }
.bridge-layout > *:not(img) { position: relative; z-index: 2; }
.bridge-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 18px; }
.bridge-flow div { min-height: 100px; display: grid; align-content: center; padding: 15px; border: 1px solid var(--line-strong); background: rgba(9, 11, 12, 0.76); }
.bridge-flow span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.bridge-flow i { color: var(--gold); font-style: normal; }
.honest-boundary { display: grid; grid-template-columns: 180px 1fr; gap: 24px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--coral); }
.honest-boundary strong { color: var(--coral); }
.honest-boundary p { margin: 0; color: var(--paper-muted); }

.economy-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.supply-figure { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: center; }
.allocation-chart {
  width: 280px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mint) 0 60%, var(--gold) 60% 75%, var(--coral) 75% 85%, var(--cyan) 85% 91%, var(--violet) 91% 96%, #e8a46f 96% 98%, #8c9294 98% 100%);
}
.allocation-chart::before { content: ""; grid-area: 1/1; width: 66%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); }
.allocation-chart span { position: relative; grid-area: 1/1; display: grid; text-align: center; }
.allocation-chart b { font-size: 40px; line-height: 1; }
.allocation-chart small { color: var(--muted); }
.supply-stats { display: grid; gap: 18px; }
.supply-stats div { display: grid; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.supply-stats strong { font-size: 24px; }
.supply-stats span { color: var(--muted); font-size: 12px; }
.allocation-list { display: grid; }
.allocation-list > div { min-height: 56px; display: grid; grid-template-columns: 12px 54px 1fr; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.allocation-list p { margin: 0; color: var(--paper-muted); }
.swatch { width: 9px; height: 9px; }
.swatch.rewards { background: var(--mint); }
.swatch.treasury { background: var(--gold); }
.swatch.team { background: var(--coral); }
.swatch.liquidity { background: var(--cyan); }
.swatch.adoption { background: var(--violet); }
.swatch.security { background: #e8a46f; }
.swatch.reserve { background: #8c9294; }
.price-note { margin: 48px 0 0; padding: 20px 22px; border-inline-start: 3px solid var(--gold); background: var(--surface); color: var(--paper-muted); }

.security-media { min-height: 460px; }
.security-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-block: 1px solid var(--line); }
.security-facts div { display: grid; min-height: 92px; align-content: center; padding: 12px; border-inline-end: 1px solid var(--line); }
.security-facts div:last-child { border: 0; }
.security-facts strong { font-size: 16px; }
.security-facts span { color: var(--muted); font-size: 11px; }
.audit-state { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; color: var(--gold); font-size: 13px; }

.news-feed { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.news-feed article { min-height: 360px; display: flex; flex-direction: column; border-inline-end: 1px solid var(--line); }
.news-feed article:nth-child(3n) { border-inline-end: 0; }
.news-feed article img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.news-feed article > div { min-height: 190px; display: flex; flex: 1; flex-direction: column; padding: 24px; }
.news-feed article span { color: var(--gold); font-size: 11px; text-transform: uppercase; }
.news-feed article h3 { margin: 14px 0 8px; font-size: 20px; }
.news-feed article p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.news-feed article a { margin-top: auto; color: var(--gold); font-weight: 800; }
.news-empty { grid-column: 1 / -1; margin: 0; padding: 34px; color: var(--muted); }

.document-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.document-grid article { min-height: 285px; display: flex; flex-direction: column; padding: 26px; border-inline-end: 1px solid var(--line); }
.document-grid article:last-child { border: 0; }
.document-grid article > span { color: var(--gold); font-size: 12px; }
.document-grid h3 { margin: 34px 0 10px; font-size: 18px; }
.document-grid p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.document-grid a { margin-top: auto; color: var(--gold); font-weight: 800; }
.claim-proof { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; margin-top: 22px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.claim-proof > div { min-width: 0; display: grid; }
.claim-proof span { color: var(--muted); font-size: 11px; }
.claim-proof code { overflow: hidden; color: var(--paper-muted); font-size: 12px; text-overflow: ellipsis; }
.claim-proof button { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--bg); color: var(--paper); cursor: pointer; }
.claim-proof a { color: var(--gold); font-size: 13px; }

.roadmap-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.roadmap-list li { display: grid; grid-template-columns: 64px 1fr 150px; gap: 24px; align-items: center; min-height: 130px; border-bottom: 1px solid var(--line); }
.roadmap-list li > span { color: var(--muted); }
.roadmap-list b { font-size: 18px; }
.roadmap-list p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.roadmap-list em { justify-self: end; color: var(--muted); font-size: 12px; font-style: normal; }
.roadmap-list .done em { color: var(--mint); }
.roadmap-list .active em, .roadmap-list .active > span { color: var(--gold); }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 48px 24px 0; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
[dir="rtl"] .faq-list summary { padding: 24px 0 24px 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; inset-inline-end: 8px; color: var(--gold); font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 850px; margin: -4px 0 24px; color: var(--paper-muted); }

.site-footer { padding: 64px 0 24px; border-top: 1px solid var(--line); background: #060708; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 9px; }
.footer-grid b { margin-bottom: 8px; }
.footer-grid a, .footer-grid span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-brand div { display: grid; }
.footer-brand strong { font-size: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 58px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

[dir="rtl"] .hero-content, [dir="rtl"] .section-heading { text-align: right; }

@media (max-width: 1060px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button { display: inline-flex; grid-column: 2; grid-row: 1; justify-self: end; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); color: var(--paper); }
  .site-nav { position: fixed; inset: 76px 0 auto; display: none; padding: 18px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: grid; }
  .header-actions { grid-column: 1 / -1; grid-row: 2; display: none; }
  .site-header.menu-open .header-actions { display: flex; position: fixed; inset: 300px 0 auto; padding: 14px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .hero-facts, .protocol-flow, .document-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-facts div:nth-child(2), .protocol-flow > div:nth-child(2), .document-grid article:nth-child(2) { border-inline-end: 0; }
  .hero-facts div:nth-child(-n+2), .protocol-flow > div:nth-child(-n+2), .document-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .architecture-grid, .security-grid, .economy-grid, .ecosystem-layout { grid-template-columns: 1fr; }
  .product-media { min-height: 420px; }
  .supply-figure { grid-template-columns: 280px 1fr; }
  .claim-proof { grid-template-columns: 1fr auto; }
  .news-feed { grid-template-columns: repeat(2, 1fr); }
  .news-feed article:nth-child(3n) { border-inline-end: 1px solid var(--line); }
  .news-feed article:nth-child(2n) { border-inline-end: 0; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 32px), var(--max-width)); }
  .section, .section-band { padding-block: 54px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading p:not(.eyebrow) { font-size: 16px; }
  .site-header { min-height: 68px; padding: 10px 16px; }
  .brand-copy small { display: none; }
  .site-nav { inset-block-start: 68px; }
  .site-header.menu-open .header-actions { inset-block-start: 292px; }
  .hero { min-height: 820px; }
  .hero-scene-media { top: 410px; left: 64%; width: auto; height: 1540px; transform: translate(-64%, -50%); }
  .hero-content { padding-top: 126px; padding-bottom: 48px; }
  .hero h1 { font-size: 54px; line-height: 0.98; overflow-wrap: anywhere; }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .hero-facts { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .hero-facts div { min-height: 78px; padding: 12px 16px; }
  .hero-facts strong { font-size: 15px; }
  .protocol-flow, .document-grid, .ecosystem-modules { grid-template-columns: 1fr; }
  .protocol-flow > div, .document-grid article, .ecosystem-modules article { min-height: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .protocol-flow > div:last-child, .document-grid article:last-child, .ecosystem-modules article:last-child { border-bottom: 0; }
  .protocol-flow span { margin-bottom: 22px; }
  .architecture-grid, .security-grid, .economy-grid { gap: 38px; }
  .security-media { min-height: 330px; }
  .product-media { min-height: 340px; }
  .ecosystem-modules article:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .bridge { padding-bottom: 76px; }
  .bridge-layout { min-height: 0; padding: 30px 20px; }
  .bridge-flow { grid-template-columns: 1fr; }
  .bridge-flow i { justify-self: center; transform: rotate(90deg); }
  .honest-boundary { grid-template-columns: 1fr; gap: 8px; }
  .supply-figure { grid-template-columns: 1fr; }
  .allocation-chart { width: min(100%, 280px); margin-inline: auto; }
  .security-facts { grid-template-columns: 1fr; }
  .security-facts div { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .security-facts div:last-child { border-bottom: 0; }
  .claim-proof { grid-template-columns: 1fr; align-items: start; }
  .news-feed { grid-template-columns: 1fr; }
  .news-feed article, .news-feed article:nth-child(2n), .news-feed article:nth-child(3n) { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .claim-proof code { white-space: normal; overflow-wrap: anywhere; }
  .roadmap-list li { grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; }
  .roadmap-list em { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

.error-page { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 14px; }
.error-page h1 { margin: 0; font-size: 88px; line-height: 1; }
.error-page p { margin: 0; color: var(--muted); }

@media (max-width: 1060px) {
  .purpose-intro { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .purpose-manifesto { padding-inline-start: 18px; }
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-grid article { min-height: auto; }
  .purpose-grid h3 { margin-top: 24px; }
  .privacy-boundary { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
