/* SocGenie Design System
   Brand: Reddome product, crimson #dc2626, slate-900 #0f172a, Inter
   Logo: PROMPT mark — slate square, white chevron (>), crimson cursor bar
---------------------------------------------------------------- */

:root {
  --sg-red: #dc2626;
  --sg-red-dark: #b70011;
  --sg-red-50: #fff1f2;
  --sg-red-100: #ffe4e6;
  --sg-ink: #0f172a;        /* slate-900 */
  --sg-ink-2: #1a1a2e;      /* deep navy accent */
  --sg-ink-3: #2d3133;
  --sg-slate-500: #64748b;
  --sg-slate-600: #475569;
  --sg-slate-700: #334155;
  --sg-muted: #94a3b8;
  --sg-bg: #ffffff;
  --sg-bg-soft: #f8fafc;
  --sg-bg-soft-2: #f1f5f9;
  --sg-border: #e2e8f0;
  --sg-border-soft: #eef2f7;
  --sg-success: #10b981;
  --sg-warn: #f59e0b;
  --sg-radius: 14px;
  --sg-radius-sm: 8px;
  --sg-radius-lg: 22px;
  --sg-container: 1200px;
  --sg-ease: cubic-bezier(.22,1,.36,1);
  --sg-shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --sg-shadow-md: 0 4px 10px rgba(15,23,42,.06), 0 10px 30px rgba(15,23,42,.08);
  --sg-shadow-lg: 0 20px 40px -10px rgba(15,23,42,.16);
  --sg-shadow-red: 0 10px 30px -10px rgba(220,38,38,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11","ss01","ss03";
  color: var(--sg-ink);
  background: var(--sg-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Container */
.sg-wrap { max-width: var(--sg-container); margin: 0 auto; padding: 0 24px; }
.sg-wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* Type */
.sg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sg-red);
}
.sg-eyebrow::before {
  content: ""; width: 14px; height: 2px; background: var(--sg-red);
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; color: var(--sg-ink); }
.sg-h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.sg-h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.1;  letter-spacing: -.03em; }
.sg-h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.sg-lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--sg-slate-600); max-width: 62ch; }

/* Logo — PROMPT mark (slate bg, white chevron, crimson cursor) */
.sg-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--sg-ink);
}
.sg-logo__mark {
  width: 24px; height: 24px; flex: 0 0 auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' rx='14' fill='%230f172a'/><path d='M18 22 L28 32 L18 42' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/><rect x='34' y='38' width='14' height='4' rx='1' fill='%23dc2626'/></svg>") center / contain no-repeat;
}
.sg-logo__wm { display: inline-flex; align-items: baseline; }
.sg-logo__wm b { font-weight: 700; }
.sg-logo__wm span { font-weight: 500; color: var(--sg-red); }
.sg-logo--inv { color: #fff; }
/* On dark surfaces: swap slate bg for crimson so the mark pops against the dark footer */
.sg-logo--inv .sg-logo__mark {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' rx='14' fill='%23dc2626'/><path d='M18 22 L28 32 L18 42' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/><rect x='34' y='38' width='14' height='4' rx='1' fill='%230f172a'/></svg>") center / contain no-repeat;
}
.sg-logo--inv .sg-logo__wm span { color: #fca5a5; }

/* Nav */
.sg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  transition: box-shadow .2s ease, background .2s ease;
}
.sg-nav.is-scrolled { box-shadow: 0 1px 0 rgba(15,23,42,.05), 0 10px 30px -20px rgba(15,23,42,.2); }
.sg-nav__inner {
  max-width: 1360px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.sg-nav__links { display: flex; gap: 26px; }
.sg-nav__links a {
  font-size: 14px; font-weight: 500; color: var(--sg-slate-700);
  transition: color .2s;
  position: relative;
}
.sg-nav__links a:hover { color: var(--sg-red); }
.sg-nav__links a.is-active { color: var(--sg-red); }
.sg-nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px;
  background: var(--sg-red);
}
.sg-nav__cta { display: flex; align-items: center; gap: 18px; }
.sg-nav__cta .sg-link { font-size: 14px; font-weight: 500; color: var(--sg-slate-700); }
.sg-nav__cta .sg-link:hover { color: var(--sg-red); }
.sg-hamburger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.sg-hamburger svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .sg-nav__links { display: none; }
  .sg-nav__cta .sg-link { display: none; }
  .sg-hamburger { display: block; }
  .sg-nav.is-open .sg-nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--sg-border);
  }
  .sg-nav.is-open .sg-nav__links a.is-active::after { display: none; }
}

