/* ============================================================
   agency99s — landing marketing for 99s.agency
   Tokens (light+dark) · Reset · Components · Sections · Responsive
   ============================================================ */

/* ---------- Design tokens · LIGHT (default) ---------- */
:root {
	--c-bg:           #FFFFFF;
	--c-surface:      #FFFFFF;
	--c-surface-2:    #F8FAFC;
	--c-surface-3:    #F1F5F9;
	--c-border:       #E2E8F0;
	--c-border-strong:#CBD5E1;
	--c-ink:          #0F172A;
	--c-ink-muted:    #334155;
	--c-ink-subtle:   #64748B;
	--c-accent:       #4F46E5;
	--c-accent-hover: #4338CA;
	--c-accent-soft:  #EEF2FF;
	--c-accent-fg:    #FFFFFF;
	--c-violet:       #7C3AED;
	--c-success:      #10B981;
	--c-header-bg:    rgba(255,255,255,.85);
	--c-grid-line:    rgba(15,23,42,.04);
	--c-shadow:       rgba(15,23,42,.10);
	--c-shadow-strong:rgba(15,23,42,.16);

	--ff-h: 'Inter Tight', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
	--ff-b: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
	--ff-m: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	--container-max:    1200px;
	--container-narrow: 880px;
	--container-px:     24px;

	--radius-sm: 8px;
	--radius:    14px;
	--radius-lg: 20px;
	--radius-xl: 24px;

	--shadow-sm: 0 1px 2px var(--c-shadow);
	--shadow:    0 8px 20px -8px var(--c-shadow);
	--shadow-lg: 0 24px 48px -28px var(--c-shadow-strong);
}

/* ---------- Design tokens · DARK ---------- */
:root[data-theme="dark"] {
	--c-bg:           #0B1220;
	--c-surface:      #111B2E;
	--c-surface-2:    #0F182A;
	--c-surface-3:    #1A2438;
	--c-border:       #1F2A40;
	--c-border-strong:#2D3A55;
	--c-ink:          #F1F5F9;
	--c-ink-muted:    #CBD5E1;
	--c-ink-subtle:   #8FA0BD;
	--c-accent:       #818CF8;
	--c-accent-hover: #A5B4FC;
	--c-accent-soft:  rgba(129,140,248,.14);
	--c-accent-fg:    #0B1220;
	--c-violet:       #A78BFA;
	--c-success:      #34D399;
	--c-header-bg:    rgba(11,18,32,.80);
	--c-grid-line:    rgba(255,255,255,.04);
	--c-shadow:       rgba(0,0,0,.50);
	--c-shadow-strong:rgba(0,0,0,.65);

	color-scheme: dark;
}

/* respect OS preference when no manual choice */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--c-bg:           #0B1220;
		--c-surface:      #111B2E;
		--c-surface-2:    #0F182A;
		--c-surface-3:    #1A2438;
		--c-border:       #1F2A40;
		--c-border-strong:#2D3A55;
		--c-ink:          #F1F5F9;
		--c-ink-muted:    #CBD5E1;
		--c-ink-subtle:   #8FA0BD;
		--c-accent:       #818CF8;
		--c-accent-hover: #A5B4FC;
		--c-accent-soft:  rgba(129,140,248,.14);
		--c-accent-fg:    #0B1220;
		--c-violet:       #A78BFA;
		--c-success:      #34D399;
		--c-header-bg:    rgba(11,18,32,.80);
		--c-grid-line:    rgba(255,255,255,.04);
		--c-shadow:       rgba(0,0,0,.50);
		--c-shadow-strong:rgba(0,0,0,.65);

		color-scheme: dark;
	}
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ff-b);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .2s ease, color .2s ease;
}
body.nav-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--ff-h); font-weight: 700; letter-spacing: -0.02em; color: var(--c-ink); line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Container ---------- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-px);
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Typography helpers ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ff-h);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-accent);
	line-height: 1;
}
.eyebrow::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 1px;
	background: var(--c-accent);
}
.eyebrow--light { color: #A5B4FC; }
.eyebrow--light::before { background: #A5B4FC; }

.lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-ink-muted);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	font-family: var(--ff-h);
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	border: 1px solid transparent;
	line-height: 1;
	white-space: nowrap;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
	cursor: pointer;
	min-height: 44px;
}
.btn-sm { padding: 10px 16px; font-size: 14px; min-height: 36px; }
.btn-accent {
	background: var(--c-accent);
	color: var(--c-accent-fg);
	border-color: var(--c-accent);
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--c-accent) 55%, transparent);
}
.btn-accent:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); transform: translateY(-1px); }
.btn-ghost {
	background: transparent;
	color: var(--c-ink);
	border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-surface-2); border-color: var(--c-border-strong); }
