:root {
    --bg: #0b0f1a;
    --panel: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #22c55e;
    --accent-soft: #16a34a55;
  }
  
  * { box-sizing: border-box; }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  
  .topbar {
    display: flex;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid #1f2933;
  }
  
  .logo {
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .topbar a {
    color: var(--muted);
    margin-left: 24px;
    text-decoration: none;
  }
  
  .hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 80px 40px;
  }
  
  .hero h1 {
    font-size: 48px;
    line-height: 1.1;
  }
  
  .hero p {
    max-width: 480px;
    color: var(--muted);
  }
  
  .hero-actions {
    margin-top: 30px;
    display: flex;
  }
  
  .btn {
    padding: 12px 20px;
    border-radius: 8px;
    margin-right: 12px;
    text-decoration: none;
    font-weight: 600;
  }
  
  .primary {
    background: var(--accent);
    color: #04110a;
  }
  
  .ghost {
    border: 1px solid #1f2933;
    color: var(--text);
  }
  
  .heatmap-sample {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .tile {
    padding: 22px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    min-width: 200px;
  }
  
  .strong { background: #16a34a; }
  .medium { background: #ca8a04; }
  .weak { background: #374151; }
  
  .sample-caption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
  }
  
  .samples, .how-steps {
    padding: 60px 40px;
  }

  .how-steps {
    padding: 20px 40px 40px;
  }
  
  .samples h2 span {
    color: var(--muted);
    font-weight: 400;
  }
  
  .sample-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
  }
  
  .card {
    background: var(--panel);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #1f2933;
  }
  
  .why {
    padding: 60px 40px;
    margin-top: 50px;
    background: #070b14;
  }
  
  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .footer {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
  }

  /* Live meta */
.live-meta{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
  }
  .live-dot{
    width:10px; height:10px;
    border-radius:999px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-soft);
    animation: pulse 1.8s ease-in-out infinite;
  }
  @keyframes pulse{
    0%,100%{ transform: scale(1); opacity: .9; }
    50%{ transform: scale(1.35); opacity: .55; }
  }
  .live-text{
    color: var(--muted);
    font-size: 13px;
    display:flex;
    gap:8px;
    align-items:baseline;
  }
  .live-updated{
    color: #cbd5e1;
    font-size: 12px;
  }
  
  .mini-btn{
    margin-left:auto;
    border:1px solid #1f2933;
    background: transparent;
    color: var(--text);
    padding: 7px 10px;
    border-radius: 8px;
    cursor:pointer;
    font-weight:600;
    font-size:12px;
  }
  .mini-btn:hover{ border-color:#334155; }
  
  /* Heatmap tiles enhanced */
  .heatmap-sample{
    grid-template-columns: repeat(4, 1fr);
  }
  .tile{
    position:relative;
    border: 1px solid #1f2933;
    background: #0f172a;
    transition: transform .15s ease, border-color .15s ease;
  }
  .tile:hover{
    transform: translateY(-1px);
    border-color: #334155;
  }
  .tile-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:8px;
  }
  .tile-sym{
    font-weight: 800;
    letter-spacing: .4px;
  }
  .tile-gain{
    font-weight: 700;
    font-size: 12px;
    color: #cbd5e1;
  }
  .tile{ 
    display: table; 

    }
  .tile-sub{
    display:flex;
    justify-content:space-between;
    gap:8px;
    font-size: 12px;
    color: var(--muted);
  }
  .tile-conf{
    color:#cbd5e1;
    font-weight:700;
  }
  
  /* Direction tint */
  .tile.up{ box-shadow: inset 0 0 0 999px rgba(34,197,94,.06); }
  .tile.down{ box-shadow: inset 0 0 0 999px rgba(239,68,68,.06); }
  
  /* Strength backgrounds */
  .tile.strong{ background: #0b2a1a; }
  .tile.medium{ background: #2a240b; }
  .tile.weak{ background: #0f172a; }
  
  /* Movers */
  .movers-wrap{
    margin-top:16px;
  }
  .movers-head{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    margin: 10px 0 8px;
  }
  .movers-title{
    font-weight:800;
    letter-spacing:.3px;
  }
  .movers-meta{
    color: var(--muted);
    font-size: 12px;
  }
  .movers-list{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .mover{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background: #0f172a;
    border: 1px solid #1f2933;
    border-radius: 12px;
    padding: 12px 14px;
  }
  .mover.up{ box-shadow: inset 0 0 0 999px rgba(34,197,94,.05); }
  .mover.down{ box-shadow: inset 0 0 0 999px rgba(239,68,68,.05); }
  
  .m-left{ display:flex; flex-direction:column; gap:2px; }
  .m-sym{ font-weight:900; }
  .m-sub{ color: var(--muted); font-size: 12px; }
  
  .m-right{ text-align:right; display:flex; flex-direction:column; gap:2px; }
  .m-gain{ font-weight:900; }
  .m-mini{ color: var(--muted); font-size: 12px; }
  
  /* Skeleton states */
  .skeleton{
    background: linear-gradient(90deg, #0f172a 25%, #111b2f 37%, #0f172a 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
    border-color: #111827 !important;
  }
  .skeleton-row{
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(90deg, #0f172a 25%, #111b2f 37%, #0f172a 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
    border:1px solid #111827;
  }
  @keyframes shimmer{
    0%{ background-position: 100% 0; }
    100%{ background-position: 0 0; }
  }
  
  /* Error */
  .home-error{
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(239,68,68,.25);
    background: rgba(239,68,68,.08);
    color: #fecaca;
    font-size: 13px;
  }
  
  /* Heatmap grid: tighter + more “dashboard” */
.heatmap-sample{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  
  .tile{
    padding: 14px 14px 12px;
    border-radius: 14px;
    min-height: 96px;
  }
  
  .tile-top{
    margin-bottom: 10px;
  }
  
  .tile-sym{
    font-size: 13px;
    letter-spacing: .6px;
    font-weight: 900;
  }
  
  .tile-gain{
    font-size: 12px;
    opacity: .95;
  }
  
  /* Keep the state line short and consistent */
  .tile-sub{
    font-size: 12px;
    line-height: 1.2;
    color: var(--muted);
  }
  
  .tile-state{
    font-weight: 700;
    color: #cbd5e1;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .tile-conf{
    font-weight: 800;
    color: #e5e7eb;
    white-space: nowrap;
  }
  
  /* Make the hero right column align cleaner */
  .hero-right{
    display:flex;
    flex-direction:column;
    gap: 12px;
  }
  
  /* Optional: on wide screens, show 4 columns */
  @media (min-width: 1100px){
    .heatmap-sample{
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  .state-ico{
    margin-right: 6px;
    opacity: .95;
    font-size: 12px;
  }
  
  .tile-state{
    display:flex;
    align-items:center;
    gap: 6px;
  }
  
  .m-sub{
    display:flex;
    align-items:center;
    gap: 6px;
  }

  .tile-gain{
    font-variant-numeric: tabular-nums;
  }

  .ico{
    display:inline-block;
    width: 1.2em;
    text-align:center;
    opacity:.95;
    font-size: 12px;
    line-height: 1;
    color: #cbd5e1;
  }

  /* ===== Clean Fintech Tile System (No Glow) ===== */
:root{
    --tile-bg: #0b1220;
  
    --up: 34, 197, 94;
    --down: 239, 68, 68;
    --neutral: 245, 158, 11;
  
    --border-weak: 1px;
    --border-strong: 2px;
  }
  
  /* Base tile */
  .tile{
    background: var(--tile-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 14px 14px 12px;
    transition: border-color .12s ease, background-color .12s ease;
  }
  
  /* Strength controls border weight */
  .tile.weak{ border-width: var(--border-weak); }
  .tile.medium{ border-width: var(--border-weak); }
  .tile.strong{ border-width: var(--border-strong); }
  
  /* ===== Directional semantics ===== */
  
  /* UP / Bullish */
  .tile.trend.up{
    border-color: rgba(var(--up), .55);
    background:
      linear-gradient(
        rgba(var(--up), .05),
        rgba(var(--up), .05)
      ),
      var(--tile-bg);
  }
  
  /* DOWN / Bearish */
  .tile.trend.down{
    border-color: rgba(var(--down), .55);
    background:
      linear-gradient(
        rgba(var(--down), .05),
        rgba(var(--down), .05)
      ),
      var(--tile-bg);
  }
  
  /* FLAT (no direction) */
  .tile.trend.flat{
    border-color: rgba(148, 163, 184, .25);
  }
  
  /* ===== Neutral / Range / Uncertain ===== */
  .tile.neutral{
    border-color: rgba(var(--neutral), .65);
    background:
      linear-gradient(
        rgba(var(--neutral), .06),
        rgba(var(--neutral), .06)
      ),
      var(--tile-bg);
  }
  
  /* Typography clarity */
  .tile-sym{
    color: #f8fafc;
    font-weight: 900;
    letter-spacing: .6px;
  }
  
  .tile-gain{
    color: #e5e7eb;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  
  .tile-state{
    color: #cbd5e1;
    font-weight: 700;
  }
  
  .tile-conf{
    color: #f1f5f9;
    font-weight: 800;
  }
  
  /* Neutral text hint */
  .tile.neutral .tile-state .ico{
    color: rgb(var(--neutral));
  }

  .mover{
    background: var(--tile-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
  }
  
  .mover.up{
    border-color: rgba(var(--up), .5);
    background: rgba(var(--up), .04);
  }
  
  .mover.down{
    border-color: rgba(var(--down), .5);
    background: rgba(var(--down), .04);
  }
  
  .mover.flat{
    border-color: rgba(var(--neutral), .5);
    background: rgba(var(--neutral), .04);
  }

  .tile.trend.flat{
    border-color: rgba(148, 163, 184, .28);
    background: rgba(148, 163, 184, .03);
  }

  /* ============ How Cryader Works + Step Explorer ============ */
.how-steps{ margin-top: 18px; }

.how-wrap{
  margin-top: 18px;
}

.how-title{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: .2px;
  color: #f8fafc;
}

.how-row{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 12px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 14px;
  background: rgba(148,163,184,.03);
  margin-bottom: 10px;
}

.how-ico{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: #e5e7eb;
  background: rgba(148,163,184,.10);
  flex: 0 0 auto;
}

.how-head{
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 2px;
}

.how-sub{
  color: rgba(226,232,240,.85);
  font-size: 13px;
  line-height: 1.35;
}

.step-box{
  margin-top: 14px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  background: rgba(2,6,23,.35);
  padding: 12px;
}

.step-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom: 10px;
}

.step-title{
  font-weight: 900;
  color: #f8fafc;
}

.step-meta{
  font-size: 12px;
  color: rgba(226,232,240,.7);
}

.step-buttons{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.step-btn{
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.05);
  color: #e5e7eb;
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-size: 12px;
}

.step-btn:hover{
  border-color: rgba(148,163,184,.30);
}

.step-btn.active{
  border-color: rgba(34,197,94,.50);
  background: rgba(34,197,94,.08);
}

.step-panel{
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(148,163,184,.03);
  min-height: 90px;
}

.step-placeholder{
  color: rgba(226,232,240,.75);
  font-size: 13px;
}

/* Step panel content */
.pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.pill{
  border:1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.05);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(226,232,240,.9);
}
.ex-list{ display:flex; flex-direction:column; gap:8px; }
.ex-row{
  display:flex; gap:10px; align-items:baseline;
  font-size: 12px;
  color: rgba(226,232,240,.86);
}
.ex-sym{ font-weight:900; color:#f8fafc; }
.ex-mid{ color: rgba(226,232,240,.78); }
.ex-right{ margin-left:auto; color: rgba(226,232,240,.72); }

.live-examples{ margin-top: 14px; }
.live-head{
  display:flex; justify-content:space-between; align-items:center;
  margin: 6px 0 10px;
}
.live-title{ font-weight: 900; font-size: 32px;; color:#f8fafc; }
.live-meta{ display:flex; align-items:center; gap:8px; color: rgba(226,232,240,.75); font-size: 12px; }
.dot{ width:8px; height:8px; border-radius:99px; background:#22c55e; display:inline-block; opacity:.85; }

.ex-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 980px){
  .ex-grid{ grid-template-columns: 1fr; }
}

.ex-card{
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.03);
  border-radius: 16px;
  padding: 12px;
}

.ex-kicker{
  font-size: 18px;
  color: rgba(226,232,240,.70);
  font-weight: 800;
  margin-bottom: 8px;
}

.ex-main{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom: 6px;
}

.ex-sym{ font-weight: 950; color:#f8fafc; letter-spacing:.4px; }
.ex-label{ font-weight: 850; color: rgba(226,232,240,.85); font-size: 12px; }

.ex-desc{
  color: rgba(226,232,240,.82);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.ex-btn{
  width: 100%;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.05);
  color: #e5e7eb;
  font-weight: 900;
  padding: 10px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.ex-btn:hover{ border-color: rgba(148,163,184,.30); }

.ex-stack{
    display:flex;
    flex-direction:column;
    gap: 10px;
    margin-top: 10px;
  }
  
  /* Row card */
  .ex-rowwide{
    display:grid;
    grid-template-columns: 50% 2fr;
    column-gap: 20px;
    gap: 14px;
    align-items:center;
    border: 1px solid rgba(148,163,184,.16);
    background: rgba(148,163,184,.03);
    border-radius: 18px;
    padding: 14px 14px;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
  }
  
  .ex-rowwide:hover{
    border-color: rgba(148,163,184,.28);
    background: rgba(148,163,184,.04);
  }
  
  .ex-left .ex-kicker{
    font-size: 24px;
    color: rgba(226,232,240,.70);
    font-weight: 900;
    margin-bottom: 6px;
  }
  .ex-left .ex-sym{
    font-weight: 950;
    color:#f8fafc;
    letter-spacing:.4px;
    font-size: 28px;
  }
  
  .ex-mid .ex-meta{
    font-weight: 900;
    color: rgba(226,232,240,.90);
    margin-bottom: 6px;
    font-size: 22px;
  }
  .ex-mid .ex-desc{
    color: rgba(226,232,240,.80);
    font-size: 18px;
    line-height: 1.35;
  }
  
  .ex-right{
    display:flex;
    flex-direction:column;
    gap: 10px;
    align-items:flex-end;
  }
  
  .ex-badge{
    font-size: 11px;
    font-weight: 900;
    color: rgba(226,232,240,.65);
    border: 1px solid rgba(148,163,184,.16);
    background: rgba(148,163,184,.04);
    padding: 6px 10px;
    border-radius: 999px;
  }
  
  /* Progress bar */
  .ex-progress{
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148,163,184,.10);
    overflow:hidden;
  }
  
  .ex-progress > span{
    display:block;
    height: 100%;
    width: 0%;
    background: rgba(34,197,94,.60);
  }
  
  /* Progress animation (restarted by JS) */
  @keyframes exfill{
    from{ width: 0%; }
    to{ width: 100%; }
  }
  
  html, body {
    overflow-x: hidden;
  }
  
  .hero-right .live-meta{
    margin-bottom: 0;
  }

  .market-sentiment{
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
  }
  
  .market-sentiment .ms-title{
    font-size: 14px;
    opacity: .7;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
  }
  
  .market-sentiment .ms-label{
    font-size: 20px;
    font-weight: 800;
  }
  
  .market-sentiment .ms-right{
    display:flex;
    align-items:center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .market-sentiment .ms-chip{
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
  }
  
  .market-sentiment.bull{ border-color: rgba(0,255,140,.25); }
  .market-sentiment.bear{ border-color: rgba(255,60,60,.25); }
  .market-sentiment.neutral{ border-color: rgba(255,255,255,.12); }
  
  .market-sentiment .ms-score{
    font-size: 16px;
    font-weight: bold;
    opacity: .75;
  }
  

  /* =========================
   Live Insights (ex-stack)
   ========================= */

#live_insights.ex-stack {
    display: grid;
    gap: 14px;
  }
  
  #live_insights .ex-rowwide {
    display: grid;
    grid-template-columns: 50% 2fr;
    column-gap: 20px;
    gap: 14px;
    align-items: center;
  
    padding: 18px 18px;
    border-radius: 18px;
  
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 35px rgba(0,0,0,0.25);
  }
  
  /* Left column */
  #live_insights .ex-kicker {
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
  }
  
  #live_insights .ex-sym {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.95);
  }
  
  /* Middle column */
  #live_insights .ex-meta {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    margin-bottom: 6px;
  }
  
  #live_insights .ex-desc {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255,255,255,0.68);
    max-width: 820px;
  }
  
  /* Right column (progress) */
  #live_insights .ex-right {
    display: grid;
    justify-items: end;
    gap: 10px;
  }
  
  #live_insights .ex-progress {
    width: 160px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    overflow: hidden;
  }
  
  #live_insights .ex-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 420ms ease, filter 420ms ease;
    background: rgba(40,200,120,0.85);
    filter: saturate(1.1);
  }
  
  /* Accent states per row */
  #live_insights .ex-rowwide.is-bull {
    border-color: rgba(40,200,120,0.28);
    background: radial-gradient(900px 240px at 0% 50%, rgba(40,200,120,0.12), rgba(255,255,255,0.02));
  }
  #live_insights .ex-rowwide.is-bull .ex-progress > span { background: rgba(40,200,120,0.90); }
  
  #live_insights .ex-rowwide.is-bear {
    border-color: rgba(255,80,110,0.30);
    background: radial-gradient(900px 240px at 0% 50%, rgba(255,80,110,0.12), rgba(255,255,255,0.02));
  }
  #live_insights .ex-rowwide.is-bear .ex-progress > span { background: rgba(255,80,110,0.90); }
  
  #live_insights .ex-rowwide.is-neutral {
    border-color: rgba(255,255,255,0.12);
    background: radial-gradient(900px 240px at 0% 50%, rgba(150,170,255,0.10), rgba(255,255,255,0.02));
  }
  #live_insights .ex-rowwide.is-neutral .ex-progress > span { background: rgba(150,170,255,0.90); }
  
  /* Small screens */
  @media (max-width: 980px) {
    #live_insights .ex-rowwide {
      grid-template-columns: 1fr;
    }
    #live_insights .ex-right {
      justify-items: start;
    }
  }
  
 
  .ex-right{
    display: none!important;
  }

  /* --- Live examples stack: refined layout --- */
