:root {
  --page-bg: #f4f4f9;
  --bg: #e2e2ec;
  --bg-2: #d8d8e6;
  --bg-card: #e2e2ec;
  --border: rgba(20, 20, 55, 0.08);
  --border-hover: rgba(20, 20, 55, 0.2);
  --text: #13132a;
  --muted: #5e5e82;
  --bg-dark: #07070d;
  --muted-dark: #7777a0;
  --cyan: #1e2d6b;
  --magenta: #b8006a;
  --yellow: #b08a00;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: #f0f0f6; }

body {
  background: #f0f0f6;
  color: var(--text);
  font-family: var(--font);
  padding-top: 60px;
}

/* ── Nav (dark) ──────────────────────────────── */

nav {
  position: fixed;
  z-index: 999;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

nav ul { list-style: none; display: flex; align-items: center; gap: 0.1rem; }

nav ul li a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}

nav ul li a:hover { color: var(--text); background: var(--bg-2); }

nav ul li a.nav-cta {
  color: var(--text);
  border: 1px solid var(--border);
}

nav ul li a.nav-cta:hover { border-color: var(--text); background: transparent; }

#twitter-nav { display: none; }

/* ── Hero (dark) ──────────────────────────────── */

#heading {
  background: linear-gradient(180deg, #131320 0%, #1c1c2c 45%, #161622 100%);
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

#heading::before { display: none; }

#logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

#logo-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#logo canvas { display: block; width: 60px; height: 60px; flex-shrink: 0; }

#logo svg { width: 260px; fill: #9090b4; }

#tagline {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

#heading > p {
  max-width: 540px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted-dark);
  margin: 0 auto 2.5rem;
}

/* Newsletter */
#mc_embed_signup { width: 100%; max-width: 480px; }
#mc_embed_signup form { padding: 0; text-align: center; }

#mc_embed_signup label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

#mc_embed_signup input.email {
  font-family: var(--font);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #e0e0f0;
  height: 40px;
  padding: 0 1rem;
  width: 100%;
  max-width: 255px;
  vertical-align: top;
  transition: border-color 0.2s;
}

#mc_embed_signup input.email::placeholder { color: var(--muted-dark); }
#mc_embed_signup input.email:focus { outline: none; border-color: var(--cyan); }

#mc_embed_signup .clear { display: inline-block; margin-left: 0.4rem; vertical-align: top; }

#mc_embed_signup .button {
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  height: 40px;
  padding: 0 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  transition: background 0.2s, transform 0.15s;
}

#mc_embed_signup .button:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }

/* ── Floating panels ──────────────────────────────── */

#stats, #about, #initiatives, #team {
  max-width: 1160px;
  margin: 1.5rem auto;
  border-radius: 16px;
  border: 1px solid var(--border) !important;
  overflow: hidden;
  scroll-margin-top: 80px;
}

#contact {
  max-width: 1160px;
  margin: 1.5rem auto 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ── Stats strip ──────────────────────────────── */

#stats {
  background: var(--bg-card);
}

#stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
  transition: background 0.2s;
}

.stat:not(:last-child):hover::after { background: var(--cyan); }

.stat-value {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}


/* ── Stake With Us (inside initiatives) ──────────────────────────────── */
/* (no separate panel — lives inside #initiatives) */

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.stake-card {
  margin-bottom: 0;
  padding: 0.8rem calc(2px + 1rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.stake-card:hover { opacity: 0.75; }
.stake-card--featured {}

.stake-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stake-network-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stake-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}

.stake-badge--live { background: rgba(0,160,80,0.1); color: #00a050; }

.stake-inline-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.stake-dot { color: var(--border-hover); }

.stake-link {
  font-size: 0.8rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
  transition: border-color 0.2s;
}

.stake-actions { display: flex; flex-direction: row; gap: 0; margin-left: auto; margin-right: 2rem; }
.stake-link:hover { border-left-color: var(--cyan); }
.stake-link--external { margin-left: 0.75rem; padding-left: 0.75rem; }

/* ── Initiatives ──────────────────────────────── */

#initiatives {
  background: var(--bg-card);
  padding: 2rem 2rem;
}

#initiatives-inner { max-width: 1100px; margin: 0 auto; }

#initiatives h2#advisory { margin-top: 2rem; }

.initiative-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 0.5rem;
}

.initiative-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem 1rem 1.25rem;
  border-left: 2px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, opacity 0.2s;
}


.initiative-card:hover { border-color: var(--cyan); opacity: 0.85; }

.initiative-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 0; }
.initiative-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0; }

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.advisory-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1rem 1rem 0;
  text-decoration: none;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  transition: border-color 0.2s, opacity 0.2s;
}

.advisory-card:hover { border-color: var(--cyan); opacity: 0.85; }

.advisory-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--text); margin: 0; }
.advisory-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ── About ──────────────────────────────── */

#about {
  background: var(--bg-card);
  padding: 3rem 2rem;
}

#about-inner { max-width: 1100px; margin: 0 auto; }

#about p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ── Team ──────────────────────────────── */

#team {
  background: var(--bg-card);
  padding: 2rem;
}

#team-inner { max-width: 1100px; margin: 0 auto; }

.bio-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0.5rem 0 1rem;
}

.bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1rem 1.75rem;
  text-align: center;
  border-left: 1px solid var(--border);
  transition: border-left-color 0.2s;
}

.bio:hover { border-left-color: var(--cyan); }
.bio:last-child { border-right: 1px solid var(--border); }

.bio img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.25rem;
}

.bio h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.bio-links { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: center; margin-top: 0.1rem; }

.bio-links a {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.bio-links a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── Contact ──────────────────────────────── */

#contact {
  background: var(--bg-card);
  padding: 1.25rem 2rem;
}

#contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

#contact-msg {
  font-size: 0.9rem;
  color: var(--muted);
}

#contact-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

#contact-links a {
  font-size: 0.9rem;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

#contact-links a:hover { opacity: 0.7; }

.contact-sep { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 700px) {
  #contact-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ── Footer ──────────────────────────────── */

footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(200, 200, 220, 0.3);
}

/* ── Modal ──────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 8, 20, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--bg-2); }

.modal-subhead {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.modal-desc a { color: var(--cyan); text-decoration: none; }
.modal-desc a:hover { text-decoration: underline; }

.modal-address {
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text);
  word-break: break-all;
  margin: 0.5rem 0 1.25rem;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.modal-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.modal-stat-value span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.modal-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

#cosmos-stake-card { cursor: pointer; }

/* ── Fade-in ──────────────────────────────── */

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────── */

@media only screen and (min-width: 768px) {
  #logo canvas { width: 90px; height: 90px; }
  #logo svg { width: 400px; }
  #tagline { font-size: 0.82rem; }
  .stake-grid { grid-template-columns: 1fr 1fr; }
  .bio img { width: 90px; height: 90px; }
}

@media only screen and (min-width: 1100px) {
  #logo canvas { width: 120px; height: 120px; }
  #logo svg { width: 530px; }
  #tagline { font-size: 0.92rem; letter-spacing: 0.42em; }
}

@media (max-width: 700px) {
  .bio-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  #mc_embed_signup input.email { width: 100%; max-width: 100%; margin-bottom: 0.5rem; }
  #mc_embed_signup .clear { display: block; width: 100%; margin-left: 0; }
  #mc_embed_signup .button { width: 100%; }
}
