/* =========================================================
   DOCS PAGE
   User-facing Capital Chain documentation.
   ========================================================= */

.docs-page{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 34%,rgba(2,81,255,.045),transparent 24%),
    radial-gradient(circle at 92% 72%,rgba(2,81,255,.04),transparent 26%),
    #0b0d0f;
}

.docs-eyebrow,
.docs-section-index,
.docs-panel-label,
.docs-next-label{
  color:#397dff;
  font-size:13px;
  line-height:1;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.docs-text-link,
.docs-next-link{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  color:#eef2f6;
  font-size:15px;
  line-height:1.3;
  font-weight:600;
  text-decoration:none;
  transition:color .22s ease;
}

.docs-text-link span,
.docs-next-link span{
  transition:transform .22s ease;
}

.docs-text-link:hover,
.docs-next-link:hover{
  color:#79a5ff;
}

.docs-text-link:hover span,
.docs-next-link:hover span{
  transform:translateX(3px);
}

/* HERO */
.docs-hero{
  position:relative;
  width:min(1320px,calc(100% - 72px));
  min-height:0;
  margin:0 auto;
  padding:78px 0 92px;
  display:block;
  text-align:center;
  isolation:isolate;
}

.docs-hero-ambient{
  position:absolute;
  z-index:-2;
  top:-180px;
  right:-90px;
  width:820px;
  height:720px;
  pointer-events:none;
  background:
    radial-gradient(circle at 56% 42%,
      rgba(2,81,255,.22) 0%,
      rgba(2,81,255,.095) 32%,
      rgba(2,81,255,.028) 52%,
      rgba(2,81,255,0) 73%);
  filter:blur(8px);
}

.docs-hero-copy{
  position:relative;
  z-index:2;
  max-width:900px;
  margin:0 auto;
  padding:0;
}

.docs-hero h1{
  max-width:900px;
  margin:22px auto 26px;
  color:#f8f8f9;
  font-size:clamp(58px,5.25vw,78px);
  line-height:1.02;
  letter-spacing:-.054em;
  font-weight:600;
}

.docs-hero-copy>p{
  max-width:780px;
  margin:0 auto;
  color:#d0d4da;
  font-size:20px;
  line-height:1.65;
  letter-spacing:-.02em;
}

.docs-hero-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  margin-top:38px;
}

.docs-hero-visual{
  position:relative;
  width:min(430px,34vw);
  aspect-ratio:1;
  margin:58px auto 0;
}

.docs-sheet{
  position:absolute;
  left:50%;
  top:50%;
  width:210px;
  height:270px;
  border:1px solid rgba(84,134,255,.23);
  border-radius:24px;
  background:#10151e;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
}

.docs-sheet-back{
  transform:translate(-36%,-58%) rotate(9deg);
  opacity:.44;
}

.docs-sheet-mid{
  transform:translate(-60%,-45%) rotate(-8deg);
  opacity:.64;
}

.docs-sheet-front{
  transform:translate(-50%,-50%);
  padding:34px 28px;
  background:
    radial-gradient(circle at 28% 12%,rgba(2,81,255,.13),transparent 35%),
    #111722;
  animation:docsSheetFloat 5.8s ease-in-out infinite;
}

.docs-sheet-line{
  display:block;
  width:78%;
  height:8px;
  margin-bottom:15px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
}

.docs-sheet-line.line-wide{
  width:92%;
  height:11px;
  background:rgba(111,157,255,.55);
}

.docs-sheet-line.line-short{
  width:54%;
}

.docs-sheet-card{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:35px;
}

.docs-sheet-card span{
  height:52px;
  border:1px solid rgba(2,81,255,.18);
  border-radius:11px;
  background:rgba(2,81,255,.05);
}

.docs-hero-badge{
  position:absolute;
  min-width:125px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(13,18,27,.90);
  box-shadow:0 15px 35px rgba(0,0,0,.20);
  backdrop-filter:blur(8px);
}

.docs-hero-badge span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#0251ff;
  box-shadow:0 0 12px rgba(2,81,255,.72);
}

