/* NeoAavya design system (v1): used by new pages (services/, blogs/) and, over time, everything else.
   No Bootstrap/jQuery dependency. Light, calm, product-led. Brand indigo is used sparingly.
   Contrast: --ds-brand on white = 6.3:1, --ds-muted on white = 4.8:1 (WCAG AA). */
:root {
    --ds-ink: #0b1220;
    --ds-ink-2: #334155;
    --ds-muted: #5b6577;
    --ds-line: #e6e8ef;
    --ds-bg: #ffffff;
    --ds-bg-soft: #f6f7fb;
    --ds-bg-ink: #0b1120;
    --ds-brand: #4f46e5;
    --ds-brand-hover: #4338ca;
    --ds-brand-soft: #eef0ff;
    --ds-accent: linear-gradient(135deg, #667eea, #764ba2);
    --ds-ok: #047857;
    --ds-radius: 14px;
    --ds-radius-sm: 10px;
    --ds-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --ds-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ds-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --ds-max: 1180px;
}

/* ---------- Base ----------
   Element defaults use :where() (zero specificity) so component classes, and the shared header/footer
   (site-nav.css), always win regardless of stylesheet order. */
.ds { margin: 0; font: 400 17px/1.65 var(--ds-font); color: var(--ds-ink-2); background: var(--ds-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.ds) *, :where(.ds) *::before, :where(.ds) *::after { box-sizing: border-box; }
:where(.ds) img, :where(.ds) svg { max-width: 100%; height: auto; }
:where(.ds) :where(h1, h2, h3, h4) { color: var(--ds-ink); font-family: var(--ds-font); margin: 0 0 .5em; letter-spacing: -0.02em; }
:where(.ds) h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
:where(.ds) h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 700; }
:where(.ds) h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
:where(.ds) p { margin: 0 0 1em; }
:where(.ds) a { color: var(--ds-brand); text-underline-offset: 3px; }
:where(.ds) a:hover { color: var(--ds-brand-hover); }
:where(.ds) :focus-visible { outline: 3px solid var(--ds-brand); outline-offset: 3px; border-radius: 4px; }
:where(.ds) code { font-family: var(--ds-mono); font-size: .9em; background: var(--ds-bg-soft); border: 1px solid var(--ds-line); border-radius: 6px; padding: .1em .4em; }

.ds-container { width: 100%; max-width: var(--ds-max); margin: 0 auto; padding: 0 24px; }
.ds-section { padding: clamp(64px, 9vw, 112px) 0; }
.ds-section--soft { background: var(--ds-bg-soft); border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.ds-section--tight { padding: 48px 0; }
.ds-head { max-width: 720px; margin-bottom: 48px; }
.ds-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ds-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 600 13px/1 var(--ds-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-brand); }
.ds-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--ds-accent); }
.ds-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ds-ink-2); max-width: 640px; }
.ds-muted { color: var(--ds-muted); }
.ds-small { font-size: 14px; }

/* ---------- Breadcrumb ---------- */
.ds-crumbs { font-size: 14px; color: var(--ds-muted); margin-bottom: 28px; }
.ds-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ds-crumbs li + li::before { content: "/"; margin-right: 8px; color: #b6bccb; }
.ds-crumbs a { color: var(--ds-muted); text-decoration: none; }
.ds-crumbs a:hover { color: var(--ds-brand); text-decoration: underline; }

/* ---------- Buttons ---------- */
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 600 16px/1.2 var(--ds-font); text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.ds-btn--primary { background: var(--ds-brand); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .25); }
.ds-btn--primary:hover { background: var(--ds-brand-hover); color: #fff; transform: translateY(-1px); }
.ds-btn--secondary { background: #fff; color: var(--ds-ink); border-color: var(--ds-line); }
.ds-btn--secondary:hover { border-color: var(--ds-brand); color: var(--ds-brand); }
.ds-btn--light { background: #fff; color: var(--ds-ink); }
.ds-btn--light:hover { color: var(--ds-brand); }
.ds-btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.ds-btn--ghost-light:hover { color: #fff; border-color: #fff; }
.ds-link-arrow { font-weight: 600; text-decoration: none; }
.ds-link-arrow::after { content: " \2192"; transition: margin .15s; }
.ds-link-arrow:hover::after { margin-left: 4px; }

/* ---------- Hero ---------- */
.ds-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); background:
    radial-gradient(800px 380px at 85% -10%, rgba(102, 126, 234, .14), transparent 60%),
    radial-gradient(600px 300px at -5% 0%, rgba(118, 75, 162, .08), transparent 60%), var(--ds-bg); border-bottom: 1px solid var(--ds-line); }
.ds-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.ds-hero__note { margin-top: 20px; font-size: 14px; color: var(--ds-muted); }

/* ---------- Layout ---------- */
.ds-grid { display: grid; gap: 20px; }
.ds-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ds-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ds-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ds-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }

/* ---------- Cards ---------- */
.ds-card { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); padding: 28px; box-shadow: var(--ds-shadow); }
.ds-card h3 { margin-bottom: 8px; }
.ds-card p:last-child { margin-bottom: 0; }
.ds-card--flat { box-shadow: none; }
.ds-card--feature { position: relative; border-color: #c7cbff; box-shadow: 0 0 0 4px var(--ds-brand-soft), var(--ds-shadow); }
.ds-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 10px; background: var(--ds-brand-soft); color: var(--ds-brand); }
.ds-card__icon svg { width: 22px; height: 22px; }
.ds-tag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.4 var(--ds-font); letter-spacing: .02em; color: var(--ds-brand); background: var(--ds-brand-soft); }
.ds-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 16px; font-size: 14px; color: var(--ds-muted); }
.ds-card__meta strong { color: var(--ds-ink); font-weight: 600; }

