/* ==========================================================================
   ATLASTECH — corporate site styles
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --bg: #f5f7fa;
  --soft: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-tint: #eff4ff;
  --navy: #1e293b;
  --text: #344054;
  --muted: #667085;
  --border: #e5e7eb;
  --border-strong: #d0d5dd;
  --danger: #b42318;
  --success: #067647;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 24px -10px rgba(16, 24, 40, .10);

  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.125rem); text-wrap: balance; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2; }
.icon-lg { width: 32px; height: 32px; stroke-width: 1.4; }

.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; }
.text-link .icon { transition: transform .15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px;
  font-size: .9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--soft); border-color: #98a2b3; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 16px -8px rgba(16, 24, 40, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo-mark { width: 32px; height: 32px; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.125rem; line-height: 1; letter-spacing: .06em; }
.logo-text span { font-weight: 600; color: #475467; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text span { color: #94a3b8; }

.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px;
  font-size: .9375rem; font-weight: 500; color: var(--text);
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--navy); background: var(--bg); }
.nav-link.is-active { color: var(--blue); }
.nav-dd { position: relative; }
.nav-dd-btn .icon { transition: transform .15s ease; }
.nav-dd-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dd-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: 0; width: 300px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -2px rgba(16, 24, 40, .04), 0 16px 32px -8px rgba(16, 24, 40, .12);
}
.nav-dd.is-open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 8px 12px; font-size: .9rem; color: var(--text); border-radius: var(--radius-sm); }
.dd-menu a:hover { background: var(--bg); color: var(--navy); }
.dd-menu a:first-child { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.dd-menu strong { display: block; color: var(--navy); font-weight: 600; }
.dd-menu a span { font-size: .8125rem; color: var(--muted); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--border); }
.section-gray { background: var(--bg); }
.section-line { border-top: 1px solid var(--border); }

.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.head-split p, .head-left p, .head-center p { color: var(--muted); font-size: 1.0625rem; }
.head-left { max-width: 680px; margin-bottom: 48px; }
.head-left h2, .head-center h2 { margin-bottom: 14px; }
.head-center { max-width: 640px; margin: 0 auto 48px; text-align: center; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-grid { --bleed: max(var(--gutter), (100vw - var(--container)) / 2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.hero-copy { align-self: center; padding: 72px 48px 72px 0; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { max-width: 540px; margin-bottom: 32px; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.hero-facts dd { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.hero-visual {
  display: flex; flex-direction: column;
  margin-right: calc(-1 * var(--bleed)); padding: 56px var(--bleed) 0 56px;
  border-left: 1px solid var(--border);
  background-color: var(--bg);
  background-image: linear-gradient(#e9edf2 1px, transparent 1px), linear-gradient(90deg, #e9edf2 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
}
.hero-caption { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-visual .win { flex: 1; display: flex; flex-direction: column; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; }
.hero-visual .ws { flex: 1; }

/* ---------- Interface mockups (shared) ---------- */
.win { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); font-size: 12px; line-height: 1.4; color: var(--text); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--soft); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d0d5dd; }
.win-bar span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.sk { display: block; height: 7px; border-radius: 2px; background: #e9edf2; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; }

.st { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #98a2b3; }
.st-done::before { background: #12b76a; }
.st-prog::before { background: var(--blue); }
.st-rev::before { background: #f79009; }

.ws-table { width: 100%; border-collapse: collapse; }
.ws-table th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--soft); }
.ws-table td { padding: 9px 12px; border-bottom: 1px solid #f0f2f5; }
.ws-table td:first-child { color: var(--navy); font-weight: 500; }
.ws-table tr:last-child td { border-bottom: 0; }

/* Hero workspace */
.ws { display: grid; grid-template-columns: 120px 1fr; min-height: 390px; }
.ws-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--border); background: var(--soft); }
.ws-side b { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #98a2b3; padding: 6px 8px 4px; }
.ws-side b:not(:first-child) { margin-top: 10px; }
.ws-side span { padding: 6px 8px; border-radius: var(--radius-sm); color: var(--text); }
.ws-side .on { background: var(--blue-tint); color: var(--blue); font-weight: 600; }
.ws-main { padding: 16px; min-width: 0; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.ws-head strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--navy); }
.ws-head small { font-size: 11px; color: var(--muted); }
.ws-head em { font-style: normal; font-size: 11px; font-weight: 500; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.ws-phases { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr .7fr 1.1fr; gap: 4px; margin-bottom: 16px; }
.ws-phases li { font-size: 9.5px; letter-spacing: -.01em; white-space: nowrap; color: var(--muted); padding-top: 8px; border-top: 3px solid #e4e7ec; }
.ws-phases .done { border-color: #b2ccff; color: var(--text); }
.ws-phases .now { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.ws-main .ws-table { border: 1px solid var(--border); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }

.ws-next { margin-top: 18px; }
.ws-next strong { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ws-next li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #f0f2f5; color: var(--navy); }
.ws-next li span { color: var(--muted); white-space: nowrap; }

/* ---------- Capabilities ---------- */
.capabilities { border-block: 1px solid var(--border); background: var(--soft); }
.cap-list { display: grid; grid-template-columns: repeat(6, 1fr); }
.cap-list li { display: flex; align-items: center; gap: 12px; padding: 24px 20px; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--navy); border-left: 1px solid var(--border); }
.cap-list li:first-child { border-left: 0; padding-left: 0; }
.cap-list li:last-child { padding-right: 0; }
.cap-list .icon { color: var(--blue); }

/* ---------- Services ---------- */
.svc-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.svc-feature { background: var(--navy); color: #cbd5e1; border-radius: var(--radius-lg); padding: 40px; }
.svc-feature > .icon { color: #93b4ff; margin-bottom: 24px; }
.svc-feature h3 { color: #fff; font-size: 1.375rem; margin-bottom: 12px; }
.svc-feature > p { margin-bottom: 28px; }
.check-list { display: grid; gap: 12px; padding-top: 24px; margin-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9375rem; color: #e2e8f0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { margin-top: 4px; color: #93b4ff; }
.svc-feature .text-link { color: #fff; }
.svc-feature .text-link:hover { color: #dbe6ff; }

.svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--border); }
.svc-list article { display: flex; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.svc-list .icon { color: var(--blue); margin-top: 2px; }
.svc-list h3 { margin-bottom: 6px; }
.svc-list p { font-size: .9375rem; color: var(--muted); }

/* ---------- Solutions ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sol-grid li { padding: 28px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background-color .15s ease; }
.sol-grid li:nth-child(4n) { border-right: 0; }
.sol-grid li:nth-last-child(-n+4) { border-bottom: 0; }
.sol-grid li:hover { background: var(--soft); }
.sol-grid .icon { color: var(--blue); margin-bottom: 16px; }
.sol-grid h3 { font-size: 1rem; margin-bottom: 4px; }
.sol-grid p { font-size: .875rem; line-height: 1.5; color: var(--muted); }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: step; }
.timeline li { position: relative; padding: 0 20px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 1px; background: var(--border-strong); }
.timeline li:last-child::before { right: auto; width: 40px; }
.tl-num { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; background: #fff; border: 1px solid var(--border-strong); border-radius: 50%; font-family: var(--font-head); font-size: .8125rem; font-weight: 700; color: var(--navy); }
.timeline li:first-child .tl-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.timeline h3 { font-size: .9375rem; margin-bottom: 8px; }
.timeline p { font-size: .875rem; line-height: 1.55; color: var(--muted); }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, auto); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.model { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 36px 32px; border-left: 1px solid var(--border); }
.model:first-child { border-left: 0; border-top: 3px solid var(--blue); padding-top: 33px; }
.model h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.model-sum { color: var(--muted); font-size: .9375rem; padding-bottom: 24px; }
.model dl { margin: 0; display: grid; align-content: start; border-top: 1px solid var(--border); }
.model dl div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.model dt { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.model dd { margin: 0; font-size: .9375rem; color: var(--text); }
.model .btn { margin-top: 28px; justify-self: start; }
.models-note { margin-top: 24px; text-align: center; font-size: .9375rem; color: var(--muted); }
.models-note a { font-weight: 600; }

/* ---------- Portfolio ---------- */
.pf { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.pf + .pf, .pf + .pf-pair, .pf-pair + .pf { margin-top: 32px; }
.pf-tag { font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pf h3 { font-size: 1.5rem; margin-bottom: 12px; }
.pf h3 span { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pf-copy > p:not(.pf-tag) { color: var(--text); font-size: .9688rem; }
.pf-points { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .9375rem; }
.pf-points li { position: relative; padding-left: 18px; }
.pf-points li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--blue); }

.pf-wide { display: grid; grid-template-columns: 5fr 7fr; }
.pf-wide .pf-copy { padding: 48px; align-self: center; }
.pf-wide .pf-visual { background: var(--bg); padding: 40px 40px 0; border-left: 1px solid var(--border); overflow: hidden; }
.pf-wide .pf-visual .win { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; height: 100%; }
.pf-rev .pf-copy { order: 2; }
.pf-rev .pf-visual { border-left: 0; border-right: 1px solid var(--border); }

.pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pf-stack { display: flex; flex-direction: column; }
.pf-stack .pf-copy { padding: 32px 36px; }
.pf-stack .pf-visual { background: var(--bg); padding: 32px 36px; flex: 1; display: flex; align-items: center; }
.pf-stack .pf-visual .win { width: 100%; }
.pf-stack .pf-visual:first-child { border-bottom: 1px solid var(--border); }
.pf-tint { background: var(--navy); border-color: var(--navy); }
.pf-tint .pf-tag { color: #94a3b8; }
.pf-tint h3 { color: #fff; }
.pf-tint h3 span { color: #94a3b8; }
.pf-tint .pf-copy > p:not(.pf-tag) { color: #cbd5e1; }
.pf-tint .pf-visual { background: transparent; padding-top: 4px; }

/* Nexus */
.nx { display: grid; grid-template-columns: 44px 1fr; min-height: 280px; }
.nx-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; background: var(--navy); }
.nx-rail b { width: 18px; height: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .16); }
.nx-rail .on { background: var(--blue); }
.nx-tabs, .mk-filters { display: flex; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.nx-tabs span, .mk-filters span { padding: 11px 0 9px; color: var(--muted); border-bottom: 2px solid transparent; }
.nx-tabs .on, .mk-filters .on { color: var(--navy); font-weight: 600; border-color: var(--blue); }

/* Flux */
.fx { padding: 16px 18px 18px; }
.fx-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fx-head strong { font-family: var(--font-head); font-size: 13px; color: var(--navy); }
.fx-head span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.lg { width: 10px; height: 2px; }
.lg-a { background: var(--blue); }
.lg-b { background: #98a2b3; margin-left: 8px; }
.fx-chart { width: 100%; height: 120px; margin-bottom: 14px; }
.fx-rows { display: grid; gap: 8px; }
.fx-rows div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.fx-rows u { display: block; height: 6px; background: linear-gradient(to right, #84adff var(--w), #eef1f5 var(--w)); border-radius: 2px; }

/* Medora */
.md { padding: 14px 16px 16px; }
.md-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; text-align: center; }
.md-days span { padding: 6px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); }
.md-days .on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.md-slots { display: grid; gap: 6px; }
.md-slots li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.md-slots time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.md-slots div { padding: 7px 10px; border-radius: var(--radius-sm); border-left: 3px solid var(--blue); background: var(--blue-tint); }
.md-slots b { display: block; font-weight: 600; color: var(--navy); }
.md-slots small { font-size: 10.5px; color: var(--muted); }
.md-slots .b { border-color: #12b76a; background: #ecfdf3; }
.md-slots .c { border-color: #f79009; background: #fffaeb; }
.md-slots .free { border: 1px dashed var(--border-strong); background: none; color: #98a2b3; }

/* Marketly */
.mk { display: grid; grid-template-columns: 1fr 170px; min-height: 280px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; }
.mk-grid div { display: grid; gap: 7px; }
.mk-grid i { display: block; aspect-ratio: 4 / 3; background: #eef1f5; border-radius: var(--radius-sm); }
.mk-grid div:nth-child(2) i, .mk-grid div:nth-child(6) i { background: #e3ebfb; }
.mk-cart { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--border); background: var(--soft); }
.mk-cart strong { color: var(--navy); }
.mk-line { display: flex; align-items: center; gap: 8px; }
.mk-line i { width: 28px; height: 28px; flex: none; background: #e4e7ec; border-radius: var(--radius-sm); }
.mk-line .sk { flex: 1; max-width: 70%; }
.mk-total { display: flex; justify-content: space-between; align-items: center; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--border); }
.mk-total .sk { width: 36px; }
.mk-cart em { margin-top: auto; font-style: normal; font-weight: 600; text-align: center; padding: 8px; background: var(--blue); color: #fff; border-radius: var(--radius-sm); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why-intro h2 { margin-bottom: 20px; }
.why-intro p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 16px; }
.why-intro .text-link { margin-top: 8px; }
.why-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; counter-reset: why; border-top: 2px solid var(--navy); }
.why-list div { counter-increment: why; padding: 24px 0; border-bottom: 1px solid var(--border); }
.why-list dt { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.why-list dt::before { content: counter(why, decimal-leading-zero); display: block; font-family: var(--font-body); font-size: .75rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.why-list dd { margin: 0; font-size: .9375rem; color: var(--muted); }

/* ---------- Technology ---------- */
.tech { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.tech > div { border-top: 2px solid var(--navy); padding-top: 18px; }
.tech h3 { font-size: .8125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tech li { padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 808px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 4px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.0313rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 48px 22px 4px; color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); font-size: 1.0625rem; }
.next-steps { counter-reset: ns; margin: 36px 0; display: grid; gap: 20px; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 44px; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; font-size: .8125rem; font-weight: 600; color: var(--blue); background: #fff; border: 1px solid var(--border-strong); border-radius: 50%; }
.next-steps strong { display: block; color: var(--navy); font-weight: 600; }
.next-steps span { font-size: .9375rem; color: var(--muted); }
.contact-mail { display: flex; align-items: center; gap: 10px; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.contact-mail .icon { color: var(--muted); }
.contact-mail a { font-weight: 600; font-size: 1rem; }

.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  font-size: 1rem; color: var(--navy); background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field ::placeholder { color: #7a8494; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.field-error { margin-top: 6px; font-size: .8125rem; color: var(--danger); }
.field-error:empty { display: none; }

/* Honeypot: kept out of sight and out of the tab order; real visitors never fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-note { margin-top: -8px; font-size: .8125rem; color: var(--muted); text-align: center; }

.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); font-size: .9375rem; }
.form-status strong { display: block; margin-bottom: 2px; }
.form-status.is-success { background: #ecfdf3; border-color: #abefc6; color: var(--success); }
.form-status.is-error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.form-status.is-info { background: var(--blue-tint); border-color: #c7d7fe; color: #1e40af; }
.form-status button { margin-top: 10px; padding: 6px 12px; min-height: 36px; font-size: .875rem; font-weight: 600; color: inherit; background: #fff; border: 1px solid currentColor; border-radius: var(--radius); cursor: pointer; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 808px; }
.legal h1 { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .9375rem; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; display: grid; gap: 6px; }
.legal a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr .9fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.footer-about p { margin-top: 20px; max-width: 320px; line-height: 1.65; }
.site-footer h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: #cbd5e1; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.footer-bottom ul { display: flex; gap: 28px; }
.footer-bottom li + li { margin-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .timeline { grid-template-columns: 1fr; max-width: 720px; }
  .timeline li { display: grid; grid-template-columns: 40px 1fr; column-gap: 24px; padding: 0 0 32px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before, .timeline li:last-child::before { top: 0; bottom: 0; left: 19.5px; right: auto; width: 1px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .tl-num { grid-row: span 2; margin: 0; }
  .timeline h3 { font-size: 1.0625rem; margin: 8px 0 4px; }
  .timeline p { font-size: .9375rem; }
  .cap-list { grid-template-columns: repeat(3, 1fr); }
  .cap-list li { padding: 20px; }
  .cap-list li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .cap-list li:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .tech { grid-template-columns: repeat(3, 1fr); }
  .ws { grid-template-columns: 1fr; }
  .ws-side { display: none; }
}

@media (max-width: 1023px) {
  @font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }

:root { --header-h: 64px; }
  .section { padding: 72px 0; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 12px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px -12px rgba(16, 24, 40, .12);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .dd-menu { position: static; width: auto; padding: 0 0 12px; border: 0; box-shadow: none; }
  .dd-menu a { padding: 10px 12px; }
  .nav-cta { min-height: 48px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 0; }
  .hero-copy .lead { max-width: 620px; }
  .hero-visual { margin-inline: calc(-1 * var(--gutter)); padding: 40px var(--gutter) 0; border-left: 0; border-top: 1px solid var(--border); }

  .head-split { grid-template-columns: 1fr; margin-bottom: 40px; }
  .svc-layout { grid-template-columns: 1fr; gap: 40px; }
  .sol-grid { grid-template-columns: repeat(3, 1fr); }
  .sol-grid li:nth-child(n) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .sol-grid li:nth-child(3n) { border-right: 0; }
  .sol-grid li:nth-last-child(-n+3) { border-bottom: 0; }

  .models { grid-template-columns: 1fr; grid-template-rows: none; }
  .model { display: block; padding: 32px 28px; border-left: 0; border-top: 1px solid var(--border); }
  .model:first-child { padding-top: 30px; }

  .pf-wide { grid-template-columns: 1fr; }
  .pf-wide .pf-copy { padding: 36px; }
  .pf-wide .pf-visual, .pf-rev .pf-visual { border: 0; border-top: 1px solid var(--border); padding: 32px 36px 0; }
  .pf-rev .pf-copy { order: 0; }
  .pf-pair { grid-template-columns: 1fr; }

  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 56px; }
}

@media (max-width: 640px) {
  @font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }

:root { --gutter: 20px; }
  .section { padding: 56px 0; }
  .lead { font-size: 1.0625rem; }
  .btn-row .btn { flex: 1 1 100%; }

  .hero-copy { padding: 40px 0; }
  .hero-facts { grid-template-columns: 1fr; margin-top: 36px; }
  .hero-visual { padding-top: 28px; }
  .ws { min-height: 0; }
  .ws-main { padding: 14px 14px 0; }
  .ws-phases { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .ws-main .ws-table { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .ws-table th:nth-child(2), .ws-table td:nth-child(2) { display: none; }
  .ws-table tr:nth-child(n+6) { display: none; }
  .ws-next { display: none; }

  .cap-list { grid-template-columns: 1fr 1fr; }
  .cap-list li:nth-child(n) { padding: 16px 12px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .875rem; }
  .cap-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cap-list li:nth-last-child(-n+2) { border-bottom: 0; }

  .svc-feature { padding: 28px 24px; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-list article { padding: 22px 0; }

  .sol-grid { grid-template-columns: 1fr; }
  .sol-grid li:nth-child(n) { display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .sol-grid li:last-child { border-bottom: 0; }
  .sol-grid .icon { grid-row: span 2; margin: 2px 0 0; }

  .model .btn { width: 100%; }

  .pf h3 { font-size: 1.3125rem; }
  .pf-wide .pf-copy, .pf-stack .pf-copy { padding: 28px 24px; }
  .pf-wide .pf-visual, .pf-rev .pf-visual { padding: 24px 20px 0; }
  .nx-tabs span:nth-child(n+4) { display: none; }
  .pf-stack .pf-visual { padding: 24px; }
  .pf-tint .pf-visual { padding-top: 0; }
  .mk { grid-template-columns: 1fr; }
  .mk-cart { display: none; }

  .why-list { grid-template-columns: 1fr; }
  .why-list div { padding: 20px 0; }
  .tech { grid-template-columns: 1fr 1fr; gap: 28px 20px; }

  .faq summary { padding: 18px 0; font-size: 1rem; }
  .faq details p { padding: 0 0 20px; }

  .form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .spinner { animation-duration: 1.2s !important; }
}