.ex-stack{
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  
  .ex-rowwide{
    display:grid;
    grid-template-columns: 50% 2fr;
    column-gap: 20px;
    gap:16px;
    padding:18px 20px;
    border-radius:18px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
  }
  
  .ex-left .ex-kicker{
    font-size:18px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:rgba(255,255,255,.65);
    font-weight:700;
    margin-bottom:8px;
  }
  
  .ex-left .ex-sym{
    font-size:28px;
    font-weight:900;
    letter-spacing:.02em;
    color:#fff;
    line-height:1.05;
  }
  
  .ex-leftdesc{
    margin-top:8px;
    font-size:16px;
    line-height:1.25;
    color:rgba(255,255,255,.65);
  }
  
  .ex-mid{
    display:flex;
    flex-direction:column;
    gap:6px;
    justify-content:center;
  }
  
  .ex-meta{
    font-size:20px;
    font-weight:800;
    color:#fff;
  }
  
  .ex-desc{
    font-size:13px;
    color:rgba(255,255,255,.78);
    line-height:1.25;
  }
  
  .ex-datadesc{
    font-size:16px;
    color:rgba(255,255,255,.55);
    line-height:1.2;
  }
  
  .ex-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
  }
  
  .ex-progress{
    width:120px;
    height:10px;
    border-radius:999px;
    background: rgba(255,255,255,.10);
    overflow:hidden;
    border:1px solid rgba(255,255,255,.10);
  }
  
  .ex-progress span{
    display:block;
    height:100%;
    width:0%;
    border-radius:999px;
    background: rgba(46, 204, 113, .95); /* uses your green tone */
    box-shadow: 0 0 18px rgba(46, 204, 113, .35);
    transition: width .35s ease;
  }
  
  /* tone states (optional hooks if you already setRowTone) */
  .ex-rowwide.tone-bull { border-color: rgba(46,204,113,.35); }
  .ex-rowwide.tone-bear { border-color: rgba(231,76,60,.35); }
  .ex-rowwide.tone-neutral { border-color: rgba(255,255,255,.12); }
  
  /* About block */
  .ex-about{
    margin-top:14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    overflow:hidden;
  }
  
  .ex-about-btn{
    width:100%;
    text-align:left;
    padding:12px 14px;
    background: transparent;
    color: rgba(255,255,255,.85);
    border:0;
    font-weight:800;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  
  .ex-about-body{
    display:none;
    padding:12px 14px 14px 14px;
    border-top:1px solid rgba(255,255,255,.08);
  }
  
  .ex-about-title{
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color: rgba(255,255,255,.6);
    margin-top:10px;
    font-weight:800;
  }
  
  .ex-about-text{
    margin-top:6px;
    color: rgba(255,255,255,.72);
    font-size:13px;
    line-height:1.35;
  }

  
/* Base row background (fallback) */
.ex-rowwide {
    background: linear-gradient(90deg, rgba(15,23,42,.55), rgba(15,23,42,.35));
  }
  
  /* ---------- BULLISH ---------- */
  .ex-rowwide.tone-bull {
    border-color: rgba(34,197,94,.55);
    box-shadow: 0 0 0 1px rgba(34,197,94,.18) inset;
    background: linear-gradient(
      90deg,
      rgba(34,197,94,.14),
      rgba(15,23,42,.25)
    );
  }
  
  /* ---------- BEARISH ---------- */
  .ex-rowwide.tone-bear {
    border-color: rgba(239,68,68,.55);
    box-shadow: 0 0 0 1px rgba(239,68,68,.18) inset;
    background: linear-gradient(
      90deg,
      rgba(239,68,68,.14),
      rgba(15,23,42,.25)
    );
  }
  
  /* ---------- NEUTRAL ---------- */
  .ex-rowwide.tone-neutral {
    border-color: rgba(148,163,184,.35);
    box-shadow: 0 0 0 1px rgba(148,163,184,.12) inset;
    background: linear-gradient(
      90deg,
      rgba(148,163,184,.12),
      rgba(15,23,42,.22)
    );
  }
  
  /* ---------- UNKNOWN / FALLBACK ---------- */
  .ex-rowwide.tone-unknown {
    border-color: rgba(148,163,184,.20);
    background: linear-gradient(
      90deg,
      rgba(148,163,184,.08),
      rgba(15,23,42,.18)
    );
  }
  

  
  /* Responsive */
  @media (max-width: 980px){
    .ex-rowwide{
      grid-template-columns: 1fr;
      align-items:flex-start;
    }
    .ex-right{
      align-items:flex-start;
      width: 100%;
    }
  }

  .tile-sub2{
    margin-top: 6px;
  }
  
  .tile-mini{
    font-size: 12px;
    font-weight: 800;
    color: rgba(226,232,240,.72);
    letter-spacing: .15px;
  }
  


  @media (max-width: 768px) {
    body {
      font-size: 14px;
    }
  
    .container,
    .page,
    .hero,
    .hero-wrap {
      padding-left: 14px;
      padding-right: 14px;
    }

    .hero{
        padding: 20px 40px;
    }
  }

  @media (max-width: 768px) {

    .hero {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    .hero h1,
    .hero-title {
      font-size: 34px;
      line-height: 1.15;
    }
  
    .hero-sub,
    .hero p {
      font-size: 14px;
      line-height: 1.5;
    }
  
    .hero-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
  
    .hero-actions button,
    .hero-actions a {
      width: 100%;
      justify-content: center;
      padding: 14px 16px;
      font-size: 14px;
    }
  }

  @media (max-width: 900px) {
    #heatmapGrid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
  }
  
  @media (max-width: 480px) {
    #heatmapGrid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {

    .tile {
      padding: 14px;
      min-height: unset;
    }
  
    .tile-top {
      font-size: 14px;
    }
  
    .tile-sym {
      font-size: 15px;
      font-weight: 900;
    }
  
    .tile-gain {
      font-size: 13px;
      white-space: nowrap;
    }
  
    .tile-sub {
      font-size: 12px;
      gap: 6px;
    }
  
    .tile-state {
      white-space: nowrap;
    }
  
    .tile-conf,
    .tile-mini {
      font-size: 11px;
      white-space: nowrap;
    }
  
    .tile-sub2 {
      margin-top: 4px;
    }
  }

  @media (max-width: 768px) {
    .tile {
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
  
    .tile:active {
      transform: scale(0.985);
    }
  }

  @media (max-width: 900px) {
    .ex-rowwide {
      grid-template-columns: 1fr;
      gap: 10px;
    }
  
    .ex-left,
    .ex-mid,
    .ex-right {
      width: 100%;
    }
  
    .ex-right {
      align-items: flex-start;
    }
  
    .ex-progress {
      height: 8px;
    }
  }

  .ex-rowwide, .tile {
    transition:
      background 240ms ease,
      border-color 240ms ease,
      box-shadow 240ms ease;
  }
  
  /* --- Sentiment Card --- */
.sen-card{
    border-radius: 18px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, rgba(16,24,40,.72), rgba(9,14,26,.72));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset;
    backdrop-filter: blur(8px);
  }
  
  /* header */
  .sen-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom: 10px;
  }
  .sen-title{
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    opacity: .95;
  }
  .sen-updated{
    display:flex;
    align-items:center;
    gap:8px;
    font-size: 12px;
    opacity: .85;
  }
  .sen-dot{
    width:8px; height:8px; border-radius:999px;
    background: rgba(46, 204, 113, .9);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, .14);
  }
  
  /* body text */
  .sen-kicker{
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    opacity: .65;
  }
  .sen-main{
    margin-top: 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
  }
  .sen-sub{
    margin-top: 6px;
    font-size: 13px;
    opacity: .8;
    line-height: 1.35;
  }
  
  /* rows */
  .sen-grid{
    margin-top: 14px;
    display:flex;
    flex-direction:column;
    gap: 10px;
  }
  .sen-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
  }
  .sen-left{
    min-width: 150px;
  }
  .sen-name{
    font-weight: 750;
    font-size: 13px;
    opacity: .95;
  }
  .sen-mini{
    font-size: 12px;
    opacity: .75;
    margin-top: 2px;
  }
  
  /* bars */
  .sen-bar{
    width: min(420px, 42vw);
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow:hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
  }
  .sen-bar > span{
    display:block;
    height:100%;
    width: 0%;
    border-radius: 999px;
    background: rgba(148,163,184,.9); /* neutral default */
    transition: width .35s ease, background .25s ease;
  }
  
  /* footer */
  .sen-foot{
    margin-top: 12px;
    font-size: 12px;
    opacity: .75;
  }
  
  /* tone-based card gradients (90deg like you asked) */
  .sen-card.tone-bull{
    border-color: rgba(34,197,94,.28);
    background: linear-gradient(90deg, rgba(16,24,40,.70), rgba(34,197,94,.10));
  }
  .sen-card.tone-bear{
    border-color: rgba(239,68,68,.28);
    background: linear-gradient(90deg, rgba(16,24,40,.70), rgba(239,68,68,.10));
  }
  .sen-card.tone-neutral{
    border-color: rgba(148,163,184,.22);
    background: linear-gradient(90deg, rgba(16,24,40,.70), rgba(148,163,184,.08));
  }
  .sen-card.tone-unknown{
    border-color: rgba(148,163,184,.16);
    background: linear-gradient(90deg, rgba(16,24,40,.70), rgba(148,163,184,.05));
  }
  
  /* bars by kind */
  .sen-row[data-kind="bull"] .sen-bar > span{ background: rgba(34,197,94,.92); }
  .sen-row[data-kind="neutral"] .sen-bar > span{ background: rgba(148,163,184,.92); }
  .sen-row[data-kind="bear"] .sen-bar > span{ background: rgba(239,68,68,.92); }

  #sen_grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); 
    gap: 14px;
  }
  
  .sen-card.tone-bull{ border-color: rgba(0,255,120,0.25); }
  .sen-card.tone-bear{ border-color: rgba(255,80,80,0.25); }
  .sen-card.tone-neu{  border-color: rgba(120,180,255,0.25); }
  .sen-card.tone-unknown{ opacity: 0.8; }
  
  .sen-m-bar span{
    display:block;
    height:100%;
    width:0%;
  }
  
  /* BIG pill sentiment cards */
