
:root {
  --bg: #1c1410;
  --bg-card: #2a1f17;
  --text: #f0e6d3;
  --text-muted: rgba(255,255,255,0.5);
  --accent: #ff6b35;
  --accent-rgb: 255,107,53;
  --accent2: #86ff35;
  --accent2-rgb: 134,255,53;
  --accent3: #ff4fb2;
  --accent3-rgb: 255,79,178;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font: 'DM Sans', sans-serif;
  --font-heading: 'DM Sans', sans-serif;
  --bodyBG: #1c1410;
  --textColor1: #f0e6d3;
  --textColor2: #111111;
  --textSecondary: #bbb2a2;
  --textMuted: #867d72;
  --secondStyleColor: #ff6b35;
  --bgCard: #2a1f17;
  --bgAlt: #2d2520;
  --borderSubtle: rgba(255,255,255,0.08);
  --borderRadius: 12px;
  --maxWidthContainer: 1200px;
  --scrollbarBg: rgba(255,255,255,0.1);
  --itemBgColor: transparent;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 100vw; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 100vw; }
::-webkit-scrollbar-thumb:hover { background: var(--secondStyleColor); filter: brightness(1.2); }
::-webkit-scrollbar-thumb:active { background: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) rgba(255,255,255,0.05); }

body {
  font-family: var(--font);
  background: var(--bodyBG);
  color: var(--textColor1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxWidthContainer);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; object-position: 50% 20%; }
ul { list-style: none; }
html { scroll-behavior: smooth; }

/* Standardized typography */
section h1 {
  font-size: 48px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}
section h2 {
  font-size: 36px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}
section h3 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
section h4 {
  font-size: 18px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
section p,
section li {
  font-size: 16px !important;
  line-height: 1.7 !important;
}
footer p,
footer li,
footer a {
  font-size: 14px !important;
  line-height: 1.6 !important;
}
footer h3 {
  font-size: 16px !important;
}
@media (max-width: 900px) {
  section h1 {
    font-size: 36px !important;
  }
  section h2 {
    font-size: 28px !important;
  }
}
@media (max-width: 600px) {
  section h1 {
    font-size: 30px !important;
  }
  section h2 {
    font-size: 24px !important;
  }
  section h3 {
    font-size: 18px !important;
  }
  section p,
  section li {
    font-size: 15px !important;
  }
}

/* Heading font */
section h1, section h2, section h3, section h4,
header h1, header h2, header h3, header h4,
footer h3 {
  font-family: var(--font-heading) !important;
}

/* Standardized section spacing */
section {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}
header, nav { padding-top: 0 !important; padding-bottom: 0 !important; }
footer {
  padding-top: 40px !important;
  padding-bottom: 24px !important;
}
section.toc {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.site-disclaimer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
}
.site-disclaimer p {
  font-size: 14px !important;
  font-style: italic;
  line-height: 1.5 !important;
  color: var(--textMuted);
  max-width: 800px;
  margin: 0 auto;
}
.toc .swiper-wrapper {
}
@media (max-width: 768px) {
  body > section,
  body > div > section,
  body > section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
}

/* Secondary pages */
.sec-page { padding: 80px 0; min-height: 60vh; }
.page-content { max-width: var(--maxWidthContainer); }
.page-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; }
.page-content h2 { font-size: 1.3rem; font-weight: 600; margin: 36px 0 12px; color: var(--textColor1); }
.page-content p { margin-bottom: 16px; color: var(--textSecondary); line-height: 1.8; font-size: 0.95rem; }
.page-content a { color: var(--secondStyleColor); text-decoration: underline; }
.page-content a:hover { opacity: 0.8; }