/* ---------- Lists ---------- */
.ds-check { list-style: none; margin: 0; padding: 0; }
.ds-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ds-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ds-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath d='M8.1 13.6 4.5 10l1.1-1.1 2.5 2.5 6.3-6.3 1.1 1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Steps / timeline ---------- */
.ds-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.ds-steps li { position: relative; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); counter-increment: step; }
.ds-steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 700 14px/1 var(--ds-mono); color: var(--ds-brand); }
.ds-steps__when { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-muted); }
.ds-steps h3 { font-size: 1.1rem; }
.ds-steps p { font-size: 15px; margin: 0; }

/* ---------- Snapshot panel (hero right side) ---------- */
.ds-panel { background: #fff; border: 1px solid var(--ds-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .10); overflow: hidden; }
.ds-panel__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ds-line); background: var(--ds-bg-soft); font: 600 13px/1 var(--ds-font); color: var(--ds-muted); }
.ds-panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dce6; }
.ds-panel__bar span { margin-left: 6px; }
.ds-panel__body { padding: 8px 20px 20px; }
.ds-timeline { list-style: none; margin: 0; padding: 0; }
.ds-timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--ds-line); font-size: 15px; }
.ds-timeline li:last-child { border-bottom: 0; }
.ds-timeline b { font: 600 13px/1.6 var(--ds-mono); color: var(--ds-brand); }
.ds-timeline strong { display: block; color: var(--ds-ink); font-weight: 600; }
.ds-timeline span { color: var(--ds-muted); font-size: 14px; }

/* ---------- Comparison table ---------- */
.ds-table-wrap { overflow-x: auto; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: #fff; }
.ds-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.ds-table th, .ds-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--ds-line); }
.ds-table thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ds-muted); background: var(--ds-bg-soft); }
.ds-table tbody th { color: var(--ds-ink); font-weight: 600; width: 22%; }
.ds-table tr:last-child th, .ds-table tr:last-child td { border-bottom: 0; }
.ds-table .ds-col-us { background: #fafaff; color: var(--ds-ink); }
.ds-table thead .ds-col-us { color: var(--ds-brand); background: var(--ds-brand-soft); }

/* ---------- FAQ ---------- */
.ds-faq { border-top: 1px solid var(--ds-line); }
.ds-faq details { border-bottom: 1px solid var(--ds-line); }
.ds-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 1.05rem/1.4 var(--ds-font); color: var(--ds-ink); }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: "+"; flex-shrink: 0; font-size: 24px; font-weight: 400; color: var(--ds-muted); transition: transform .2s; }
.ds-faq details[open] summary::after { transform: rotate(45deg); }
.ds-faq details > div { padding: 0 0 22px; max-width: 760px; }

/* ---------- CTA band ---------- */
.ds-cta { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 72px); border-radius: 22px; color: #cbd5e1; background:
    radial-gradient(600px 300px at 100% 0%, rgba(118, 75, 162, .55), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(102, 126, 234, .45), transparent 60%), var(--ds-bg-ink); }
