/* =========================================================
   TRAVER BOT — design tokens
   Derived from the brand mark: sky-blue → slate gradient,
   deep navy wordmark, cyan/electric-cyan circuit accents.
   ========================================================= */
:root{
  --navy-black:   #04070f;
  --navy-deep:    #00123f;
  --navy-mid:     #0a1c4d;
  --navy-panel:   #0c1938;
  --sky:          #18a9f0;
  --cyan:         #00cbe4;
  --cyan-bright:  #4df6ff;
  --fog:          #7c93a6;
  --ink:          #e8f3fa;
  --ink-dim:      #a9bccb;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --edge: 1px solid rgba(77,246,255,0.14);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--navy-black);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a{ color: inherit; }
::selection{ background: var(--cyan); color: var(--navy-black); }

/* focus visibility */
button:focus-visible, a:focus-visible, summary:focus-visible{
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   Ambient background — quiet gradient only. The market
   reference stays inside the logo's own arrow mark; the
   page background doesn't add chart imagery on top of it.
   ========================================================= */
.ambient{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(24,169,240,0.32), transparent 65%),
    linear-gradient(180deg, #1e4470 0%, #163353 45%, #0d1d34 100%);
}

/* =========================================================
   Topbar / nav — single persistent shell, JS swaps panels
   ========================================================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4,7,15,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: var(--edge);
}
.topbar__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark{
  height: 38px;
  width: auto;
  display: block;
}

.tabs{
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: var(--edge);
  border-radius: 999px;
  padding: 4px;
}
.tabs__btn{
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.tabs__btn:hover{ color: var(--ink); }
.tabs__btn.is-active{
  color: var(--navy-black);
  background: var(--cyan);
  font-weight: 600;
}

.navtoggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: var(--edge);
  border-radius: 8px;
  cursor: pointer;
}
.navtoggle span{
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--ink);
}

/* =========================================================
   Layout shell
   ========================================================= */
main{
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 100px;
}
.tab-panel{ display: none; }
.tab-panel.is-active{ display: block; animation: rise 0.45s ease; }
@keyframes rise{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.page-head{
  text-align: center;
  padding: 72px 0 36px;
}
.page-title{
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-top: 10px;
}

/* =========================================================
   Hero (Home)
   ========================================================= */
.hero{
  text-align: center;
  padding: 96px 0 56px;
}
.hero__eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
}
.hero__logo{
  width: min(460px, 82vw);
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero__desc{
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.75;
}
.hero__status{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  padding: 8px 16px;
  border: var(--edge);
  border-radius: 999px;
  background: rgba(0,203,228,0.06);
  font-size: 0.78rem;
  color: var(--ink-dim);
}
.pulse-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 0 rgba(77,246,255,0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0%   { box-shadow: 0 0 0 0 rgba(77,246,255,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(77,246,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(77,246,255,0); }
}

/* =========================================================
   Roadmap / phase list — centered, sequence carries meaning
   ========================================================= */
.section-title{
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 34px;
}
.roadmap{ padding: 40px 0 60px; }

.phaselist{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.phase{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.phase__mark{ font-size: 1.05rem; }
.phase__label{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.phase.is-done{ opacity: 0.62; }
.phase.is-current{ color: var(--ink); }
.phase__formula{
  display: block;
  margin: 10px auto 0;
  max-width: 460px;
  font-style: italic;
  color: var(--ink);
  word-break: break-word;
}

/* =========================================================
   Backtests — process + progress
   ========================================================= */
.process{
  max-width: 660px;
  margin: 0 auto 60px;
  color: var(--ink-dim);
}
.process p{ margin: 0 0 18px; }

.passlist{
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.passlist li{
  padding: 14px 16px;
  border: var(--edge);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.passlist__tag{
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan-bright);
  margin-right: 8px;
}

.progress-section{
  max-width: 660px;
  margin: 0 auto 80px;
}

.period-card{
  border: var(--edge);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.025);
}
.period-card--active{ border-color: rgba(77,246,255,0.4); }
.period-card__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.period-card__status{
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.period-card__status--active{
  color: var(--navy-black);
  background: var(--cyan-bright);
}
.period-card__status--next{
  color: var(--cyan);
  background: rgba(0,203,228,0.1);
  border: 1px solid rgba(0,203,228,0.3);
}
.period-card__dates{
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 0.92rem;
}
.period-card__note{
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--fog);
}

.passbar{
  display: flex;
  gap: 6px;
}
.passbar__seg{
  flex: 1;
  height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fog);
}
.passbar__seg--done{
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy-black);
  font-weight: 600;
}
.passbar__seg--active{
  background: rgba(0,203,228,0.16);
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.passbar__seg--active::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(77,246,255,0.35), transparent);
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer{
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(100%); }
}

/* =========================================================
   Mechanics / About — simple placeholder blocks
   ========================================================= */
.placeholder-block{
  max-width: 560px;
  margin: 0 auto 90px;
  text-align: center;
  padding: 50px 30px;
  border: var(--edge);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  font-size: 1rem;
}
.placeholder-block--about{ text-align: center; }
.x-card{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(77,246,255,0.3);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.x-card:hover{
  background: rgba(77,246,255,0.1);
  border-color: var(--cyan-bright);
  transform: translateY(-1px);
}
.x-card__icon{
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.about-credit{
  margin: 22px 0 0;
  color: var(--fog);
  font-size: 0.85rem;
}

/* =========================================================
   Footer
   ========================================================= */
.sitefooter{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 0 50px;
  color: var(--fog);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 720px){
  .tabs{
    position: fixed;
    top: 62px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(4,7,15,0.96);
    border-radius: 14px;
    padding: 8px;
    display: none;
    gap: 2px;
  }
  .tabs.is-open{ display: flex; }
  .tabs__btn{ text-align: left; border-radius: 8px; }
  .navtoggle{ display: flex; }
  main{ padding: 0 18px 80px; }
}
