@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

/* =============================================
   BASE RESET & TOKENS
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #000000;
  --c-grey-100: #f5f5f5;
  --c-grey-200: #e8e8e8;
  --c-grey-400: #999999;
  --c-grey-700: #333333;
  --c-glass: rgba(255,255,255,0.07);
  --c-glass-border: rgba(255,255,255,0.18);

  --base: 8px;
  --sp1: 8px;
  --sp2: 16px;
  --sp3: 24px;
  --sp4: 32px;
  --sp5: 40px;
  --sp6: 48px;
  --sp8: 64px;
  --sp10: 80px;
  --sp12: 96px;

  --font-heading: 'Lexend Mega', 'Public Sans', Helvetica, Arial, sans-serif;
  --font-body: 'Public Sans', Helvetica, Arial, sans-serif;

  --radius-card: 10px;
  --nav-height: 64px;
  --bottom-bar-height: 64px;

  --transition-base: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  background: var(--c-black);
  color: var(--c-white);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--c-black);
  color: var(--c-white);
  min-height: 100vh;
  overflow-x: hidden;
}

body.home-page {
  padding-bottom: var(--bottom-bar-height);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* =============================================
   SCROLL MARGIN FOR SECTIONS
   ============================================= */
div[id] {
  scroll-margin-top: calc(var(--nav-height) + var(--bottom-bar-height) + var(--sp3));
}

/* =============================================
   GRID SYSTEM (12 columns)
   ============================================= */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp2);
  width: 100%;
}

/* =============================================
   SITE WRAPPER
   ============================================= */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-black);
  border-bottom: 1px solid var(--c-grey-700);
  height: var(--nav-height);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp3);
  height: var(--nav-height);
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: var(--sp3);
}

.header-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--sp1);
}

.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.header-nav p {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--sp1);
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav p::-webkit-scrollbar {
  display: none;
}

.header-nav p a {
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-grey-400);
  padding: var(--sp1) var(--sp2);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.header-nav p a:hover,
.header-nav p a:focus {
  color: var(--c-white);
  border-color: var(--c-grey-700);
  outline: none;
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
  background: var(--c-black);
  border-bottom: 2px solid var(--c-white);
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: var(--sp6) 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp3);
  align-items: center;
  position: relative;
}

.hero-badge {
  grid-column: 9 / 13;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-badge span {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: var(--sp1) var(--sp2);
  text-transform: uppercase;
}

.hero-content {
  grid-column: 7 / 13;
  grid-row: 2;
  text-align: right;
  padding: var(--sp4) 0;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin-bottom: var(--sp3);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-grey-400);
  margin-bottom: var(--sp4);
  max-width: 480px;
  margin-left: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: var(--sp2) var(--sp5);
  min-height: 48px;
  border: 2px solid var(--c-white);
  transition: background var(--transition-base), color var(--transition-base);
}

.hero-cta:hover,
.hero-cta:focus {
  background: var(--c-black);
  color: var(--c-white);
  outline: none;
}

.hero-deco {
  grid-column: 1 / 7;
  grid-row: 2;
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deco-block {
  position: absolute;
  border: 2px solid var(--c-white);
}

.deco-1 {
  width: 120px;
  height: 120px;
  top: 20px;
  left: 10%;
  background: transparent;
}

.deco-2 {
  width: 60px;
  height: 60px;
  top: 50px;
  left: calc(10% + 60px);
  background: var(--c-white);
}

.deco-3 {
  width: 180px;
  height: 80px;
  bottom: 20px;
  left: 20%;
  background: transparent;
  border-style: dashed;
}

.deco-label {
  position: absolute;
  bottom: 10px;
  left: 10%;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--c-grey-400);
  text-transform: uppercase;
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.site-main {
  flex: 1;
  padding: var(--sp8) 0;
}

.main-article {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp3);
  align-items: start;
}

/* =============================================
   ASIDE (left sidebar)
   ============================================= */
.content-aside {
  grid-column: 1 / 4;
  position: sticky;
  top: calc(var(--nav-height) + var(--sp3));
}

.aside-inner {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-card);
  padding: var(--sp4) var(--sp3);
}

.aside-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-grey-400);
  text-transform: uppercase;
  margin-bottom: var(--sp3);
  padding-bottom: var(--sp2);
  border-bottom: 1px solid var(--c-grey-700);
}

.aside-title span {
  display: block;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp1);
  margin-bottom: var(--sp4);
}

.aside-nav-list li a {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-grey-400);
  padding: var(--sp1) var(--sp2);
  min-height: 40px;
  display: flex;
  align-items: center;
  border-left: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.aside-nav-list li a:hover,
.aside-nav-list li a:focus {
  color: var(--c-white);
  border-left-color: var(--c-white);
  outline: none;
}

.aside-tag-block {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp1);
}

.aside-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-black);
  background: var(--c-white);
  padding: 2px var(--sp1);
  border-radius: 2px;
}

/* =============================================
   MAIN CONTENT SECTION
   ============================================= */
.main-content-section {
  grid-column: 4 / 13;
}

.content-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-white);
}

/* Content body typography */
.content-body h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin: var(--sp8) 0 var(--sp3);
  padding-bottom: var(--sp2);
  border-bottom: 2px solid var(--c-white);
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h2 span {
  display: inline;
}

.content-body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin: var(--sp6) 0 var(--sp2);
}