.ds-cta h2 { color: #fff; max-width: 680px; }
.ds-cta p { max-width: 600px; font-size: 1.1rem; }
.ds-cta .ds-actions { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .ds-hero__grid, .ds-split { grid-template-columns: 1fr; gap: 40px; }
    .ds-grid--4, .ds-steps { grid-template-columns: repeat(2, 1fr); }
    .ds-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ds { font-size: 16px; }
    .ds-container { padding: 0 16px; }
    .ds-grid--2, .ds-grid--3, .ds-grid--4, .ds-steps { grid-template-columns: 1fr; }
    .ds-card { padding: 22px; }
    .ds-actions .ds-btn { width: 100%; }
    .ds-cta { border-radius: 16px; padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) { .ds * { transition: none !important; } }

/* =====================================================================
   Blog (Sprint 3): hub cards, article layout, long-form prose
   ===================================================================== */
.ds-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ds-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); padding: 28px; box-shadow: var(--ds-shadow); transition: border-color .15s, transform .15s; }
.ds-post:hover { border-color: #c7cbff; transform: translateY(-2px); }
.ds-post h2, .ds-post h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 10px; }
.ds-post h2 a, .ds-post h3 a { color: var(--ds-ink); text-decoration: none; }
.ds-post h2 a:hover, .ds-post h3 a:hover { color: var(--ds-brand); }
.ds-post h2 a::after, .ds-post h3 a::after { content: ""; position: absolute; inset: 0; }
.ds-post { position: relative; }
.ds-post .ds-tag { align-self: flex-start; }
.ds-post p { color: var(--ds-muted); font-size: 15.5px; flex: 1; }
.ds-post__meta { display: flex; gap: 14px; margin-top: 16px; font-size: 13.5px; color: var(--ds-muted); }
.ds-post--soon { background: var(--ds-bg-soft); box-shadow: none; }
.ds-post--soon:hover { transform: none; border-color: var(--ds-line); }
.ds-post--soon .ds-tag { color: var(--ds-muted); background: #eceef4; }

.ds-article-head { padding: clamp(48px, 7vw, 80px) 0 40px; border-bottom: 1px solid var(--ds-line); background: radial-gradient(800px 320px at 90% -20%, rgba(102, 126, 234, .12), transparent 60%), #fff; }
.ds-article-head h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 880px; }
.ds-article-head .ds-lead { max-width: 760px; }
.ds-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 24px; font-size: 14.5px; color: var(--ds-muted); }
.ds-byline strong { color: var(--ds-ink); font-weight: 600; }
.ds-byline__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ds-brand-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--ds-brand); font-weight: 700; font-size: 14px; }

.ds-article-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 64px; justify-content: center; padding-top: 56px; padding-bottom: 80px; } /* side padding comes from .ds-container */
.ds-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; border-left: 2px solid var(--ds-line); padding-left: 18px; }
.ds-toc strong { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted); }
.ds-toc ol { list-style: none; margin: 0; padding: 0; }
.ds-toc li { margin-bottom: 10px; line-height: 1.4; }
.ds-toc a { color: var(--ds-ink-2); text-decoration: none; }
.ds-toc a:hover { color: var(--ds-brand); }

.ds-prose { font-size: 18px; line-height: 1.75; color: #1f2937; }
.ds-prose > * + * { margin-top: 1.15em; }
.ds-prose h2 { font-size: 1.65rem; line-height: 1.25; margin: 2.2em 0 .6em; scroll-margin-top: 96px; }
.ds-prose h3 { font-size: 1.2rem; margin: 1.8em 0 .4em; scroll-margin-top: 96px; }
.ds-prose p, .ds-prose ul, .ds-prose ol { margin-bottom: 0; }
.ds-prose ul, .ds-prose ol { padding-left: 1.3em; }
.ds-prose li + li { margin-top: .45em; }
.ds-prose li::marker { color: var(--ds-brand); }
.ds-prose strong { color: var(--ds-ink); }
.ds-prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ds-brand); color: var(--ds-ink); font-size: 1.05em; }
.ds-prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 12px; background: #0b1120; color: #e2e8f0; font: 14px/1.6 var(--ds-mono); }
.ds-prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.ds-prose .ds-table-wrap { margin-top: 1.4em; }
.ds-prose figure { margin: 1.6em 0 0; }
.ds-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ds-muted); }

.ds-callout { padding: 22px 24px; border-radius: var(--ds-radius); background: var(--ds-brand-soft); border: 1px solid #d9dcff; font-size: 16.5px; line-height: 1.65; }
.ds-callout strong { display: block; margin-bottom: 4px; color: var(--ds-ink); }
.ds-callout p { margin: 0; }
.ds-callout .ds-link-arrow { display: inline-block; margin-top: 10px; }

.ds-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 3em; padding: 24px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-bg-soft); font-size: 15.5px; line-height: 1.6; }
.ds-author .ds-byline__avatar { width: 52px; height: 52px; font-size: 18px; flex-shrink: 0; }
.ds-author strong { display: block; color: var(--ds-ink); }
.ds-author p { margin: 4px 0 0; color: var(--ds-ink-2); }

@media (max-width: 1024px) {
    .ds-article-layout { grid-template-columns: minmax(0, 720px); }
    .ds-toc { display: none; }
}
@media (max-width: 640px) {
    .ds-posts { grid-template-columns: 1fr; }
    .ds-prose { font-size: 17px; }
}

/* Author photos (blog bylines) */
.ds-byline__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ds-byline a { color: inherit; text-decoration: none; }
.ds-byline a:hover strong { color: var(--ds-brand); text-decoration: underline; }
.ds-author__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ds-author .ds-link-arrow { display: inline-block; margin-top: 8px; font-size: 14.5px; }
