/* AI-Sovereign (2026-11-22). Dark space theme from the owner's brand image: deep navy, cyan and violet light.
   Font: Helvetica on Apple, Arial elsewhere (owner rule for every project). */
:root {
  --bg: #040817; --bg2: #08102a; --panel: rgba(13, 24, 56, .72); --panel-solid: #0c1735;
  --line: rgba(120, 170, 255, .16); --line2: rgba(120, 170, 255, .28);
  --ink: #eaf2ff; --ink2: #a9b8d6; --ink3: #6f7f9f;
  --cyan: #38d6ff; --blue: #3b82f6; --violet: #a78bfa; --amber: #fbbf24;
  --up: #34d399; --down: #f87171;
  --r: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 Helvetica, Arial, sans-serif; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; background: rgba(4, 8, 23, .82); backdrop-filter: blur(12px);
       border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; font-size: 15px; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand span b { color: var(--cyan); }
.nav { display: flex; gap: 18px; font-size: 14px; color: var(--ink2); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.on { color: var(--ink); border-color: var(--cyan); }
.top form { margin-left: auto; flex: none; }
.top input { width: 220px; height: 36px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.04);
             color: var(--ink); padding: 0 14px; font: inherit; font-size: 14px; }
.top input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 214, 255, .15); }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 680px; border-bottom: 1px solid var(--line);
        background: radial-gradient(ellipse 70% 60% at 50% 45%, #0d2357 0%, #071233 45%, var(--bg) 80%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; min-height: 680px; display: flex; flex-direction: column; align-items: center;
              justify-content: center; text-align: center; padding: 60px 20px; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.mark { width: 92px; height: 92px; filter: drop-shadow(0 0 18px rgba(56, 214, 255, .65)); animation: pulse 4s ease-in-out infinite; }
.hero h1 { margin-top: 14px; font-size: clamp(40px, 8vw, 92px); line-height: 1; font-weight: 900; letter-spacing: .04em;
           background: linear-gradient(180deg, #ffffff 0%, #cfe9ff 45%, #6cc8ff 100%); -webkit-background-clip: text;
           background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(56, 160, 255, .35); }
.hero .tag { margin-top: 12px; font-size: clamp(13px, 2vw, 18px); letter-spacing: .32em; text-transform: uppercase; color: #cfe2ff; }
.hero .sub { margin-top: 16px; max-width: 620px; color: var(--ink2); font-size: 16px; }
.hero form { margin-top: 26px; display: flex; width: min(560px, 100%); }
.hero form input { flex: 1; height: 52px; border-radius: 999px 0 0 999px; border: 1px solid var(--line2); border-right: 0;
                   background: rgba(6, 14, 40, .75); color: var(--ink); padding: 0 22px; font: inherit; font-size: 16px; }
.hero form button { height: 52px; padding: 0 24px; border: 0; border-radius: 0 999px 999px 0; font: inherit; font-weight: 700;
                    color: #04101f; background: var(--cyan); cursor: pointer; }
.hero form input:focus { outline: none; border-color: var(--cyan); }
.stats { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--ink2); font-size: 14px; }
.stats b { color: var(--ink); font-size: 18px; margin-right: 6px; }

/* floating category tiles around the globe */
.tiles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tile { position: absolute; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
        width: 112px; padding: 12px 8px; border-radius: 12px; border: 1px solid rgba(110, 190, 255, .45);
        background: linear-gradient(180deg, rgba(18, 40, 96, .78), rgba(8, 18, 48, .78)); backdrop-filter: blur(6px);
        box-shadow: 0 0 18px rgba(56, 160, 255, .25), inset 0 0 12px rgba(56, 214, 255, .08);
        font-size: 13px; font-weight: 700; color: #e3efff; text-align: center;
        animation: float 6s ease-in-out infinite; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile svg { width: 26px; height: 26px; color: var(--cyan); }
.tile:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 28px rgba(56, 214, 255, .55); }
.tile:nth-child(2n) { animation-delay: -2s; } .tile:nth-child(3n) { animation-delay: -4s; }
.tl1 { left: 6%; top: 16%; } .tl2 { left: 3%; top: 38%; } .tl3 { left: 6%; top: 60%; } .tl4 { left: 13%; top: 80%; }
.tr1 { right: 6%; top: 16%; } .tr2 { right: 3%; top: 38%; } .tr3 { right: 6%; top: 60%; } .tr4 { right: 13%; top: 80%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 14px rgba(56, 214, 255, .5)); } 50% { filter: drop-shadow(0 0 28px rgba(56, 214, 255, .9)); } }
.tiles-mobile { display: none; }

/* sections */
.sec { padding: 46px 0 10px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { font-size: 22px; }
.sec-head p { color: var(--ink2); font-size: 14px; }
.sec-head a.more { color: var(--cyan); font-size: 14px; white-space: nowrap; }
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel h3 { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 15px;
            border-bottom: 1px solid var(--line); }
.panel h3 a { font-size: 13px; color: var(--cyan); font-weight: 400; }

/* tables (CoinGecko-style) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em;
     padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(56, 160, 255, .06); }
th.r, td.r { text-align: right; }
td.rank { color: var(--ink3); width: 44px; font-variant-numeric: tabular-nums; }
.nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nm .ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800;
          color: #cfe9ff; background: linear-gradient(135deg, #1c3a7a, #23206b); border: 1px solid var(--line2); overflow: hidden; }
.nm .ic img { width: 100%; height: 100%; object-fit: cover; }
.nm b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.nm small { display: block; color: var(--ink3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); } .chg.flat { color: var(--ink3); }
.score { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.score i { display: block; width: 64px; height: 6px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.score i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--cyan); }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); }

/* list page */
.page-head { padding: 40px 0 18px; }
.page-head .kicker { color: var(--cyan); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 6px; }
.page-head p { color: var(--ink2); margin-top: 8px; max-width: 760px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 16px; }
.toolbar form { display: flex; gap: 8px; }
.toolbar input { height: 38px; width: 280px; max-width: 100%; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2);
                 color: var(--ink); padding: 0 12px; font: inherit; }
.toolbar button, .chip { height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2);
                         color: var(--ink2); font: inherit; font-size: 14px; display: inline-flex; align-items: center; cursor: pointer; }
