@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #ff0071;
  --primary-hover: #e00064;
  --primary-glow: rgba(255, 0, 113, 0.1);
  --bg: #ffffff;
  --bg-card: #f7f7f8;
  --bg-elevated: #f0f0f2;
  --bg-code: #1e1e2e;
  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border: #e2e2e5;
  --border-hover: #ccccd0;
  --bg-code-inline: #555;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --shadow-color: rgba(0, 0, 0, 0.06);
  --shadow-heavy: rgba(0, 0, 0, 0.1);
  --gradient-start: #f5f0f0;
  --gradient-mid: #f0ecf0;
  --gradient-end: #ebe7ed;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --nav-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-glow: rgba(255, 0, 113, 0.15);
    --bg: #111111;
    --bg-card: #1a1a1a;
    --bg-elevated: #222222;
    --bg-code: #0d0d0d;
    --text: #f5f5f5;
    --text-secondary: #a1a1a1;
    --text-muted: #6b6b6b;
    --border: #2a2a2a;
    --border-hover: #3a3a3a;
    --bg-code-inline: #333;
    --nav-bg: rgba(17, 17, 17, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --gradient-start: #1a1a1a;
    --gradient-mid: #1e1520;
    --gradient-end: #221525;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.3); border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(128,128,128,0.5); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

code {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.875em;
}

/* ─── Nav ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
}

nav .nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3em;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  justify-self: start;
}

nav .logo img {
  height: 36px;
}

nav .nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.95em;
  font-weight: 500;
  transition: color 0.15s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--text);
}

nav .nav-github {
  color: var(--text-secondary);
  transition: color 0.15s;
  justify-self: end;
}

nav .nav-github:hover {
  color: var(--text);
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 4.5em;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
  position: relative;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.35em;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
  position: relative;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 113, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 0, 113, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

/* ─── Demo section ─── */
.demo-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 32px 0;
}

.demo-container {
  width: 100%;
  height: 540px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-heavy);
}

/* ─── Features grid ─── */
.features {
  padding: 100px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2.8em;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.features .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2em;
  margin-bottom: 64px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px var(--shadow-color);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.8em;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.6;
}

/* ─── Install snippet ─── */
.install-section {
  padding: 100px 32px;
  text-align: center;
}

.install-section h2 {
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-code);
  color: var(--text-secondary);
  padding: 18px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 1.05em;
  margin-bottom: 16px;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.install-box .prompt {
  color: var(--primary);
}

.install-row {
  display: inline-flex;
  gap: 24px;
}

/* ─── Content pages ─── */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px 100px;
}

.page-wrapper h1 {
  font-size: 3.2em;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.page-wrapper > p:first-of-type {
  color: var(--text-secondary);
  font-size: 1.25em;
  margin-bottom: 56px;
}

.page-wrapper h2 {
  font-size: 1.8em;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 64px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.page-wrapper h3 {
  font-size: 1.25em;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.page-wrapper p {
  margin-bottom: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-wrapper ul, .page-wrapper ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.page-wrapper li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ─── Code blocks ─── */
pre {
  background: transparent;
  color: #e2e8f0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(128,128,128,0.25);
  overflow-x: auto;
  margin-bottom: 28px;
  font-size: 0.9em;
  line-height: 1.8;
}

pre code {
  font-size: inherit;
}

:not(pre) > code {
  background: rgba(128, 128, 128, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--primary);
  font-size: 0.9em;
}

/* ─── Note boxes ─── */
.note {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.92em;
  line-height: 1.6;
  color: var(--text-secondary);
}
.note::before {
  content: "💡 ";
  font-size: 1em;
}
.note code {
  font-size: 0.88em;
}

/* ─── API tables ─── */
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 0.92em;
}

.api-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.api-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}

.api-table td code {
  white-space: nowrap;
}

.api-table tr:hover td {
  background: var(--bg-card);
}

/* ─── Examples grid ─── */
.examples-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  align-items: stretch;
  gap: 0;
  color: inherit;
  overflow: hidden;
}

.example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-heavy);
  border-color: var(--border-hover);
}

.example-card-text {
  flex: 1;
  min-width: 0;
  padding: 32px 36px;
  align-self: center;
}

.example-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text);
}

.example-card p {
  color: var(--text-secondary);
  font-size: 0.93em;
  margin-bottom: 0;
  line-height: 1.6;
}

.example-card-img {
  width: 300px;
  min-height: 300px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  object-fit: cover;
  border-radius: 0;
}

/* ─── Footer ─── */
footer {
  padding: 48px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9em;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--text-secondary);
}

