

:root {
  --bg-dark: #121212;
  --bg-panel: rgba(255, 255, 255, 0.03);;
  --bg-light: #2b2d31;
  --primary: #20c997;
  --primary-hover: #1aa179;
  --text-main: #f2f3f5;
  --text-muted: #949ba4;
  --border: #3f4147;
  --radius: 12px;
  --header-h: 70px;
  --sidebar-w: 250px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

code {
  background: #000;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
  font-family: monospace;
}

.mb0 {
  margin-bottom: 0 !important;
}

.mt {
  margin-top: 20px;
}

.mt2 {
  margin-top: 40px;
}



.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.btn--primary {
  background: var(--primary);
  color: #000;
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: #fff;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.chip {
  background: var(--bg-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip--hot {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}







.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--header-h);
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.topbar_inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand_logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand_text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand_name {
  font-weight: 800;
  letter-spacing: 1px;
}

.brand_sub {
  font-size: 0.75rem;
  color: var(--primary);
}

.topbar_actions {
  display: flex;
  gap: 10px;
}

.display-desktop {
  display: none;
}

@media(min-width: 768px) {
  .display-desktop {
    display: inline-flex;
  }
}

@media(max-width: 767px) {
  .btn_text {
    display: none;
  }
}



.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--header-h);
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  left: 0;
  top: var(--header-h);
  display: none;
}

@media(min-width: 1000px) {
  .shell {
    max-width: calc(1400px + 2 * var(--sidebar-w));
    padding-left: var(--sidebar-w);
    padding-right: var(--sidebar-w);
  }

  .sidebar {
    display: block;
    left: 10%;
    width: var(--sidebar-w);
  }
}

@media (max-width: 2300px) {
  .sidebar {
    left: 5%;
  }
}

@media (max-width: 2040px) {
  .sidebar {
    left: 2%;
  }
}


@media (max-width: 1900px) {
  .sidebar {
    left: 0;
  }
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px;
  height: calc(100vh - 100px);
  overflow-y: auto;
}

