/* Hellios — Home page (pure CSS, no framework) */
:root {
  --bg: #0A0C0E;
  --bg-2: #0E1114;
  --surface: #111418;
  --surface-2: #171B20;
  --surface-3: #1A1F24;
  --line: #22272C;
  --line-2: #2E343A;
  --text: #E9E6DF;
  --text-2: #B5B9BF;
  --muted: #8C939C;
  --gold: #D4A84B;
  --gold-2: #E5C27A;
  --gold-dim: #2A2416;
  --red: #C8553D;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --r: 12px;
  --max: 1280px;
  --pill: 999px;
  --on-accent: #0A0C0E;
  --btn-bg: var(--gold);
  --btn-fg: #0A0C0E;
  --btn-hover: var(--gold-2);
  --gold-line: #3A3220;
  --hdr-bg: rgba(10,12,14,.92);
  --hdr-solid: var(--bg-2);
  --hdr-text: var(--text);
  --hero-mid: rgba(10,12,14,.75);
  --hero-end: rgba(10,12,14,.35);
  --hero-img: .38;
  --glass: rgba(10,12,14,.88);
  --map-day: #1B2026;
  --img-filter: none;
  --h-weight: 700;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
a { color: var(--text); }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-dim); }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.kicker { font-family: var(--serif); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.h2 { font-family: var(--serif); font-weight: var(--h-weight); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 8px 0 12px; }
.h3 { font-family: var(--serif); font-weight: var(--h-weight); font-size: 24px; line-height: 1.2; margin: 6px 0 8px; }
.lead { color: var(--text-2); max-width: 62ch; margin: 0; text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); padding: 13px 20px; border-radius: var(--pill); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--gold); border-color: var(--gold); }
.btn--sm { padding: 9px 14px; font-size: 11px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--hdr-bg); color: var(--hdr-text); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { max-width: var(--max); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hdr-text); flex: none; }
.brand:hover { color: var(--hdr-text); }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 38%,#2C3137,#15181C 72%); box-shadow: inset 0 0 0 1px rgba(240,180,76,.18); display: grid; place-items: center; font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: 19px; line-height: 1; color: #F0B44C; text-shadow: 0 0 6px rgba(240,180,76,.55); flex: none; }
.brand__txt { line-height: 1.1; }
.brand__txt strong { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: .08em; }
.brand__txt small { display: block; font-size: 10px; letter-spacing: .24em; color: var(--gold); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a, .nav__learn { color: var(--hdr-text); text-decoration: none; font-size: 14px; background: none; border: 0; padding: 6px 0; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav a:hover, .nav__learn:hover { color: var(--gold); }
.nav__learn svg { transition: transform .2s; }
.nav__learn[aria-expanded="true"] { color: var(--gold); }
.nav__learn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr__cta { display: flex; align-items: center; gap: 14px; }
.hdr__cta .signin { font-size: 14px; text-decoration: none; color: var(--hdr-text); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--hdr-text); place-items: center; margin-left: auto; }
.learn { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,.5); animation: fade .2s ease; }
.learn__in { max-width: var(--max); margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 20px; }
.learn__intro .h3 { font-size: 22px; }
.learn__intro p { margin: 0; color: var(--muted); font-size: 14px; }
.learn__card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--surface); }
.learn__card:hover { border-color: var(--gold); color: var(--text); }
.learn__card em { font-family: var(--serif); color: var(--gold); font-size: 15px; }
.learn__card strong { font-size: 16px; }
.learn__card span { font-size: 13px; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: var(--hero-img); filter: var(--img-filter); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, var(--hero-mid) 50%, var(--hero-end)), linear-gradient(transparent 60%, var(--bg)); }
.hero__in { position: relative; padding: clamp(64px, 10vw, 128px) 24px clamp(48px, 7vw, 88px); max-width: var(--max); margin: 0 auto; }
.hero h1 { font-family: var(--serif); font-weight: var(--h-weight); font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; margin: 16px 0 18px; max-width: 13ch; letter-spacing: -.01em; }
.hero h1 em { color: var(--gold); }
.hero__tag { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.hero p { color: var(--text-2); font-size: 17px; max-width: 54ch; margin: 0 0 12px; }
.hero p strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat b { display: block; font-size: 15px; font-weight: 600; }
.stat span { font-size: 13px; color: var(--muted); }

/* Sections */
.sec { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }

/* Founders */
.founders { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 22px; }
.founders__lbl { flex-basis: 100%; }
.founders__lbl b { display: block; font-family: var(--serif); font-size: 18px; }
.founders__lbl span { font-size: 13px; color: var(--muted); }
.founder { position: relative; width: 60px; height: 60px; border-radius: 50%; padding: 3px; border: 2px solid var(--line-2); background: var(--surface); transition: border-color .2s, transform .2s; }
.founder img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.founder:hover { transform: translateY(-2px); border-color: var(--gold-2); }
.founder.is-on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.founder::after { content: attr(data-name); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-size: 11px; color: var(--text); background: var(--surface-3); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.founder:hover::after, .founder:focus-visible::after { opacity: 1; }
.chip { border: 1px solid var(--line-2); background: transparent; color: var(--text); border-radius: var(--pill); padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

/* Explore grid */
.explore { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.filters { padding: 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.filters h3 { font-family: var(--serif); font-size: 20px; margin: 0; }
.filters label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 0 14px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); outline: none; min-height: 40px; font-size: 14px; }
.select { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 14px; }
.types { display: flex; flex-direction: column; }
.type { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 14px; text-align: left; }
.type:hover { background: var(--surface-3); }
.type.is-on { background: var(--gold-dim); color: var(--gold-2); }
.type__box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.type.is-on .type__box { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.type span:nth-child(2) { flex: 1; }
.type small { font-size: 12px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; align-self: flex-start; }

.map { position: relative; overflow: hidden; aspect-ratio: 16 / 9; min-height: 360px; border-radius: var(--r); border: 1px solid var(--line); background:
  radial-gradient(ellipse at 50% 40%, rgba(212,168,75,.06), transparent 60%),
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 8.333% 16.666%,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 8.333% 16.666%,
  var(--bg-2); transition: background-color .3s; }
.map.is-day { background-color: var(--map-day); }
.map__top { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; z-index: 4; pointer-events: none; }
.map__title { background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; pointer-events: auto; }
.map__title b { display: block; font-size: 14px; }
.map__title span { font-size: 12px; color: var(--muted); }
.map__tools { display: flex; gap: 6px; pointer-events: auto; }
.map__tools button { border: 1px solid var(--line-2); background: var(--glass); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.map__tools button.is-on { color: var(--gold); border-color: var(--gold); }
.map__layer { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .35s ease; }
.pin { position: absolute; transform: translate(-50%, -100%); background: none; border: 0; padding: 0; color: var(--gold); z-index: 2; }
.pin svg { filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); transition: transform .15s; }
.pin:hover svg, .pin.is-on svg { transform: scale(1.25); }
.pin.is-on { color: var(--gold-2); z-index: 3; }
.pin span { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font-size: 11px; background: var(--glass); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 6px; color: var(--text); opacity: 0; transition: opacity .15s; pointer-events: none; }
.pin:hover span, .pin.is-on span { opacity: 1; }
.map__zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; z-index: 4; }
.map__zoom button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--glass); color: var(--text); font-size: 18px; }
.map__zoom button:hover { color: var(--gold); border-color: var(--gold); }
.map__foot { position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: var(--muted); letter-spacing: .06em; z-index: 4; }
.map__count { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Case drawer */
.case { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 70; background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: -24px 0 48px rgba(0,0,0,.5); overflow-y: auto; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.case__img { aspect-ratio: 16 / 10; background: var(--surface-3); position: relative; }
.case__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.case__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--glass); color: var(--text); display: grid; place-items: center; }
.case__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.case__body p { margin: 0; color: var(--text-2); font-size: 14px; }
.case__rates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); }
.rate small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.rate b { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.rate span { font-size: 12px; color: var(--muted); }
.case__nums { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.case__nums div { padding: 10px; text-align: left; border-right: 1px solid var(--line); }
.case__nums div:last-child { border-right: 0; }
.case__nums b { display: block; font-size: 20px; }
.case__nums span { font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 4px 9px; border-radius: var(--pill); border: 1px solid var(--line-2); color: var(--text-2); }
.tag--gold { border-color: var(--gold); color: var(--gold); }
.case__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); animation: fade .2s ease; }