.content-body h3 span {
  display: inline;
}

.content-body p {
  margin-bottom: var(--sp3);
  color: var(--c-grey-200);
}

.content-body ul,
.content-body ol {
  margin-bottom: var(--sp3);
  padding-left: var(--sp4);
  list-style: disc;
}

.content-body ol {
  list-style: decimal;
}

.content-body li {
  margin-bottom: var(--sp1);
  color: var(--c-grey-200);
}

.content-body a {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  opacity: 0.75;
}

.content-body blockquote {
  border-left: 4px solid var(--c-white);
  padding: var(--sp3) var(--sp4);
  margin: var(--sp4) 0;
  background: var(--c-glass);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--c-grey-400);
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp4) 0;
  font-size: 0.9rem;
}

.content-body th {
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: var(--sp2) var(--sp3);
  text-align: left;
}

.content-body td {
  border-bottom: 1px solid var(--c-grey-700);
  padding: var(--sp2) var(--sp3);
  color: var(--c-grey-200);
}

/* Section dividers in content */
.content-body div {
  padding: var(--sp6) 0;
  border-top: 1px solid var(--c-grey-700);
}

.content-body div:first-child {
  border-top: none;
  padding-top: 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--c-black);
  border-top: 2px solid var(--c-white);
  padding: var(--sp3) 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp3);
  display: flex;
  align-items: center;
  gap: var(--sp4);
  min-height: 56px;
}

.footer-logo-wrap {
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-nav {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp1);
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-grey-400);
  padding: var(--sp1) var(--sp2);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-base);
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--c-white);
  outline: none;
}

.footer-copy {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--c-grey-400);
  white-space: nowrap;
}

/* =============================================
   BOTTOM FIXED NAV BAR
   ============================================= */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--c-black);
  border-top: 1px solid var(--c-grey-700);
  height: var(--bottom-bar-height);
  display: flex;
  align-items: center;
  padding: 0 var(--sp2);
  gap: var(--sp1);
}

.bottom-nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: var(--sp1);
  min-width: 40px;
  min-height: 40px;
}

.bottom-nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}

.bottom-nav-links::-webkit-scrollbar {
  display: none;
}

.bottom-nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--sp1) var(--sp2);
  min-width: 52px;
  min-height: 48px;
  color: var(--c-grey-400);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--transition-base);
}

.bottom-nav-link:hover,
.bottom-nav-link:focus {
  color: var(--c-white);
  outline: none;
}

.bnl-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.bnl-text {
  font-size: 0.6rem;
  line-height: 1;
}

.bottom-nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: var(--sp1) var(--sp3);
  min-height: 40px;
  white-space: nowrap;
  border: 2px solid var(--c-white);
  transition: background var(--transition-base), color var(--transition-base);
}

.bottom-nav-cta:hover,
.bottom-nav-cta:focus {
  background: var(--c-black);
  color: var(--c-white);
  outline: none;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .stagger-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .stagger-reveal.revealed {
    opacity: 1;
    transform: none;
  }

  .content-body div {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .content-body div.revealed {
    opacity: 1;
    transform: none;
  }

  .hero-content {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease 0.1s forwards;
  }

  .hero-deco {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.3s forwards;
  }

  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-column: 5 / 13;
  }

  .hero-deco {
    grid-column: 1 / 5;
  }

  .hero-badge {
    grid-column: 1 / 13;
    justify-content: flex-start;
  }

  .content-aside {
    grid-column: 1 / 4;
    position: relative;
    top: auto;
  }

  .main-content-section {
    grid-column: 4 / 13;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --bottom-bar-height: 56px;
  }

  .header-inner {
    padding: 0 var(--sp2);
    gap: var(--sp2);
  }

  .hero-section {
    min-height: 45vh;
    padding: var(--sp4) 0;
  }

  .hero-inner {
    padding: 0 var(--sp2);
    display: flex;
    flex-direction: column;
    gap: var(--sp3);
  }

  .hero-badge {
    order: 0;
    justify-content: flex-start;
  }

  .hero-deco {
    order: 1;
    height: 120px;
    width: 100%;
  }

  .hero-content {
    order: 2;
    text-align: right;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .hero-sub {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .main-article {
    display: flex;
    flex-direction: column;
    padding: 0 var(--sp2);
    gap: var(--sp4);
  }

  .content-aside {
    order: 2;
    grid-column: auto;
  }

  .main-content-section {
    order: 1;
    grid-column: auto;
  }

  .footer-inner {
    flex-wrap: wrap;
    padding: var(--sp2);
    gap: var(--sp2);
  }

  .footer-nav {
    order: 2;
    width: 100%;
  }

  .footer-copy {
    order: 3;
    white-space: normal;
    font-size: 0.65rem;
  }

  .bottom-nav-link .bnl-text {
    display: none;
  }

  .bottom-nav-link {
    min-width: 40px;
    padding: var(--sp1);
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .header-nav {
    display: none;
  }

  .hero-h1 {
    font-size: clamp(1.5rem, 9vw, 2.5rem);
  }

  .site-main {
    padding: var(--sp4) 0;
  }

  .content-body h2 {
    font-size: 1.3rem;
  }

  .content-body h3 {
    font-size: 1.1rem;
  }
}

/* =============================================
   UTILITY
   ============================================= */
.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;
}

button[aria-expanded]{min-width:44px;min-height:44px}