.sen-pillcard{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
  
    padding:18px 18px;
    border-radius:14px;
  
    background: linear-gradient(180deg, rgba(10,18,34,.85), rgba(7,12,22,.85));
    border:1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
  }
  
  .sen-pill-left{ flex:1; min-width:0; }
  .sen-pill-kicker{
    font-size:22px;
    letter-spacing:.12em;
    opacity:.75;
    text-transform:uppercase;
    margin-bottom:6px;
  }
  
  .sen-pill-main{
    font-size:28px;
    font-weight:800;
    letter-spacing:.01em;
    line-height:1.05;
    margin-bottom:12px;
  }
  
  .sen-pill-pills{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:10px;
  }
  
  .sen-pill{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  
    padding:7px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    font-size:13px;
    white-space:nowrap;
  }
  
  .sen-pill .t{ opacity:.85; font-weight:700; }
  .sen-pill .v{ opacity:.95; font-weight:800; }
  
  .sen-pill-sub{
    font-size:16px;
    opacity:.78;
  }
  
  .sen-pill-meta{
    margin-left:8px;
    opacity:.75;
  }
  
  .sen-pill-right {
    display: flex;
    align-items: flex-start;   /* ⬅ move content to top */
    justify-content: flex-end; /* keep it on the right */
    padding-left: 15px;
    padding-top: 25px;
  }
  
  .sen-pillcard {
    display: flex;
    align-items: flex-start; /* ⬅ change from center → top */
  }
  
  
  .sen-pill-big{
    font-size:28px;
    font-weight:900;
    opacity:.95;
  }

  .sen-pill-big {
    margin-top: 10px; /* tweak 2–6px as needed */
  }
  
  
  
  /* Tones (match Cryader palette) */
  .sen-pillcard.tone-bull{ border-color: rgba(0,255,140,.22); }
  .sen-pillcard.tone-bear{ border-color: rgba(255,90,90,.22); }
  .sen-pillcard.tone-neu{  border-color: rgba(120,180,255,.22); }
  .sen-pillcard.tone-unknown{ border-color: rgba(255,255,255,.12); }
  
  /* Optional: make "active" pills brighter */
  .sen-pill.on{
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.16);
  }

  .sen-pill-on{
    min-width: 100px;
  }

  @keyframes senGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  .sen-pillcard {
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.06),
      0 12px 30px rgba(0,0,0,0.45);
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  
  .sen-pillcard:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.12),
      0 16px 40px rgba(0,0,0,0.55);
  }
  
  /* BULL */
  .sen-pillcard.tone-bull {
    background-image: linear-gradient(
      135deg,
      rgba(60, 220, 150, 0.14),
      rgba(30, 170, 120, 0.08),
      rgba(10, 18, 34, 0.88)
    );
  }
  
  /* NEUTRAL */
  .sen-pillcard.tone-neu {
    background-image: linear-gradient(
      135deg,
      rgba(140, 210, 255, 0.14),
      rgba(80, 140, 200, 0.08),
      rgba(10, 18, 34, 0.88)
    );
  }
  
  /* BEAR */
  .sen-pillcard.tone-bear {
    background-image: linear-gradient(
      135deg,
      rgba(255, 120, 120, 0.14),
      rgba(200, 70, 70, 0.08),
      rgba(10, 18, 34, 0.88)
    );
  }
  
  /* UNKNOWN */
  .sen-pillcard.tone-unknown {
    background-image: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.10),
      rgba(255, 255, 255, 0.05),
      rgba(10, 18, 34, 0.88)
    );
  }
  

  @keyframes senGlowPulse {
    0%,100% { box-shadow: 0 12px 40px rgba(0,0,0,.35); }
    50%     { box-shadow: 0 14px 48px rgba(0,0,0,.45); }
  }
  
  .sen-pillcard {
    animation:
      senGradientShift 18s ease infinite,
      senGlowPulse 6s ease-in-out infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .sen-pillcard {
      animation: none;
    }
  }
  
  .pat-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  
  @media (max-width: 1100px){
    .pat-grid{ grid-template-columns: 1fr; }
  }

  .pat-feature{ margin-top: 14px; }

