:root {
  --bg: #0A0E14;
  --text: #E6E9EF;
  --accent: #5EEAD4;
  --line: #3D4452;
  --muted: #8B95A7;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

/* Landing layout — centered card */
body.landing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.node {
  width: 14px;
  height: 14px;
  margin: 0 auto 40px;
  position: relative;
}

.node::before, .node::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}

.node::before {
  animation: pulse 2.4s ease-out infinite;
  opacity: 0;
}

.node::after {
  box-shadow: 0 0 12px var(--accent);
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(4.5); opacity: 0; }
}

.wordmark {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

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

.tagline {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 420px;
  margin-inline: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 56px;
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 28px;
}

.contact {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 14px;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}

.contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: var(--accent); }

/* Document layout — legal / support pages */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 80px;
  line-height: 1.7;
}

.doc-nav {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 13px;
  margin-bottom: 48px;
}

.doc-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.doc-nav a:hover { color: var(--accent); }

.doc h1 {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.doc .updated {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.doc h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.doc p, .doc li {
  color: var(--text);
  font-size: 15px;
}

.doc p { margin-bottom: 16px; }

.doc ul, .doc ol {
  margin: 0 0 16px 22px;
}

.doc li { margin-bottom: 8px; }

.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.doc a:hover { border-color: var(--accent); }

.doc strong { font-weight: 600; }

.doc hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 48px 0 24px;
}

.doc-footer {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.doc-footer a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* App pages */
.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.app-header h1 { margin-bottom: 4px; }

.app-header .subtitle {
  color: var(--muted);
  font-size: 15px;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.tier {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.tier.pro { border-color: var(--accent); }

.tier h3 {
  margin: 0 0 4px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.tier .price {
  font-size: 14px;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  margin-bottom: 12px;
}

.tier ul {
  margin: 0 0 0 18px;
}

.tier li {
  font-size: 14px;
  color: var(--muted);
}

.app-list {
  list-style: none;
  margin: 0;
  text-align: left;
}

.app-list li { margin: 0; }

.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.app-row:hover { border-color: var(--accent); }

.app-row img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.app-row .name {
  display: block;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 15px;
  margin-bottom: 2px;
}

.app-row .blurb {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.note {
  border-left: 2px solid var(--line);
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .app-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .app-icon { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .node::before { animation: none; opacity: 0.4; }
}
