@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #f3f8f6;
  --bg-strong: #e8f1ee;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --surface-muted: #edf4f8;
  --ink: #102227;
  --ink-muted: #42575d;
  --border: #ccdfda;
  --accent-green: #0f9f73;
  --accent-blue: #0b6ed1;
  --accent-gold: #cf8a1f;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(7, 28, 36, 0.08);
}

[data-theme="dark"] {
  --bg: #0e1618;
  --bg-strong: #122126;
  --surface: #152228;
  --surface-2: #1a2c34;
  --surface-muted: #1a2a30;
  --ink: #e8f2ef;
  --ink-muted: #b2c2bd;
  --border: #2d4950;
  --accent-green: #4bc89a;
  --accent-blue: #5aa2f0;
  --accent-gold: #f3b654;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 580px at 0% -10%, rgba(15, 159, 115, 0.1), transparent 60%),
    radial-gradient(880px 460px at 100% 0%, rgba(11, 110, 209, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #fdfefe 48%, var(--bg) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -12vmax;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: conic-gradient(
    from 140deg,
    rgba(15, 159, 115, 0.1),
    rgba(11, 110, 209, 0.08),
    rgba(207, 138, 31, 0.08),
    rgba(15, 159, 115, 0.1)
  );
  animation: drift-a 44s linear infinite;
}

body::after {
  background:
    radial-gradient(46vmax 30vmax at 18% 34%, rgba(11, 110, 209, 0.08), transparent 70%),
    radial-gradient(40vmax 30vmax at 80% 74%, rgba(15, 159, 115, 0.08), transparent 70%);
  animation: drift-b 50s ease-in-out infinite;
}

@keyframes drift-a {
  0% { transform: rotate(0deg) translate3d(0, 0, 0); }
  100% { transform: rotate(360deg) translate3d(0, 0, 0); }
}

@keyframes drift-b {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1.4%, -0.9%, 0) scale(1.02); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

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

.container--narrow {
  width: min(820px, 92vw);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(243, 248, 246, 0.86);
  border-bottom: 1px solid rgba(204, 223, 218, 0.74);
}

.navbar,
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(16, 34, 39, 0.14);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(16, 34, 39, 0.14);
  background: linear-gradient(145deg, rgba(15, 159, 115, 0.22), rgba(11, 110, 209, 0.20));
  color: var(--ink);
  font-weight: 700;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.wordmark,
.brand span {
  font-size: 1.08rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(16, 34, 39, 0.09);
}

.nav-links a[data-active="true"] {
  color: var(--ink);
  background: rgba(15, 159, 115, 0.18);
  border: 1px solid rgba(15, 159, 115, 0.34);
}

.main {
  padding: 2.4rem 0 3.2rem;
}

.page-intro {
  max-width: 74ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.18;
  letter-spacing: 0.2px;
  margin: 0;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.95rem, 2.5vw + 1rem, 3.2rem);
}

h2 {
  font-size: clamp(1.35rem, 1.2vw + 0.9rem, 1.9rem);
}

h3 {
  font-size: 1.08rem;
}

p,
li,
small {
  color: var(--ink-muted);
  line-height: 1.62;
}

.lead {
  margin-top: 0.9rem;
  font-size: 1.06rem;
}

.technical-entry {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
}

.section {
  margin-top: 1.2rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.section[data-tone="plain"] {
  background: transparent;
  border-color: rgba(16, 34, 39, 0.14);
}

.section[data-tone="soft"] {
  background: linear-gradient(180deg, var(--surface-muted) 0%, rgba(247, 251, 255, 0.86) 100%);
}

.section--technical {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.technical-disclosure {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(16, 34, 39, 0.25);
  background: rgba(255, 255, 255, 0.64);
  padding: 0.8rem;
}

[data-theme="dark"] .technical-disclosure {
  border-color: rgba(232, 242, 239, 0.24);
  background: rgba(21, 34, 40, 0.8);
}

.technical-disclosure > summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
}

.technical-disclosure > summary::-webkit-details-marker {
  display: none;
}

.technical-disclosure > summary::before {
  content: "+ ";
  color: var(--accent-blue);
  font-weight: 700;
}

.technical-disclosure[open] > summary::before {
  content: "- ";
}

.technical-note {
  margin: 0.65rem 0 0.8rem;
  font-size: 0.9rem;
}

.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.tech-group {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 34, 39, 0.14);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.65rem;
}

