:root{
  --bg:#0B0F14;
  --fg:#E6EDF3;
  --muted:#9AA4B2;

  --cyan:#00E5FF;
  --cyan2:#00B8D4;
  --indigo:#6C63FF;

  --panel: rgba(255,255,255,0.03);
  --panelLine: rgba(255,255,255,0.09);
  --line: rgba(255,255,255,0.10);

  --card: rgba(255,255,255,0.035);
  --card2: rgba(255,255,255,0.06);

  --stroke: rgba(255,255,255,0.10);
  --stroke2: rgba(108,99,255,0.45);

  --ok: rgba(0,229,255,0.18);
  --warn: rgba(255,193,7,0.18);
  --bad: rgba(255,82,82,0.18);
}

*{ box-sizing:border-box; }
          
  .section{
    margin-top: 28px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-align: left;
  }
  
  .section h2{
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
  }
  
  .section p{
    margin: 0 0 14px 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
    text-align: left;
  }
  
  a.link{
    color:var(--cyan);
    text-decoration:none;
  }
  
  a.link:hover{
    text-decoration:underline;
  }
  
  .small{
    margin-top:14px;
    font-size:14px;
    color:var(--muted);
  }
  
  .lead{
    margin:0 0 24px 0;
    color:var(--muted);
    line-height:1.7;
    font-size:16px;
    max-width: 860px;
  }
  
  .toc{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin: 0 0 26px 0;
  }
  
  .pill{
    display:inline-block;
    padding:10px 12px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    text-decoration:none;
    transition:0.18s ease;
  }
  
  .pill:hover{
    color: var(--fg);
    border-color: rgba(0,229,255,0.25);
  }
    
  h2{
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
  }
  
  h3{
    margin: 18px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
  }
  
  p{
    margin: 0 0 12px 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
  }
  
  ul{
    margin: 8px 0 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
  }
  
  li{ margin: 6px 0; }
  
  .k{
    color: var(--fg);
  }
  
  hr{
    border:0;
    height:1px;
    background: rgba(255,255,255,0.06);
    margin: 18px 0;
  }
  
  .note{
    margin-top:14px;
    padding:14px 14px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.08);
    background: rgba(108,99,255,0.06);
    color: var(--muted);
  }

.wrap{
  width:min(880px, 100%);
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:36px;
}

.logo-mini{
  width:220px;
  height:74px;
  border:0;
  overflow:hidden;
  display:block;
}

h1{
  margin:0 0 16px 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.06;
  font-weight:600;
}

.lead{
  margin:0 0 34px 0;
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
}


.highlight{
  color:var(--fg);
}

.stage-index{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
  text-align:center;
}

.logo-frame{
  width: 420px;   
  height: 140px;  
  border: 0;
  overflow: hidden;
  display:block;
  margin: 0 auto 56px auto; 
}

