/* ===========================
   CSS VARIABLES & RESET
=========================== */
:root {
  --font: 'Nunito', sans-serif;
  --font-display: 'Nunito', sans-serif;

  --bg:           #070707;
  --bg-card:      #0f0f0f;
  --bg-elevated:  #141414;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(157,255,0,0.25);

  --accent:       #9dff00;
  --accent-dim:   rgba(157,255,0,0.10);
  --accent-glow:  rgba(157,255,0,0.22);

  --text-light:   #ffffff;
  --text-body:    rgba(255,255,255,0.78);
  --text-muted:   rgba(255,255,255,0.50);
  --text-dim:     rgba(255,255,255,0.32);

  --transition:   0.22s ease;
  --radius:       14px;
  --radius-sm:    8px;

  /* Header pill */
  --header-pill-bg:     rgba(30, 30, 30, 0.82);
  --header-pill-border: rgba(255, 255, 255, 0.10);
  --header-blur:        blur(18px) saturate(1.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: var(--text-light); font-weight: 700; }

/* ===========================
   HEADER WRAPPER
   — Fixed wrapper so pill can
     sit offset from top
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* wrapper is transparent; visual styling lives on .header__pill */
  pointer-events: none; /* let clicks fall through wrapper gaps */
}

/* ===========================
   PILL — the visible capsule
=========================== */
.header__pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin: 16px auto 0;
  width: calc(100% - 48px);
  max-width: 1180px;
  height: 68px;
  padding: 0 10px 0 10px;

  background: var(--header-pill-bg);
  border: 1px solid var(--header-pill-border);
  border-radius: 999px;
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);

  transition:
    background   0.3s ease,
    box-shadow   0.3s ease,
    margin-top   0.3s ease,
    border-color 0.3s ease;
}

/* Scrolled state — pill tightens up and glows faintly */
.header.scrolled .header__pill {
  margin-top: 10px;
  background: rgba(18, 18, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(157, 255, 0, 0.04);
}

/* ===========================
   LOGO
=========================== */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.header__logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}

.header__logo:hover img { opacity: 0.85; }

/* ===========================
   DESKTOP NAV  (centered)
=========================== */
.header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  position: relative;
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.07);
}

/* Subtle green underline accent */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.22s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===========================
   GET STARTED BUTTON
=========================== */
.header__btn {
  pointer-events: all;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 800;
  color: #0a0a0a;
  background: var(--accent);
  padding: 10px 24px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    background   var(--transition),
    transform    var(--transition),
    box-shadow   var(--transition);
}

/* Shimmer sweep */
.header__btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.header__btn:hover::before { left: 140%; }

.header__btn:hover {
  background: #b0ff33;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(157, 255, 0, 0.38);
}

.header__btn:active { transform: translateY(0); }

/* ===========================
   HAMBURGER  (mobile)
=========================== */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  pointer-events: all;
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-light);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   MOBILE NAV DROPDOWN
   — renders below the pill
=========================== */
.header__mobile-nav {
  pointer-events: all;
  display: none;       /* block on mobile */
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;

  margin: 8px auto 0;
  width: calc(100% - 48px);
  max-width: 1180px;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid var(--header-pill-border);
  border-radius: 20px;
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  padding: 0 20px;

  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.35s ease,
    padding    0.35s ease;
}

.header__mobile-nav.open {
  max-height: 420px;
  opacity: 1;
  padding: 16px 20px 20px;
}

.mobile-nav__link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 999px;
  width: 100%;
  text-align: center;
  transition: color var(--transition), background var(--transition);
}

.mobile-nav__link:hover {
  color: var(--text-light);
  background: rgba(255,255,255,0.07);
}

.mobile-btn {
  margin-top: 8px;
  display: inline-block;
  width: auto;
  min-width: 140px;
}

/* ===========================
   RESPONSIVE — MOBILE
=========================== */
@media (max-width: 860px) {
  .header__nav         { display: none; }
  .header__btn:not(.mobile-btn) { display: none; }
  .header__hamburger   { display: flex; }
  .header__mobile-nav  { display: flex; }

  .header__pill {
    width: calc(100% - 24px);
    height: 60px;
    padding: 0 8px 0 8px;
  }
}

@media (max-width: 480px) {
  .header__pill { height: 56px; }
  .header__logo img { height: 44px; }
}

/* ===========================
   POST HERO
=========================== */
.post-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
}

.post-hero__featured-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.post-hero__featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.52);
}
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,7,7,0.20) 0%,
    rgba(7,7,7,0.12) 30%,
    rgba(7,7,7,0.70) 62%,
    rgba(7,7,7,0.97) 100%
  );
}