.btn-light {
	background: #FFFFFF;
	color: #0F172A;
	border-color: #FFFFFF;
}
.btn-light:hover { background: #EEF2FF; color: #4F46E5; }
.btn-outline-light {
	background: transparent;
	color: #FFFFFF;
	border-color: rgba(255,255,255,.22);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.40); }

/* ---------- Brand ---------- */
.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	font-family: var(--ff-h);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--c-ink);
}
.brand-name { font-weight: 700; }
.brand-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--c-accent);
	margin-left: 2px;
	transform: translateY(-2px);
}
.brand-suffix {
	font-weight: 500;
	opacity: 0.55;
	margin-left: 2px;
}
.brand--light { color: #FFFFFF; }

/* ---------- Site header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-header-bg);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--c-border);
	transition: background-color .2s ease, border-color .2s ease;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
}
.site-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}
.site-nav a {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--c-ink-muted);
	transition: color .15s ease;
	padding-block: 8px;
}
.site-nav a:hover { color: var(--c-ink); }
.site-header__cta { display: flex; align-items: center; gap: 8px; }

/* Login link (desktop, in header CTA group) */
.login-link {
	font-family: var(--ff-h);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--c-ink-muted);
	padding: 8px 12px;
	border-radius: 8px;
	transition: color .15s ease, background .15s ease;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}
.login-link:hover { color: var(--c-ink); background: var(--c-surface-2); }

/* Mobile drawer — sibling of .site-header (outside backdrop-filter containing block).
   Full-viewport fixed. Inner has padding-top floor of 80px so first item is NEVER clipped
   regardless of --header-h timing. Header (z:50) sits above drawer (z:49). */
.mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--c-bg);
	z-index: 49;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateY(-100%);
	transition: transform .25s ease;
	pointer-events: none;
	visibility: hidden;
}
.mobile-drawer__inner {
	display: flex;
	flex-direction: column;
	padding: calc(max(var(--header-h, 0px), 80px) + 8px) 20px 32px;
	min-height: 100%;
	box-sizing: border-box;
}
.mobile-drawer a {
	display: flex;
	align-items: center;
	padding: 18px 4px;
	min-height: 56px;
	font-family: var(--ff-h);
	font-size: 18px;
	font-weight: 500;
	color: var(--c-ink);
	border-bottom: 1px solid var(--c-border);
	transition: color .15s ease;
}
.mobile-drawer a:hover { color: var(--c-accent); }
.mobile-drawer a:last-child { border-bottom: 0; }
.mobile-drawer__login {
	margin-top: 16px;
	padding: 16px 18px !important;
	border: 1px solid var(--c-accent) !important;
	border-radius: 12px !important;
	color: var(--c-accent) !important;
	background: var(--c-accent-soft);
	font-weight: 600 !important;
	gap: 10px;
}
.mobile-drawer__login svg { flex-shrink: 0; }

/* OPEN state */
body.nav-open .mobile-drawer {
	transform: translateY(0);
	pointer-events: auto;
	visibility: visible;
}
body.nav-open .mobile-drawer { box-shadow: 0 8px 24px -16px var(--c-shadow-strong); }

/* theme toggle */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--c-border);
	color: var(--c-ink-muted);
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { color: var(--c-ink); border-color: var(--c-border-strong); background: var(--c-surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
	:root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* mobile nav toggle */
.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border-radius: 10px;
	border: 1px solid var(--c-border);
	color: var(--c-ink);
	transition: background .15s ease, border-color .15s ease;
}
.nav-toggle:hover { background: var(--c-surface-2); border-color: var(--c-border-strong); }
.nav-toggle span {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: 120px 100px;
	background:
		radial-gradient(ellipse 70% 60% at 15% 0%, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 60%),
		radial-gradient(ellipse 50% 50% at 90% 10%, color-mix(in srgb, var(--c-violet) 12%, transparent), transparent 60%),
		linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface-2) 100%);
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(var(--c-grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--c-grid-line) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 80%);
	        mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 80%);
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 28px;
	max-width: 880px;
	margin-inline: auto;
}
.hero__title {
	font-size: clamp(36px, 6vw, 76px);
	line-height: 1.05;
	letter-spacing: -0.035em;
}
.hero__title em {
	font-style: normal;
	color: var(--c-accent);
}
.hero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}
.hero__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	width: 100%;
	max-width: 720px;
	padding-top: 24px;
	margin-top: 16px;
	border-top: 1px solid var(--c-border);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__num {
	font-family: var(--ff-h);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	color: var(--c-ink);
	letter-spacing: -0.02em;
	line-height: 1;
}
.stat__lab { font-size: 12.5px; color: var(--c-ink-subtle); line-height: 1.3; text-align: center; }