[data-theme="dark"] .tech-group {
  border-color: rgba(232, 242, 239, 0.18);
  background: rgba(26, 44, 52, 0.8);
}

.tech-group h3 {
  font-size: 0.94rem;
  margin: 0;
}

.tech-chips {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-chip {
  font-size: 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 34, 39, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0.18rem 0.5rem;
}

[data-theme="dark"] .tech-chip {
  border-color: rgba(232, 242, 239, 0.2);
  background: rgba(21, 34, 40, 0.82);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.info-layout {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 1.1rem;
  align-items: start;
}

.copy-block {
  border-left: 4px solid rgba(15, 159, 115, 0.45);
  padding-left: 0.82rem;
}

.data-block {
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 34, 39, 0.13);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.9rem;
}

.stack,
.stack-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.34rem;
}

.stat-strip {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.stat-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 34, 39, 0.12);
  background: rgba(255, 255, 255, 0.80);
  padding: 0.66rem;
}

.stat-item strong {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 1.02rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.badge,
.pill {
  border-radius: 999px;
  border: 1px solid rgba(16, 34, 39, 0.15);
  background: rgba(255, 255, 255, 0.80);
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.66rem 1.02rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(140deg, var(--accent-green), #0d8b65 56%, var(--accent-blue));
  color: #f5fffb;
  box-shadow: 0 10px 24px rgba(15, 159, 115, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 13px 26px rgba(15, 159, 115, 0.31);
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  border-color: rgba(16, 34, 39, 0.20);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(16, 34, 39, 0.06);
}

.cards-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.timeline-card,
.legal-card,
.access-card,
.update-card,
.flow-node,
.card {
  padding: 0.92rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 34, 39, 0.13);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.info-card ul,
.legal-card ul,
.access-card ul,
.timeline-card ul,
.update-card ul,
.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.notice {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 34, 39, 0.14);
  padding: 0.7rem 0.82rem;
  background: rgba(255, 255, 255, 0.82);
}

.text-muted,
.muted {
  color: var(--ink-muted);
}

.table,
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0.65rem;
}

.table th,
.table td,
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.58rem 0.62rem;
  border-bottom: 1px solid rgba(16, 34, 39, 0.10);
  font-size: 0.9rem;
}

.table th,
.spec-table th {
  color: var(--ink);
  background: rgba(11, 110, 209, 0.12);
  font-weight: 600;
}

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

.timeline li {
  border-left: 3px solid rgba(11, 110, 209, 0.35);
  padding-left: 0.75rem;
}

.timeline small {
  display: inline-block;
  margin-top: 0.15rem;
}

.pipeline-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.42rem;
}

.route-map {
  display: grid;
  gap: 0.68rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 34, 39, 0.13);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.7rem 0.75rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.link-row a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.link-row a:hover {
  text-decoration: underline;
}

.updates-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.update-meta span {
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 34, 39, 0.15);
  background: rgba(255, 255, 255, 0.80);
  color: var(--ink);
}

.status-shipped {
  color: #0b7d59;
  border-color: rgba(11, 125, 89, 0.38);
  background: rgba(11, 125, 89, 0.14);
}

.status-progress {
  color: #8a5b0d;
  border-color: rgba(138, 91, 13, 0.35);
  background: rgba(207, 138, 31, 0.17);
}

.status-planned {
  color: #0d4f8a;
  border-color: rgba(13, 79, 138, 0.32);
  background: rgba(11, 110, 209, 0.14);
}

.page-footer,
.site-footer {
  margin: 2rem 0 1.3rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(16, 34, 39, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.page-footer a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.page-footer a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.page-foot {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (max-width: 980px) {
  .info-layout {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main {
    padding-top: 1.8rem;
  }

  .cards-grid,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .navbar,
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .tech-groups {
    grid-template-columns: 1fr;
  }
}

