:root {
  --bg: #000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --border: #38383a;
  --text: #fff;
  --muted: #8e8e93;
  --brand: #ffd60a;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: block; }
.wordmark { font-weight: 300; letter-spacing: -0.012em; color: rgba(255,255,255,0.92); }
.wordmark b { font-weight: 800; letter-spacing: -0.035em; color: var(--text); }
.site-header nav a { color: var(--muted); margin-left: 20px; font-size: 15px; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 56px; text-align: center; }
.hero-mark { width: 88px; height: 88px; margin: 0 auto 28px; display: block; }
.hero h1 { font-size: clamp(36px, 8vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 span { color: var(--brand); }
.hero p { color: var(--muted); font-size: clamp(17px, 3.5vw, 20px); max-width: 560px; margin: 20px auto 0; }
.cta { margin-top: 32px; display: inline-block; background: var(--brand); color: #000; font-weight: 700; padding: 15px 30px; border-radius: 999px; font-size: 17px; }
.cta:hover { text-decoration: none; opacity: 0.9; }
.cta.disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.cta.disabled:hover { opacity: 1; }

/* Sections */
section { padding: 40px 0; }
section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 20px; text-align: center; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-bottom: 14px; }

.roles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.roles span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-size: 15px; }

/* Document pages */
.doc { padding: 24px 0 64px; }
.doc h1 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.15; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 8px 0 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: #d1d1d6; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 0 0 12px 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details p { margin: 10px 0 0; }

/* Status pages */
.center-page { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.center-page .badge { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #000; font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.center-page h1 { font-size: 28px; margin-bottom: 8px; }
.center-page p { color: var(--muted); max-width: 420px; margin: 0 auto 8px; }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.site-footer .links a { color: var(--text); }
.site-footer p { max-width: 640px; }