.pat-detail{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 1100px){
  .pat-detail{ grid-template-columns: 1fr; }
}

.pat-col{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: 12px;
}

.pat-h{
  font-weight: 900;
  font-size: 13px;
  opacity: .9;
  margin-bottom: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pat-kv{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px dashed rgba(255,255,255,.08);
}
.pat-kv:first-of-type{ border-top: none; }
.pat-kv span{ opacity: .75; }
.pat-kv b{ font-weight: 900; opacity: .95; text-align:right; }

.pat-explain{
  margin-top: 10px;
  font-size: 13px;
  opacity: .78;
  line-height: 1.35;
}

.sen-grid{
    display:grid;
    gap:14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  @media (max-width: 499px){
    .sen-grid{
      grid-template-columns: 1fr;
    }
  }

  .sen-grid > *{
    min-width: 0;
  }

  #sentiment_grid.sen-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  @media (min-width: 900px){
    #sentiment_grid.sen-grid{
      grid-template-columns: repeat(2, minmax(0,1fr));
    }
  }
  
  @media (max-width: 499px){
    #sentiment_grid.sen-grid{
      grid-template-columns: 1fr;
    }
  }

  /* grid wrapper */
#sen_grid.sen-grid{
    display: grid;
    grid-template-columns: 1fr;     /* default */
    gap: 16px;
  }
  
  
  /* 2 columns at 900px+ */
  @media (min-width: 500px){
    #sen_grid.sen-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  
  /* 3 columns at 900px+ */
  @media (min-width: 900px){
    #sen_grid.sen-grid{
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  /* 1 column under 500px */
  @media (max-width: 499px){
    #sen_grid.sen-grid,.ai-summary-two-col{
      grid-template-columns: 1fr;
    }
  }
  
  /* prevent overflow from long content */
  #sen_grid.sen-grid > .sen-card{
    min-width: 0;
  }
  
  .pad-top{
    padding-top: 50px;
  }

  .ai-summary-band {
    background: linear-gradient(135deg, #0b1220, #0f172a);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 14px 0 18px;
  }
  
  .ai-summary-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  
  .ai-summary-icon {
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
  }
  
  .ai-summary-text {
    font-size: 14px;
    line-height: 1.5;
    color: #e5e7eb;
  }
  
  .ai-summary-text strong {
    color: #fff;
  }
  
  .ai-summary-text em {
    color: #93c5fd;
    font-style: normal;
  }

  
  .ai-summary-card {
    background: linear-gradient(
      135deg,
      rgba(25, 35, 55, 0.85),
      rgba(15, 22, 36, 0.95)
    );
    display: grid;
    grid-template-columns: 50% 1fr;
    column-gap: 40px;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .ai-summary-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .ai-summary-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7dd3fc, #60a5fa);
    color: #0b1220;
  }
  
  .ai-summary-content {
    font-size: 15px;
    line-height: 1.55;
    color: #e5e7eb;
  }
  
  /* semantic emphasis helpers */
  .ai-summary-content strong {
    color: #ffffff;
  }
  
  .ai-summary-content .bearish {
    color: #f87171;
    font-weight: 600;
  }
  
  .ai-summary-content .bullish {
    color: #4ade80;
    font-weight: 600;
  }
  
  .ai-summary-content .low {
    color: #fca5a5;
  }
  
  .ai-summary-content .medium {
    color: #facc15;
  }
  
  .ai-summary-content .high {
    color: #4ade80;
  }

  .ai-summary-desc {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(229, 231, 235, 0.75);
    margin-bottom: 12px;
  }
  

  .ai-summary-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  .ai-summary-col {
    padding: 14px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 200px;
  }
  
  .ai-summary-content {
    transition: opacity 220ms ease, transform 220ms ease;
    opacity: 1;
    transform: translateY(0);
  }
  
  .ai-summary-content.ai-out {
    opacity: 0;
    transform: translateY(5px);
  }
  
  .ai-summary-content.ai-in {
    opacity: 1;
    transform: translateY(0);
  }
  
  .ai-title {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.02em;
    display: inline-block;
    margin-bottom: 6px;
  }
  
  .ai-bull-col,
.ai-bear-col {
  position: relative;
  overflow: hidden;
}

/* shared animated layer */
.ai-bull-col::before,
.ai-bear-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background-size: 300% 300%;
  animation: aiGradientFlow 14s ease infinite;
}