footer a:hover {
  color: var(--text);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero { padding: 80px 24px 60px; }
  .hero h1 { font-size: 2.8em; }
  .hero p { font-size: 1.1em; }
  .features { padding: 60px 24px; }
  .features h2 { font-size: 2em; }
  .features-grid { grid-template-columns: 1fr; }
  .example-card { flex-direction: column; }
  .example-card-img { width: 100%; min-height: 160px; }
  nav .nav-links { display: none; }
  nav .nav-github { display: none; }
  nav { padding: 0 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .page-wrapper h1 { font-size: 2.2em; }
  .page-wrapper { padding: 40px 24px 60px; }
  .install-section { padding: 60px 24px; }
  .install-section h2 { font-size: 1.8em; }
  .install-row { flex-direction: column; gap: 16px; display: flex; }
  .install-box { display: flex; font-size: 0.85em; }
  pre { font-size: 0.8em; }
  code { font-size: 0.8em; }
}

/* ─── Pricing ─── */
.pricing-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px 100px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 72px;
}

.pricing-header h1 {
  font-size: 3.2em;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.pricing-header p {
  font-size: 1.25em;
  color: var(--text-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto 100px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(255, 0, 113, 0.1);
}

.pricing-card-featured:hover {
  border-color: var(--primary);
  box-shadow: 0 0 50px rgba(255, 0, 113, 0.15);
}

.pricing-card-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.pricing-card-badge-muted {
  background: var(--text-muted);
}

.pricing-card-label {
  font-size: 1em;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85em;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 3.2em;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  font-size: 1.1em;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card-desc {
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features .check {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1em;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ─── FAQ ─── */
.pricing-faq h2 {
  font-size: 2em;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 48px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.93em;
  line-height: 1.65;
}

.pricing-contact {
  text-align: center;
  padding: 60px 32px 0;
}
.pricing-contact h2 {
  font-size: 1.6em;
  font-weight: 800;
  margin-bottom: 8px;
}
.pricing-contact p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .pricing-header h1 { font-size: 2.2em; }
}

/* ─── Showcase rows ─── */
.showcase {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}

.showcase-row-reverse {
  grid-template-columns: 1.4fr 1fr;
}

.showcase-row-reverse .showcase-text {
  order: 2;
  min-width: 0;
}

.showcase-row-reverse .showcase-demo {
  order: 1;
  min-width: 0;
}

.showcase-text h2 {
  font-size: 2.4em;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.showcase-text p {
  color: var(--text-secondary);
  font-size: 1.1em;
  line-height: 1.65;
}

.showcase-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88em;
  border-radius: 6px;
}

.showcase-demo {
  height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-heavy);
}

.showcase-demo canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Stats bar ─── */
.stats-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: 2.8em;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95em;
  font-weight: 500;
}

/* ─── Feature list ─── */
.feature-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px;
}

.feature-list h2 {
  font-size: 2.4em;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 56px;
}

.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
}

.feature-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-list-icon {
  font-size: 1.6em;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list-item h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.feature-list-item p {
  color: var(--text-secondary);
  font-size: 0.92em;
  line-height: 1.55;
}

.install-sub {
  color: var(--text-muted);
  font-size: 0.95em;
  margin-top: 16px;
}

.install-sub a {
  color: var(--text-secondary);
}

.install-sub a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .showcase { padding: 40px 24px 20px; gap: 32px; }
  .showcase-row,
  .showcase-row-reverse { grid-template-columns: 1fr; }
  .showcase-row-reverse .showcase-text { order: 1; }
  .showcase-row-reverse .showcase-demo { order: 2; }
  .showcase-demo { height: 260px; }
  .showcase-text h2 { font-size: 1.8em; }
  .showcase-text { text-align: center; }
  .showcase-actions { justify-content: center; margin-top: 28px; margin-bottom: -16px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 48px 24px; }
  .stat-value { font-size: 2em; }
  .feature-list { padding: 48px 24px; }
  .feature-list h2 { font-size: 1.8em; }
  .feature-list-grid { grid-template-columns: 1fr; }
}

/* ─── Active showcase button ─── */
.btn-active,
.btn-outline.btn-active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 0, 113, 0.08);
}

/* ─── Responsive demo ─── */
.showcase-demo-responsive {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  border-color: transparent;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.responsive-wrapper {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1), height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Resize arrows ─── */
.resize-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  overflow: visible;
}

.resize-arrow-top,
.resize-arrow-bottom {
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
}

.resize-arrow-left,
.resize-arrow-right {
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
}

.resize-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ─── Examples featured grid ─── */
.examples-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.example-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.example-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-heavy);
  border-color: var(--border-hover);
}

.example-featured-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.example-featured-text {
  padding: 20px 22px;
}

.example-featured-text h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.example-featured-text p {
  color: var(--text-secondary);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}

/* ─── Examples tiles ─── */
.examples-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.example-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.93em;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.example-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px var(--shadow-color);
  color: var(--text);
}

@media (max-width: 768px) {
  .examples-featured { grid-template-columns: 1fr; }
  .examples-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Mobile menu ─── */
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  justify-self: end;
  grid-column: 3;
}

.nav-burger svg {
  display: block;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 201;
  transition: right 0.25s ease;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  margin-bottom: 32px;
  line-height: 1;
  transition: color 0.15s;
}

.mobile-menu-close:hover {
  color: var(--text);
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  transition: color 0.15s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-burger { display: block; }
}

.mobile-menu-github {
  margin-top: 8px;
  padding: 12px 0;
}

.mobile-menu-github svg {
  display: block;
}