/* ---------- Check list ---------- */
.check-list {
	display: inline-flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	width: fit-content;
	margin-inline: auto;
}
.check-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 500;
	color: var(--c-ink);
	line-height: 1.4;
}
.check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--c-accent-soft);
	color: var(--c-accent);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

/* ---------- Logos bar ---------- */
.logos {
	padding-block: 56px;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
}
.logos__caption {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-ink-subtle);
	margin-bottom: 28px;
}
.logos__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 32px 24px;
}
.logo {
	font-family: var(--ff-h);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--c-ink-subtle);
	opacity: 0.55;
	transition: opacity .2s ease, color .2s ease;
	white-space: nowrap;
}
.logo:hover { opacity: 1; color: var(--c-ink); }

/* ---------- Section base ---------- */
.section { padding-block: 96px; background: var(--c-bg); }
.section--soft { background: var(--c-surface-2); }
.section-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
	max-width: 720px;
	margin-inline: auto;
	margin-bottom: 56px;
}
.section-intro h2 {
	font-size: clamp(28px, 4.4vw, 52px);
	line-height: 1.1;
	letter-spacing: -0.025em;
}
.section-intro h2 em {
	font-style: normal;
	color: var(--c-accent);
}
.section-intro .lead { margin-top: 4px; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Service card ---------- */
.svc-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: 36px;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background-color .2s ease;
}
.svc-card:hover {
	border-color: var(--c-border-strong);
	box-shadow: var(--shadow-lg);
	transform: translateY(-3px);
}
.svc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--c-accent-soft);
	color: var(--c-accent);
}
.svc-card h3 {
	font-family: var(--ff-h);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.3;
}
.svc-card p { font-size: 15px; line-height: 1.6; color: var(--c-ink-muted); }
.feat-list { display: flex; flex-direction: column; gap: 8px; }
.feat-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--c-ink-muted);
}
.feat-list .check {
	width: 18px;
	height: 18px;
	font-size: 11px;
	margin-top: 2px;
}
.svc-cta {
	margin-top: auto;
	padding-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--c-accent);
	font-family: var(--ff-h);
	font-size: 14.5px;
	font-weight: 600;
}
.svc-cta::after { content: '→'; transition: transform .2s ease; }
.svc-cta:hover { color: var(--c-accent-hover); }
.svc-cta:hover::after { transform: translateX(3px); }

/* ---------- Step card ---------- */
.step-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: 32px;
	height: 100%;
}
.step-num {
	font-family: var(--ff-m);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--c-accent);
	background: var(--c-accent-soft);
	display: inline-flex;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 8px;
}
.step-card h3 {
	font-family: var(--ff-h);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.015em;
}
.step-card p { font-size: 14.5px; line-height: 1.55; color: var(--c-ink-muted); }