/* keep text above gradient */
.ai-summary-content {
  position: relative;
  z-index: 1;
}

/* Bullish (green) gradient */
.ai-bull-col::before {
  background-image: linear-gradient(
    120deg,
    rgba(34, 197, 94, 0.25),
    rgba(34, 197, 94, 0.08),
    rgba(16, 185, 129, 0.25)
  );
}

/* Bearish (red) gradient */
.ai-bear-col::before {
  background-image: linear-gradient(
    120deg,
    rgba(239, 68, 68, 0.28),
    rgba(239, 68, 68, 0.10),
    rgba(248, 113, 113, 0.28)
  );
}

/* Animation */
@keyframes aiGradientFlow {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

.pattern-vs-section{
    margin-bottom: 18px;
  }
  
  .pattern-vs-card{
    background: linear-gradient(135deg, rgba(18,25,40,0.9), rgba(10,15,26,0.95));
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  }
  
  .pattern-vs-header{
    margin-bottom: 16px;
  }
  
  .pattern-vs-badge{
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(147,197,253,0.95);
  }
  
  .pattern-vs-title{
    margin-top: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
  }
  
  .pattern-vs-desc{
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(229,231,235,0.72);
  }
  
  .pattern-vs-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
  }
  
  .pattern-vs-col{
    padding: 16px 16px 14px 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
  }
  
  .pattern-vs-colhead{
    margin-bottom: 10px;
  }
  
  .pattern-vs-label{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  
  .pattern-vs-sub{
    font-size: 14px;
    margin-top: 3px;
    color: rgba(229,231,235,0.7);
  }
  
  .pattern-vs-list{
    list-style: none;
    padding: 0;
    margin: 10px 0 12px 0;
  }
  
  .pattern-vs-list li{
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
  }
  
  .pattern-vs-list .count{
    display: inline-block;
    min-width: 56px;
    font-weight: 900;
    letter-spacing: 0.02em;
  }
  
  .pattern-vs-note{
    font-size: 14px;
    line-height: 1.45;
    color: rgba(229,231,235,0.72);
  }
  
  /* AI styling */
  .pattern-vs-col.ai{
    border: 1px solid rgba(96,165,250,0.28);
    background: rgba(59,130,246,0.08);
  }
  .pattern-vs-col.ai .pattern-vs-label{
    color: rgba(147,197,253,1);
  }
  
  /* Human styling */
  .pattern-vs-col.human{
    border: 1px solid rgba(250,204,21,0.30);
    background: rgba(234,179,8,0.07);
  }
  .pattern-vs-col.human .pattern-vs-label{
    color: rgba(253,230,138,1);
  }
  
  .pattern-vs-footer{
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(229,231,235,0.75);
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .pattern-vs-grid{
    position: relative;
  }
  .pattern-vs-grid::after{
    content: "VS";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.22em;
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
  }

  /* shared animated gradient layer */
.pattern-vs-col::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.45;
    background-size: 300% 300%;
    animation: patternGradientFlow 16s ease infinite;
  }
  
  /* keep content above gradient */
  .pattern-vs-col > * {
    position: relative;
    z-index: 1;
  }
  
  /* AI gradient (cool / electric) */
  .pattern-vs-col.ai::before {
    background-image: linear-gradient(
      120deg,
      rgba(59, 130, 246, 0.35),
      rgba(34, 211, 238, 0.18),
      rgba(96, 165, 250, 0.35)
    );
  }
  
  /* Human gradient (warm / intuitive) */
  .pattern-vs-col.human::before {
    background-image: linear-gradient(
      120deg,
      rgba(234, 179, 8, 0.35),
      rgba(251, 191, 36, 0.18),
      rgba(253, 224, 71, 0.35)
    );
  }
  
  /* animation */
  @keyframes patternGradientFlow {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
  }

  .pattern-vs-grid::after {
    content: "VS";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.28em;
    padding: 6px 12px;
    border-radius: 999px;
  
    color: rgba(255,255,255,0.85);
    background: radial-gradient(
      circle at center,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.06)
    );
    border: 1px solid rgba(255,255,255,0.18);
  
    animation: vsPulse 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
  }
  
  /* VS pulse */
  @keyframes vsPulse {
    0% {
      box-shadow:
        0 0 0 0 rgba(255,255,255,0.25),
        0 0 12px rgba(255,255,255,0.15);
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.85;
    }
  
    50% {
      box-shadow:
        0 0 0 6px rgba(255,255,255,0),
        0 0 18px rgba(255,255,255,0.25);
      transform: translate(-50%, -50%) scale(1.08);
      opacity: 1;
    }
  
    100% {
      box-shadow:
        0 0 0 0 rgba(255,255,255,0),
        0 0 12px rgba(255,255,255,0.15);
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.85;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .pattern-vs-col::before {
      animation: none;
    }
  
    .pattern-vs-grid::after {
      animation: none;
    }
  }

      /* Reposition VS badge vertically */
      .pattern-vs-grid::after {
        left: 50%;
        top: 59%;
        transform: translate(-50%, -50%) rotate(90deg);
        letter-spacing: 0.35em;
        padding: 8px 14px;
      }
  
  @media (max-width: 768px) {

    .sen-head, .live-head{
        display: block;
    }

    .ai-summary-two-col{
        grid-template-columns: 1fr;
    }

    /* Stack into single column */
    .pattern-vs-grid {
      grid-template-columns: 1fr;
      gap: 14px;
      position: relative;
    }
  
    /* Reposition VS badge vertically */
    .pattern-vs-grid::after {
      left: 50%;
      top: 59%;
      transform: translate(-50%, -50%) rotate(90deg);
      letter-spacing: 0.35em;
      padding: 8px 14px;
    }
  
    /* Add spacing so VS doesn't overlap content */
    .pattern-vs-col:first-child {
      margin-bottom: 26px;
    }
  
    .pattern-vs-col:last-child {
      margin-top: 26px;
    }
  
    /* Make cards a bit tighter on mobile */
    .pattern-vs-col {
      padding: 14px 14px;
    }
  
    /* Slightly reduce animation intensity on mobile */
    .pattern-vs-col::before {
      opacity: 0.35;
      animation-duration: 22s;
    }
  
    /* Tone down pulse slightly */
    .pattern-vs-grid::after {
      animation-duration: 3s;
    }
  }
  

  .lmi-section {
    margin-bottom: 18px;
  }
  
  .lmi-header h2 {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
  }
  
  .lmi-header .muted {
    color: rgba(229,231,235,0.6);
    font-weight: 500;
  }
  
  .lmi-sub {
    font-size: 16px;
    color: rgba(229,231,235,0.7);
    margin-bottom: 14px;
  }
  
  /* grid */
  .lmi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  /* card base */
  .lmi-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 18px 18px 16px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 14px 30px rgba(0,0,0,0.38);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }
  
  .lmi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 18px 40px rgba(0,0,0,0.50);
  }
  
  /* animated ambient glow */
  .lmi-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0.75;
    background-size: 200% 200%;
    animation: lmiGlow 10s ease-in-out infinite;
    filter: blur(0px);
    z-index: 0;
  }
  
  /* scan sweep */
  .lmi-card::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 60%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: rotate(16deg);
    animation: lmiScan 6.5s ease-in-out infinite;
    z-index: 0;
    opacity: 0.35;
  }
  
  @keyframes lmiGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes lmiScan {
    0% { transform: translateX(0) rotate(16deg); opacity: 0; }
    20% { opacity: 0.25; }
    60% { opacity: 0.12; }
    100% { transform: translateX(240%) rotate(16deg); opacity: 0; }
  }
  
  .lmi-card > * { position: relative; z-index: 1; }
  
  .lmi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .lmi-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
  }
  
  .lmi-badge {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    color: rgba(229,231,235,0.86);
    white-space: nowrap;
  }
  
  .lmi-desc {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(229,231,235,0.72);
    margin-bottom: 14px;
  }
  
  /* heatmap list */
  .lmi-mini-list .lmi-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 10px;
  }
  
  .lmi-mini-list .sym {
    font-weight: 900;
    color: rgba(255,255,255,0.92);
  }
  
  .lmi-mini-list .meta {
    font-size: 12px;
    color: rgba(229,231,235,0.60);
    white-space: nowrap;
  }
  
  .pill {
    font-size: 11px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.20);
  }
  
  .pill.high { color: rgba(34,197,94,1); border-color: rgba(34,197,94,0.25); }
  .pill.med  { color: rgba(251,191,36,1); border-color: rgba(251,191,36,0.25); }
  .pill.low  { color: rgba(239,68,68,1); border-color: rgba(239,68,68,0.25); }
  
  .bar {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
  }
  
  .bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59,130,246,0.25), rgba(34,197,94,0.32));
  }
  
  /* kv card */
  .lmi-mini-kv {
    display: grid;
    gap: 10px;
  }
  
  .lmi-mini-kv div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
  }
  
  .lmi-mini-kv span {
    font-size: 12px;
    color: rgba(229,231,235,0.65);
  }
  
  .lmi-mini-kv strong {
    font-size: 13px;
    color: rgba(255,255,255,0.92);
  }
  
  /* flow */
  .lmi-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .lmi-flow .step {
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(229,231,235,0.75);
  }
  
  .lmi-flow .step.on {
    color: #fff;
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.10);
    font-weight: 900;
  }
  
  /* flowline dots */
  .lmi-flowline {
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 0.9;
  }
  
  .lmi-flowline .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
  }
  
  .lmi-flowline .dot.on {
    background: rgba(59,130,246,0.28);
    border-color: rgba(59,130,246,0.35);
    box-shadow: 0 0 0 6px rgba(59,130,246,0.06);
  }
  
  /* footer */
  .lmi-foot {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(229,231,235,0.55);
  }
  
  /* themed gradients per card */
  .lmi-heatmap::before {
    background-image:
      radial-gradient(circle at 20% 20%, rgba(34,197,94,0.18), transparent 55%),
      radial-gradient(circle at 85% 70%, rgba(59,130,246,0.14), transparent 55%);
  }
  
  .lmi-classification::before {
    background-image:
      radial-gradient(circle at 25% 25%, rgba(147,197,253,0.20), transparent 55%),
      radial-gradient(circle at 85% 75%, rgba(99,102,241,0.14), transparent 55%);
  }
  
  .lmi-flowcard::before {
    background-image:
      radial-gradient(circle at 20% 25%, rgba(251,191,36,0.12), transparent 55%),
      radial-gradient(circle at 85% 75%, rgba(239,68,68,0.10), transparent 55%);
  }
  
  
  .principles-card {
    padding: 18px 18px;
    border-radius: 16px;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.02)
    );
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  
  /* mobile */
  @media (max-width: 900px) {
    .lmi-grid, .why-grid, .principles-card { grid-template-columns: 1fr; }
  }
  
  .principle {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 12px;
    border-radius: 12px;
    transition: background 160ms ease, transform 160ms ease;
  }
  
  .principle:not(:last-child) {
    margin-bottom: 10px;
  }
  
  .principle:hover {
    background: rgba(255,255,255,0.03);
    transform: translateX(2px);
  }
  
  .principle-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.12));
  }
  
  .principle-title {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
  }
  
  .principle-desc {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(229,231,235,0.72);
  }

  .principle::before {
    content: "";
    width: 3px;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(
      180deg,
      rgba(59,130,246,0.9),
      rgba(34,197,94,0.9)
    );
    margin-right: 10px;
  }
  
  @keyframes principlesGlow {
    0% { transform: translate(0,0); }
    50% { transform: translate(-6%, 4%); }
    100% { transform: translate(0,0); }
  }
  
  .principles-card > * {
    position: relative;
    z-index: 1;
  }
  
  header.topbar {
    display: flex;
    align-items: center;   
    justify-content: space-between;
    padding: 20px 40px;
    height: 64px;      
  }
  
  p{
    padding-bottom: 20px;
  }

  .footer{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .footer div{
    padding-bottom: 10px;
  }

  @keyframes cryaderGradientSweep {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes cryaderPulseGlow {
    0%   { box-shadow: 0 0 0 rgba(56,189,248,0.0); }
    50%  { box-shadow: 0 0 18px rgba(56,189,248,0.45); }
    100% { box-shadow: 0 0 0 rgba(56,189,248,0.0); }
  }
  
  /* Explore Live Signals button */
  .hero-actions a {
    position: relative;
    background: linear-gradient(
      120deg,
      #22c55e,
      #38bdf8,
      #6366f1
    );
    background-size: 300% 300%;
    animation:
      cryaderGradientSweep 6s ease infinite,
      cryaderPulseGlow 2.5s ease-in-out infinite;
    color: #020617;
    font-weight: 700;
    border: none;
    padding: 12px 22px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Hover polish */
  .hero-actions a:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  }
  
  /* Active press */
  .hero-actions a:active {
    transform: scale(0.98);
  }
  
  .home-footer a{
    color: rgba(56,189,248,0.95);
    text-decoration:none;
    font-weight: 700;
    padding: 5px;
    margin: 0 5px;
  }
  .home-footer a:hover{ text-decoration: underline; }

  .home-footer nav{
    padding: 10px;
  }

  .hero-meta{
    margin-top: 16px;
    margin-bottom: 22px;
    font-size: 16px;
    color: rgba(229,231,235,0.75);
    letter-spacing: 0.01em;
  }
  
  .hero-meta strong{
    color: rgba(56, 248, 130, 0.95);
    font-weight: 700;
  }
  

  /* ============================
   Pattern-space / Atoms section
   ============================ */

.atoms-section{
    width:100%;
    padding-top: 50px;
    padding-bottom: 30px;
  }
  
  .atoms-wrap{
    width:100%;
    margin: 0 auto;
  }
  
  .atoms-head{
    margin: 0 0 14px;
  }
  
  .atoms-title{
    margin: 0 0 6px;
    font-size: clamp(20px, 2.6vw, 30px);
    letter-spacing: -0.02em;
  }
  
  .atoms-sub{
    margin: 0;
    color: rgba(229,231,235,0.75);
    line-height: 1.6;
    font-size: 14px;
  }
  
  .atoms-grid{
    margin-top: 14px;
    display:grid;
    grid-template-columns: 0.95fr 1.3fr;
    gap: 14px;
  }
  
  /* Card base */
  .atoms-card{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    overflow:hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  }
  
  .atoms-card--neutral{
    background: linear-gradient(135deg, rgba(148,163,184,0.08), rgba(56,189,248,0.05), rgba(10,18,34,0.86));
  }
  
  .atoms-card--ai{
    background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(56,189,248,0.06), rgba(10,18,34,0.86));
  }
  
  .atoms-card--human{
    background: linear-gradient(135deg, rgba(255,99,132,0.10), rgba(255,193,7,0.05), rgba(10,18,34,0.86));
  }
  
  .atoms-card{
    padding: 18px 18px;
  }
  
  .atoms-stack{
    display:grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .atoms-kicker{
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 900;
    color: rgba(255,255,255,0.92);
    margin-bottom: 10px;
  }
  
  .atoms-ico{
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.12));
    font-size: 18px;
  }
  
  /* Mini atoms table (left) */
  .atoms-mini-table{
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2,6,23,0.55);
    overflow:hidden;
  }
  
  .atoms-row{
    display:flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  
  .atoms-row:first-child{ border-top: none; }
  
  .atoms-thing{
    color: rgba(229,231,235,0.78);
    font-size: 13px;
  }
  
  .atoms-count{
    color: rgba(255,255,255,0.90);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  
  .atoms-count--highlight{
    color: rgba(56,189,248,0.95);
  }
  
  .atoms-note{
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(56,189,248,0.18);
    background: rgba(56,189,248,0.06);
    color: rgba(229,231,235,0.78);
    line-height: 1.65;
    font-size: 13px;
  }
  
  /* Pills */
  .atoms-pill-row{
    display:flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  
  .atoms-pill{
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
  }
  
  .atoms-pill--dim{
    font-weight: 600;
    color: rgba(229,231,235,0.68);
    background: rgba(2,6,23,0.35);
  }
  
  .atoms-pill--warn{
    background: rgba(255,99,132,0.10);
    border-color: rgba(255,99,132,0.25);
  }
  
  /* Formula block */
  .atoms-formula{
    margin: 10px 0 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2,6,23,0.55);
  }
  
  .atoms-formula-label{
    font-size: 12px;
    color: rgba(229,231,235,0.65);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  
  .atoms-formula-code{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.93);
  }
  
  .atoms-formula-code--small{
    font-size: 15px;
  }
  
  .atoms-formula-hint{
    margin-top: 8px;
    font-size: 12.5px;
    color: rgba(229,231,235,0.72);
    line-height: 1.5;
  }
  
  /* Data tables (right) */
  .atoms-table{
    margin-top: 10px;
    border-radius: 14px;
    overflow:hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2,6,23,0.55);
  }
  
  .atoms-thead{
    display:grid;
    grid-template-columns: 0.7fr 1fr 1.2fr;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(229,231,235,0.70);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  
  .atoms-trow{
    display:grid;
    grid-template-columns: 0.7fr 1fr 1.2fr;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    font-size: 13px;
  }
  
  .atoms-trow div:nth-child(1){
    color: rgba(229,231,235,0.78);
    font-weight: 800;
  }
  
  .atoms-trow div:nth-child(3){
    color: rgba(56,189,248,0.92);
    font-weight: 800;
  }
  
  /* Takeaways */
  .atoms-takeaway{
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    line-height: 1.65;
    font-size: 13px;
    color: rgba(229,231,235,0.80);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
  }
  
  .atoms-takeaway--soft{
    border-color: rgba(56,189,248,0.18);
    background: rgba(56,189,248,0.06);
  }
  
  .atoms-takeaway--hard{
    border-color: rgba(255,99,132,0.22);
    background: rgba(255,99,132,0.07);
  }
  
  /* Footer line */
  .atoms-footerline{
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2,6,23,0.45);
    color: rgba(229,231,235,0.72);
    display:flex;
    gap: 10px;
    align-items:center;
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  }
  
  .atoms-dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(34,197,94,1), rgba(56,189,248,1), rgba(255,99,132,1));
    box-shadow: 0 0 18px rgba(56,189,248,0.25);
  }
    

  .scale-viz{
    position: relative;
    min-height: 550px;
    border-radius: 18px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(1200px 500px at 20% 10%, rgba(56,189,248,0.10), rgba(2,6,23,0.95));
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
    overflow: hidden;
  }
  
  #starfield{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity: 0.85;
    filter: blur(0.2px);
  }
  
  .scale-viz-header{
    top:14px;
    left:14px;
    right:14px;
    display:flex;
    justify-content: space-between;
    align-items:center;
    z-index: 4;
  }
  
  .scale-tag{
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
  }
  
  .scale-tag.universe{
    box-shadow: 0 0 18px rgba(56,189,248,0.12);
  }
  .scale-tag.cryader{
    background: linear-gradient(120deg, rgba(34,197,94,0.20), rgba(56,189,248,0.14), rgba(99,102,241,0.18));
    box-shadow: 0 0 22px rgba(34,197,94,0.10);
  }
  
  .scale-meter{
    position:absolute;
    top:-20px;
    bottom:0;
    width: 220px;
    z-index: 4;
    pointer-events:none;
  }
   
  .meter-rail{
    position:absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
      to bottom,
      rgba(56,189,248,0.15),
      rgba(56,189,248,0.35),
      rgba(34,197,94,0.25),
      rgba(99,102,241,0.25)
    );
    box-shadow: 0 0 18px rgba(56,189,248,0.08);
  }
  
  .meter-dot{
    position:absolute;
    left: 7px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(56,189,248,0.65), rgba(2,6,23,0));
    box-shadow: 0 0 22px rgba(56,189,248,0.35);
    transform: translateY(0px);
    animation: expRide 8.5s ease-in-out infinite;
  }
  
  @keyframes expRide{
    0%{ top: calc(100% - 16px); filter: hue-rotate(0deg); }
    45%{ top: 60%; }
    70%{ top: 30%; }
    100%{ top: 0%; filter: hue-rotate(30deg); }
  }
  
  .meter-label{
    position:absolute;
    left: 36px;
    top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(2,6,23,0.60);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    width: 160px;
  }
  
  .exp-line{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }
  .exp-line span{
    color: rgba(56,189,248,0.95);
    text-shadow: 0 0 18px rgba(56,189,248,0.22);
  }
  .exp-sub{
    margin-top: 4px;
    font-size: 12px;
    color: rgba(229,231,235,0.70);
    line-height: 1.35;
  }
  
  .scale-caption{
    position:absolute;
    left:14px;
    right:14px;
    bottom: 12px;
    z-index: 4;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2,6,23,0.55);
    color: rgba(229,231,235,0.70);
    font-size: 12.5px;
    line-height: 1.55;
  }
  
  /* “Cryader bloom” pulse overlay */
  .scale-viz::after{
    content:"";
    position:absolute;
    inset:-40%;
    background:
      radial-gradient(circle at 20% 20%, rgba(56,189,248,0.20), transparent 45%),
      radial-gradient(circle at 80% 30%, rgba(34,197,94,0.14), transparent 48%),
      radial-gradient(circle at 55% 75%, rgba(99,102,241,0.16), transparent 55%);
    opacity: 0.0;
    filter: blur(20px);
    animation: bloom 8.5s ease-in-out infinite;
    z-index: 2;
  }
  @keyframes bloom{
    0%,40%{ opacity: 0; transform: scale(0.98); }
    70%{ opacity: 0.55; transform: scale(1.03); }
    100%{ opacity: 0.35; transform: scale(1.02); }
  }

  /* ===== Scale viz padding + layout ===== */
