body { padding-top: 70px; }
html { scroll-padding-top: 84px; }
.topbar { position: fixed; z-index: 40; inset: 0 0 auto; padding: 12px 12px 0; pointer-events: none; }
.topbar-inner {
  pointer-events: auto; margin: auto; position: relative; max-width: 896px; min-height: 58px;
  display: flex; align-items: center; justify-content: space-between; padding: 8px;
  background: rgba(16,16,18,.84); border: 1px solid rgba(255,255,255,.065); border-radius: 16px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 3px #ffffff06, 0 12px 24px #0004;
}
.topbar .wordmark { color: #fff; font-size: 19px; letter-spacing: -.7px; margin-left: 4px; height: 40px; }
.topbar .wallet-mark { height: 24px; margin-right: 5px; }
.topbar-links { display:flex; gap:4px; align-items:center; position:absolute; left:calc(50% + 12px); transform:translateX(-50%); }
.topbar-item,.telegram-icon,.nav-burger {
  display:inline-flex; justify-content:center; align-items:center; color:rgba(255,255,255,.68); background:transparent;
  border:0; border-radius:6px; transition:background-color .18s,color .18s;
}
.topbar-item { height:32px; padding:4px 16px; font-size:14px; font-weight:500; white-space:nowrap; }
.topbar-item:hover,.topbar-item:focus-visible,.topbar-item[aria-expanded=true],.topbar-item[aria-current=page],.telegram-icon:hover,.nav-burger:hover { background:#ffffff0f; color:white; }
.nav-actions { display:flex; align-items:center; }
.telegram-icon,.nav-burger { width:36px; height:36px; }
.telegram-icon svg { width:18px; height:18px; }
.apps-disclosure { position:relative; }
.chevron { width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-1px) rotate(45deg); margin-left:9px; opacity:.75; transition:translate .3s; }
#apps-toggle[aria-expanded=true] .chevron { translate:0 1px; }
#apps-links,.topbar-links { --ease:cubic-bezier(.2,.7,.2,1); }
#apps-links {
  position:absolute; top:calc(100% + 8px); left:0; width:280px; padding:6px; max-height:calc(100dvh - 90px); overflow:auto;
  background:#151515; border:1px solid #ffffff17; border-radius:12px; box-shadow:0 15px 32px #0006;
  transition:opacity .18s,transform .18s var(--ease),visibility .18s; transform-origin:top left;
}
#apps-links[inert] { visibility:hidden; opacity:0; transform:translateY(-5px) scale(.985); pointer-events:none; }
#apps-links a { display:flex; gap:12px; align-items:center; border-radius:7px; padding:7px 10px; color:#cdcecd; font-size:14px; }
#apps-links a:hover,#apps-links a:focus-visible { color:white; background:#ffffff0d; }
#apps-links img { border-radius:6px; object-fit:contain; }
.nav-burger { display:none; position:relative; }
.nav-burger span { position:absolute; width:17px; height:1.5px; background:currentColor; transition:transform .2s,opacity .2s; }
.nav-burger span:first-child { transform:translateY(-5px); }
.nav-burger span:last-child { transform:translateY(5px); }
.nav-burger[aria-expanded=true] span:first-child { transform:rotate(45deg); }
.nav-burger[aria-expanded=true] span:nth-child(2) { opacity:0; }
.nav-burger[aria-expanded=true] span:last-child { transform:rotate(-45deg); }
.nav-page { max-width:1024px; margin:auto; padding:60px 24px 80px; min-height:70vh; }
.nav-page h1 { font-size:clamp(36px,5vw,60px); }
.nav-page .app-chapter,.nav-page .setup-section { padding-top:0; border:0; }
.directory-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr)); gap:15px; }
.directory-card,.release-note { background:#111411; border:1px solid #ffffff18; padding:24px; border-radius:16px; }
.directory-card h2,.release-note h2 { font-size:24px; margin:14px 0 8px; }
.directory-card img { object-fit:contain; border-radius:10px; }
.directory-card:hover { border-color:var(--accent); }
.directory-card p,.release-note p { color:var(--muted); }
.release-note { margin:24px 0; } .release-note .text-link { display:inline-block; margin-top:15px; }
@media(max-width:1023px){
  .topbar-inner { padding:0 18px; }
  .nav-burger { display:inline-flex; }
  .topbar-links { position:absolute; top:calc(100% - 2px); left:-1px; right:-1px; transform:none; display:block; border-radius:0 0 16px 16px; background:#111111; border:1px solid #ffffff12; max-height:calc(100dvh - 84px); overflow:auto; padding:10px 12px; transition:opacity .2s,visibility .2s,translate .2s; }
  .topbar-inner:has(.nav-burger[aria-expanded=true]) { border-bottom-left-radius:0; border-bottom-right-radius:0; }
  .topbar-links[inert] { opacity:0; visibility:hidden; translate:0 -5px; }
  .topbar-item { width:100%; justify-content:flex-start; height:40px; }
  #apps-links { position:static; max-height:none; width:auto; margin-left:18px; border:0; box-shadow:none; background:transparent; }
  #apps-links[inert] { display:none; }
}

@font-face {
  font-family: Aeonik;
  src: url('/assets/aeonik-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url('/assets/aeonik-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
.topbar { font-family: Aeonik, Inter, sans-serif; }
.topbar-item { font-weight: 400; }
.hero .hero-title {
  font: 700 36px/.92 Aeonik, Inter, sans-serif;
  letter-spacing: -.055em;
  color: #e7e5e4;
  margin: 32px auto 24px;
}
.hero .hero-title span { color: inherit; }
.hero-title .wide-break { display: none; }
@media (max-width: 639px) { .hero-title span:first-child::after { content: ''; display: block; } }
@media (min-width: 640px) {
  .hero .hero-title { font-size: 56px; }
  .hero-title .wide-break { display: initial; }
  .hero-title .small-break { display: none; }
}
@media (min-width: 768px) { .hero .hero-title { font-size: 68px; } }