.post-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  animation: heroFadeUp 0.85s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.back-link:hover {
  color: var(--text-light);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.post-category {
  display: inline-block;
  background: var(--accent);
  color: #080808;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}

.post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.13;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 28px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-item svg { color: var(--accent); }
.meta-dot { color: var(--text-dim); }

/* ===========================
   ARTICLE LAYOUT
=========================== */
.post-main { padding: 72px 0 100px; }

.post-layout {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ===========================
   ARTICLE CONTENT
=========================== */
.post-article {
  animation: contentFadeUp 0.7s 0.3s ease both;
}

@keyframes contentFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-lead {
  font-size: 1.175rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.72;
  margin-bottom: 24px;
}

.post-article > p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.82;
}

/* Blockquote */
.post-quote {
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.75;
  margin: 36px 0 52px;
  position: relative;
}

.post-quote::before {
  content: '"';
  position: absolute;
  top: -12px; left: 20px;
  font-size: 4rem;
  color: var(--accent);
  font-family: var(--font-display);
  line-height: 1;
  opacity: 0.45;
}

/* ===========================
   WAY BLOCKS
=========================== */
.way-block {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.way-block:last-of-type { border-bottom: none; }

.way-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.way-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 4px;
  letter-spacing: -0.03em;
}

.way-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.28;
  letter-spacing: -0.01em;
  padding-top: 6px;
}

.way-body p {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.82;
  margin-bottom: 20px;
}

.way-body p:last-child { margin-bottom: 0; }

/* Perks list */
.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 28px;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color var(--transition), background var(--transition);
}

.perk-item:hover {
  border-color: var(--border-hover);
  background: rgba(157,255,0,0.04);
}

.perk-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.perk-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 4px;
}

.perk-item p {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* Two-col stat cards */
.two-col-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
  transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--border-hover); }

.stat-card--accent {
  border-color: rgba(157,255,0,0.2);
  background: var(--accent-dim);
}

.stat-card__num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.stat-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

/* Platforms row */
.platforms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.platform-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: default;
}

.platform-badge:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-dim);
}

/* ===========================
   BOTTOM CTA
=========================== */
.post-cta {
  margin-top: 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.post-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(157,255,0,0.3));
}

.post-cta__inner { padding: 48px; }

.post-cta__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.post-cta__heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.post-cta__body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 32px;
}

.post-cta__btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #080808;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 100px;
  transition: opacity var(--transition), transform var(--transition);
}

.post-cta__btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* ===========================
   SIDEBAR
=========================== */
.post-sidebar { position: relative; }

.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: contentFadeUp 0.7s 0.45s ease both;
}

.sidebar-nav {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-nav__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.sidebar-nav__label svg { color: var(--accent); }

.sidebar-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.toc-link:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }
.toc-link.active { color: var(--accent); background: var(--accent-dim); }

.toc-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 20px;
}

.toc-link.active .toc-num { opacity: 1; }

.sidebar-share {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-share__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.share-btns { display: flex; flex-direction: column; gap: 8px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.share-btn--linkedin { color: #5eabf5; }
.share-btn--twitter  { color: var(--text-muted); }

.share-btn:hover {
  border-color: var(--border-hover);
  background: rgba(157,255,0,0.05);
  color: var(--text-light);
}

.sidebar-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-tag__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: default;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-dim);
}

/* ===========================
   RESPONSIVE — ARTICLE
=========================== */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

@media (max-width: 600px) {
  .post-hero { min-height: 70vh; padding-bottom: 48px; }
  .post-main { padding: 48px 0 72px; }
  .post-cta__inner { padding: 32px 24px; }
  .two-col-stat { grid-template-columns: 1fr; }
}

/* ===========================
   FOOTER SECTION
=========================== */
.footer {
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
}

.footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 60px 60px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__logo {
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
}

.footer__logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}

.footer__logo:hover img { opacity: 0.85; }

.footer__tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 360px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.footer__col-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 14px;
}

.footer__col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  position: relative;
  letter-spacing: 0.01em;
  display: inline-block;
  margin-left: -16px;
  transition: color var(--transition), background var(--transition);
}

.footer__link:hover { color: var(--text-light); background: rgba(255,255,255,0.06); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 60px;
}

.footer__copy {
  max-width: 1300px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .footer__inner { padding: 70px 40px 50px; gap: 48px; }
  .footer__bottom { padding: 22px 40px; }
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; padding: 60px 24px 48px; gap: 48px 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__logo img { height: 90px; }
  .footer__tagline { font-size: 1rem; max-width: 100%; }
  .footer__bottom { padding: 20px 24px; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; padding: 48px 20px 40px; gap: 40px; }
  .footer__logo img { height: 67px; }
  .footer__col-title { font-size: 1.05rem; }
  .footer__link { font-size: 0.95rem; }
  .footer__tagline { font-size: 0.95rem; }
  .footer__bottom { padding: 18px 20px; }
  .footer__copy { font-size: 0.82rem; }
}