/* TEC Platforms — tecplatforms.com
   Built on the TEC Platforms design system: Industrial Modern, light, navy ink.
   Squared corners throughout. No gradients, no shadows. */

:root {
  --surface-100: #F4F7F9;
  --surface-0: #FFFFFF;
  --surface-200: #EEF2F5;
  --surface-300: #E7EDF2;
  --ink: #182E45;
  --ink-secondary: #3F5166;
  --ink-muted: #54677C;
  --border: #D7DFE6;
  --accent: #E8A33D;
  --accent-line: #C98A16;
  --accent-text: #B87E14;
  --accent-border: #D9940F;
  --positive: #1E7A55;
  --positive-tint: #F4F9F6;
  --sans: 'Space Grotesk', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 20px; }
h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 18px; max-width: 70ch; }
strong { font-weight: 700; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin: 0 0 18px;
}

.mono-note {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface-100);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 15.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.btn:hover { background: var(--surface-300); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-border);
  color: var(--ink);
}

.btn-primary:hover { background: #EFB159; }

/* ---------- Logo animation: one orchestrated load moment ---------- */

.logo-mark .bar {
  animation: bar-align 400ms ease-out backwards;
}
.logo-mark .bar:nth-child(1) { animation-delay: 200ms; }
.logo-mark .bar:nth-child(2) { animation-delay: 350ms; }
.logo-mark .bar:nth-child(3) { animation-delay: 500ms; }
.logo-mark .bar:nth-child(4) { animation-delay: 650ms; }
.logo-mark .bar:nth-child(5) { animation-delay: 800ms; }
.logo-mark .datum { animation: datum-in 200ms ease-out backwards; }

@keyframes bar-align {
  from { transform: translateX(-10px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes datum-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Sections ---------- */

.section { padding: 76px 0; border-bottom: 1px solid var(--border); }
.section-tight { padding: 56px 0; }

.hero { padding: 92px 0 72px; border-bottom: 1px solid var(--border); }
.hero p.lede {
  font-size: 20px;
  color: var(--ink-secondary);
  max-width: 62ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-terms {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ---------- Schematic ---------- */

.schematic-panel {
  background: var(--surface-0);
  border: 1px solid var(--border);
  padding: 28px;
}
.schematic-panel svg { width: 100%; height: auto; display: block; }
.fig-caption {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 16px;
}
.flow-dash {
  stroke-dasharray: 6 6;
  animation: flow 9s linear infinite;
}
@keyframes flow {
  to { stroke-dashoffset: -120; }
}

/* ---------- Stat band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}
.stat {
  background: var(--surface-0);
  padding: 26px 24px 22px;
}
.stat .num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat .num span { color: var(--accent-text); }
.stat p { font-size: 15px; color: var(--ink-secondary); margin: 0 0 10px; }
.stat .src {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--border); }
table.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface-0);
  font-size: 15.5px;
}
table.compare th, table.compare td {
  padding: 16px 18px;
  border: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
table.compare thead th {
  background: var(--ink);
  color: var(--surface-100);
  font-weight: 700;
  border-color: var(--ink-secondary);
}
table.compare thead th:first-child { background: var(--surface-200); border-color: var(--border); }
table.compare td:first-child {
  font-weight: 700;
  background: var(--surface-200);
  white-space: nowrap;
}
table.compare td.own {
  background: var(--positive-tint);
  border-left: 3px solid var(--accent);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.step {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 26px 24px;
}
.step .k {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--ink-secondary); margin: 0; }

/* ---------- Proof strip / panels ---------- */

.panel {
  background: var(--surface-0);
  border: 1px solid var(--border);
  padding: 34px 32px;
}
.panel-ink {
  background: var(--ink);
  color: var(--surface-100);
  border: 1px solid var(--ink);
  padding: 40px 36px;
}
.panel-ink h2, .panel-ink h3 { color: var(--surface-100); }
.panel-ink p { color: var(--surface-300); }
.panel-ink .eyebrow { color: var(--accent); }
.panel-ink a.btn { border-color: var(--surface-100); color: var(--surface-100); }
.panel-ink a.btn:hover { background: var(--ink-secondary); }
.panel-ink a.btn-primary { background: var(--accent); border-color: var(--accent-border); color: var(--ink); }
.panel-ink a.btn-primary:hover { background: #EFB159; }

/* ---------- Q&A blocks (Method) ---------- */

.qa { border-top: 1px solid var(--border); padding: 34px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--border); }
.qa h3 { margin-bottom: 12px; }
.qa p { color: var(--ink-secondary); }

/* ---------- Lists ---------- */

ol.deliverables { margin: 0 0 20px; padding-left: 22px; }
ol.deliverables li { margin-bottom: 12px; max-width: 68ch; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 44px 0 56px;
  color: var(--ink-muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { font-size: 13px; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.center-cta { text-align: left; margin-top: 26px; }
.lead-space { margin-bottom: 34px; }

@media (max-width: 640px) {
  .hero { padding: 60px 0 52px; }
  .section { padding: 56px 0; }
  .panel, .panel-ink { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-mark .bar, .logo-mark .datum, .flow-dash { animation: none; }
}