/* Overflow protection — word wrap only, no clipping */
section p,
section li,
section summary {
  overflow-wrap: break-word;
}


  /* ===== HEADER v6 — Glass floating bar + glow line ===== */

  .hd6 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 16px 0;
    transition: padding 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .hd6.scrolled {
    padding: 0;
  }

  .hd6__bar {
    position: relative;
    background: color-mix(in srgb, var(--bodyBG) 75%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--secondStyleColor) 12%, transparent);
    border-radius: var(--borderRadius);
    overflow: hidden;
    transition: border-radius 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .hd6.scrolled .hd6__bar {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Scanline overlay */
  .hd6__bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      color-mix(in srgb, var(--textColor1) 2%, transparent) 2px,
      color-mix(in srgb, var(--textColor1) 2%, transparent) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  .hd6__wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 20px;
    z-index: 2;
  }

  /* Glow line */
  .hd6__glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--secondStyleColor),
      var(--accent2),
      var(--secondStyleColor),
      transparent
    );
    background-size: 200% 100%;
    animation: hd6-glow-slide 3s linear infinite;
  }

  @keyframes hd6-glow-slide {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }

  /* Logo */
  .hd6__logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--textColor1);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    z-index: 110;
  }

  /* Desktop nav */
  .hd6__nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hd6__nav .hd6__link {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in srgb, var(--textColor1) 65%, transparent);
    text-decoration: none;
    border-radius: var(--borderRadius);
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
  }

  .hd6__nav .hd6__link:hover {
    color: var(--textColor1);
    background: color-mix(in srgb, var(--secondStyleColor) 10%, transparent);
  }

  .hd6__nav .hd6__link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondStyleColor);
    border-radius: 2px;
    transition: width 0.25s ease, left 0.25s ease;
  }

  .hd6__nav .hd6__link:hover::after {
    width: 60%;
    left: 20%;
  }

  /* CTA button — gradient */
  .hd6__cta {
    padding: 10px 24px;
    border-radius: var(--borderRadius);
    background: linear-gradient(135deg, var(--secondStyleColor), var(--accent2));
    color: var(--bodyBG);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hd6__cta:hover {
    transform: translateY(-1px);
    box-shadow:
      0 6px 20px color-mix(in srgb, var(--secondStyleColor) 30%, transparent);
  }

  /* Burger — hidden on desktop */
  .hd6__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 9px;
    background: color-mix(in srgb, var(--secondStyleColor) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--secondStyleColor) 20%, transparent);
    border-radius: 10px;
    cursor: pointer;
    z-index: 110;
    transition: border-color 0.25s ease, background 0.25s ease;
  }

  .hd6__burger:hover {
    border-color: color-mix(in srgb, var(--secondStyleColor) 40%, transparent);
    background: color-mix(in srgb, var(--secondStyleColor) 14%, transparent);
  }

  .hd6__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--textColor1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Burger active — X shape */
  .hd6__burger.active .hd6__burger-line:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .hd6__burger.active .hd6__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hd6__burger.active .hd6__burger-line:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile overlay — glass */
  .hd6__mobile {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: color-mix(in srgb, var(--bodyBG) 92%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
  }

  .hd6__mobile.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hd6__mobile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hd6__mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hd6__mobile li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .hd6__mobile.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .hd6__mobile.active li:nth-child(1) { transition-delay: 0.08s; }
  .hd6__mobile.active li:nth-child(2) { transition-delay: 0.14s; }
  .hd6__mobile.active li:nth-child(3) { transition-delay: 0.20s; }
  .hd6__mobile.active li:nth-child(4) { transition-delay: 0.26s; }

  .hd6__mobile .hd6__link {
    font-size: 24px;
    font-weight: 600;
    color: var(--textColor1);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--borderRadius);
    transition: color 0.2s ease, background 0.2s ease;
  }

  .hd6__mobile .hd6__link:hover {
    color: var(--secondStyleColor);
    background: color-mix(in srgb, var(--secondStyleColor) 8%, transparent);
  }

  .hd6__mobile-cta {
    padding: 16px 36px;
    border-radius: var(--borderRadius);
    background: linear-gradient(135deg, var(--secondStyleColor), var(--accent2));
    color: var(--bodyBG);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .hd6__mobile.active .hd6__mobile-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.32s;
  }

  .stopScroll {
    overflow: hidden;
  }

  /* Responsive */
  @media (max-width: 800px) {
    .hd6__nav {
      display: none;
    }

    .hd6__cta {
      display: none;
    }

    .hd6__burger {
      display: flex;
    }

    .hd6 {
      padding: 8px 10px 0;
    }

    .hd6.scrolled {
      padding: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hd6,
    .hd6__bar,
    .hd6__mobile,
    .hd6__mobile li,
    .hd6__mobile-cta,
    .hd6__burger-line,
    .hd6__burger,
    .hd6__cta,
    .hd6__nav .hd6__link,
    .hd6__nav .hd6__link::after {
      transition: none;
    }

    .hd6__glow {
      animation: none;
    }
  }



  .site-footer {
    border-top: 0.5px solid var(--secondStyleColor);
    padding: 20px 0;
  }
  .footerLogo {
    color: var(--textColor1);
  }

  .footer-inner {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .intoLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    span {
      width: 8px;
      height: 8px;
      background-color: var(--secondStyleColor);
      border-radius: 50%;
    }
    a {
      transition: 0.3s all linear;
      transform-origin: left;
      text-decoration: none;
      color: var(--textColor1);
    }
    a:hover {
      text-decoration: underline;
    }
  }
  @media screen and (max-width: 750px) {
    .intoLinks {
      flex-direction: column;
      span {
        display: none;
      }
    }
  }

  .f-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .f-social i {
    color: var(--secondStyleColor);
  }
  .copy {
    text-align: center;
    opacity: 0.5;
  }
  .footer-links {
    display: flex;
    gap: 1rem;
  }

  .footer-links a {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.75rem;
  }

  .footer-links a:hover {
    color: #fff;
  }


[data-aos]{opacity:0;transition:opacity 0.6s ease,transform 0.6s ease}
[data-aos="fade-up"]{transform:translateY(30px)}
[data-aos="fade-in"]{transform:none}
[data-aos="slide-left"]{transform:translateX(-30px)}
[data-aos="slide-right"]{transform:translateX(30px)}
[data-aos].aos-visible{opacity:1;transform:none}