/* ========================================
   MEIAUM Digital — Style Guide 2026
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap");

/* ── Reset & Base ─────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #040404;
  background-image: url("https://meiaum.digital/wp-content/uploads/2025/05/bg-hyperboost.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: #2a84ef;
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.8;
}

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

/* ── Layout ───────────────────────────── */
.layout {
  display: grid;
  min-height: 100vh;
}

.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 60px 80px;
  width: 100%;
}

/* ── Sidebar ──────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #0a0a0a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
  width: 160px;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}

.sidebar-nav li {
}

.sidebar-nav a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
}

.sidebar-nav a.active {
  color: #2a84ef;
  border-left-color: #2a84ef;
  background: rgba(42, 132, 239, 0.08);
  font-weight: 500;
}

.sidebar-nav .nav-number {
  display: inline-block;
  width: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

.sidebar-nav a.active .nav-number {
  color: #2a84ef;
}

/* Sub-navigation (anchors within page) */
.sidebar-nav .sub-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav .sub-nav a {
  padding: 6px 20px 6px 47px;
  font-size: 12px;
  border-left: none;
}

/* Hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* ── Typography ───────────────────────── */
h1 {
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

h3 {
  font-size: 22px;
  font-weight: 500;
  color: #e7e7e7;
  margin: 32px 0 12px;
}

h4 {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 24px 0 8px;
}

p {
  margin-bottom: 16px;
}

strong {
  color: #ffffff;
  font-weight: 600;
}

/* ── Hero Section ─────────────────────── */
.hero {
  text-align: center;
  padding: 60px 0 48px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 12px;
}

.hero .subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

.hero .badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  background: rgba(42, 132, 239, 0.15);
  color: #2a84ef;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Module Header ────────────────────── */
.module-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.module-header .module-number {
  font-size: 14px;
  font-weight: 600;
  color: #2a84ef;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.module-header h1 {
  margin-bottom: 12px;
}

.module-header .module-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 700px;
}

.module-header .doc-count {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: #3f444b;
  border-radius: 12px;
  font-size: 12px;
  color: #e7e7e7;
}

/* ── Cards ────────────────────────────── */
.card {
  background: #3f444b;
  border-radius: 8px;
  padding: 24px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  opacity: 1;
}

.card-link .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.card-link .card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.card-link .card-number {
  font-size: 12px;
  font-weight: 600;
  color: #2a84ef;
  margin-bottom: 8px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.kpi-card {
  background: #3f444b;
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
}

.kpi-card .kpi-value {
  font-size: 32px;
  font-weight: 700;
  color: #2a84ef;
  margin-bottom: 4px;
}

.kpi-card .kpi-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

/* ── Methodology Flow ─────────────────── */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px 0;
  flex-wrap: wrap;
}

.flow-step {
  background: rgba(42, 132, 239, 0.12);
  border: 1px solid rgba(42, 132, 239, 0.3);
  border-radius: 8px;
  padding: 16px 24px;
  text-align: center;
  min-width: 160px;
}

.flow-step .step-name {
  font-size: 16px;
  font-weight: 600;
  color: #2a84ef;
}

.flow-step .step-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.flow-arrow {
  font-size: 24px;
  color: #2a84ef;
  padding: 0 12px;
}

/* ── Callout / Blockquote ─────────────── */
.callout {
  border-left: 3px solid #2a84ef;
  padding: 16px 20px;
  background: rgba(42, 132, 239, 0.06);
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  font-size: 15px;
}

.callout-green {
  border-left-color: #05db3c;
  background: rgba(5, 219, 60, 0.06);
}

.callout-yellow {
  border-left-color: #f0ad4e;
  background: rgba(240, 173, 78, 0.06);
}

.callout-red {
  border-left-color: #e74c3c;
  background: rgba(231, 76, 60, 0.06);
}

blockquote {
  border-left: 3px solid #2a84ef;
  padding: 12px 20px;
  background: rgba(42, 132, 239, 0.06);
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Tables ───────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  background: #2a84ef;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: rgba(63, 68, 75, 0.3);
}

