/* ==========================================================================
   Renaissance AI — Whitepaper page
   ========================================================================== */

html{ scroll-padding-top: 128px; }

.wp-section{ scroll-margin-top: 128px; }

/* Reading progress bar ------------------------------------------------ */
.wp-progress{
  position: fixed;
  top:0; left:0; right:0;
  height: 2.5px;
  z-index: 600;
  background: rgba(255,255,255,.05);
}
.wp-progress span{
  display:block;
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--cyan));
  transition: width .1s linear;
}

.btn.is-current{
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212,162,78,.1);
}

/* ================= Header ================= */
.wp-header{
  position: relative;
  padding: 210px 0 70px;
  overflow: hidden;
  display:flex;
  justify-content:center;
}
.wp-header__bg{ position:absolute; inset:0; z-index:0; }
.wp-header__bg img{ width:100%; height:100%; object-fit:cover; object-position: 50% 40%; transform: scale(1.05); }
.wp-header__scrim{
  position:absolute; inset:0;
  background:
    radial-gradient(60% 60% at 50% 25%, rgba(5,7,13,.45), rgba(5,7,13,.9) 75%),
    linear-gradient(180deg, rgba(5,7,13,.6) 0%, rgba(5,7,13,.6) 20%, var(--bg) 97%);
}

.wp-header__content{
  position:relative; z-index:1;
  text-align:center;
  max-width: 740px;
  margin: 0 auto;
}
.wp-header__content .eyebrow{ color: var(--cyan); }

.wp-header__title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 0 0 12px;
  letter-spacing: .01em;
}
.wp-header__subtitle{
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 26px;
}

.wp-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  margin-bottom: 40px;
}
.wp-meta__dot{ color: var(--line-bright); }

/* ================= Table of Contents ================= */
.wp-toc{
  position: sticky;
  top: 64px;
  z-index: 300;
  background: rgba(5,7,13,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wp-toc__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display:flex;
  align-items:center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wp-toc__inner::-webkit-scrollbar{ display:none; }

.wp-toc a{
  flex: none;
  padding: 15px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.wp-toc a:hover{ color: var(--ink); }
.wp-toc a.is-active{ color: var(--gold-bright); border-color: var(--gold); }

/* ================= Content layout ================= */
.wp-content{ background: var(--bg); }

.wp-section{ padding: 90px 0; }
.wp-section--alt{ background: var(--bg-alt); }
.wp-section__inner{ max-width: 780px; }

.wp-section__head{
  display:flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 30px;
}
.wp-num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 5px 14px;
  letter-spacing: .06em;
  flex: none;
}
.wp-section__head .section-title{ margin:0; }

.wp-prose p{
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-dim);
}
.wp-prose p:last-child{ margin-bottom: 0; }

.wp-section .cards{ margin-top: 36px; grid-template-columns: repeat(3, 1fr); }
.wp-section .feature-list{ margin-top: 34px; }

/* ================= Timeline (Roadmap) ================= */
.timeline{
  list-style:none;
  margin: 30px 0 0;
  padding: 0;
  position: relative;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--line-bright), transparent 96%);
}
.timeline__item{
  position: relative;
  display:flex;
  gap: 26px;
  padding-bottom: 46px;
}
.timeline__item:last-child{ padding-bottom: 0; }

.timeline__marker{ flex: none; width: 46px; display:flex; justify-content:center; padding-top: 4px; }
.timeline__dot{
  width: 13px; height:13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212,162,78,.1);
  position: relative;
  z-index:1;
}
.timeline__item:first-child .timeline__dot{
  background: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(242,200,121,.18), 0 0 18px rgba(242,200,121,.5);
}

.timeline__body{ flex:1; min-width:0; }
.timeline__head{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.timeline__head h3{
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin:0;
  letter-spacing: .01em;
}

.tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  color: var(--ink-faint);
}
.tag--live{
  color: var(--cyan);
  border-color: rgba(79,216,255,.4);
  background: rgba(79,216,255,.08);
}

.timeline__list{
  list-style:none;
  margin:0; padding:0;
  display:flex; flex-direction:column; gap:10px;
}
.timeline__list li{
  position:relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.6;
}
.timeline__list li::before{
  content:"";
  position:absolute;
  left:0; top: 8px;
  width:8px; height:1px;
  background: var(--gold);
}

/* ================= Conclusion ================= */
.wp-conclusion{ text-align:center; }
.wp-conclusion .wp-section__head{ flex-direction: column; align-items:center; gap: 14px; }

.pullquote{
  margin: 0 auto 34px;
  max-width: 640px;
  position: relative;
  padding: 6px 0 6px;
}
.pullquote p{
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
  margin:0;
}

.wp-tagline{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 40px;
}

/* ================= Responsive ================= */
@media (max-width: 860px){
  .wp-header{ padding: 150px 0 50px; }
  .wp-section .cards{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .wp-section{ padding: 64px 0; }
  .wp-section__head{ flex-direction:column; align-items:flex-start; gap: 10px; }
  .timeline::before{ left: 18px; }
  .timeline__marker{ width: 38px; }
}
