:root{
  --brand:#ffffff;
  --ink:#f5f5f5;
  --ink-dim:#b0b0b0;
  --mask:#444444;
  --glass: rgba(255,255,255,.08);
  --bg:#111111;
}

*{ box-sizing:border-box; }
html,body{ height:100% }
body{
  margin:0;
  font-family:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
  padding-bottom: 100px;
}

.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14%;
  z-index: 30;
}

.brand-link {
  display: flex;
  align-items: center;
  margin-left: 4%;
}
.brand-mark {
  height: 30px; width: 30px;
  object-fit: contain;
  filter: grayscale(100%) brightness(95%);
  opacity: .95;
  user-select: none;
  -webkit-user-drag: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 4%;
}

.docs-link,
.icon-pill{
  font-family:"Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--ink);
  text-decoration:none;
  opacity:.92;
  letter-spacing:.02em;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:.2rem 0;
  border:none;
  background:transparent;
  transition: opacity .2s ease;
}
.docs-link:hover,
.icon-pill:hover{ opacity:1; }

.icon-pill img{
  height:16px; width:16px; object-fit:contain;
  filter: brightness(95%);
}
.ext-arrow{ margin-left:2px; font-size: 0.95em; }

.x-link{
  font-weight:600;
}
.x-link img{ height:16px; width:16px; }

.hero-bg{
  position:fixed; inset:0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.35)),
    url("img/hero.jpg") center/cover no-repeat fixed;
  filter: grayscale(100%) contrast(110%);
  z-index:-2;
}
#pixel-mask{ position:fixed; inset:0; z-index:-1; pointer-events:none; }
.floaters{ position:fixed; inset:0; pointer-events:none; z-index:0; }

.wrap{
  max-width:1160px; margin:0 auto;
  padding:min(16vh,140px) 24px 48px;
}

.title{
  font-family:"Cinzel", serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size: clamp(42px, 8.2vw, 96px);
  line-height:1.08;
  margin:0 0 .3rem;
  text-shadow:
    0 1px 0 rgba(255,255,255,.05),
    0 10px 32px rgba(0,0,0,.65);
}

.subtitle{
  font-family:"Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight:600;
  font-size: clamp(26px, 4.6vw, 54px);
  line-height:1.15;
  margin:.45rem 0 1.8rem;
  text-shadow:0 8px 32px rgba(0,0,0,.6);
}

.lede{
  max-width: 56ch;
  line-height:1.75;
  color:var(--ink-dim);
  font-size:18px;
  margin:0 0 1.6rem;
}
.cta{
  display:inline-block;
  background:linear-gradient(180deg,#ffffff,#cccccc);
  color:#111111;
  padding:.9rem 1.3rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.4);
  text-decoration:none;
  font-weight:700;
  font-family:"Space Grotesk", system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(255,255,255,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover{ transform:translateY(-1px); box-shadow:0 14px 40px rgba(255,255,255,.2) }

.floater{
  position:absolute; width:22px; height:22px;
  border-radius:3px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.05);
  animation: drift linear infinite;
}
@keyframes drift{ from{ transform: translateY(0)} to{ transform: translateY(40px)} }

.backers-footer{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:6;
  padding:18px 20px 22px;
  background:none;
  text-align:center;
}
.backed-by{
  font-family:"Space Grotesk", system-ui, sans-serif;
  font-size:15px;
  letter-spacing:.02em;
  opacity:.9;
  margin:0 0 12px;
}
.backers-row{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:28px;
}
.backers-footer img{
  height:26px;
  opacity:.9;
  filter: grayscale(100%) brightness(95%);
}

@media (max-width:560px){
  .backers-footer img{ height:22px; }
  .backers-row{ gap:18px; }
}

@media (max-width:700px){
  .brand-mark{ height:26px; width:26px; }
  .wrap{ padding-top:120px; }
  .lede{ font-size:16px }
}

@media (max-width: 1024px){
  .wrap{ padding: min(14vh,120px) 20px 40px; }
  .title{ font-size: clamp(38px, 7.6vw, 84px); }
  .subtitle{ font-size: clamp(22px, 3.8vw, 44px); }
  .lede{ font-size: 17px; }
  .top-bar{ padding: 12px 20px; }
}

@media (max-width: 780px){
  .top-actions{ gap: 12px; }
  .icon-pill, .docs-link{ padding: .3rem 0; }
  .x-link img{ height: 16px; width: 16px; }
  .brand-mark{ height: 26px; width: 26px; }
  .wrap{ padding-top: 120px; }
  .title{ letter-spacing: .10em; }
  .subtitle{ margin-top: .35rem; margin-bottom: 1.4rem; }
  .cta{
    display: inline-flex; width: auto; min-width: 70%;
    justify-content: center; padding: .9rem 1rem;
  }
  .backers-footer{ padding: 14px 14px 18px; }
  .backed-by{ font-size: 14px; margin-bottom: 10px; }
  .backers-footer img{ height: 22px; }
  .backers-row{ gap: 18px; }
  body{ padding-bottom: 96px; }
}

@media (max-width: 520px){
  .title{ font-size: clamp(32px, 10.5vw, 56px); letter-spacing: .09em; line-height: 1.1; }
  .subtitle{ font-size: clamp(18px, 5.3vw, 28px); line-height: 1.2; }
  .lede{ font-size: 15.5px; line-height: 1.7; }
  .top-actions{ gap: 10px; }
  .backers-row{ gap: 14px 18px; padding: 0 8px; }
  .backers-footer img{ height: 20px; }
  body{ padding-bottom: 110px; }
}

@media (max-width: 380px){
  .top-bar{ padding: 10px 14px; }
  .brand-mark{ height: 24px; width: 24px; }
  .title{ font-size: clamp(26px, 12vw, 48px); }
  .subtitle{ font-size: clamp(16px, 5.8vw, 24px); }
  .lede{ font-size: 14.5px; }
  .cta{ min-width: 100%; padding: .85rem 1rem; border-radius: 12px; }
  .backers-footer{ padding: 12px 10px 16px; }
  .backers-footer img{ height: 18px; }
  body{ padding-bottom: 120px; }
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}