tbody tr:nth-child(odd) {
  background: rgba(63, 68, 75, 0.15);
}

tbody tr:hover {
  background: rgba(42, 132, 239, 0.08);
}

/* ── Code Blocks ──────────────────────── */
.code-block,
pre {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

code {
  background: rgba(42, 132, 239, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #2a84ef;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── Lists ────────────────────────────── */
ul,
ol {
  padding-left: 24px;
  margin: 12px 0;
}

li {
  margin-bottom: 6px;
}

ul li::marker {
  color: #2a84ef;
}

/* ── Tags / Badges ────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-blue {
  background: rgba(42, 132, 239, 0.2);
  color: #2a84ef;
}
.tag-green {
  background: rgba(5, 219, 60, 0.2);
  color: #05db3c;
}
.tag-yellow {
  background: rgba(240, 173, 78, 0.2);
  color: #f0ad4e;
}
.tag-red {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}
.tag-purple {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
}
.tag-gray {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ── Buttons ──────────────────────────── */
.btn-primary {
  display: inline-block;
  background: #2a84ef;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 3px;
  padding: 10px 25px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-primary:hover {
  background: #1a6fd4;
  opacity: 1;
}

/* ── Section Divider ──────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 48px 0;
}

/* ── TOC (Table of Contents) ──────────── */
.toc {
  background: rgba(42, 132, 239, 0.06);
  border: 1px solid rgba(42, 132, 239, 0.15);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px 0 40px;
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: #2a84ef;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}

.toc a:hover {
  color: #2a84ef;
  opacity: 1;
}

/* ── Collapsible ──────────────────────── */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 16px 20px;
  background: #3f444b;
  border-radius: 8px;
  margin-top: 12px;
  transition: background 0.2s;
}

.collapsible-header:hover {
  background: rgba(63, 68, 75, 0.8);
}

.collapsible-header h4 {
  margin: 0;
  font-size: 16px;
}

.collapsible-header .toggle-icon {
  font-size: 18px;
  color: #2a84ef;
  transition: transform 0.3s;
}

.collapsible-header.open .toggle-icon {
  transform: rotate(180deg);
}

.collapsible-body {
  display: none;
  padding: 20px;
  background: rgba(63, 68, 75, 0.15);
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
}

.collapsible-body.open {
  display: block;
}

/* ── Pricing Cards ────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.pricing-card {
  background: #3f444b;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.pricing-card.featured {
  border-color: #2a84ef;
}

.pricing-card .pricing-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.pricing-card .pricing-price {
  font-size: 28px;
  font-weight: 700;
  color: #2a84ef;
  margin: 12px 0;
}

.pricing-card .pricing-price span {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 16px 0;
}

.pricing-card li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-card li::before {
  content: "✓ ";
  color: #05db3c;
  font-weight: 700;
}

/* ── Progress Bar ─────────────────────── */
.progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: #2a84ef;
  border-radius: 4px;
  transition: width 0.5s;
}

.progress-fill.green {
  background: #05db3c;
}
.progress-fill.yellow {
  background: #f0ad4e;
}
.progress-fill.red {
  background: #e74c3c;
}

/* ── Prev / Next Navigation ───────────── */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-nav a {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  background: rgba(42, 132, 239, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(42, 132, 239, 0.15);
  transition: background 0.2s;
  max-width: 45%;
}

.page-nav a:hover {
  background: rgba(42, 132, 239, 0.15);
  opacity: 1;
}

.page-nav .nav-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.page-nav .nav-title {
  font-size: 15px;
  font-weight: 500;
  color: #2a84ef;
}

.page-nav .next {
  text-align: right;
  margin-left: auto;
}

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .content {
    padding: 48px 32px 80px;
  }

  .card-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .content {
    padding: 32px 20px 60px;
  }

  .card-grid,
  .card-grid-2,
  .pricing-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
    gap: 0;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .page-nav {
    flex-direction: column;
    gap: 12px;
  }

  .page-nav a {
    max-width: 100%;
  }

  table {
    font-size: 13px;
  }
  thead th,
  tbody td {
    padding: 8px 12px;
  }
}

/* ── Scrollbar ────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #3f444b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