/* ---------- Portfolio card ---------- */
.port-card {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	height: 100%;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.port-card:hover {
	border-color: var(--c-border-strong);
	box-shadow: var(--shadow-lg);
	transform: translateY(-3px);
}
.port-img {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	text-align: center;
	padding: 24px;
}
.port-img > div {
	font-family: var(--ff-h);
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}
.port-img__sub {
	display: block;
	font-family: var(--ff-b);
	font-size: 13px;
	font-weight: 500;
	color: rgba(255,255,255,.7);
	margin-top: 8px;
	letter-spacing: 0.04em;
}
.port-img--fashion { background: linear-gradient(135deg, #1E293B 0%, #475569 100%); }
.port-img--fnb     { background: linear-gradient(135deg, #78350F 0%, #B45309 100%); }
.port-img--decor   { background: linear-gradient(135deg, #064E3B 0%, #047857 100%); }
.port-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	flex: 1;
}
.port-tag {
	font-family: var(--ff-h);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-accent);
}
.port-body h3 {
	font-family: var(--ff-h);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}
.port-body p { font-size: 14.5px; line-height: 1.55; color: var(--c-ink-muted); }
.port-kpi {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	margin-top: auto;
	border-top: 1px solid var(--c-border);
}
.port-kpi__val {
	font-family: var(--ff-h);
	font-size: 22px;
	font-weight: 700;
	color: var(--c-accent);
	letter-spacing: -0.01em;
}
.port-kpi__lab { font-size: 13px; color: var(--c-ink-subtle); line-height: 1.3; }

/* ---------- Testimonial card ---------- */
.testi-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: 32px;
	height: 100%;
}
.testi-quote {
	font-family: var(--ff-h);
	font-size: 17px;
	line-height: 1.55;
	color: var(--c-ink);
	letter-spacing: -0.005em;
	flex: 1;
}
.testi-quote::before {
	content: '“';
	display: block;
	font-family: var(--ff-h);
	font-size: 48px;
	line-height: 0.4;
	color: var(--c-accent);
	margin-bottom: 8px;
	opacity: 0.4;
}
.testi-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid var(--c-border);
}
.testi-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--c-accent), var(--c-violet));
	color: #FFFFFF;
	font-family: var(--ff-h);
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}
.testi-meta { display: flex; flex-direction: column; gap: 2px; }
.testi-name { font-family: var(--ff-h); font-size: 15px; font-weight: 600; color: var(--c-ink); }
.testi-role { font-size: 13px; color: var(--c-ink-subtle); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq details {
	padding: 24px 0;
	border-bottom: 1px solid var(--c-border);
}
.faq details[open] summary { color: var(--c-accent); }
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-family: var(--ff-h);
	font-size: clamp(16px, 2.2vw, 18px);
	font-weight: 600;
	color: var(--c-ink);
	line-height: 1.4;
	transition: color .15s ease;
}
.faq summary::after {
	content: '+';
	font-family: var(--ff-h);
	font-size: 24px;
	font-weight: 400;
	color: var(--c-ink-subtle);
	transition: transform .2s ease, color .15s ease;
	flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; color: var(--c-accent); }
.faq p {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--c-ink-muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-xl);
	padding: 80px 56px;
	background:
		radial-gradient(ellipse 50% 70% at 80% 50%, rgba(124,58,237,.32), transparent 70%),
		radial-gradient(ellipse 50% 80% at 10% 100%, rgba(79,70,229,.32), transparent 60%),
		linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
	color: #FFFFFF;
	text-align: center;
}
.cta-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 40px 40px;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
	font-size: clamp(28px, 3.8vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: #FFFFFF;
	max-width: 760px;
	margin-inline: auto;
	margin-block: 20px 16px;
}
.cta-banner p {
	font-size: 17px;
	line-height: 1.55;
	color: #CBD5E1;
	max-width: 640px;
	margin-inline: auto;
}
.cta-banner__btns {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
}
.cta-banner__meta {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 24px;
	font-family: var(--ff-m);
	font-size: 12.5px;
	color: #94A3B8;
}

