/* Naming Spaces · namingspaces.app
   Static site styles. System font stack, no external assets, dark-mode aware. */

:root {
  color-scheme: light dark;

  --indigo:        #5a55e0;
  --indigo-strong: #4d4dd9;
  --indigo-bright: #6b66f2;

  --bg:        #ffffff;
  --bg-soft:   #f5f5fa;
  --bg-card:   #ffffff;
  --border:    #e6e6ef;
  --text:      #1c1c24;
  --text-soft: #55555f;
  --text-mute: #8a8a96;
  --badge-unclaimed: #e08a2b;

  --shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 8px 24px rgba(20, 20, 40, .06);
  --radius: 14px;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #101014;
    --bg-soft:   #16161c;
    --bg-card:   #1b1b22;
    --border:    #2a2a34;
    --text:      #f2f2f6;
    --text-soft: #b9b9c4;
    --text-mute: #85858f;
    --indigo:        #7d78f0;
    --indigo-strong: #6b66f2;
    --indigo-bright: #948ff5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p  { margin: 0 0 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; display: block; flex: none; }
.nav a { color: var(--text-soft); font-weight: 550; margin-left: 22px; font-size: .96rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--indigo-bright), var(--indigo-strong));
  color: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,.15), 0 8px 20px color-mix(in srgb, var(--indigo) 35%, transparent);
}
.btn-primary:hover { box-shadow: 0 1px 1px rgba(0,0,0,.18), 0 10px 26px color-mix(in srgb, var(--indigo) 45%, transparent); }
.btn-primary .glyph { font-size: 1.15em; line-height: 0; }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--indigo); color: var(--indigo); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 40px;
}
.hero .logo-mark { width: 84px; height: 84px; margin: 0 auto 26px; display: block; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--text-soft);
  max-width: 40ch;
  margin: .2em auto 1.6em;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.cta-note {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--text-mute);
}

/* ---------- Badge mock (CSS-only "Deep Work" pill) ---------- */
.badge-stage {
  margin: 40px auto 8px;
  max-width: 640px;
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--indigo) 22%, var(--bg-soft)) 0%, var(--bg-soft) 60%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 20px;
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow);
}
.space-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(28, 28, 34, .82);
  color: #fff;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (prefers-color-scheme: dark) {
  .space-badge { background: rgba(240, 240, 246, .12); box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); }
}
.space-badge .dot {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: linear-gradient(180deg, var(--indigo-bright), var(--indigo-strong));
  display: grid; place-items: center;
}
.space-badge .dot svg { width: 14px; height: 14px; display: block; }
.space-badge.unclaimed {
  background: rgba(224, 138, 43, .16);
  color: var(--badge-unclaimed);
  box-shadow: inset 0 0 0 1px rgba(224, 138, 43, .5);
}
.space-badge.unclaimed .dot { background: var(--badge-unclaimed); }

/* ---------- Sections ---------- */
section { padding: 26px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-soft); max-width: 44ch; margin: 0 auto 34px; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .ficon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--indigo) 14%, transparent);
  color: var(--indigo);
}
.card .ficon svg { width: 22px; height: 22px; display: block; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--text-soft); margin: 0; font-size: .98rem; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .25em; }
.step p { color: var(--text-soft); margin: 0; font-size: .95rem; }

/* ---------- Teaser ---------- */
.teaser {
  text-align: center;
  padding: 30px 0 8px;
}
.teaser p {
  display: inline-block;
  color: var(--text-soft);
  font-size: 1.02rem;
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  margin: 0;
}
.teaser .spark { color: var(--indigo); font-weight: 650; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 30px 0 44px;
  color: var(--text-mute);
  font-size: .92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-footer a { color: var(--text-soft); }
.site-footer .sep { color: var(--border); }

/* ---------- Content pages (help / privacy) ---------- */
.doc { padding: 46px 0 8px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: .1em; }
.doc .updated { color: var(--text-mute); font-size: .9rem; margin-bottom: 2em; }
.doc h2 {
  margin-top: 1.9em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border);
  scroll-margin-top: 76px;
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { margin-top: 1.5em; }
.doc p, .doc li { color: var(--text-soft); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; }
.doc .callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--indigo);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 1.4em 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc .toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 2.4em;
}
.doc .toc p { font-weight: 650; color: var(--text); margin: 0 0 .5em; }
.doc .toc ul { margin: 0; padding-left: 1.1em; }
.doc .toc li { margin-bottom: .3em; }

.faq dt { font-weight: 650; color: var(--text); margin-top: 1.3em; }
.faq dd { margin: .3em 0 0; color: var(--text-soft); }

.back-home { display: inline-block; margin-top: 8px; font-weight: 550; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound .logo-mark { width: 66px; height: 66px; margin: 0 auto 20px; }
.notfound p { color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .features, .steps { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 52px 0 32px; }
  .badge-stage { padding: 34px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
