:root {
  --bg: #0f1115;
  --panel: rgba(18, 22, 31, 0.88);
  --panel-strong: #171b25;
  --text: #eef1f7;
  --muted: #acb4c4;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f1c27d;
  --accent-2: #8dd3ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(141, 211, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(241, 194, 125, 0.15), transparent 28%),
    linear-gradient(180deg, #080a0f 0%, #0f1115 55%, #0a0c11 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer,
.content-card,
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: 20px;
}

.site-header {
  margin-bottom: 26px;
}

.brand {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  align-items: center;
}

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

.nav-group {
  position: relative;
}

.nav-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group[open] > summary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.nav-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 20;
  min-width: 240px;
  max-width: min(92vw, 340px);
  max-height: min(60vh, 520px);
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 15, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-menu a,
.nav-empty {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

.page-main {
  display: grid;
  gap: 22px;
}

.hero {
  padding: 18px 6px 6px;
}

.hero-home {
  padding-top: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 12ch;
}

h2 {
  font-size: 1.15rem;
}

.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-media {
  margin: 22px 0 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.hero-media img,
.media-image {
  display: block;
  width: 100%;
  height: auto;
}

.media-image {
  border-radius: 18px;
  margin-bottom: 14px;
  object-fit: cover;
}

.intro-copy {
  max-width: 72ch;
  line-height: 1.8;
  color: #d8deea;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.meta-chip,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

.content-card,
.card {
  border-radius: 24px;
  padding: 24px;
}

.highlight-grid .card,
.feature-grid .card {
  min-height: 180px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 1.8rem;
}

.principle-list {
  margin: 0;
  padding-left: 18px;
}

.principle-list li + li {
  margin-top: 10px;
}

.prose {
  color: var(--text);
  line-height: 1.8;
  white-space: normal;
}

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

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.link-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.link-label {
  color: var(--accent-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.link-meta {
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.4;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.kv-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.kv-list div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.kv-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.kv-list dt {
  color: var(--accent-2);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.kv-list dd {
  margin: 6px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.service-card h2 {
  margin-bottom: 6px;
}

.service-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pill.live {
  color: #b9ffd2;
  background: rgba(48, 121, 73, 0.18);
}

.pill.planned {
  color: #ffe7b2;
  background: rgba(132, 88, 27, 0.18);
}

.site-footer {
  margin-top: 22px;
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 10px;
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 4rem);
  }
}
