:root {
  --bg: #06110d;
  --panel: rgba(10, 26, 20, 0.88);
  --panel-2: rgba(13, 39, 30, 0.92);
  --text: #eafff7;
  --muted: #9fc6b8;
  --green: #20e89b;
  --green-soft: rgba(32, 232, 155, 0.14);
  --border: rgba(32, 232, 155, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(32, 232, 155, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(38, 113, 255, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.xrpl-clean-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 14, 10, 0.86);
  backdrop-filter: blur(16px);
}

.xrpl-clean-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xrpl-clean-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.xrpl-clean-brand:hover {
  text-decoration: none;
}

.xrpl-clean-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  box-shadow: 0 0 34px rgba(32, 232, 155, 0.14);
}

.xrpl-clean-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: -2px;
}

.xrpl-clean-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.xrpl-clean-links a {
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.xrpl-clean-links a.active,
.xrpl-clean-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--green-soft);
  text-decoration: none;
}

.xrpl-container {
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 60px;
}

.mission-panel {
  background: linear-gradient(180deg, var(--panel), rgba(5, 18, 13, 0.92));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-heading > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--green-soft);
  border: 1px solid var(--border);
}

.panel-heading h1,
.panel-heading h2 {
  margin: 0;
  line-height: 1.1;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.latest-card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(32, 232, 155, 0.18), transparent 20rem),
    var(--panel-2);
}

.latest-card h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 6px 0 12px;
}

.news-kicker,
.news-date {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.news-card h3 {
  margin: 10px 0;
  line-height: 1.2;
}

.news-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.read-link {
  margin-top: auto;
  font-weight: 800;
}

.xrpl-command-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.xrpl-command-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #02100b;
  font-weight: 900;
  border: 1px solid var(--green);
}

.xrpl-command-btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.xrpl-command-btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.warning-box,
pre {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(32, 232, 155, 0.08);
  padding: 16px;
  overflow-x: auto;
}

code {
  color: #c8ffe9;
}

footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .xrpl-clean-nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .xrpl-clean-links {
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    align-items: flex-start;
  }

  .xrpl-command-btn {
    width: 100%;
  }
}