.docs-hero-badge strong{
  color:#dfe5ee;
  font-size:12px;
  font-weight:600;
}

.badge-wallet{left:0;top:40%}
.badge-staking{right:0;top:24%}
.badge-rewards{right:2%;bottom:19%}

/* OVERVIEW */
.docs-overview{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  gap:88px;
  align-items:center;
  padding-top:108px;
  padding-bottom:118px;
}

.docs-overview-heading{
  max-width:610px;
}

.docs-overview-heading .docs-section-index{
  display:block;
  margin-bottom:22px;
}

.docs-overview-heading h2,
.docs-section-heading h2{
  margin:0;
  color:#f5f5f6;
  font-size:clamp(40px,4vw,56px);
  line-height:1.08;
  letter-spacing:-.045em;
  font-weight:600;
}

.docs-overview-copy{
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.10);
}

.docs-overview-copy p{
  margin:0 0 25px;
  color:#c4c8cf;
  font-size:19px;
  line-height:1.74;
}

.docs-overview-copy p:last-child{
  margin-bottom:0;
}

/* SECTION SYSTEM */
.docs-section{
  position:relative;
  padding-top:110px;
  padding-bottom:118px;
  scroll-margin-top:130px;
}

.docs-alt{
  background:
    radial-gradient(circle at 6% 30%,rgba(2,81,255,.05),transparent 27%),
    #10141b;
}

.docs-section-heading{
  max-width:1000px;
  margin:0 auto;
  text-align:center;
}

.docs-section-heading .docs-section-index{
  display:block;
  margin-bottom:22px;
}

.docs-section-heading p{
  max-width:790px;
  margin:22px auto 0;
  color:#b8bdc5;
  font-size:18px;
  line-height:1.68;
}

/* GETTING STARTED WITH SIDE NAV */
.docs-section-shell{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:70px;
  align-items:start;
}

.docs-side-nav{
  position:sticky;
  top:155px;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:#0f1319;
}

