:root {
  --bg: #050508;
  --bg-card: #0e0b06;
  --bg-soft: #171209;
  --border: rgba(245, 196, 81, 0.24);
  --text: #faf6eb;
  --muted: #b8ad96;
  --emerald: #10b981;
  --cyan: #f5c451;
  --gold: #ffd54f;
  --gold-deep: #d48806;
  --gold-hot: #fff3b0;
  --danger: #f87171;
  --eu: #f5c451;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, #2a1d06 0%, transparent 45%),
    radial-gradient(circle at 82% 8%, rgba(245, 196, 81, 0.08) 0%, transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: 22px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 5, 4, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 196, 81, 0.25);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.3px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(245, 196, 81, 0.55);
  box-shadow: 0 0 14px rgba(245, 196, 81, 0.28);
}

.brand-tag {
  font-size: 0.7rem;
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold);
  border: 1px solid rgba(245, 196, 81, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--gold);
  text-decoration: none;
}

.lang-btn {
  background: var(--bg-soft);
  color: var(--gold-hot);
  border: 1px solid rgba(245, 196, 81, 0.38);
  padding: 6px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--gold);
  background: rgba(245, 196, 81, 0.15);
}

/* Hero */
.hero {
  padding-block: 68px 52px;
  text-align: center;
}

.hero-emblem-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-emblem {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 2px solid rgba(255, 224, 102, 0.78);
  box-shadow:
    0 0 38px rgba(245, 196, 81, 0.36),
    0 12px 28px rgba(0, 0, 0, 0.65);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.4);
  color: var(--gold-hot);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 860px;
  margin: 0 auto 18px;
  background: linear-gradient(120deg, #ffffff 6%, #fff3b0 42%, #ffd54f 72%, #d48806 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  max-width: 730px;
  margin: 0 auto 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #fff3b0 0%, #ffd54f 45%, #d48806 100%);
  color: #160e02;
  box-shadow: 0 8px 24px rgba(245, 196, 81, 0.25);
}

.btn-web-launch {
  background: linear-gradient(135deg, #f5c451 0%, #c98305 100%);
  color: #120b02;
  box-shadow: 0 8px 26px rgba(245, 196, 81, 0.3);
}

.btn-gold {
  background: rgba(245, 196, 81, 0.14);
  color: var(--gold-hot);
  border: 1px solid rgba(245, 196, 81, 0.55);
}

.btn-outline {
  background: rgba(23, 18, 9, 0.72);
  color: var(--text);
  border: 1px solid rgba(245, 196, 81, 0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
}

.multiplatform-box {
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.05) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(245, 196, 81, 0.32);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.web-link-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.web-link-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.web-url-code {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--gold);
  word-break: break-all;
}

.web-alias-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}

.web-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-cyan {
  border-color: rgba(245, 196, 81, 0.42);
}

.release-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Kademlia DHT Graph */
.kademlia-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 196, 81, 0.36);
  border-radius: var(--radius);
  padding: 24px;
}

.kademlia-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.kademlia-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.radar-wrap {
  position: relative;
  background: #080705;
  border: 1px solid rgba(245, 196, 81, 0.32);
  border-radius: 14px;
  overflow: hidden;
  min-height: 330px;
}

#kademliaCanvas {
  width: 100%;
  height: 340px;
  display: block;
  cursor: pointer;
}

.node-inspector {
  background: #0a0805;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.inspector-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.16);
  color: var(--gold);
  width: fit-content;
}

.inspector-kv {
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
}

.inspector-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(245, 196, 81, 0.16);
  padding-bottom: 7px;
}

.inspector-row span:first-child {
  color: var(--muted);
}

.inspector-row span:last-child {
  color: var(--text);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

/* Sections */
section.container {
  padding-block: 60px;
  padding-inline: 22px;
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 38px;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff9e6;
}

.section-head p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Grids & Cards (generous gaps, zero touching cards) */
.edition-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.edition-tab-btn {
  background: rgba(20, 16, 8, 0.94);
  border: 1px solid rgba(245, 196, 81, 0.36);
  color: #f4ebd4;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.edition-tab-btn:hover,
.edition-tab-btn.active {
  background: linear-gradient(135deg, #fff3b0 0%, #f5c451 50%, #d48806 100%);
  color: #0e0902;
  border-color: #ffe066;
  box-shadow: 0 6px 22px rgba(245, 196, 81, 0.28);
}

.edition-pane {
  display: none;
  max-width: 880px;
  margin: 0 auto;
}

.edition-pane.active {
  display: block;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.card-emerald {
  border-color: rgba(16, 185, 129, 0.45);
}

.card-gold {
  border-color: rgba(255, 213, 79, 0.52);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.08) 0%, var(--bg-card) 100%);
}

.card-eu {
  border-color: rgba(245, 196, 81, 0.42);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff6d6;
}

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

.feature-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.feature-list li strong {
  color: var(--text);
}

/* Pricing */
.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.price-featured {
  border-color: var(--gold);
  box-shadow: 0 0 32px rgba(255, 213, 79, 0.16);
}

.price-tag {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0 4px;
}

.price-period {
  font-size: 0.92rem;
  color: var(--gold);
  font-weight: 700;
}

.pay-rails {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rail-badge {
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.45);
  color: var(--gold-hot);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.eth-pay-btn {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d48806 0%, #f5c451 55%, #fff3b0 100%);
  border: 1px solid rgba(255, 243, 176, 0.82);
  color: #160e02;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 26px rgba(245, 196, 81, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.eth-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 196, 81, 0.48);
  filter: brightness(1.06);
}

.eth-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 12, 5, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.eth-logo {
  display: block;
}

.eth-pill-hint {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff3c4;
  background: rgba(16, 12, 5, 0.72);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.eth-reveal {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.12) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(245, 196, 81, 0.48);
  box-shadow: 0 10px 30px rgba(245, 196, 81, 0.1);
}

.eth-reveal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eth-reveal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--gold-hot);
}

.eth-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eth-address-display {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(6, 5, 4, 0.85);
  border: 1px solid rgba(245, 196, 81, 0.45);
  padding: 8px 12px;
  border-radius: 10px;
  word-break: break-all;
}

.eth-copy-btn {
  padding: 8px 14px;
  font-size: 0.84rem;
  border-color: rgba(245, 196, 81, 0.55);
  color: var(--gold-hot);
}

.eth-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* EU & Disclaimer */
.disclaimer-box {
  margin-top: 24px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.disclaimer-box h3 {
  color: #fca5a5;
  margin-bottom: 10px;
}

/* AI Support Widget */
.support-box {
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.07) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 900px;
  margin: 0 auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.chip-btn {
  background: var(--bg-soft);
  color: var(--gold-hot);
  border: 1px solid rgba(245, 196, 81, 0.32);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--gold);
  background: rgba(245, 196, 81, 0.16);
}

.chat-form {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.chat-input {
  flex: 1;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.94rem;
}

.chat-reply {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(245, 196, 81, 0.3);
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.55;
  white-space: pre-line;
  display: none;
}

/* Footer */
footer {
  border-top: 1px solid rgba(245, 196, 81, 0.25);
  padding: 32px 0 44px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  section.container {
    padding-block: 44px;
    padding-inline: 16px;
  }
  .kademlia-layout {
    grid-template-columns: 1fr;
  }
  .chat-form {
    flex-direction: column;
  }
}