.scale-viz{
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(1200px 500px at 20% 10%, rgba(56,189,248,0.10), rgba(2,6,23,0.95));
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  overflow: hidden;

  /* NEW: more breathing room */
  padding: 18px 18px 14px;
}

/* keep your canvas */
#starfield{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity: 0.85;
  filter: blur(0.2px);
}

/* optional header stays */
.scale-viz-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  z-index: 4;
  margin-bottom: 10px;
}

.scale-tag{ 
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.scale-tag.universe{ box-shadow: 0 0 18px rgba(56,189,248,0.12); }
.scale-tag.cryader{
  background: linear-gradient(120deg, rgba(34,197,94,0.22), rgba(56,189,248,0.14), rgba(99,102,241,0.20));
  box-shadow: 0 0 22px rgba(34,197,94,0.10);
}

/* ===== NEW: off-center vertical rail ===== */
.scale-meter{
  position:absolute;
  /* off-center: move rail + pill to the right of center */
  left: 36%;
  top: -20px;
  height: 100%;
  width: 280px;
  z-index: 4;
  pointer-events:none;
}

.meter-rail{
  position:absolute;
  left: 18px; /* rail x inside the meter */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(56,189,248,0.14),
    rgba(56,189,248,0.40),
    rgba(34,197,94,0.22),
    rgba(99,102,241,0.24)
  );
  box-shadow: 0 0 18px rgba(56,189,248,0.10);
}