.docs-side-label{
  margin-bottom:12px;
  color:#6f9bff;
  font-size:11px;
  font-weight:600;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.docs-side-nav a{
  padding:10px 11px;
  border-radius:10px;
  color:#9ea5af;
  font-size:14px;
  line-height:1.35;
  text-decoration:none;
  transition:color .2s ease,background .2s ease;
}

.docs-side-nav a:hover{
  color:#fff;
  background:rgba(2,81,255,.07);
}

.docs-content .docs-section-heading{
  margin-left:0;
  text-align:left;
}

.docs-content .docs-section-heading p{
  margin-left:0;
}

.docs-step-list{
  margin-top:52px;
  border-top:1px solid rgba(255,255,255,.10);
}

.docs-step{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:26px;
  padding:29px 0 32px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.docs-step-number{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border:1px solid rgba(2,81,255,.40);
  border-radius:15px;
  color:#8db4ff;
  background:#0f151f;
  font-size:12px;
  font-weight:600;
}

.docs-step h3{
  margin:0 0 11px;
  color:#f3f4f6;
  font-size:25px;
  line-height:1.25;
  letter-spacing:-.033em;
}

.docs-step p{
  max-width:780px;
  margin:0;
  color:#b3b9c2;
  font-size:16px;
  line-height:1.7;
}

/* WALLET */
.docs-wallet-layout{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:58px;
  max-width:1120px;
  margin:56px auto 0;
}

.docs-guide-card{
  padding:31px;
  border:1px solid rgba(2,81,255,.19);
  border-radius:24px;
  background:
    radial-gradient(circle at 8% 0%,rgba(2,81,255,.10),transparent 36%),
    #10141b;
}

.docs-guide-card h3{
  margin:24px 0 14px;
  color:#f4f5f6;
  font-size:29px;
  line-height:1.22;
  letter-spacing:-.036em;
}

.docs-guide-card p{
  margin:0;
  color:#b7bcc5;
  font-size:16px;
  line-height:1.72;
}

.docs-check-list{
  border-top:1px solid rgba(255,255,255,.10);
}

.docs-check-list>div{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:19px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.docs-check-list span{
  flex:0 0 auto;
  width:9px;
  height:9px;
  margin-top:8px;
  border-radius:50%;
  background:#0251ff;
  box-shadow:0 0 13px rgba(2,81,255,.72);
}

.docs-check-list p{
  margin:0;
  color:#c1c6ce;
  font-size:16px;
  line-height:1.62;
}

.docs-inline-link{
  display:flex;
  justify-content:center;
  margin-top:30px;
}

/* INFO CARDS */
.docs-card-grid{
  display:grid;
  gap:18px;
  max-width:1120px;
  margin:56px auto 0;
}

.docs-card-grid.four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.docs-card-grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.docs-info-card{
  min-height:255px;
  padding:28px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:21px;
  background:#0f1319;
  transition:transform .23s ease,border-color .23s ease,background .23s ease;
}

.docs-info-card:hover{
  transform:translateY(-4px);
  border-color:rgba(2,81,255,.26);
  background:#11161e;
}

.docs-info-number{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(2,81,255,.42);
  border-radius:13px;
  color:#8db4ff;
  font-size:12px;
  font-weight:600;
}

.docs-info-card h3{
  margin:29px 0 13px;
  color:#f4f5f6;
  font-size:23px;
  line-height:1.24;
  letter-spacing:-.032em;
}

.docs-info-card p{
  margin:0;
  color:#adb3bc;
  font-size:15px;
  line-height:1.67;
}

/* REWARDS */
.docs-reward-panel{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:56px;
  align-items:start;
  max-width:1120px;
  margin:56px auto 0;
  padding:40px;
  border:1px solid rgba(2,81,255,.18);
  border-radius:26px;
  background:
    radial-gradient(circle at 5% 0%,rgba(2,81,255,.10),transparent 35%),
    #10141b;
}

.docs-reward-copy h3{
  margin:24px 0 14px;
  color:#f4f5f6;
  font-size:29px;
  line-height:1.23;
  letter-spacing:-.035em;
}

.docs-reward-copy p{
  margin:0;
  color:#b7bcc5;
  font-size:16px;
  line-height:1.72;
}

.docs-reward-points{
  border-top:1px solid rgba(255,255,255,.09);
}

.docs-reward-points>div{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:16px;
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.docs-reward-points span{
  color:#6e9bff;
  font-size:12px;
  font-weight:600;
}

.docs-reward-points p{
  margin:0;
  color:#c0c5cc;
  font-size:15px;
  line-height:1.62;
}

/* EXIT FLOW */
.docs-exit-flow{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  max-width:1120px;
  margin:56px auto 0;
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  overflow:hidden;
  background:#0f1319;
}

.docs-exit-flow article{
  min-height:235px;
  padding:27px 22px;
  border-right:1px solid rgba(255,255,255,.08);
  transition:background .22s ease;
}

.docs-exit-flow article:last-child{
  border-right:0;
}

.docs-exit-flow article:hover{
  background:rgba(2,81,255,.04);
}

.docs-exit-flow span{
  color:#6e9bff;
  font-size:12px;
  font-weight:600;
}

.docs-exit-flow h3{
  margin:31px 0 12px;
  color:#f4f5f6;
  font-size:21px;
  line-height:1.23;
  letter-spacing:-.03em;
}

.docs-exit-flow p{
  margin:0;
  color:#aeb4bd;
  font-size:14px;
  line-height:1.65;
}

/* SECURITY */
.docs-security-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  max-width:1120px;
  margin:56px auto 0;
}

.docs-security-card{
  min-height:215px;
  padding:25px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:20px;
  background:#0f1319;
  transition:transform .22s ease,border-color .22s ease,background .22s ease;
}

.docs-security-card:hover{
  transform:translateY(-4px);
  border-color:rgba(2,81,255,.26);
  background:#11161e;
}

.docs-security-card>span{
  color:#6e9bff;
  font-size:12px;
  font-weight:600;
}

.docs-security-card h3{
  margin:28px 0 12px;
  color:#f4f5f6;
  font-size:22px;
  line-height:1.23;
  letter-spacing:-.03em;
}

.docs-security-card p{
  margin:0;
  color:#aeb4bd;
  font-size:14px;
  line-height:1.64;
}

/* TROUBLESHOOTING */
.docs-troubleshooting-list{
  max-width:1100px;
  margin:56px auto 0;
  border-top:1px solid rgba(255,255,255,.10);
}

.docs-trouble-row{
  display:grid;
  grid-template-columns:minmax(260px,.36fr) minmax(0,.64fr);
  gap:58px;
  padding:30px 0 33px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.docs-trouble-row h3{
  margin:0;
  color:#f3f4f6;
  font-size:24px;
  line-height:1.26;
  letter-spacing:-.032em;
}

.docs-trouble-row p{
  margin:0;
  color:#b5bbc4;
  font-size:16px;
  line-height:1.7;
}

/* GLOSSARY */
.docs-glossary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  max-width:1120px;
  margin:56px auto 0;
}

.docs-glossary-item{
  min-height:170px;
  padding:27px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:20px;
  background:#0f1319;
  transition:transform .22s ease,border-color .22s ease;
}

.docs-glossary-item:hover{
  transform:translateY(-3px);
  border-color:rgba(2,81,255,.25);
}

.docs-glossary-item h3{
  margin:0 0 11px;
  color:#f4f5f6;
  font-size:22px;
  letter-spacing:-.03em;
}

.docs-glossary-item p{
  margin:0;
  color:#adb3bc;
  font-size:15px;
  line-height:1.65;
}

/* NEXT */
.docs-next-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  max-width:1120px;
  margin:56px auto 0;
}

.docs-next-card{
  min-height:285px;
  display:flex;
  flex-direction:column;
  padding:30px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:22px;
  background:#0f1319;
  transition:transform .24s ease,border-color .24s ease,background .24s ease;
}

.docs-next-card:hover{
  transform:translateY(-4px);
  border-color:rgba(2,81,255,.30);
  background:#111722;
}

.docs-next-card h3{
  margin:27px 0 13px;
  color:#f5f6f7;
  font-size:25px;
  line-height:1.23;
  letter-spacing:-.034em;
}

.docs-next-card p{
  margin:0;
  color:#adb3bc;
  font-size:15px;
  line-height:1.66;
}

.docs-next-link{
  margin-top:auto;
  padding-top:28px;
}

.docs-cta{
  padding-top:0;
}

/* MOTION */
@keyframes docsSheetFloat{
  0%,100%{transform:translate(-50%,-50%) translateY(0)}
  50%{transform:translate(-50%,-50%) translateY(-10px)}
}

/* RESPONSIVE */
@media(max-width:1120px){
  .docs-hero{
    width:min(1320px,calc(100% - 54px));
  }

  .docs-hero-visual{
    width:350px;
  }

  .docs-section-shell{
    grid-template-columns:190px minmax(0,1fr);
    gap:45px;
  }

  .docs-card-grid.four,
  .docs-security-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .docs-exit-flow{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .docs-exit-flow article:nth-child(3){
    border-right:0;
  }

  .docs-exit-flow article:nth-child(-n+3){
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .docs-next-grid{
    grid-template-columns:1fr;
  }

  .docs-next-card{
    min-height:235px;
  }
}

@media(max-width:900px){
  .docs-hero{
    min-height:auto;
    padding-top:54px;
    padding-bottom:70px;
  }

  .docs-hero-copy{
    max-width:760px;
    padding:0;
  }

  .docs-hero-visual{
    width:min(420px,70vw);
    margin:34px auto 0;
  }

  .docs-hero-ambient{
    top:-100px;
    left:50%;
    right:auto;
    transform:translateX(-50%);
  }

  .docs-overview{
    grid-template-columns:1fr;
    gap:34px;
    padding-top:94px;
    padding-bottom:104px;
  }

  .docs-section{
    padding-top:94px;
    padding-bottom:104px;
  }

  .docs-section-shell{
    grid-template-columns:1fr;
  }

  .docs-side-nav{
    position:static;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

  .docs-side-label{
    grid-column:1/-1;
  }

  .docs-content .docs-section-heading{
    text-align:center;
  }

  .docs-content .docs-section-heading p{
    margin-left:auto;
  }

  .docs-wallet-layout,
  .docs-reward-panel{
    grid-template-columns:1fr;
    gap:30px;
  }

  .docs-card-grid.three{
    grid-template-columns:1fr;
  }

  .docs-trouble-row{
    grid-template-columns:1fr;
    gap:12px;
  }
}

@media(max-width:620px){
  .docs-hero{
    width:calc(100% - 38px);
    padding-top:40px;
    padding-bottom:58px;
  }

  .docs-eyebrow,
  .docs-section-index,
  .docs-panel-label,
  .docs-next-label{
    font-size:11px;
  }

  .docs-hero h1{
    margin-top:18px;
    font-size:45px;
    letter-spacing:-.047em;
  }

  .docs-hero-copy>p{
    font-size:16px;
    line-height:1.62;
  }

  /* Keep the two hero actions compact and horizontal */
  .docs-hero-actions{
    flex-direction:row;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    gap:14px;
    margin-top:30px;
  }

  .docs-hero-actions .button{
    min-height:50px;
    padding:0 18px;
    font-size:13px;
    white-space:nowrap;
  }

  .docs-hero-actions .docs-text-link{
    flex:0 0 auto;
    font-size:13px;
    white-space:nowrap;
  }

  .docs-hero-visual{
    width:min(350px,86vw);
  }

  .docs-hero-badge{
    min-width:108px;
    padding:9px 10px;
  }

  .badge-wallet{left:-12px}
  .badge-staking{right:-12px}
  .badge-rewards{right:-12px}

  .docs-overview{
    padding-top:76px;
    padding-bottom:86px;
  }

  .docs-overview-heading h2,
  .docs-section-heading h2{
    font-size:34px;
  }

  .docs-overview-copy p,
  .docs-section-heading p{
    font-size:16px;
  }

  .docs-section{
    padding-top:76px;
    padding-bottom:86px;
  }

  .docs-section-heading .docs-section-index{
    margin-bottom:16px;
  }

  .docs-section-heading p{
    margin-top:18px;
  }

  .docs-side-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:18px;
  }

  .docs-step{
    grid-template-columns:1fr;
    gap:16px;
  }

  .docs-wallet-layout,
  .docs-reward-panel,
  .docs-card-grid,
  .docs-security-grid,
  .docs-glossary-grid,
  .docs-next-grid{
    margin-top:44px;
  }

  .docs-card-grid.four,
  .docs-security-grid,
  .docs-glossary-grid{
    grid-template-columns:1fr;
  }

  .docs-guide-card,
  .docs-reward-panel{
    padding:26px 24px;
  }

  .docs-review-panel{
    padding:26px 24px;
  }

  .docs-exit-flow{
    grid-template-columns:1fr;
    margin-top:44px;
  }

  .docs-exit-flow article,
  .docs-exit-flow article:nth-child(3){
    min-height:auto;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .docs-exit-flow article:last-child{
    border-bottom:0;
  }

  .docs-troubleshooting-list{
    margin-top:44px;
  }

  .docs-next-card{
    min-height:240px;
    padding:27px;
  }
}

@media(max-width:360px){
  .docs-hero-actions{
    gap:10px;
  }

  .docs-hero-actions .button{
    min-height:48px;
    padding:0 14px;
    font-size:12px;
  }

  .docs-hero-actions .docs-text-link{
    font-size:12px;
  }
}

@media(prefers-reduced-motion:reduce){
  .docs-sheet-front,
  .docs-info-card,
  .docs-security-card,
  .docs-glossary-item,
  .docs-next-card{
    animation:none !important;
    transition:none !important;
  }
}


@media(max-width:620px){
  .docs-hero{
    text-align:center;
  }

  .docs-hero h1,
  .docs-hero-copy>p{
    margin-left:auto;
    margin-right:auto;
  }
}
