/* ============================================================
   MAN KIND AI — site stylesheet (no framework, hand-editable)
   All brand tokens live in :root below — edit once, applies site-wide.
   ============================================================ */
:root {
	--navy:        #0f172a;   /* page background        */
	--navy-2:      #0b1120;   /* deeper navy (hero top) */
	--card:        #151e2e;   /* card background        */
	--border:      #1e293b;   /* hairline borders       */
	--teal:        #14b8a6;   /* primary accent         */
	--teal-soft:   rgba(20,184,166,.10);
	--amber:       #f59e0b;   /* secondary accent       */
	--text:        #f1f5f9;   /* primary text           */
	--muted:       #94a3b8;   /* secondary text         */
	--soft:        #cbd5e1;   /* paragraph text         */
	--radius:      14px;
	--maxw:        1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Outfit', system-ui, sans-serif;
	background: var(--navy);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
::selection { background: rgba(20,184,166,.3); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--teal-soft); border: 1px solid rgba(20,184,166,.2);
	color: var(--teal); font-size: 12.5px; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase;
	padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.h2 { font-size: clamp(30px, 4vw, 44px); }
.lead { color: var(--muted); font-weight: 300; font-size: 17px; max-width: 620px; }
.teal { color: var(--teal); }
.amber { color: var(--amber); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
	padding: 13px 26px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s, color .18s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #04201d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,184,166,.28); }
.btn-ghost { background: transparent; color: var(--text); border-color: #334155; }
.btn-ghost:hover { border-color: var(--amber); color: #fbbf24; }

/* header */
header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, padding .3s, border-color .3s;
	padding: 18px 0; border-bottom: 1px solid transparent; }
header.scrolled { background: rgba(15,23,42,.92); backdrop-filter: blur(10px); padding: 12px 0; border-bottom-color: rgba(30,41,59,.7); }
/* Subpages have no full-bleed hero, so the header is solid from the top (not transparent). */
body.subpage header { background: rgba(15,23,42,.95); backdrop-filter: blur(10px); padding: 12px 0; border-bottom-color: rgba(30,41,59,.7); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; }
.brand .row { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; }
.brand .mk { width: 28px; height: 28px; border-radius: 7px; background: var(--teal); color: #04201d;
	display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.brand .tag { font-size: 10px; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .2s; }
.menu a:hover { color: var(--teal); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; line-height: 1; }
.mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 18px;
	background: var(--navy); border-top: 1px solid var(--border); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.mobile a { padding: 12px 10px; color: var(--text); font-weight: 500; border-radius: 8px; border-bottom: 1px solid rgba(30,41,59,.5); }
.mobile a:last-child { border-bottom: 0; }
.mobile a:hover { background: var(--card); }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;
	background: linear-gradient(180deg, var(--navy-2), var(--navy));
	border-bottom: 1px solid rgba(30,41,59,.6); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0;
	background: radial-gradient(900px 520px at 75% -10%, rgba(20,184,166,.13), transparent 60%),
	            radial-gradient(700px 460px at -5% 110%, rgba(245,158,11,.06), transparent 60%); }
/* faint oversized brand mark — slow horizontal scroll behind the hero */
.hero-marquee-wrap { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden;
	user-select: none; pointer-events: none; z-index: 0; }
.hero-marquee { display: flex; white-space: nowrap; animation: marquee-x 50s linear infinite;
	font-size: clamp(180px, 30vw, 460px); font-weight: 800; letter-spacing: -.04em; line-height: 1;
	color: rgba(148,163,184,.08); }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 768px) {
	.hero-marquee { color: rgba(148,163,184,.16); }
	.hero-marquee-wrap { align-items: flex-start; padding-top: 150px; }
}
.hero .wrap { position: relative; z-index: 1; padding-top: 130px; padding-bottom: 80px; }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.kicker .bar { width: 34px; height: 2px; background: var(--teal); }
.kicker span { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(40px, 6.6vw, 80px); font-weight: 800; line-height: .99; letter-spacing: -.035em; max-width: 900px; margin-bottom: 26px; }
.hero p.intro { font-size: clamp(16px, 2vw, 20px); color: var(--soft); max-width: 620px; margin-bottom: 36px; font-weight: 300; }
.hero p.intro strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(51,65,85,.5); }
.stats .n { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.stats .l { font-size: 13px; color: var(--muted); font-weight: 500; }

/* generic grid + cards */
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.card { background: rgba(30,41,59,.25); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
	transition: transform .25s ease, border-color .25s, box-shadow .25s; height: 100%; }
.card:hover { transform: translateY(-4px); border-color: rgba(20,184,166,.3); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.ico { width: 50px; height: 50px; border-radius: 13px; background: var(--teal-soft); border: 1px solid rgba(20,184,166,.18);
	display: grid; place-items: center; color: var(--teal); margin-bottom: 18px; }
.ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 9px; }
.card p { font-size: 14px; color: var(--muted); font-weight: 300; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.head-block { text-align: center; margin-bottom: 52px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.values { background: linear-gradient(135deg, rgba(20,184,166,.06), rgba(30,41,59,.4)); border: 1px solid var(--border);
	border-radius: 18px; padding: 36px; }
.value { display: flex; gap: 15px; }
.value + .value { margin-top: 24px; }
.value h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.value p { font-size: 13.5px; color: var(--muted); font-weight: 300; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; background: rgba(30,41,59,.2); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 26px; height: 100%; transition: border-color .25s, transform .25s; }
.step:hover { border-color: rgba(20,184,166,.3); transform: translateY(-4px); }
.step .num { position: absolute; top: 14px; right: 18px; font-size: 40px; font-weight: 800; color: rgba(20,184,166,.1); }
.step h3 { font-size: 16px; margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--muted); font-weight: 300; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { display: flex; flex-direction: column; background: rgba(30,41,59,.25); border: 1px solid var(--border);
	border-radius: 18px; padding: 32px; height: 100%; transition: transform .25s, border-color .25s; }
.tier:hover { transform: translateY(-4px); }
.tier.featured { border: 2px solid rgba(20,184,166,.45); background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(30,41,59,.4)); }
.badge { align-self: flex-start; background: var(--teal); color: #04201d; font-size: 11px; font-weight: 700;
	letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.tier h3 { font-size: 19px; font-weight: 700; }
.tier .price { font-size: 32px; font-weight: 800; color: var(--teal); margin: 2px 0 4px; }
.tier .desc { font-size: 13.5px; color: var(--muted); font-weight: 300; margin-bottom: 18px; }
.tier ul { list-style: none; flex: 1; margin-bottom: 22px; }
.tier li { display: flex; gap: 9px; font-size: 13.5px; color: var(--soft); margin-bottom: 10px; }
.tier li svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }

/* case story */
.story { background: linear-gradient(135deg, rgba(20,184,166,.07), rgba(30,41,59,.4)); border: 1px solid rgba(20,184,166,.22);
	border-radius: 22px; padding: clamp(30px, 5vw, 60px); max-width: 1040px; margin: 0 auto; }
.story .eyebrow { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); color: #fbbf24; }
.story h2 { font-size: clamp(24px, 3.4vw, 38px); margin-bottom: 20px; max-width: 760px; }
.story p { color: var(--soft); font-weight: 300; max-width: 760px; margin-bottom: 16px; }
.story .stats { margin-top: 26px; }

/* faq */
.faq { max-width: 720px; margin: 0 auto; }
.q { background: rgba(30,41,59,.25); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.q button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 22px; background: none; border: 0; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500;
	text-align: left; cursor: pointer; }
.q .chev { color: var(--teal); transition: transform .3s; flex-shrink: 0; width: 18px; height: 18px; }
.q.open .chev { transform: rotate(180deg); }
.q .ans { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.q.open .ans { max-height: 260px; }
.q .ans p { padding: 0 22px 18px; font-size: 14px; color: var(--muted); font-weight: 300; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; background: rgba(15,23,42,.6);
	border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; font-family: inherit; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-line { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 15px; margin-bottom: 16px; }
.info-line .ico { width: 42px; height: 42px; margin: 0; flex-shrink: 0; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--muted); font-size: 13.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot a:hover { color: var(--teal); }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
	background: rgba(30,41,59,.5); border: 1px solid var(--border); color: var(--muted);
	transition: color .2s, border-color .2s, transform .2s; }
.social a:hover { color: var(--teal); border-color: rgba(20,184,166,.4); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* subpage helpers */
.narrow { max-width: 760px; }
.avatar-wrap { position: relative; display: inline-block; margin-bottom: 22px; }
.avatar-glow { position: absolute; inset: -12px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.25), transparent 70%); filter: blur(10px); }
.avatar { position: relative; width: 190px; height: 190px; border-radius: 50%; object-fit: cover; object-position: top center;
	border: 2px solid rgba(20,184,166,.4); background: rgba(30,41,59,.5); }
.checklist { display: flex; flex-direction: column; gap: 13px; }
.checklist .item { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.checklist .item svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; color: var(--text); background: rgba(15,23,42,.6); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.cta-box { background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(30,41,59,.4)); border: 1px solid rgba(20,184,166,.25);
	border-radius: 24px; padding: 56px 32px; text-align: center; }
.prose p { font-size: 17px; color: var(--muted); line-height: 1.85; font-weight: 300; margin-bottom: 18px; }

/* blog article body (markdown output) */
.article-body h2 { font-size: 23px; font-weight: 700; margin: 34px 0 12px; letter-spacing: -.01em; }
.article-body p { font-size: 16.5px; color: var(--muted); line-height: 1.85; font-weight: 300; margin-bottom: 18px; }
.article-body ul { list-style: none; margin: 0 0 18px; }
.article-body li { position: relative; padding-left: 22px; font-size: 16px; color: var(--soft); line-height: 1.7; font-weight: 300; margin-bottom: 10px; }
.article-body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.article-body a { color: var(--teal); font-weight: 500; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--soft); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.show { display: flex; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal .panel { position: relative; width: 100%; max-width: 620px; max-height: 90vh; background: #1a2332;
	border: 1px solid var(--border); border-radius: 18px; overflow: hidden; z-index: 1; }
.modal .x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 999px;
	background: rgba(15,23,42,.8); border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal iframe { width: 100%; height: 80vh; max-height: 720px; border: 0; display: block; }

/* responsive */
@media (max-width: 1024px) {
	.menu { display: none; } .menu-btn { display: block; }
	.cols-3, .steps, .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.cols-3, .cols-2, .steps, .price-grid, .about-grid, .contact-grid, .two { grid-template-columns: 1fr; }
	.section { padding: 70px 0; }
	.stats { gap: 28px; }
}