/* Buttons */
.sg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: transform .15s var(--sg-ease), background .2s, color .2s, box-shadow .2s;
  cursor: pointer; border: 0; text-decoration: none;
  white-space: nowrap;
}
.sg-btn:active { transform: scale(.98); }
.sg-btn--primary { background: var(--sg-red); color: #fff; box-shadow: var(--sg-shadow-red); }
.sg-btn--primary:hover { background: var(--sg-red-dark); }
.sg-btn--dark { background: var(--sg-ink); color: #fff; }
.sg-btn--dark:hover { background: #000; }
.sg-btn--ghost { background: #fff; color: var(--sg-ink); border: 1px solid var(--sg-border); }
.sg-btn--ghost:hover { border-color: var(--sg-ink); }
.sg-btn--outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.sg-btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.sg-btn--lg { padding: 16px 26px; font-size: 15px; border-radius: 12px; }
.sg-btn .arr { transition: transform .2s; }
.sg-btn:hover .arr { transform: translateX(3px); }

/* Section */
.sg-section { padding: clamp(72px, 10vw, 120px) 0; }
.sg-section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.sg-section--dark { background: var(--sg-ink); color: #fff; }
.sg-section--dark h1,.sg-section--dark h2,.sg-section--dark h3 { color: #fff; }
.sg-section--dark .sg-lede { color: #94a3b8; }
.sg-section--soft { background: var(--sg-bg-soft); }

/* Cards */
.sg-card {
  background: #fff; border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius); padding: 28px;
  transition: transform .25s var(--sg-ease), box-shadow .25s var(--sg-ease), border-color .2s;
}
.sg-card:hover { transform: translateY(-3px); box-shadow: var(--sg-shadow-md); border-color: #d1d5db; }
.sg-card--dark { background: #12172a; border-color: rgba(255,255,255,.07); color: #fff; }

/* Badges */
.sg-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--sg-bg-soft-2); color: var(--sg-slate-700);
}
.sg-pill--red { background: var(--sg-red-50); color: var(--sg-red-dark); }
.sg-pill--green { background: #ecfdf5; color: #047857; }
.sg-pill--dark { background: rgba(255,255,255,.08); color: #fff; }

/* Grid helpers */
.sg-grid { display: grid; gap: 24px; }
.sg-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.sg-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.sg-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .sg-grid-2, .sg-grid-3, .sg-grid-4 { grid-template-columns: 1fr; }
}

/* Reveal on scroll */
.sg-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--sg-ease), transform .6s var(--sg-ease); }
.sg-reveal.is-in { opacity: 1; transform: none; }

/* Counter */
.sg-counter { font-variant-numeric: tabular-nums; }

/* Scroll-behavior */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .sg-reveal { opacity: 1; transform: none; }
}

/* Footer */
.sg-footer {
  background: var(--sg-ink); color: #cbd5e1; padding: 80px 0 40px;
}
.sg-footer a { color: #cbd5e1; }
.sg-footer a:hover { color: #fff; }
.sg-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .sg-footer__grid { grid-template-columns: 1fr 1fr; } }
.sg-footer h5 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.sg-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sg-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--sg-muted); }

/* Gradient hero backdrops */
.sg-hero-mesh {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(220,38,38,.14), transparent 60%),
    radial-gradient(60% 50% at 0% 0%, rgba(15,23,42,.06), transparent 60%),
    #ffffff;
}
.sg-hero-dark {
  background: radial-gradient(80% 80% at 70% 10%, rgba(220,38,38,.18), transparent 60%), var(--sg-ink);
  color: #fff;
}
.sg-hero-dark h1, .sg-hero-dark h2 { color: #fff; }

/* Dot grid */
.sg-dots {
  background-image: radial-gradient(rgba(15,23,42,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.sg-dots-dark {
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Stat number */
.sg-stat { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--sg-red); }
.sg-stat-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-slate-500); margin-top: 10px; }

/* Keyframes */
@keyframes sgPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes sgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes sgScan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@keyframes sgSpin { to { transform: rotate(360deg); } }


/* ---------- Shared FAQ (used on index, pricing, /blog, landing pages) ---------- */
.sg-faq { border-top: 1px solid var(--sg-border); max-width: 820px; margin: 0 auto; }
.sg-faq details { border-bottom: 1px solid var(--sg-border); padding: 22px 0; cursor: pointer; }
.sg-faq summary { font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--sg-ink); gap: 24px; }
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after { content: "+"; font-size: 22px; color: var(--sg-red); font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.sg-faq details[open] summary::after { transform: rotate(45deg); }
.sg-faq .ans { margin-top: 14px; color: var(--sg-slate-600); line-height: 1.65; max-width: 70ch; font-size: 15.5px; }
.sg-faq .ans a { color: var(--sg-red); }


/* ---------- Blog / long-form prose ---------- */
.sg-prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.72; color: var(--sg-slate-700); }
.sg-prose h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--sg-ink); margin: 56px 0 20px; }
.sg-prose h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.3; color: var(--sg-ink); margin: 40px 0 14px; }
.sg-prose p { margin: 0 0 22px; }
.sg-prose a { color: var(--sg-red); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(220,38,38,.25); text-underline-offset: 3px; }
.sg-prose a:hover { text-decoration-color: var(--sg-red); }
.sg-prose strong { color: var(--sg-ink); font-weight: 700; }
.sg-prose ul, .sg-prose ol { padding-left: 22px; margin: 0 0 22px; }
.sg-prose li { margin-bottom: 8px; }
.sg-prose blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sg-red); font-size: 20px; font-weight: 500; color: var(--sg-ink); line-height: 1.5; }
.sg-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-weight: 400; color: var(--sg-slate-500); font-style: normal; }
.sg-prose code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9em; background: var(--sg-bg-soft-2); padding: 2px 7px; border-radius: 4px; color: var(--sg-ink); }
.sg-prose hr { border: 0; border-top: 1px solid var(--sg-border); margin: 56px 0; }
.sg-prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.sg-prose table th, .sg-prose table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--sg-border); }
.sg-prose table th { background: var(--sg-bg-soft); font-weight: 700; color: var(--sg-ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.sg-prose figure { margin: 32px 0; }
.sg-prose figcaption { font-size: 14px; color: var(--sg-slate-500); margin-top: 10px; text-align: center; }

/* Quick answer box (AEO — direct answer for LLMs / featured snippets) */
.sg-qa { background: linear-gradient(180deg, #fff 0%, var(--sg-bg-soft) 100%); border: 1px solid var(--sg-border); border-left: 4px solid var(--sg-red); border-radius: 14px; padding: 24px 28px; margin: 8px 0 40px; box-shadow: var(--sg-shadow-sm); }
.sg-qa__label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-red); margin-bottom: 10px; }
.sg-qa__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sg-red); display: inline-block; }
.sg-qa p { font-size: 17px; line-height: 1.6; color: var(--sg-ink); margin: 0; font-weight: 500; }
.sg-qa p + p { margin-top: 10px; font-weight: 400; color: var(--sg-slate-700); font-size: 16px; }

