/**
 * Landing + developer docs — RTL Hebrew, standalone marketing layout.
 */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap');

:root {
  --mp-bg: #f4f8f6;
  --mp-bg-deep: #e8f0ec;
  --mp-surface: #ffffff;
  --mp-primary: #2d6a5a;
  --mp-primary-light: #3d8b74;
  --mp-accent: #0ea5e9;
  --mp-text: #1e293b;
  --mp-muted: #64748b;
  --mp-border: #d1e0d9;
  --mp-code-bg: #0f172a;
  --mp-shadow: 0 12px 40px rgba(45, 106, 90, 0.12);
}

.marketing-page {
  font-family: 'Heebo', 'Segoe UI', 'Arial Hebrew', sans-serif;
  background: linear-gradient(165deg, var(--mp-bg) 0%, #faf8f5 40%, var(--mp-bg-deep) 100%);
  background-attachment: fixed;
  color: var(--mp-text);
  min-height: 100vh;
}

.marketing-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mp-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.marketing-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--mp-primary);
  text-decoration: none;
}

.marketing-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.marketing-nav-links a {
  color: var(--mp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.marketing-nav-links a:hover {
  color: var(--mp-primary);
}

.marketing-hero {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.marketing-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--mp-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.marketing-hero .lead {
  font-size: 1.15rem;
  color: var(--mp-muted);
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.marketing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.marketing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.marketing-btn-primary {
  background: linear-gradient(180deg, var(--mp-primary-light) 0%, var(--mp-primary) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(45, 106, 90, 0.35);
}

.marketing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(45, 106, 90, 0.4);
}

.marketing-btn-secondary {
  background: var(--mp-surface);
  color: var(--mp-primary);
  border: 2px solid var(--mp-border);
}

.marketing-btn-secondary:hover {
  border-color: var(--mp-primary);
}

.marketing-btn-ghost {
  background: transparent;
  color: var(--mp-accent);
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.marketing-section {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.marketing-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mp-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mp-border);
}

.marketing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.marketing-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--mp-shadow);
  transition: transform 0.2s;
}

.marketing-card:hover {
  transform: translateY(-3px);
}

.marketing-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-primary);
  margin-bottom: 0.5rem;
}

.marketing-card p {
  font-size: 0.9rem;
  color: var(--mp-muted);
  line-height: 1.55;
  margin: 0;
}

.marketing-disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.5;
  margin: 2rem auto;
  max-width: 56rem;
}

.marketing-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: var(--mp-muted);
  border-top: 1px solid var(--mp-border);
  margin-top: 2rem;
}

/* Developer doc layout */
.dev-page .marketing-section {
  max-width: 52rem;
}

.dev-toc {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 4.5rem;
  z-index: 10;
}

.dev-toc h2 {
  font-size: 1rem;
  border: none;
  margin-bottom: 0.75rem;
  padding: 0;
}

.dev-toc ol {
  margin: 0;
  padding-right: 1.25rem;
  padding-left: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.85rem;
  line-height: 1.8;
}

.dev-toc a {
  color: var(--mp-accent);
  text-decoration: none;
}

.dev-toc a:hover {
  text-decoration: underline;
}

.dev-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}

.dev-section h2 {
  font-size: 1.4rem;
}

.dev-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mp-primary-light);
  margin: 1.25rem 0 0.5rem;
}

.dev-section p,
.dev-section li {
  line-height: 1.7;
  color: var(--mp-text);
  font-size: 0.95rem;
}

.dev-section ul {
  padding-right: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.dev-pre {
  background: var(--mp-code-bg);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  margin: 0.75rem 0 1rem;
  font-family: 'SF Mono', 'Menlo', monospace;
}

.dev-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--mp-surface);
  border-radius: 0.5rem;
  overflow: hidden;
}

.dev-table th,
.dev-table td {
  border: 1px solid var(--mp-border);
  padding: 0.5rem 0.75rem;
  text-align: right;
}

.dev-table th {
  background: var(--mp-bg);
  font-weight: 600;
  color: var(--mp-primary);
}

.dev-table td[dir='ltr'] {
  text-align: left;
  font-family: monospace;
  font-size: 0.8rem;
}

.dev-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--mp-bg);
  color: var(--mp-primary);
  margin-left: 0.35rem;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .dev-toc ol {
    columns: 1;
  }
}
