/* Public website (www/index.html): TMP Tech + PMIS.
 * Brand: TMP Tech deep blue #004aad and bright blue #0090ff, from the TMP Tech
 * wordmark. System fonts only - no third-party requests from the homepage. */

:root {
	--ink: #0b1f3a;
	--blue: #004aad;
	--sky: #0090ff;
	--sky-soft: #e8f3ff;
	--tint: #f5f8fc;
	--text: #1d2b3a;
	--muted: #5a6b7d;
	--line: #e2e8f0;
	--white: #ffffff;
	--orange: #ff8a3d;
	--teal: #2bb3a3;
	--ok: #1f9d55;
	--err: #c53030;
	--radius: 0;
	--shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .08);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 0;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px; padding: 12px 22px; border-radius: 0;
	font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #003c8f; }
.btn-ghost { background: transparent; color: var(--blue); border-color: #bcd3f0; }
.btn-ghost:hover { border-color: var(--blue); background: var(--sky-soft); }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-word { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; font-stretch: condensed; }
.brand-tmp { color: var(--blue); }
.brand-tech { color: var(--sky); margin-left: 4px; }
.brand-light .brand-tmp { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
	color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.site-nav a:not(.btn):hover { color: var(--blue); }
.site-nav .nav-quiet { color: var(--muted); }

.nav-toggle {
	display: none; background: none; border: 0; color: var(--ink);
	padding: 8px; margin-right: -8px; cursor: pointer;
}

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; inset: 68px 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 8px 20px 20px; display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
	background:
		radial-gradient(800px 400px at 85% 10%, rgba(0, 144, 255, .14), transparent 60%),
		linear-gradient(180deg, #f7fbff 0%, #fff 100%);
	padding: 72px 0 64px;
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--blue); margin-bottom: 14px;
}
.eyebrow img { width: 22px; height: 22px; }
.eyebrow-light { color: #8cc8ff; }

.hl {
	background: linear-gradient(90deg, var(--blue), var(--sky));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.lede strong { color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }

.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .98rem; }
.hero-facts li { padding-left: 26px; position: relative; }
.hero-facts li::before {
	content: ""; position: absolute; left: 0; top: .45em;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--sky-soft); box-shadow: inset 0 0 0 4px var(--sky);
}
.hero-facts strong { color: var(--ink); }

.hero-art { position: relative; }
.terminal-svg {
	width: 100%; height: auto; border-radius: 0;
	background: linear-gradient(180deg, #dff0ff 0%, #f4f9ff 60%);
	box-shadow: var(--shadow);
}

.float-card {
	position: absolute; background: #fff; border: 1px solid var(--line);
	border-radius: 0; padding: 12px 14px; box-shadow: var(--shadow);
	font-size: .86rem; line-height: 1.35; min-width: 170px;
}
.float-card b { display: block; color: var(--ink); font-size: .9rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fc-gate { top: 18px; left: -26px; display: flex; gap: 10px; align-items: flex-start; }
.fc-yard { bottom: 86px; right: -18px; width: 190px; }
.fc-tally { bottom: -18px; left: 34px; }
.fc-big { font-size: 1.7rem; font-weight: 800; color: var(--blue); line-height: 1.1; margin-top: 4px; }
.fc-big span { font-size: .78rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 85, .15); }
.meter { height: 7px; border-radius: 0; background: var(--sky-soft); margin: 8px 0 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); }

@media (max-width: 960px) {
	.hero { padding: 48px 0; }
	.hero-grid { grid-template-columns: 1fr; gap: 48px; }
	.fc-gate { left: 8px; }
	.fc-yard { right: 8px; }
}
@media (max-width: 520px) {
	.float-card { font-size: .8rem; min-width: 0; }
	.fc-yard { width: 150px; bottom: 70px; }
	.fc-tally { left: 8px; }
}

/* ---------- Proof strip ---------- */
.proof { background: var(--ink); color: #c9d8ea; }
.proof-inner { padding: 26px 0; text-align: center; }
.proof p { margin: 0 auto; max-width: 52em; font-size: 1.02rem; }
.proof strong { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(160deg, var(--ink) 0%, #0f2d57 100%); color: #c9d8ea; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 46em; margin-bottom: 44px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.prose { color: var(--muted); font-size: 1.08rem; }
.prose strong { color: var(--ink); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 12px; } }

/* Module cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #bcd3f0; box-shadow: var(--shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.icon {
	width: 42px; height: 42px; border-radius: 0; margin-bottom: 14px;
	display: grid; place-items: center; background: var(--sky-soft);
}
.icon svg {
	width: 22px; height: 22px; fill: none; stroke: var(--blue);
	stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* On the wharf */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { border-top: 3px solid var(--sky); padding-top: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .feature-row { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 520px) { .feature-row { grid-template-columns: 1fr; } }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why {
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(140, 200, 255, .18);
	border-radius: var(--radius); padding: 22px;
}
.why p { margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.service { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .service-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps {
	list-style: none; padding: 0; margin: 0; counter-reset: step;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.steps li {
	counter-increment: step; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 22px 22px 20px;
}
.steps li::before {
	content: counter(step, decimal-leading-zero);
	display: block; font-weight: 800; font-size: 1.4rem; color: var(--sky); margin-bottom: 8px;
}
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.client { background: #fff; padding: 22px; display: grid; gap: 4px; }
.client b { color: var(--ink); }
.client span { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .client-grid { grid-template-columns: 1fr; } }

/* Team */
.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.team-grid li {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 20px; display: grid; gap: 2px; justify-items: start;
}
.team-grid b { color: var(--ink); }
.team-grid span:not(.avatar) { color: var(--muted); font-size: .93rem; }
.avatar {
	width: 46px; height: 46px; border-radius: 50%; margin-bottom: 10px;
	display: grid; place-items: center; font-weight: 700; font-size: .95rem;
	color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky));
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.06rem; }
.contact-list { margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.contact-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.contact-list address { font-style: normal; line-height: 1.5; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
	background: #fff; border: 1px solid var(--line); border-radius: 0;
	padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.contact-form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
	font: 400 1rem/1.4 var(--font); color: var(--text);
	padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 0; background: #fff;
	transition: border-color .15s, box-shadow .15s; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
	outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0, 144, 255, .15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .94rem; }
.form-status[data-state="loading"] { color: var(--muted); }
.form-status[data-state="sent"] { color: var(--ok); font-weight: 600; }
.form-status[data-state="error"] { color: var(--err); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb3c8; padding: 48px 0 36px; font-size: .94rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand p { margin: 12px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #d6e2ef; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; margin: 8px 0 0; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
