/* ═══════════════════════════════════════════════════
   ENCRYPTED FUTURE — JMWL Whitepaper Page
   Long-form reading layout · TOC navigation
   ═══════════════════════════════════════════════════ */

/* ── WHITEPAPER LAYOUT ── */
.wp-container {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 3rem;
}

/* ── SIDEBAR TOC ── */
.wp-toc {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  width: 240px;
  flex-shrink: 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.wp-toc-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.wp-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-toc-list li {
  margin-bottom: 0.2rem;
}

.wp-toc-list a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.wp-toc-list a:hover {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  border-left-color: var(--cyan);
}

.wp-toc-list a.active {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border-left-color: var(--cyan);
  font-weight: 600;
}

/* Scrollbar styling for TOC */
.wp-toc::-webkit-scrollbar {
  width: 3px;
}
.wp-toc::-webkit-scrollbar-track {
  background: transparent;
}
.wp-toc::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
}

/* ── MAIN CONTENT AREA ── */
.wp-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 6rem;
}

/* ── HERO / HEADER ── */
.wp-hero {
  position: relative;
  z-index: 1;
  padding: 10rem 2rem 5rem;
  text-align: center;
}

.wp-hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.wp-hero-tag::before,
.wp-hero-tag::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.4;
}

.wp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.wp-hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.wp-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.wp-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.wp-meta-item svg {
  width: 14px;
  height: 14px;
  fill: var(--cyan);
  opacity: 0.7;
}

.wp-divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), rgba(0, 240, 255, 0.15), var(--glass-border), transparent);
}

/* ── CONTENT SECTIONS ── */
.wp-section {
  padding: 4rem 0;
  scroll-margin-top: 100px;
}

.wp-section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.wp-section-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.wp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ── TYPOGRAPHY ── */
.wp-body p {
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.wp-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.wp-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--cyan);
}

.wp-body ul, .wp-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.wp-body li {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.wp-body li::marker {
  color: var(--cyan);
}

.wp-body strong {
  color: var(--text);
  font-weight: 600;
}

.wp-body em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 500;
}

.wp-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 240, 255, 0.3);
  transition: text-decoration-color 0.3s;
}

.wp-body a:hover {
  text-decoration-color: var(--cyan);
}

/* ── BLOCKQUOTE ── */
.wp-body blockquote {
  position: relative;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--cyan);
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  backdrop-filter: blur(12px);
}

/* ── INFO / HIGHLIGHT CARD ── */
.wp-highlight {
  padding: 2rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wp-highlight-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-highlight-title .icon {
  color: var(--cyan);
}

/* ── STATS / KEY METRICS ── */
.wp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.wp-stat-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.wp-stat-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wp-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.wp-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── ROADMAP / TIMELINE ── */
.wp-timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}

.wp-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.wp-timeline-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.5rem;
}

.wp-timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.8rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateX(-4px);
}

.wp-timeline-item.future::before {
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.wp-timeline-phase {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.wp-timeline-item.future .wp-timeline-phase {
  color: var(--purple);
}

.wp-timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wp-timeline-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── TEAM GRID ── */
.wp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.wp-team-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.wp-team-card:hover {
  border-color: rgba(0, 240, 255, 0.15);
  transform: translateY(-3px);
}

.wp-team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.wp-team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.wp-team-role {
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.wp-team-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── DISCLAIMER CARD ── */
.wp-disclaimer {
  padding: 2rem;
  margin: 2rem 0;
  background: rgba(255, 94, 0, 0.04);
  border: 1px solid rgba(255, 94, 0, 0.15);
  border-radius: var(--radius);
  border-left: 3px solid #ff5e00;
}

.wp-disclaimer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ff5e00;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-disclaimer p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── BACK TO TOP ── */
.wp-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.wp-back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.wp-back-top:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* ── MOBILE TOC TOGGLE ── */
.wp-toc-toggle {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.wp-toc-toggle:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .wp-container {
    flex-direction: column;
  }

  .wp-toc {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    padding-top: 5rem;
  }

  .wp-toc.mobile-open {
    transform: translateX(0);
  }

  .wp-toc-toggle {
    display: flex;
  }

  .wp-toc-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
  }

  .wp-toc-close:hover {
    color: var(--cyan);
    border-color: var(--cyan);
  }

  .wp-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .wp-section {
    padding: 3rem 0;
  }
}

@media (min-width: 961px) {
  .wp-toc-close {
    display: none;
  }
}

@media (max-width: 640px) {
  .wp-hero-title {
    font-size: 2rem;
  }

  .wp-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .wp-stats {
    grid-template-columns: 1fr 1fr;
  }

  .wp-container {
    padding: 0 1rem;
  }
}
