/* Shared design tokens — copied from the main landing pages so the blog
   reads as part of the same product, not a bolted-on afterthought. */
:root {
  --ink:     #0A1220;
  --surface: #0F1B2E;
  --card:    #142743;
  --border:  #223A5E;
  --signal:  #F2A93B;
  --signal2: #17B4CE;
  --muted:   #7686A0;
  --text:    #C9D4E3;
  --white:   #F3F7FC;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.7; }
body.ar { font-family: 'Cairo', sans-serif; }

nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(10,18,32,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; background: var(--white); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 3px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: var(--white); }
body.ar .logo { font-family: 'Cairo', sans-serif; }
.logo span { color: var(--signal); }
nav a.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
nav a.nav-link:hover { color: var(--white); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-cta { background: var(--signal) !important; color: var(--ink) !important; padding: 8px 18px; border-radius: 6px; font-weight: 700 !important; }

main { max-width: 760px; margin: 0 auto; padding: 64px 24px 100px; }

/* Blog index */
.blog-hero { text-align: center; margin-bottom: 56px; }
.blog-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--signal); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
body.ar .blog-eyebrow { font-family: 'Cairo', sans-serif; letter-spacing: 1px; }
.blog-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--white); margin-bottom: 16px; }
body.ar .blog-hero h1 { font-family: 'Cairo', sans-serif; }
.blog-hero p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto; }

.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px 32px; text-decoration: none; transition: border-color 0.2s; }
.post-card:hover { border-color: rgba(242,169,59,0.35); }
.post-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; color: var(--white); margin-bottom: 8px; }
body.ar .post-card h2 { font-family: 'Cairo', sans-serif; }
.post-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-card .post-tag { display: inline-block; margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--signal2); letter-spacing: 1px; }
body.ar .post-card .post-tag { font-family: 'Cairo', sans-serif; }

/* Article page */
article header.post-header { margin-bottom: 40px; }
.post-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--signal); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
body.ar .post-eyebrow { font-family: 'Cairo', sans-serif; letter-spacing: 1px; }
article h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4.5vw, 42px); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
body.ar article h1 { font-family: 'Cairo', sans-serif; }
.post-meta { color: var(--muted); font-size: 13px; font-family: 'JetBrains Mono', monospace; }
body.ar .post-meta { font-family: 'Cairo', sans-serif; }

article .prose h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; color: var(--white); margin: 40px 0 16px; }
body.ar article .prose h2 { font-family: 'Cairo', sans-serif; }
article .prose p { margin-bottom: 20px; color: var(--text); }
article .prose ul { margin: 0 0 20px; padding-inline-start: 22px; color: var(--text); }
article .prose li { margin-bottom: 8px; }
article .prose strong { color: var(--white); }
article .prose a { color: var(--signal); }

.post-cta { margin-top: 56px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; }
.post-cta h3 { font-family: 'Space Grotesk', sans-serif; color: var(--white); font-size: 20px; margin-bottom: 10px; }
body.ar .post-cta h3 { font-family: 'Cairo', sans-serif; }
.post-cta p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.post-cta a.btn { display: inline-block; background: var(--signal); color: var(--ink); padding: 12px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 14px; }

footer { border-top: 1px solid var(--border); padding: 32px 48px; text-align: center; }
footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
footer a:hover { color: var(--signal); }
.footer-copy { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-top: 10px; }
body.ar .footer-copy { font-family: 'Cairo', sans-serif; }

@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  main { padding: 40px 20px 72px; }
}