/* ==========================================================================
   Yugmir Technologies — site styles
   No external fonts or scripts: every request is served from our own origin,
   which keeps first paint fast and avoids a third-party dependency on a page
   a BIM manager may be viewing from a locked-down corporate network.
   ========================================================================== */

:root {
	--ink:        #0b1220;
	--ink-soft:   #1e293b;
	--body:       #475569;
	--muted:      #64748b;
	--faint:      #94a3b8;

	--line:       #e4e8ef;
	--line-soft:  #eef1f6;
	--bg:         #ffffff;
	--bg-alt:     #f7f9fc;
	--bg-deep:    #0b1220;

	--accent:     #1d4ed8;
	--accent-dk:  #1e3a8a;
	--accent-lt:  #eff4ff;
	--good:       #047857;
	--good-lt:    #ecfdf5;
	--warn:       #b45309;
	--warn-lt:    #fffbeb;

	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--w:      1120px;
	--w-text: 720px;
	--radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	color: var(--ink);
	line-height: 1.2;
	letter-spacing: -0.021em;
	margin: 0 0 .6em;
	font-weight: 640;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.05rem); letter-spacing: -0.026em; }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }

p  { margin: 0 0 1.15em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { color: var(--ink-soft); font-weight: 620; }

code {
	font-family: var(--mono);
	font-size: .86em;
	background: var(--bg-alt);
	border: 1px solid var(--line-soft);
	border-radius: 5px;
	padding: .12em .38em;
	color: var(--ink-soft);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- layout ---------- */

.wrap  { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--w-text); }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.9em; }

section { padding: 76px 0; }
section.tight { padding: 52px 0; }
section.alt   { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- header ---------- */

.site-head {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.88);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
	display: flex; align-items: center; gap: 30px;
	height: 66px;
}