/* ---------- Site footer ---------- */
.site-footer {
	background: #0B1220;
	color: #CBD5E1;
	padding-block: 80px 32px;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer__brand p {
	font-size: 14.5px;
	line-height: 1.55;
	color: #94A3B8;
	margin-block: 16px;
	max-width: 320px;
}
.site-footer__social { display: flex; gap: 10px; padding-top: 8px; }
.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(255,255,255,.05);
	color: #94A3B8;
	font-family: var(--ff-h);
	font-size: 13px;
	font-weight: 600;
	transition: color .15s ease, background .15s ease;
}
.site-footer__social a:hover { color: #FFFFFF; background: rgba(255,255,255,.08); }
.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.site-footer__col h4 {
	font-family: var(--ff-h);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FFFFFF;
	margin-bottom: 4px;
}
.site-footer__col a, .site-footer__col span {
	font-size: 14.5px;
	color: #94A3B8;
	transition: color .15s ease;
	line-height: 1.5;
}
.site-footer__col a:hover { color: #FFFFFF; }
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	gap: 16px;
	flex-wrap: wrap;
}
.site-footer__bottom small { font-size: 13px; color: #64748B; }
.site-footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__legal a { font-size: 13px; color: #94A3B8; transition: color .15s ease; }
.site-footer__legal a:hover { color: #FFFFFF; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1099px) {
	.hero__title { font-size: clamp(34px, 5.4vw, 64px); }
}

@media (max-width: 991px) {
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.cta-banner { padding: 64px 40px; }
	.svc-card, .step-card { padding: 32px; }
}

@media (max-width: 767px) {
	:root { --container-px: 20px; }
	.section { padding-block: 64px; }
	.section-intro { margin-bottom: 40px; }
	.hero { padding-block: 80px 64px; }
	.hero__inner { gap: 24px; }
	.hero__title { font-size: 34px; line-height: 1.08; }
	.hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 20px; margin-top: 8px; }
	.hero__cta { flex-direction: column; width: 100%; max-width: 320px; }
	.hero__cta .btn { width: 100%; }
	.site-nav { display: none; }
	.nav-toggle { display: flex; }
	.site-header__cta .btn-sm { display: none; }
	.site-header__cta .login-link { display: none; }
	.site-header__cta .theme-toggle { width: 40px; height: 40px; }
	.cta-banner { padding: 48px 24px; border-radius: var(--radius-lg); }
	.cta-banner h2 { font-size: 26px; }
	.cta-banner p { font-size: 15px; }
	.cta-banner__btns .btn { width: 100%; max-width: 280px; }
	.site-footer { padding-block: 64px 24px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
	.logos { padding-block: 40px; }
	.logos__row { gap: 20px; justify-content: center; }
}

@media (max-width: 640px) {
	:root { --container-px: 16px; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.section-intro h2 { font-size: 28px; }
	.svc-card, .step-card, .testi-card { padding: 24px; }
	.port-body { padding: 24px; }
	.check-list li { font-size: 16px; }
	.lead { font-size: 16px; }
}

/* (old body.nav-open .site-nav drawer rules removed — drawer now uses .mobile-drawer above) */

/* ============================================================
   BLOG · single post + archive + cards
   ============================================================ */

/* ---------- Post hero ---------- */
.post-hero {
	padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px);
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-border);
}
.eyebrow--link {
	display: inline-block;
	color: var(--c-accent);
	transition: opacity .15s ease;
}
.eyebrow--link:hover { opacity: .7; }
.post-hero__title {
	font-family: var(--ff-h);
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.02em;
	margin: 16px 0 0;
	color: var(--c-ink);
}
.post-hero__excerpt {
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.55;
	color: var(--c-ink-muted);
	margin: 20px 0 0;
	max-width: 64ch;
}
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	font-size: 14px;
	color: var(--c-ink-subtle);
}
.post-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink-muted); font-weight: 500; }
.post-meta__avatar { border-radius: 999px; width: 28px; height: 28px; }
.post-meta__sep { opacity: .5; }

/* ---------- Featured image ---------- */
.post-thumbnail {
	background: var(--c-surface-2);
	padding-bottom: clamp(32px, 5vw, 56px);
}
.post-thumbnail__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

/* ---------- Prose / content ---------- */
.post-content {
	padding-block: clamp(40px, 6vw, 72px);
	font-family: var(--ff-b);
	font-size: 18px;
	line-height: 1.75;
	color: var(--c-ink-muted);
}
.post-content > * + * { margin-top: 1.25em; }
.post-content h2,
.post-content h3,
.post-content h4 {
	font-family: var(--ff-h);
	color: var(--c-ink);
	line-height: 1.25;
	letter-spacing: -.01em;
	margin-top: 2em;
	margin-bottom: .5em;
}
.post-content h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.post-content h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; }
.post-content h4 { font-size: 18px; font-weight: 600; }
.post-content p { margin: 0; }
.post-content a {
	color: var(--c-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .15s ease;
}
.post-content a:hover { color: var(--c-accent-hover); }
.post-content strong { color: var(--c-ink); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content ul,
.post-content ol { padding-left: 1.5em; }
.post-content li + li { margin-top: .35em; }
.post-content blockquote {
	border-left: 3px solid var(--c-accent);
	padding: 4px 0 4px 20px;
	margin: 1.75em 0;
	font-style: italic;
	color: var(--c-ink);
	font-size: 1.05em;
}
.post-content blockquote p { margin: 0; }
.post-content code {
	font-family: var(--ff-m);
	font-size: .9em;
	background: var(--c-surface-3);
	padding: 2px 6px;
	border-radius: 6px;
	color: var(--c-ink);
}
.post-content pre {
	background: var(--c-surface-3);
	padding: 18px 20px;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.6;
}
.post-content pre code { background: none; padding: 0; }
.post-content img,
.post-content figure {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin-block: 1.75em;
}
.post-content figcaption {
	font-size: 14px;
	color: var(--c-ink-subtle);
	text-align: center;
	margin-top: 8px;
}
.post-content hr {
	border: 0;
	border-top: 1px solid var(--c-border);
	margin-block: 2.5em;
}
.post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.post-content th,
.post-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
}
.post-content th { font-weight: 600; color: var(--c-ink); background: var(--c-surface-2); }

/* ---------- Tags ---------- */
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2.5em;
	padding-top: 1.5em;
	border-top: 1px solid var(--c-border);
}
.post-tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 999px;
	background: var(--c-surface-2);
	color: var(--c-ink-muted);
	transition: background .15s ease, color .15s ease;
}
.post-tag:hover { background: var(--c-accent-soft); color: var(--c-accent); }

