@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bordeaux: #702028;
  --bordeaux-hover: #5a181f;
  --parchemin: #fdfaf3;
  --parchemin-alt: #f6f1e6;
  --ink-dark: #2a1416;
  --ink-mid: #4a3234;
  --ink-soft: #6f6663;
  --border-soft: #e8dcc4;
  --radius: 8px;
  --shadow-card: 0 2px 8px rgba(112, 32, 40, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchemin);
  color: var(--ink-dark);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-weight: 600;
  color: var(--bordeaux);
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; font-family: "Plus Jakarta Sans", sans-serif; }

p { margin: 0 0 1rem; color: var(--ink-mid); }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background: rgba(253, 250, 243, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
  padding: 0.75rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: "EB Garamond", serif; font-weight: 600; font-size: 1.4rem; color: var(--bordeaux); }
.lang-switcher { display: flex; gap: 0.5rem; font-size: 0.9rem; }
.lang-switcher a { color: var(--ink-soft); padding: 0.25rem 0.5rem; }
.lang-switcher a.active { color: var(--bordeaux); font-weight: 600; }

/* Section base */
section { padding: 4rem 0; }
section.alt { background: var(--parchemin-alt); }
section h2 { text-align: center; margin-bottom: 2rem; }
section .lead { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.1rem; }

/* Hero */
.hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 0.5rem; }
.hero .subtitle { color: var(--ink-soft); font-size: 1.25rem; margin-bottom: 1rem; font-style: italic; }
.hero .pitch { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-img img { max-width: 100%; height: auto; border-radius: 24px; box-shadow: 0 8px 32px rgba(112, 32, 40, 0.12); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--bordeaux); color: var(--parchemin); }
.btn-primary:hover { background: var(--bordeaux-hover); }
.btn-secondary { background: transparent; color: var(--bordeaux); border: 2px solid var(--bordeaux); padding: calc(0.875rem - 2px) calc(1.75rem - 2px); }
.btn-secondary:hover { background: rgba(112, 32, 40, 0.05); }
.btn[disabled], .btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--parchemin);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.card h3 { margin: 0 0 0.5rem; }
.card .badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.badge-live { background: rgba(112, 32, 40, 0.1); color: var(--bordeaux); }
.badge-soon { background: rgba(0, 0, 0, 0.05); color: var(--ink-soft); }

/* How-it-works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step .num {
  display: inline-block;
  width: 48px; height: 48px;
  background: var(--bordeaux);
  color: var(--parchemin);
  border-radius: 50%;
  font-family: "EB Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 48px;
  margin-bottom: 0.75rem;
}

/* Story */
.story { max-width: 720px; margin: 0 auto; text-align: center; font-size: 1.05rem; }
.story p { margin-bottom: 1.5rem; }

/* AI assistants */
.ai-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ai-card { background: var(--parchemin); padding: 2rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border-soft); text-align: center; }
.ai-card img { height: 56px; margin-bottom: 1rem; }

/* Screenshots grid */
.screenshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.screenshots img { width: 100%; border-radius: 16px; box-shadow: 0 4px 16px rgba(112, 32, 40, 0.08); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border-soft); padding: 1.25rem 0; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--ink-dark); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--bordeaux); font-size: 1.4rem; transition: transform 0.2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 1rem; color: var(--ink-mid); }

/* Footer */
.footer { background: var(--parchemin-alt); padding: 3rem 0 2rem; border-top: 1px solid var(--border-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.75rem; letter-spacing: 0.5px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-bottom { text-align: center; color: var(--ink-soft); font-size: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); }

/* Docs page (e.g. /mcp/) — long-form content with code samples */
.doc { max-width: 800px; margin: 0 auto; padding: 3rem 0; }
.doc h1 { text-align: left; margin-bottom: 0.5rem; }
.doc .doc-lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
.doc h2 { text-align: left; font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.doc h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: var(--bordeaux); font-family: "EB Garamond", serif; }
.doc ol, .doc ul { padding-left: 1.5rem; color: var(--ink-mid); }
.doc li { margin-bottom: 0.5rem; }
.doc code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--parchemin-alt);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}
.doc pre {
  background: var(--ink-dark);
  color: #f6f1e6;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1rem 0;
}
.doc pre code { background: transparent; border: none; color: inherit; padding: 0; font-size: inherit; }
.doc .callout {
  background: rgba(112, 32, 40, 0.05);
  border-left: 3px solid var(--bordeaux);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.doc th, .doc td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-soft); font-size: 0.95rem; }
.doc th { background: var(--parchemin-alt); font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
  .cards, .ai-cards, .steps, .screenshots { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards, .ai-cards, .steps, .screenshots, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0; }
  h1 { font-size: 2rem; }
}