/* circle stays, but we’ll drive its position from JS (not CSS animation) */
.meter-dot{
  position:absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.96), rgba(56,189,248,0.70), rgba(2,6,23,0));
  box-shadow: 0 0 24px rgba(56,189,248,0.38);
  transform: translateY(0px);
}

/* ===== SINGLE “smart pill” that changes state ===== */
.meter-label{
  position:absolute;
  left: 42px;
  top: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(2,6,23,0.62);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  width: 230px;

  backdrop-filter: blur(10px);
  transform: translateY(0px);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

/* Universe mode */
.meter-label.is-universe{
  border-color: rgba(56,189,248,0.22);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.12), 0 16px 40px rgba(0,0,0,0.45);
  background: linear-gradient(135deg, rgba(56,189,248,0.10), rgba(2,6,23,0.70));
}

/* Cryader mode */
.meter-label.is-cryader{
  border-color: rgba(34,197,94,0.22);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.10), 0 16px 40px rgba(0,0,0,0.45);
  background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(99,102,241,0.10), rgba(2,6,23,0.70));
}

/* BIG exponent */
.exp-line{
  font-size: 30px;               /* bigger */
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.exp-line .ten{
  color: rgba(255,255,255,0.92);
}

.exp-line span{
  color: rgba(56,189,248,0.98);
  text-shadow: 0 0 26px rgba(56,189,248,0.22);
}

/* when label is Cryader, shift exponent color slightly greener */
.meter-label.is-cryader .exp-line span{
  color: rgba(34,197,94,0.95);
  text-shadow: 0 0 26px rgba(34,197,94,0.18);
}

.exp-sub{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(229,231,235,0.72);
  line-height: 1.4;
}

/* bottom caption stays, just pad nicer */
.scale-caption{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2,6,23,0.55);
  color: rgba(229,231,235,0.70);
  font-size: 12.5px;
  line-height: 1.55;
}