/* ---------- Post nav (prev/next) ---------- */
.post-footer { padding-block: 0 clamp(56px, 8vw, 96px); }
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 32px;
}
.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
	transition: border-color .15s ease, transform .15s ease;
}
.post-nav__item:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 12px; color: var(--c-ink-subtle); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.post-nav__title { font-family: var(--ff-h); font-size: 15px; font-weight: 600; color: var(--c-ink); line-height: 1.4; }
.post-back {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--c-ink-muted);
	transition: color .15s ease;
}
.post-back:hover { color: var(--c-accent); }

/* ---------- Related posts ---------- */
.post-related .section-intro--compact { margin-bottom: 32px; }

/* ---------- Archive ---------- */
.archive-hero {
	padding-block: clamp(56px, 8vw, 96px);
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-border);
	text-align: center;
}
.archive-hero__title {
	font-family: var(--ff-h);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 14px 0 0;
	color: var(--c-ink);
}
.archive-hero__desc {
	margin: 16px auto 0;
	max-width: 60ch;
	color: var(--c-ink-muted);
	font-size: 17px;
	line-height: 1.6;
}

/* ---------- Post card (used in archive + related + blog index) ---------- */
.post-card {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease;
}
.post-card:hover {
	border-color: var(--c-border-strong);
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}
.post-card__media {
	aspect-ratio: 16 / 10;
	background: var(--c-surface-3);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}
.post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__placeholder {
	font-family: var(--ff-h);
	font-size: 64px;
	font-weight: 700;
	color: var(--c-ink-subtle);
	opacity: .35;
	text-transform: uppercase;
}
.post-card__body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.post-card__cat {
	font-size: 12px;
	font-weight: 600;
	color: var(--c-accent);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.post-card__title {
	font-family: var(--ff-h);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	letter-spacing: -.01em;
}
.post-card__title a { color: var(--c-ink); transition: color .15s ease; }
.post-card__title a:hover { color: var(--c-accent); }
.post-card__excerpt {
	color: var(--c-ink-muted);
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0;
}
.post-card__meta {
	margin-top: auto;
	padding-top: 8px;
	font-size: 13px;
	color: var(--c-ink-subtle);
}

/* ---------- Pagination ---------- */
.pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 48px;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--c-ink-muted);
	border: 1px solid var(--c-border);
	border-radius: 8px;
	background: var(--c-surface);
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pagination .page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .page-numbers.current {
	background: var(--c-accent);
	color: var(--c-accent-fg);
	border-color: var(--c-accent);
}
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* ---------- Archive empty state ---------- */
.archive-empty {
	margin: 0 auto;
	text-align: center;
	padding-block: 32px;
}
.archive-empty h2 { font-family: var(--ff-h); font-size: 24px; color: var(--c-ink); margin: 0 0 8px; }
.archive-empty p { color: var(--c-ink-muted); margin: 0; }

/* ---------- Blog responsive ---------- */
@media (max-width: 720px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next { text-align: left; }
	.post-content { font-size: 17px; }
}

/* ---------- Print-friendly fallback ---------- */
@media print {
	.site-header, .site-footer, .hero::after, .cta-banner::after { display: none; }
	* { color: #000 !important; background: transparent !important; box-shadow: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