.chip.on { color: #04101f; background: var(--cyan); border-color: var(--cyan); font-weight: 700; }
.toolbar .count { margin-left: auto; color: var(--ink3); font-size: 14px; }
.tablewrap { overflow-x: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 40px; color: var(--ink3); font-size: 14px; }
.pager a { color: var(--cyan); }

/* project + company pages */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; padding: 34px 0 50px; }
.detail h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; word-break: break-word; }
.detail .org { color: var(--ink2); margin-top: 6px; }
.detail .desc { margin-top: 18px; color: #cfdcf3; font-size: 16px; max-width: 760px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.kv div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kv span { display: block; font-size: 12px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.kv b { display: block; margin-top: 4px; font-size: 18px; font-variant-numeric: tabular-nums; }
.side .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.side .big { font-size: 40px; font-weight: 900; color: var(--cyan); line-height: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 8px; font-weight: 700;
       color: #04101f; background: var(--cyan); width: 100%; margin-top: 10px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.crumbs { color: var(--ink3); font-size: 13px; padding-top: 22px; }
.crumbs a { color: var(--ink2); }
.prose { max-width: 780px; padding: 36px 0 60px; color: #cfdcf3; }
.prose h1 { color: var(--ink); font-size: 36px; margin-bottom: 14px; }
.prose h2 { color: var(--ink); font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { padding-left: 20px; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 40px; color: var(--ink3); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 1080px) {
  .tile { width: 96px; font-size: 12px; } .tl1, .tr1 { top: 10%; } .tl4, .tr4 { display: none; }
}
@media (max-width: 860px) {
  .tiles { display: none; }
  .tiles-mobile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; width: 100%; max-width: 520px; }
  .tiles-mobile .tile { position: static; width: auto; animation: none; font-size: 11px; padding: 10px 4px; }
  .boards { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .top input { width: 150px; }
  .hero, .hero-inner { min-height: 600px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 14px; }
  .top form { display: none; }
  .nm b, .nm small { max-width: 180px; }
  .hide-sm { display: none; }
  .tiles-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tile, .mark { animation: none; } }

/* blog (2026-11-22) */
.posts { display: grid; gap: 14px; padding: 6px 0 50px; }
.post-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.post-card:hover { border-color: var(--line2); color: inherit; }
.post-card .k { color: var(--cyan); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.post-card h2 { font-size: 21px; margin: 6px 0 6px; color: var(--ink); }
.post-card p { color: var(--ink2); }
.post-card .d { color: var(--ink3); font-size: 13px; margin-top: 10px; }
.prose .meta { color: var(--ink3); font-size: 14px; margin: -4px 0 26px; }
.prose a { color: var(--cyan); }
.prose table { margin: 16px 0 22px; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; }
.prose h3 { color: var(--ink); font-size: 18px; margin: 22px 0 6px; }
.prose code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.prose blockquote { border-left: 3px solid var(--cyan); padding: 4px 0 4px 14px; color: var(--ink2); margin: 16px 0; }
.prose .more-posts { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 22px; }

/* watchlist stars, categories, empty states (2026-11-22) */
.star { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; display: inline-grid; place-items: center; border-radius: 6px; color: var(--ink3); }
.star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.star:hover { color: var(--amber); background: rgba(251, 191, 36, .08); }
.star.on { color: var(--amber); }
.star.on svg { fill: var(--amber); }
.star:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.big-star { width: 36px; height: 36px; border: 1px solid var(--line2); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.cats .chip { height: 32px; font-size: 13px; text-transform: capitalize; }
.empty { padding: 20px; color: var(--ink2); }

/* community: claim, submit, badge (2026-11-22) */
.note { padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line2); margin: 14px 0; }
.note.ok { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .08); color: #c9f5e3; }
.note.warn { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08); color: #fde9b0; }
.note ul { margin: 0; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 8px 8px 12px; }
.copybox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; font-size: 12px; color: var(--ink2); }
.copybox.small code { font-size: 11px; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--ink2); }
.form input, .form select, .form textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; color: var(--ink); padding: 10px 12px; font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.verified { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 700; color: #34d399; border: 1px solid rgba(52, 211, 153, .5); border-radius: 999px; padding: 3px 10px; margin-left: 6px; }

/* accounts (2026-11-22) */
.top .signin { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); display: inline-flex; align-items: center; font-size: 14px; color: var(--ink); }
.top .signin:hover { border-color: var(--cyan); color: var(--cyan); }
.top .me { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #1c3a7a; color: #e6f3ff; font-weight: 800; border: 1px solid var(--line2); }
.top .me img { width: 100%; height: 100%; object-fit: cover; }
.auth { max-width: 420px; margin: 50px auto 70px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth h1 { font-size: 26px; margin-bottom: 6px; }
.auth p { color: var(--ink2); }
.auth .gbtn { display: flex; gap: 10px; align-items: center; justify-content: center; height: 44px; border-radius: 8px; background: #fff; color: #1f1f1f; font-weight: 700; margin-top: 18px; }
.auth .or { text-align: center; color: var(--ink3); font-size: 13px; margin: 16px 0 4px; }
@media (max-width: 560px) { .top .signin { height: 32px; padding: 0 10px; font-size: 13px; } }

/* tabs and filter chips (2026-11-22): the global a:hover colour turned the active chip's text cyan on a cyan
   background, so after a click + refresh (pointer still on it) the label vanished. Active chips keep dark text
   in every state; inactive chips get a visible hover. */
.chip:hover { color: var(--ink); border-color: var(--cyan); }
.chip.on, .chip.on:hover, .chip.on:focus, .chip.on:active, .chip.on:visited { color: #04101f; background: var(--cyan); border-color: var(--cyan); }
.btn:hover, .btn:focus { color: #04101f; }
.btn.ghost:hover { color: var(--ink); border-color: var(--cyan); }
.post-card:hover h2 { color: var(--cyan); }

/* buttons inside text blocks (2026-11-22): ".prose a" (cyan links) outranked ".btn", so a link styled as a button
   (e.g. "Open your watchlist" on /account) showed cyan text on a cyan button. Buttons keep their own colours
   everywhere, in every state. */
a.btn, a.btn:visited, a.btn:hover, a.btn:focus, a.btn:active,
.prose a.btn, .prose a.btn:visited, .prose a.btn:hover, .prose a.btn:focus { color: #04101f; }
a.btn.ghost, a.btn.ghost:visited, .prose a.btn.ghost, .prose a.btn.ghost:visited { color: var(--ink); }
a.btn.ghost:hover, .prose a.btn.ghost:hover { color: var(--ink); border-color: var(--cyan); }
.prose a.chip, .prose a.chip:visited { color: var(--ink2); }
.prose a.chip.on, .prose a.chip.on:hover { color: #04101f; }
.auth a.gbtn, .auth a.gbtn:hover, .auth a.gbtn:visited { color: #1f1f1f; }
