:root {
  --accent: #0B6E5C;
  --accent-bright: #3FCF9E;
  --accent-soft: rgba(11, 110, 92, .18);
  --bg: #040807;
  --bg-2: #07100f;
  --surface: linear-gradient(160deg, rgba(32, 32, 38, .72) 0%, rgba(10, 10, 12, .82) 100%);
  --surface-hi: linear-gradient(160deg, rgba(44, 44, 52, .80) 0%, rgba(14, 14, 17, .88) 100%);
  --border: rgba(11, 110, 92, .35);
  --border-hi: rgba(63, 207, 158, .55);
  --line: rgba(255, 255, 255, .08);
  --txt: #ffffff;
  --txt-soft: rgba(255, 255, 255, .72);
  --txt-mute: rgba(255, 255, 255, .46);
  --shadow-card: 0 8px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  --r-card: 12px;
  --r-ctrl: 9px;
  --ease: .18s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(63, 207, 158, .3); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 10, .78);
  backdrop-filter: blur(14px) saturate(115%);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.brand-name { font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .01em; }
.brand-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent-bright); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--r-ctrl); font-size: 14px; font-weight: 600; color: var(--txt-soft);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--r-ctrl);
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn .ico { font-size: 18px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-sm .ico { font-size: 16px; }
.btn-primary {
  background: linear-gradient(160deg, #10846e 0%, var(--accent) 100%);
  border-color: rgba(63, 207, 158, .45);
  box-shadow: 0 6px 18px rgba(11, 110, 92, .35), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-primary:hover { background: linear-gradient(160deg, #15997f 0%, #0d7d68 100%); transform: translateY(-1px); }
.btn-ghost { background: rgba(10, 14, 14, .55); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--border-hi); background: rgba(11, 110, 92, .16); transform: translateY(-1px); }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: #03070b;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.hero.scene-ready canvas { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 8, 7, 0), var(--bg));
}
.hero-in { position: relative; z-index: 2; padding: 110px 20px 120px; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  height: clamp(150px, 30vh, 300px); width: auto;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .75));
  transform-origin: 50% 85%;
  animation: sway 8s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(1.2deg) translateY(-4px); }
  50% { transform: rotate(0deg) translateY(0); }
  75% { transform: rotate(-1.2deg) translateY(-4px); }
}
.hero-title {
  margin: 34px 0 0; font-size: clamp(22px, 3.2vw, 36px); font-weight: 800; font-style: italic; line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.hero-title .thin { font-weight: 500; color: rgba(230, 240, 238, .88); }
.hero-sub { margin: 12px auto 0; max-width: 560px; color: var(--txt-soft); font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stats { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stat { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; text-align: left; }
.stat-ico {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent-bright); font-size: 18px;
}
.stat-val { font-size: 18px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 12px; font-weight: 600; color: var(--txt-mute); line-height: 1.2; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6b7280; margin-right: 7px; vertical-align: 1px; }
.dot.on { background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(63, 207, 158, .55); animation: ping 2s ease-out infinite; }
.dot.off { background: #e5484d; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63, 207, 158, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(63, 207, 158, 0); } }

.card {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(115%);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.card-hover { transition: transform var(--ease), border-color var(--ease), background var(--ease); }
.card-hover:hover { transform: translateY(-2px); border-color: var(--border-hi); background: var(--surface-hi); }

.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, .04); }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-bright);
}
.kicker .ico { font-size: 15px; }
.h2 { margin: 10px 0 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; font-style: italic; line-height: 1.15; }
.h2 .thin { font-weight: 500; color: rgba(230, 240, 238, .85); }
.lead { margin: 12px 0 0; color: var(--txt-soft); max-width: 640px; font-weight: 500; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 16px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.feature { padding: 24px; }
.feature-ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 21px;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent-bright);
}
.feature h3 { margin: 16px 0 0; font-size: 17px; font-weight: 800; }
.feature p { margin: 6px 0 0; font-size: 14px; color: var(--txt-soft); font-weight: 500; }
.feature b { color: var(--txt); font-weight: 700; }

.founders { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.founder { display: flex; align-items: center; gap: 16px; padding: 16px 26px 16px 16px; min-width: 270px; text-align: left; }
.founder-ava {
  width: 72px; height: 72px; border-radius: 50%; padding: 3px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
}
.founder-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #0b0b0d; }
.founder-name { font-size: 18px; font-weight: 800; font-style: italic; }
.founder-role { font-size: 13px; color: var(--txt-mute); font-weight: 600; }

.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.partner { display: flex; align-items: center; justify-content: center; height: 104px; min-width: 260px; padding: 0 40px; }
.partner img { height: 40px; width: auto; }

.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.edition { padding: 22px 24px; display: flex; align-items: center; gap: 18px; }
.edition-no {
  font-size: 40px; font-weight: 800; font-style: italic; line-height: 1; min-width: 56px; text-align: center;
  color: rgba(255, 255, 255, .22);
}
.edition.current { border-color: var(--border-hi); }
.edition.current .edition-no { color: var(--accent-bright); }
.edition-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-mute); }
.edition.current .edition-label { color: var(--accent-bright); }
.edition-dates { font-size: 18px; font-weight: 700; margin-top: 2px; }
.edition-note { font-size: 13px; color: var(--txt-mute); font-weight: 500; }
.count { padding: 20px 12px; text-align: center; }
.count-val { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; display: inline-block; }
.count-lbl { font-size: 13px; color: var(--txt-mute); font-weight: 600; margin-top: 2px; }
.pop { animation: pop .2s ease; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.progress-note { margin-top: 18px; font-size: 13px; color: var(--txt-mute); text-align: center; }

.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.cta-box { padding: 26px; }
.cta-box h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mute); }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row span:first-child { color: var(--txt-mute); font-weight: 600; }
.info-row span:last-child { font-weight: 700; }
.copy {
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--txt); cursor: pointer;
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color var(--ease);
}
.copy:hover { border-color: var(--border-hi); }
.copy .ico { font-size: 14px; color: var(--accent-bright); }

.footer { padding: 34px 0 40px; border-top: 1px solid var(--line); color: var(--txt-mute); font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--txt-soft); font-weight: 600; }
.footer-brand img { height: 26px; width: auto; }
.footer small { display: block; font-size: 12px; color: rgba(255, 255, 255, .34); margin-top: 4px; }
.footer-links { display: flex; align-items: center; gap: 16px; }
.footer-links a:hover { color: var(--txt); }

.bs-tooltip { position: fixed; z-index: 9999; transform: translate(-50%, -100%); pointer-events: none; opacity: 0; transition: opacity .15s ease, transform .2s ease; }
.bs-tooltip.show { opacity: 1; transform: translate(-50%, calc(-100% - 8px)); }
.bs-tooltip .box { background: rgba(10, 12, 12, .92); border: 1px solid var(--border); border-radius: 12px; padding: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.bs-tooltip img { display: block; width: 320px; height: auto; max-height: 380px; border-radius: 8px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .grid-3, .editions { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .nav-cta .btn-ghost { display: none; }
  .stat { flex: 1 1 100%; }
  .hero-logo { height: auto; width: min(78vw, 300px); }
  .hero-sub { font-size: 15px; }
  .founder, .partner { min-width: 0; width: 100%; }
  .bs-tooltip img { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .dot.on { animation: none; }
  html { scroll-behavior: auto; }
}