/* CTA band */
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); background: var(--surface); margin-top: 28px; }
.band p { margin: 0; color: var(--text-2); max-width: 60ch; }

/* Activity */
.act-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.act-stat { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; }
.act-stat:first-child { background: var(--gold-dim); border-color: var(--gold-line); }
.act-stat b { display: block; font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1.1; }
.act-stat small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; margin-top: 6px; }
.act-stat span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.tabs .chip { flex: none; }
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); animation: fade .3s ease; transition: border-color .2s; }
.item:hover { border-color: var(--line-2); }
.item__icon { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--gold); }
.item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item__type { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.item__title { font-weight: 600; font-size: 16px; line-height: 1.35; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item__desc { font-size: 13px; color: var(--text-2); margin: 0; }
.item__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.item__foot b { color: var(--text); font-weight: 600; }
.item__foot a { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--gold); text-decoration: none; }
.item__foot a:hover { color: var(--gold-2); }
.fav { background: none; border: 0; padding: 4px; color: var(--muted); }
.fav.is-on { color: var(--gold); }
.fav.is-on svg { fill: currentColor; }
.feed__more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }

/* Join */
.join { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--gold-line); background: linear-gradient(120deg, var(--gold-dim), var(--surface) 60%); padding: clamp(32px, 6vw, 64px); }
.join p { color: var(--text-2); max-width: 60ch; margin: 0 0 24px; }

.foot { padding: 28px 0 40px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.totop { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: grid; place-items: center; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.totop.is-on { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: var(--pill); font-size: 14px; animation: fade .2s ease; }
body.is-locked { overflow: hidden; }

/* Responsive */
@media (max-width: 1100px) {
  .act-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .learn__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: grid; }
  .hdr.is-open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; background: var(--hdr-solid); border-bottom: 1px solid var(--line); padding: 12px 24px 18px; margin: 0; }
  .hdr.is-open .hdr__cta { display: flex; position: absolute; left: 0; right: 0; top: calc(100% + 248px); padding: 0 24px 18px; background: var(--hdr-solid); }
  .explore { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feed { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .hdr__in, .hero__in { padding-left: 16px; padding-right: 16px; }
  .act-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: minmax(0, 1fr); }
  .learn__in { grid-template-columns: minmax(0, 1fr); }
  .map { aspect-ratio: 4 / 5; }
  .case__nums { grid-template-columns: repeat(2, 1fr); }
  .case__nums div:nth-child(2) { border-right: 0; }
  .case__nums div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.versions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.versions a { text-decoration: none; padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--pill); }
.versions a[aria-current="page"] { border-color: var(--gold); color: var(--gold); }

.hdr__msg { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--hdr-text); }
.hdr__msg:hover { background: var(--surface-3); color: var(--gold); }
.hdr__msg .badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.hdr__msg .badge:empty { display: none; }
