/* Prism — design tokens */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e4e4e7;
  --color-text: #18181b;
  --color-text-muted: #71717a;
  --color-accent: #4a6fa5;
  --color-accent-hover: #3b5a8a;
  --color-code-bg: #f4f4f5;
  --color-code-border: #e4e4e7;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;

  --radius: 6px;
  --max-width: 820px;
  --spacing: 1.5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--spacing);
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 3.25rem;
}

nav .nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav .nav-logo span {
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

nav ul li a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

nav ul li a:hover {
  color: var(--color-text);
}

/* Main content */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem var(--spacing) 3rem;
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 1.5rem;
}

/* CTA button */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--color-accent-hover);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Use-case list */
.use-case-list {
  list-style: none;
  margin-bottom: 2rem;
}

.use-case-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0;
}

.use-case-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.use-case-list a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.use-case-list a:hover {
  text-decoration: underline;
}

.use-case-list .desc {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* Typography */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.25rem; }
h2 { font-size: 1.4rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 0.85rem;
     padding-bottom: 0.4rem; border-bottom: 1px solid var(--color-border); }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.75rem; margin-bottom: 0.6rem; }
h4 { font-size: 0.95rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.3rem; }

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}

pre {
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
}

/* Callout / note box */
.note {
  background: #eff6ff;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.note strong { display: block; margin-bottom: 0.2rem; }

/* Step indicator */
.steps ol {
  list-style: none;
  padding-left: 0;
  counter-reset: step-counter;
}

.steps ol > li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 2rem;
}

.steps ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page header (non-hero pages) */
.page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.page-header h1 { margin-bottom: 0.4rem; }
.page-header .subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb span { margin: 0 0.4rem; }

/* Coming-soon / empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

.empty-state h2 { font-size: 1.5rem; margin-bottom: 0.75rem; border: none; }
.empty-state p { max-width: 440px; margin: 0 auto 1.5rem; }

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem var(--spacing);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
