:root {
  --bg: #1a1712;
  --bg-elevated: #24201a;
  --card: #2c261d;
  --border: #3d3527;
  --text: #f1ece0;
  --text-muted: #b3a892;
  --accent: #f4c542;
  --accent-hover: #ffd766;
  --accent-text: #1a1712;
  --note-yellow: #fff5e6;
  --note-pink: #fce4ec;
  --note-blue: #e3f2fd;
  --note-green: #e8f5e9;
  --radius: 10px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 23, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand .logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--note-yellow), var(--accent));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
}

.btn-small {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 84px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(244, 197, 66, 0.12);
  border: 1px solid rgba(244, 197, 66, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mock note preview */
.note-preview {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  perspective: 1000px;
}

.note-card {
  width: 200px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: rotate(var(--rot, 0deg));
  background: var(--note-yellow);
}

.note-card:nth-child(1) { --rot: -4deg; background: var(--note-yellow); }
.note-card:nth-child(2) { --rot: 2deg; background: var(--note-pink); margin-top: 28px; }
.note-card:nth-child(3) { --rot: -2deg; background: var(--note-blue); }

.note-card .note-titlebar {
  height: 22px;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
}

.note-card .note-titlebar span {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.55);
}

.note-card .note-body {
  padding: 12px 10px 16px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.78rem;
}

.note-card .note-body .line {
  height: 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
  margin-bottom: 7px;
}

.note-card .note-body .line:nth-child(1) { width: 85%; }
.note-card .note-body .line:nth-child(2) { width: 65%; }
.note-card .note-body .line:nth-child(3) { width: 72%; }

/* Sections */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(244, 197, 66, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Pricing */
.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.pricing-card .price {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 6px 0 4px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  text-align: left;
  display: inline-block;
}

.pricing-card ul li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing-card ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
}

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

/* Docs page */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 56px 0 96px;
}

.docs-nav {
  position: sticky;
  top: 76px;
  align-self: start;
}

.docs-nav h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.docs-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.docs-nav a:hover {
  color: var(--text);
}

.docs-content h1 {
  margin-top: 0;
  font-size: 2rem;
}

.docs-content h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.docs-content h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.docs-content p, .docs-content li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.docs-content code, .docs-content kbd {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.88em;
  color: var(--text);
  font-family: "Cascadia Code", Consolas, monospace;
}

.docs-content ol, .docs-content ul {
  padding-left: 22px;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item {
  margin-bottom: 18px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}

@media (max-width: 760px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: static;
  }
  nav.site-nav {
    display: none;
  }
}