/* bloom stays (optional), but a touch calmer */
.scale-viz::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(34,197,94,0.12), transparent 48%),
    radial-gradient(circle at 55% 75%, rgba(99,102,241,0.14), transparent 55%);
  opacity: 0.0;
  filter: blur(22px);
  animation: bloom 8.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes bloom{
  0%,42%{ opacity: 0; transform: scale(0.985); }
  72%{ opacity: 0.50; transform: scale(1.02); }
  100%{ opacity: 0.34; transform: scale(1.01); }
}

/* mobile: bring meter back toward center so it doesn't overflow */
@media (max-width: 900px){
  .scale-meter{
    width: 240px;
  }
}
@media (max-width: 650px){
  .scale-meter{
    right: 18px;
    width: auto;
  }
  .meter-label{ width: min(150px, calc(100vw - 120px)); }
  .exp-line{ font-size: 18px; }
}

/* ===== Legend box ===== */
.scale-legend{
    display: inline-block;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
      radial-gradient(120% 140% at 10% 0%,
        rgba(56,189,248,0.12),
        rgba(34,197,94,0.08),
        rgba(2,6,23,0.72)
      );
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
    max-width: 280px;
  }
  
  .scale-legend__title{
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(229,231,235,0.70);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .scale-legend__title:before{
    content:"";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(56,189,248,0.9);
    box-shadow: 0 0 14px rgba(56,189,248,0.35);
  }
  
  /* rows: align like a real legend */
  .scale-legend__row{
    display: grid;
    grid-template-columns: 22px 12px 1fr;
    align-items: baseline;
    gap: 6px;
    padding: 3px 0;
  }
  
  .scale-legend__key{
    font-weight: 900;
    color: rgba(255,255,255,0.92);
    font-variant-numeric: tabular-nums;
  }
  .scale-legend__key em{
    font-style: italic;
  }
  
  .scale-legend__eq{
    color: rgba(229,231,235,0.45);
    text-align: center;
  }
  
  .scale-legend__val{
    color: rgba(229,231,235,0.78);
    font-size: 13px;
    line-height: 1.35;
  }
  
  /* optional: faint separators for “reference” feel */
  .scale-legend__row + .scale-legend__row{
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 3px;
    padding-top: 6px;
  }

.atoms-header-columns{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
  
.scale-legend{
    margin-left: auto;
  }  

@media (max-width: 650px){

    .atoms-header-columns{
        grid-template-columns: 1fr;
    }

}


  /* Mobile */
  @media (max-width: 900px){
    .atoms-grid{
      grid-template-columns: 1fr;
    }
    .atoms-sub, .scale-legend{
        max-width: unset;
        width: 100%;
    }
  }


/* Desktop: keep your current style (inline links) */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 16px;
}

.topbar-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav-toggle{
  display:none; /* hidden on desktop */
  appearance:none;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color:#fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

/* simple hamburger bars */
.nav-toggle-bars{
  display:block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.9);
}
.nav-toggle-bars::before{ top:-6px; }
.nav-toggle-bars::after{ top: 6px; }

/* Mobile */
@media (max-width: 600px){
  .topbar{
    position: relative;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* hide nav by default on mobile */
  .topbar-nav{
    display:none;
    position:absolute;
    right:16px;
    top: calc(100% + 10px);
    min-width: 180px;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(2,6,23,0.95);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    z-index: 50;
  }

  .topbar-nav a{
    padding: 10px 10px;
    border-radius: 10px;
  }


  /* open state */
  .topbar-nav.is-open{
    display:flex;
  }

  .mobile-nav a + a {
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  
}