.brand {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 660; color: var(--ink); font-size: 1.06rem;
	letter-spacing: -0.02em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .mark {
	width: 30px; height: 30px; display: block; flex: none;
}

.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
/* :not(.btn) matters -- ".nav a" outranks ".btn-primary" on specificity, which
   otherwise repaints the call-to-action's white label in body-text slate. */
.nav a:not(.btn) { color: var(--body); font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a:not(.btn)[aria-current="page"] { font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	border-radius: 8px;
	font-size: .96rem; font-weight: 570;
	border: 1px solid transparent;
	transition: background .14s ease, border-color .14s ease, color .14s ease;
	white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--faint); }
.btn-onDark { background: #fff; color: var(--ink); }
.btn-onDark:hover { background: #e8edf6; }
.btn-outlineDark { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outlineDark:hover { border-color: rgba(255,255,255,.65); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- hero ---------- */

.hero {
	background: var(--bg-deep);
	color: #c7d3e6;
	padding: 96px 0 86px;
	border-bottom: 1px solid #16203a;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: 1.16rem; color: #9fb0c9; max-width: 56ch; }
.hero .eyebrow {
	display: inline-block;
	font-size: .78rem; font-weight: 620; letter-spacing: .1em; text-transform: uppercase;
	color: #7aa2ff; margin-bottom: 18px;
}

.lede { font-size: 1.13rem; color: var(--muted); max-width: 60ch; }

/* ---------- grid + cards ---------- */

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .kicker {
	font-size: .74rem; font-weight: 660; letter-spacing: .085em; text-transform: uppercase;
	color: var(--accent); display: block; margin-bottom: 10px;
}

.card-dark {
	background: #101a2f; border-color: #1b2740; color: #9fb0c9;
}
.card-dark h3 { color: #fff; }

/* ---------- comparison / feature table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--bg-alt); color: var(--ink); font-weight: 620; font-size: .84rem; letter-spacing: .03em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--good); font-weight: 600; }
td.no  { color: var(--faint); }

/* ---------- misc components ---------- */

.note {
	border-left: 3px solid var(--accent);
	background: var(--accent-lt);
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	margin: 1.8em 0;
	font-size: .97rem;
}
.note.warn { border-left-color: var(--warn); background: var(--warn-lt); }
.note p:last-child { margin-bottom: 0; }

.placeholder {
	border: 1px dashed #c3cede;
	border-radius: var(--radius);
	background: repeating-linear-gradient(45deg, #f6f8fc, #f6f8fc 11px, #f1f4fa 11px, #f1f4fa 22px);
	color: var(--muted);
	display: grid; place-items: center; text-align: center;
	padding: 46px 24px; min-height: 260px;
	font-size: .9rem;
}
.placeholder strong { display: block; color: var(--ink-soft); margin-bottom: 5px; font-size: .98rem; }

.stat { font-size: 2rem; font-weight: 660; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat + p { font-size: .93rem; margin-top: 6px; }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 11px; }
.list-check li::before {
	content: ""; position: absolute; left: 0; top: .52em;
	width: 15px; height: 8px;
	border-left: 2px solid var(--good); border-bottom: 2px solid var(--good);
	transform: rotate(-45deg);
}

.tag {
	display: inline-block; font-size: .74rem; font-weight: 620;
	padding: 3px 9px; border-radius: 999px; letter-spacing: .02em;
	background: var(--good-lt); color: var(--good); border: 1px solid #b9e6d3;
}
.tag.soon { background: var(--bg-alt); color: var(--muted); border-color: var(--line); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq details > *:not(summary) { margin-top: 12px; }

/* ---------- CTA band ---------- */

.cta {
	background: var(--bg-deep); color: #9fb0c9;
	padding: 74px 0; text-align: center;
}
.cta h2 { color: #fff; }
.cta .lede { color: #9fb0c9; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.site-foot {
	border-top: 1px solid var(--line);
	padding: 54px 0 40px;
	font-size: .92rem;
	color: var(--muted);
	background: var(--bg-alt);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-size: .78rem; letter-spacing: .085em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--body); }
.foot-bottom {
	margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line);
	display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
	font-size: .87rem; color: var(--body);
}

/* ---------- responsive ---------- */

/* ==========================================================================
   Multi-product additions
   ========================================================================== */

/* ---------- products dropdown ---------- */

.nav-drop { position: relative; }
.nav-drop > button {
	font: inherit; font-size: .95rem; font-weight: 500;
	color: var(--body); background: none; border: 0; cursor: pointer;
	padding: 0; display: inline-flex; align-items: center; gap: 5px;
}
.nav-drop > button::after {
	content: ""; width: 5px; height: 5px; margin-top: -3px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
}
.nav-drop > button:hover { color: var(--ink); }

.nav-menu {
	position: absolute; top: calc(100% + 15px); left: 50%;
	transform: translateX(-50%) translateY(-6px);
	min-width: 252px; padding: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	box-shadow: 0 12px 34px rgba(11,18,32,.13);
	opacity: 0; visibility: hidden;
	transition: opacity .13s ease, transform .13s ease, visibility .13s;
}
/* hover AND focus-within: a keyboard user tabs to the button and the menu
   opens, so the product list does not need JavaScript to be reachable */
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu {
	opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-menu a {
	display: block; padding: 9px 13px; border-radius: 7px;
	color: var(--ink); font-size: .92rem; font-weight: 500;
}
.nav-menu a:hover { background: var(--bg-alt); text-decoration: none; }

/* ---------- clickable product cards ---------- */

.card-link {
	display: block; color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card-link:hover {
	text-decoration: none; border-color: #c3d0e6;
	box-shadow: 0 8px 24px rgba(11,18,32,.07); transform: translateY(-2px);
}
.card-link h3 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.card-link .more {
	display: inline-block; margin-top: 16px;
	color: var(--accent); font-weight: 570; font-size: .93rem;
}

ul.mini { list-style: none; padding: 0; margin: 14px 0 0; }
ul.mini li {
	font-size: .87rem; color: var(--muted);
	padding: 4px 0 4px 17px; position: relative;
}
ul.mini li::before {
	content: ""; position: absolute; left: 0; top: .82em;
	width: 6px; height: 6px; border-radius: 50%; background: var(--faint);
}

/* first column of the capability matrix carries the long label */
table td:first-child { color: var(--ink-soft); }
table th:not(:first-child), table td:not(:first-child) { text-align: center; width: 108px; }

/* ==========================================================================
   Responsive — kept last on purpose. These override rules defined above,
   and CSS resolves equal specificity by source order, so anything appended
   after this block would silently defeat the mobile layout.
   ========================================================================== */

@media (max-width: 900px) {
	.g4 { grid-template-columns: repeat(2, 1fr); }
	.g3 { grid-template-columns: repeat(2, 1fr); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	section { padding: 56px 0; }
	.hero { padding: 68px 0 60px; }
	.g2, .g3, .g4 { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; gap: 26px; }

	/* Navigation must survive on phones. Hiding it left the site with no way
	   to reach any other page on a handset. Instead the header wraps to two
	   rows and the hover-only Products dropdown is flattened into inline
	   links -- hover does not exist on touch, so a tap-to-open menu would
	   need JavaScript we deliberately do not ship. */
	.site-head .wrap {
		height: auto; flex-wrap: wrap; gap: 10px 18px; padding-block: 12px;
	}
	.nav {
		width: 100%; margin-left: 0; gap: 14px 18px;
		flex-wrap: wrap; align-items: center;
	}
	.nav a:not(.btn) { font-size: .9rem; }
	.nav .btn { margin-left: auto; padding: 8px 15px; font-size: .9rem; }

	.nav-drop { display: contents; }
	.nav-drop > button { display: none; }
	.nav-menu {
		position: static; transform: none; display: contents;
		opacity: 1; visibility: visible;
		min-width: 0; padding: 0; border: 0; box-shadow: none; background: none;
	}
	.nav-menu a {
		padding: 0; border-radius: 0; font-size: .9rem;
		font-weight: 500; color: var(--body);
	}
	.nav-menu a:hover { background: none; }
}
