/* SocialOS AI — single hand-written stylesheet. No frameworks. Core Web Vitals friendly. */
:root {
  --indigo-900: #4c1d95;
  --indigo-700: #6d28d9;
  --indigo-600: #5b21b6;
  --indigo-500: #4f46e5;
  --sky-500: #0ea5e9;
  --grad: linear-gradient(120deg, #6d28d9 0%, #4f46e5 55%, #0ea5e9 100%);
  --grad-soft: linear-gradient(120deg, rgba(109,40,217,.12), rgba(14,165,233,.12));

  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-deep: #0b1020;
  --surface: #ffffff;
  --border: #e6e8f0;
  --text: #131726;
  --text-soft: #4a5168;
  --text-mut: #6b7280;
  --primary: #5b21b6;
  --primary-ink: #ffffff;
  --ring: rgba(91,33,182,.35);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow: 0 8px 30px rgba(16,24,40,.08);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.14);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #11162a;
    --bg-deep: #060912;
    --surface: #141a33;
    --border: #232a45;
    --text: #eef1fb;
    --text-soft: #b8bfd8;
    --text-mut: #8b93b2;
    --primary: #7c5cff;
    --ring: rgba(124,92,255,.4);
    --grad-soft: linear-gradient(120deg, rgba(109,40,217,.22), rgba(14,165,233,.18));
    --shadow: 0 8px 30px rgba(0,0,0,.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; color: var(--text); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text-soft); }
ul, ol { color: var(--text-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-alt { background: var(--bg-alt); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .6rem; }
.lead { font-size: 1.18rem; color: var(--text-soft); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .98rem; padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(91,33,182,.35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(91,33,182,.45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.25); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: inline-block; box-shadow: 0 4px 12px rgba(91,33,182,.4); }
.nav-links { display: flex; gap: .25rem; margin-left: 1rem; list-style: none; padding: 0; }
.nav-links a { color: var(--text-soft); font-weight: 600; font-size: .95rem; padding: .45rem .7rem; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 38px; cursor: pointer; color: var(--text); font-size: 1.2rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px; background: var(--grad-soft); filter: blur(40px); z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: .9rem; color: var(--text-mut); }
.hero-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; }
.hero-visual .bar { height: 10px; border-radius: 6px; background: var(--bg-alt); margin: 8px 0; }
.hero-visual .bar.w70 { width: 70%; } .hero-visual .bar.w50 { width: 50%; } .hero-visual .bar.w85 { width: 85%; }
.mock-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--bg-alt); margin-bottom: 8px; }
.mock-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); flex: none; }
.mock-pill { display: inline-block; padding: .3rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--grad-soft); color: var(--primary); }

/* Generic grids / cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.card h3 { margin-bottom: .35em; }
.card p { margin-bottom: .6em; font-size: .98rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--primary); }
.icon-badge svg { width: 24px; height: 24px; }
.muted { color: var(--text-mut); font-size: .92rem; }

ul.ticks { list-style: none; padding: 0; margin: .5em 0; }
ul.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: var(--text-soft); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; }
.stat .n { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.stat .l { color: var(--text-mut); font-size: .92rem; }

/* How it works */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step .num { width: 40px; height: 40px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; position: relative; }
.plan.featured { border-color: transparent; box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .8rem; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 1.25rem; margin-bottom: .15em; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.plan .period { color: var(--text-mut); font-size: .9rem; }
.plan .ptag { color: var(--text-mut); font-size: .9rem; min-height: 2.4em; margin-bottom: 1rem; }
.plan ul.ticks { flex: 1; }
.plan .btn { width: 100%; justify-content: center; margin-top: 1rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--surface); }
table.cmp th, table.cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .96rem; }
table.cmp thead th { background: var(--bg-alt); font-weight: 800; }
table.cmp th.os, table.cmp td.os { background: var(--grad-soft); color: var(--text); font-weight: 600; }
table.cmp tbody tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; background: var(--surface); }
.faq-item h3 { font-size: 1.08rem; margin-bottom: .35em; }
.faq-item p { margin: 0; font-size: .98rem; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--text-mut); padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--text-mut); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--text-mut); }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .92; max-width: 56ch; margin: 0 auto 1.4rem; }
.cta-band .btn { background: #fff; color: var(--indigo-600); }
.cta-band .btn:hover { background: #f3f0ff; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { color: var(--text-mut); font-size: .9rem; margin-bottom: 1.2rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.article-body { font-size: 1.06rem; }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--grad-soft); color: var(--primary); }

.post-card { display: flex; flex-direction: column; }
.post-card .meta { font-size: .82rem; color: var(--text-mut); margin-bottom: .5rem; }
.post-card h3 { margin-bottom: .4em; }

/* Page hero (inner) */
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { margin-bottom: .3em; }

/* Logo strip */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--text-soft); }
.chip .swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* Footer */
.site-footer { background: var(--bg-deep); color: #c7cce0; padding: 56px 0 28px; margin-top: 32px; }
.site-footer a { color: #aeb6d6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #8b93b2; font-size: .92rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid #1d2440; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #7780a0; }

/* 404 */
.error-page { text-align: center; padding: 100px 0; }
.error-page .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; box-shadow: var(--shadow); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px 22px; }
  .section { padding: 52px 0; }
}