.sub{
  margin: 0 auto 34px auto;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.buttons{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 500;
  cursor:pointer;
  transition: 0.18s ease;
  border: 1px solid transparent;
  min-width: 190px;
}

.btn-primary{
  background: var(--cyan);
  color: #061015;
}

.btn-primary:hover{
  background: var(--cyan2);
}

.btn-secondary{
  background: rgba(108,99,255,0.06);
  border-color: rgba(108,99,255,0.55);
  color: #BEBBFF;
}

.btn-secondary:hover{
  background: rgba(108,99,255,0.12);
}

.hero-btn{
  display:inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.18s ease;
  border: 1px solid transparent;
  min-width: 190px;
  text-align:center;
  text-decoration:none;
}

.hero-btn-primary{
  background: var(--cyan);
  color: #061015;
}
.hero-btn-primary:hover{
  background: var(--cyan2);
}

.hero-btn-secondary{
  background: rgba(108,99,255,0.06);
  border-color: rgba(108,99,255,0.55);
  color: #BEBBFF;
}
.hero-btn-secondary:hover{
  background: rgba(108,99,255,0.12);
}

html,body{
    margin:0;
    background:transparent;
    color:var(--fg);
    font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  
  .wrap{
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 14px;
  }
  
  .header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom: 14px;
  }
  
  .h-title{
    font-size: 16px;
    font-weight: 600;
    margin:0 0 6px 0;
  }
  .h-sub{
    margin:0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    max-width: 760px;
  }
  
  .search{
    display:flex;
    gap:10px;
    align-items:center;
  }
  
  .search input{
    width: 260px;
    max-width: 40vw;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--stroke);
    color: var(--fg);
    outline: none;
  }
  .search input::placeholder{ color: rgba(154,164,178,0.75); }
  
  .grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
  }
  
  @media (max-width: 920px){
    .grid{ 
      grid-template-columns: repeat(2, minmax(0,1fr)); 
    }
  }
  
  @media (max-width: 820px){
    .panel-body{ 
      height: 640px; 
    }
  }
  
  @media (max-width: 620px){
    .grid{ 
      grid-template-columns: 1fr; 
    }
    .search input{ 
      width: 100%; 
      max-width: 100%; 
    }
    .header{ 
      flex-direction: column; 
      align-items: stretch; 
    }
  }
  
  .card{
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 14px;
    overflow:hidden;
    position:relative;
  }
  
  .card:hover{
    border-color: rgba(0,229,255,0.22);
    background: rgba(255,255,255,0.045);
  }
  
  .topline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom: 10px;
  }
  
  .badge{
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    user-select:none;
    white-space:nowrap;
  }
  .badge.upcoming{ background: var(--warn); border-color: rgba(255,193,7,0.28); color: #FFE8A3; }
  .badge.active{ background: var(--ok); border-color: rgba(0,229,255,0.28); color: #BDF7FF; }
  .badge.claiming{ background: rgba(108,99,255,0.14); border-color: rgba(108,99,255,0.32); color: #D0CCFF; }
  .badge.closed{ background: var(--bad); border-color: rgba(255,82,82,0.30); color: #FFB6B6; }
  
  .idline{
    font-size: 12px;
    color: var(--muted);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width: 65%;
  }
  
  .kv{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-top: 10px;
  }
  
  .k{
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .v{
    font-size: 14px;
    font-weight: 500;
  }
  
  .row{
    margin-top: 12px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }
  
  .btn{
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 500;
    cursor:pointer;
    transition: 0.18s ease;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.03);
    color: var(--fg);
  }
  
  .btn:hover{ background: rgba(255,255,255,0.06); }
  
  .btn-primary{
    background: var(--cyan);
    color: #061015;
  }
  .btn-primary:hover{ background: var(--cyan2); }
  
  .btn-outline{
    background: rgba(108,99,255,0.06);
    border-color: rgba(108,99,255,0.50);
    color: #BEBBFF;
  }
  .btn-outline:hover{ background: rgba(108,99,255,0.12); }
  
  .btn:disabled{
    opacity: 0.55;
    cursor:not-allowed;
  }

  .btn-claim{
    background: rgba(108,99,255,0.15);
    border: 1px solid rgba(108,99,255,0.55);
    color: #D0CCFF;
  }
  
  .btn-claim:hover{
    background: rgba(108,99,255,0.25);
  }
  
  .details{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.12);
    display:none;
  }
  .details.open{ display:block; }
  
  .dline{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding: 6px 0;
    font-size: 12px;
    color: var(--muted);
  }
  .dline code{
    color: var(--fg);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 3px 6px;
    border-radius: 8px;
    max-width: 64%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  
  .empty{
    display:none;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,0.03);
    color: var(--muted);
  }
  
  .modal-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78); 
    backdrop-filter: blur(6px);   
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
  }
  
  .modal{
    width: min(520px, 100%);
    background: #0F141B;         
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 20px;               
    box-shadow:
      0 25px 80px rgba(0,0,0,0.65),
      0 0 0 1px rgba(0,229,255,0.08);
  }
  
  .modal h3{
    margin: 0 0 8px 0;
    font-size: 16px;
  }
  
  .modal p{
    margin: 0 0 12px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }
  
  .modal .mkv{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0 12px;
  }
  
  .modal .mkv .mrow{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
  }
  
  .modal .mkv code{
    color: var(--fg);
    background: rgba(255,255,255,0.05); /* slightly stronger */
    border: 1px solid rgba(255,255,255,0.12);
    padding: 3px 6px;
    border-radius: 8px;
    max-width: 64%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .modal .actions{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  body{
    margin:0;
    background:var(--bg);
    color:var(--fg);
    font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow-x:hidden;
  }

  .bg{
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
      radial-gradient(900px 500px at 20% 20%, rgba(0,229,255,0.12), transparent 60%),
      radial-gradient(900px 500px at 80% 70%, rgba(108,99,255,0.12), transparent 60%);
    opacity:0.95;
  }

  .stage{
    min-height:100vh;
    display:flex;
    justify-content:center;
    padding:48px 24px 72px 24px;
  }

  .wrap{
    position:relative;
    z-index:1;
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 24px 64px 24px;
  }

  header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom: 24px;
  }

  .brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:var(--fg);
  }

  .dot{
    width:10px;
    height:10px;
    border-radius:999px;
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
    box-shadow: 0 0 22px rgba(0,229,255,0.25);
  }

  .brand span{
    font-weight:600;
    letter-spacing:0.2px;
  }

  .nav a{
    color:var(--muted);
    text-decoration:none;
    transition:0.18s ease;
  }
  
  .nav a:hover{
    color:var(--fg);
  }
  
  .nav{
    display:flex;
    gap:24px;
    align-items:center;
  }

  .hero{
    width:min(920px, 100%);
    text-align:center;
    padding: 10px 0 8px 0;
  }

  .desc{
    margin: 0 auto;
    max-width: 820px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 15px;
  }
  .desc p{ margin: 0 0 10px 0; }
  .desc p:last-child{ margin-bottom:0; }

  .launch-notice{
    margin: 28px auto 0 auto;
    max-width: 820px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0,229,255,0.25);
    background: rgba(0,229,255,0.06);
    color: var(--fg);
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.3px;
  }

  .chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: rgba(154,164,178,0.95);
    font-size: 12px;
    white-space:nowrap;
  }
  .chip i{
    width:8px;height:8px;border-radius:999px;display:inline-block;
    background: linear-gradient(135deg, var(--cyan), var(--indigo));
  }