/* Author bio (end of post, boosts E-E-A-T) */
.sg-author { display: flex; gap: 18px; align-items: flex-start; padding: 24px; margin: 48px 0 0; background: var(--sg-bg-soft); border: 1px solid var(--sg-border); border-radius: 14px; }
.sg-author__avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--sg-red) 0%, #991b1b 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: 0 0 56px; }
.sg-author__body { flex: 1; }
.sg-author__name { font-weight: 700; color: var(--sg-ink); font-size: 15px; }
.sg-author__role { font-size: 13px; color: var(--sg-slate-500); margin-top: 2px; }
.sg-author__bio { font-size: 14px; color: var(--sg-slate-700); margin-top: 10px; line-height: 1.6; }

/* Blog callout box */
.sg-callout { background: var(--sg-red-50); border-left: 3px solid var(--sg-red); padding: 20px 24px; border-radius: 0 10px 10px 0; margin: 32px 0; font-size: 16px; line-height: 1.6; color: var(--sg-ink); }
.sg-callout strong { color: var(--sg-red-dark); }
.sg-callout--dark { background: var(--sg-ink); color: #fff; border-left-color: var(--sg-red); }
.sg-callout--dark strong { color: #fff; }

/* Blog post header */
.sg-post-head { padding: 120px 0 48px; text-align: center; }
.sg-post-head .sg-eyebrow { justify-content: center; }
.sg-post-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 16px auto 20px; max-width: 20ch; }
.sg-post-head .meta { color: var(--sg-slate-500); font-size: 14px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.sg-post-head .meta .dot { width: 3px; height: 3px; background: var(--sg-slate-500); border-radius: 50%; align-self: center; }

/* Blog index cards */
.sg-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .sg-blog-grid { grid-template-columns: 1fr; } }
.sg-post-card { background: #fff; border: 1px solid var(--sg-border); border-radius: 14px; padding: 32px 28px; transition: transform .25s var(--sg-ease), box-shadow .25s var(--sg-ease), border-color .2s; display: flex; flex-direction: column; text-align: left; }
.sg-post-card:hover { transform: translateY(-4px); box-shadow: var(--sg-shadow-md); border-color: #d1d5db; }
.sg-post-card__tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-red); margin-bottom: 14px; }
.sg-post-card__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--sg-ink); margin-bottom: 12px; }
.sg-post-card__excerpt { color: var(--sg-slate-600); font-size: 15px; line-height: 1.6; margin-bottom: 22px; flex: 1; }
.sg-post-card__meta { color: var(--sg-slate-500); font-size: 13px; display: flex; gap: 14px; }
.sg-post-card__featured { background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%); color: #fff; border-color: transparent; grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 48px; }
@media (max-width: 900px) { .sg-post-card__featured { grid-column: auto; grid-template-columns: 1fr; padding: 32px; } }
.sg-post-card__featured .sg-post-card__title { color: #fff; font-size: 34px; line-height: 1.15; }
.sg-post-card__featured .sg-post-card__excerpt { color: #94a3b8; font-size: 16px; }
.sg-post-card__featured .sg-post-card__tag { color: #f87171; }
.sg-post-card__featured .sg-post-card__meta { color: #64748b; }

/* Post CTA panel */
.sg-post-cta { background: var(--sg-ink); color: #fff; border-radius: 18px; padding: 40px; margin: 56px auto 0; max-width: 760px; text-align: center; }
.sg-post-cta h3 { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.02em; }
.sg-post-cta p { color: #94a3b8; font-size: 16px; line-height: 1.55; margin-bottom: 24px; max-width: 48ch; margin-left: auto; margin-right: auto; }
.sg-post-cta .sg-btn { font-size: 15px; }

/* Table of contents */
.sg-toc { position: sticky; top: 90px; padding: 22px 24px; background: var(--sg-bg-soft); border-radius: 12px; border: 1px solid var(--sg-border); font-size: 14px; }
.sg-toc__title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-red); margin-bottom: 14px; }
.sg-toc ul { list-style: none; padding: 0; margin: 0; }
.sg-toc li { margin: 8px 0; line-height: 1.4; }
.sg-toc a { color: var(--sg-slate-600); text-decoration: none; display: block; }
.sg-toc a:hover { color: var(--sg-red); }

.sg-post-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 0 24px; align-items: start; }
@media (max-width: 900px) { .sg-post-layout { grid-template-columns: 1fr; padding: 0 20px; } .sg-toc { position: static; } }
