:root {
  color-scheme: dark;
  --bg: #0b0f16;
  --surface: #131a26;
  --surface-soft: rgba(19, 26, 38, 0.7);
  --border: rgba(148, 163, 184, 0.2);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #5eead4;
  --accent-strong: #22d3ee;
  --warning: #fbbf24;
}

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

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, #0f172a, var(--bg));
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  object-fit: contain;
  padding: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}

main {
  padding: 3.5rem 0 4rem;
}

.section.centered {
  text-align: center;
}

.section.slab {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #05131a;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.grid.centered {
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
}

.grid.centered .card {
  align-items: center;
  text-align: center;
}

.quick-links .card {
  padding: 1rem;
}

.quick-links h3 {
  font-size: 1rem;
}

.quick-links p {
  font-size: 0.85rem;
}

.wallets-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  padding: 1rem 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.faq-item[open] {
  border-color: rgba(94, 234, 212, 0.3);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.15);
}

.pool-card {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.pool-logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.pool-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.list {
  list-style: disc;
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
}

.list.plain {
  list-style: none;
  padding-left: 0;
}

.list.centered {
  padding-left: 0;
  justify-items: center;
}

.spec-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
}

.spec-list li {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.spec-list li strong {
  min-width: 140px;
  color: var(--text);
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.section > * + * {
  margin-top: 0.75rem;
}

.badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.alert {
  border: 1px dashed rgba(248, 250, 252, 0.3);
  padding: 1rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.05);
  color: var(--muted);
}

.alert.warning {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--warning);
}

.timeline {
  display: grid;
  gap: 1.8rem;
}

.timeline-item {
  position: relative;
  border-left: 2px solid var(--border);
  padding: 1.4rem 1.5rem 1.4rem 2.5rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 1.6rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.6);
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.chip-group {
  display: flex;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

select.chip {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.chip.active {
  background: rgba(94, 234, 212, 0.15);
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.4);
}

.release-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
}

.release-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.release-assets {
  display: grid;
  gap: 0.6rem;
  flex: 1;
}

.release-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.release-asset a {
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.85rem;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-warning {
  margin-bottom: 1.5rem;
  display: none;
}

.content-warning.visible {
  display: block;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 1.5rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open .nav {
    display: flex;
  }
}