/* PANEL */
.panel{
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--panelLine);
  border-radius: 18px;
  overflow: hidden;            /* сохраняет скругления */
  display: flex;
  flex-direction: column;
}

/* HEADER */
.panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  gap: 10px;
}

.panel-title{
  font-size: 13px;
  color: rgba(230,237,243,0.92);
  display:flex;
  align-items:center;
  gap:10px;
}

.panel-title-split{
  display:flex;
  align-items:center;
  justify-content: space-between;
  width:100%;
}

/* BODY (контейнер под iframe) */
.panel-body{
  height: 720px;               /* как было */
  overflow: hidden;            /* ✅ скролл будет внутри iframe */
  background:
    radial-gradient(600px 220px at 20% 20%, rgba(0,229,255,0.05), transparent 60%),
    radial-gradient(600px 220px at 80% 70%, rgba(108,99,255,0.05), transparent 60%);
}

/* IFRAME */
.embed{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* Второй список (Articles) — скролл внутри div */
.panel-body-art{
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
}

/* Скроллбар для div-списка */
.panel-body-art::-webkit-scrollbar{
  width: 8px;
}
.panel-body-art::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}
.panel-body-art::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #7a5cff, #4b2cff);
  border-radius: 8px;
}
.panel-body-art::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, #8b6cff, #5a3cff);
}

  .embed{
    width: 100%;
    height: 100%;
    border: 0;
    display:block;
  }

  footer{
    margin-top: 26px;
    text-align:center;
    color: rgba(154,164,178,0.75);
    font-size: 12px;
  }

  /* Research list */
#articles .card{
  padding: 18px;
}

#articles .card h3{
  margin: 0 0 8px 0;
  font-size: 16px;
}

#articles .card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* kill purple visited links */
#articles a,
#articles a:visited{
  color: var(--fg);
  text-decoration: none;
}

#articles a:hover{
  text-decoration: underline;
}

.article{
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 40px 100px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(244,246,255,0.82);
}

.article h2{
  margin: 34px 0 10px;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(244,246,255,0.92);
}

.article p{ margin: 14px 0; }

.formula{
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(2,6,23,0.35);
  border: 1px solid rgba(244,246,255,0.10);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}