.toc_header {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.toc_list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc_link {
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.toc_link:hover,
.toc_link.active {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: var(--primary);
}

.content {
  flex-grow: 1;
  padding: 40px 20px;
  width: 100%;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}



.hero {
  margin-bottom: 80px;
}

.hero_grid {
  display: grid;
  gap: 40px;
  background: radial-gradient(circle at top right, rgba(32, 201, 151, 0.1), transparent 60%);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  
}

@media(min-width: 900px) {
  .hero_grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.hero_title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 10px 0;
  line-height: 1.1;
}

.hero_lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero_cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.meta {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.meta_k {
  font-weight: 700;
  color: var(--primary);
}

.hero_media img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero_caption {
  text-align: center;
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero_captionTitle {
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.chapter {
  margin-bottom: 100px;
  scroll-margin-top: 100px;
}

.chapter_head {
  margin-bottom: 40px;
  max-width: 700px;
}

.chapter_label {
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.chapter_title {
  font-size: 2.2rem;
  margin: 5px 0 10px;
}

.chapter_sub {
  font-size: 1.1rem;
  color: var(--text-muted);
}


.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.cards4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.masonry > *:nth-child(3n+1) {
  clear: left;
}

.panel,
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.panel:hover,
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.panel__title,
.card h3 {
  margin: 0 0 15px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel p,
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

@media (max-width: 1100px) {
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .masonry > *:nth-child(3n+1) {
    clear: none;
  }
  
  .masonry > *:nth-child(2n+1) {
    clear: left;
  }
}

@media (max-width: 768px) {
  .masonry {
    grid-template-columns: 1fr;
  }
  
  .masonry > *:nth-child(2n+1) {
    clear: none;
  }
}



.timeline {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  margin-top: 20px;
}

.timeline_item {
  position: relative;
  padding-bottom: 25px;
}

.timeline_item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-panel);
}

.timeline_when {
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.timeline_what {
  color: var(--text-muted);
  font-size: 0.9rem;
}



.callout {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
}

.callout_title {
  color: var(--discord);
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.kpis {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.kpi {
  flex: 1;
  min-width: 200px;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.kpi--wide {
  min-width: 100%;
}

.kpi_value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.kpi_label {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 5px;
}

.kpi_text {
  font-size: 0.85rem;
  color: var(--text-muted);
}



.kb2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.kb2_title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}

.kb2_list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.kb2_keys {
  font-weight: bold;
  color: #fff;
}

.kb2_desc {
  color: var(--text-muted);
}



.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.drawer_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: 0.3s;
}

.drawer[aria-hidden="false"] .drawer_backdrop {
  opacity: 1;
}

.drawer_sheet {
  position: absolute;
  inset: 0 0 0 auto;
  width: 300px;

  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-left: 1px solid var(--border);
  background-color: rgba(20, 19, 19, 0.425);
  backdrop-filter: blur(10px);
}

.drawer[aria-hidden="false"] .drawer_sheet {
  transform: translateX(0);
}

.drawer_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.drawer_title {
  font-weight: 800;
  font-size: 1.2rem;
}

.drawer_close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer_nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
}

.drawer_link {
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.drawer_link:active {
  background: var(--bg-light);
  color: #fff;
}

.drawer_footer {
  margin-top: auto;
  padding-top: 20px;
}



.site-footer {
  background-color: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  margin-top: auto;
  font-size: 0.95rem;
}

.site-footer_inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 900px) {
  .site-footer_top {
    grid-template-columns: 1fr 1.5fr;
  }
}

.site-footer_top {
  display: grid;
  gap: 40px;
}

.site-footer_title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.site-footer_meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  border-left: 2px solid var(--primary);
  padding-left: 15px;
}

.site-footer_content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer_p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer_p--soft {
  font-size: 0.9em;
  opacity: 0.9;
}

.site-footer_notice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.site-footer_noticeTitle {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.site-footer_bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #555;
  font-size: 0.85rem;
}

.site-footer_actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer_link {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

.site-footer_link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer_cta {
  background-color: var(--primary);
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, background-color 0.2s;
}

.site-footer_cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .site-footer_bottom {
    flex-direction: column;
    text-align: center;
  }
  .site-footer_actions {
    flex-direction: column;
    width: 100%;
  }
  .site-footer_cta {
    width: 100%;
    text-align: center;
  }
}



.js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease-out;
}

.js-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.imgview {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.imgview.imgview--open {
  opacity: 1;
  visibility: visible;
}

.imgview_card {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px #000;
  transform: scale(0.9);
  transition: 0.3s;
}

.imgview.imgview--open .imgview_card {
  transform: scale(1);
}

.imgview_img {
  display: block;
  max-height: 90vh;
}

.imgview_close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgview_close:hover {
  background: rgba(0,0,0,0.8);
}

.shot img {
  cursor: pointer;
}



.nav-arrow {
  display: inline-block;
  text-decoration: none;
  color: var(--primary);
  margin-left: 4px;
  font-weight: 900;
  font-size: 1.3em;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0.8;
  padding: 2px 4px;
  border-radius: 4px;
}

.nav-arrow:hover {
  opacity: 1;
  transform: scale(1.3);
  background-color: rgba(32, 201, 151, 0.15);
}

@media (min-width: 1000px) {
  .nav-arrow {
    animation: arrowBlink 2s infinite;
  }
  
  .nav-arrow--up {
    animation-delay: 0.5s;
  }
  
  .nav-arrow--down {
    animation-delay: 1s;
  }
  
  @keyframes arrowBlink {
    0%, 50% {
      opacity: 0.4;
    }
    25%, 75% {
      opacity: 1;
    }
    100% {
      opacity: 0.4;
    }
  }
  
  .nav-arrow:hover {
    animation: arrowHover 0.5s infinite alternate;
    transform: scale(1.4);
    background-color: rgba(32, 201, 151, 0.25);
  }
  
  @keyframes arrowHover {
    0% {
      opacity: 0.7;
    }
    100% {
      opacity: 1;
    }
  }
}

@media (max-width: 999px) {
  .nav-arrow {
    opacity: 0.6;
    font-size: 1.2em;
  }
  
  .nav-arrow:hover {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

.brand_name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.arrow{
  margin: auto;
  display: block;


}



