/* ───────────────────────────────────────────────
   TOOLDOX — site-wide styles (built on the
   Kraken-inspired design system tokens)
   ─────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding-inline: 40px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--fill { background: var(--gray-fill); }
.section--brand { background: var(--violet-900); color: #fff; }

/* ── Typography helpers ── */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--gold-500);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-400); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 0;
  color: var(--text-primary);
}
.h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -1px; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.14; letter-spacing: -0.6px; margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.3px; margin: 0; }

.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-secondary); margin: 0; }
.body { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.muted { color: var(--text-muted); }

/* ── Blueprint grid motif ── */
.blueprint {
  background-color: var(--white);
  background-image:
    linear-gradient(to right, rgba(53,2,121,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53,2,121,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.blueprint--brand {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Navbar ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--text-primary);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  transition: background 150ms ease, color 150ms ease; white-space: nowrap;
}
.nav__link:hover { background: var(--gray-fill); }
.nav__link--active { color: var(--purple-500); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); }
.nav__mobile { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta .btn-desktop { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile { display: block; border-bottom: 1px solid var(--border); background: #fff; padding: 8px 0 16px; }
  .nav__mobile a { display: block; padding: 12px 40px; font-size: 17px; font-weight: 500; text-decoration: none; color: var(--text-primary); }
  .nav__mobile a:hover { background: var(--gray-fill); }
  .nav__mobile .nav__mobile-cta { padding: 12px 40px 0; }
}

/* ── Generic helpers ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Feature / value card */
.tcard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-16);
  padding: 28px; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.tcard:hover { border-color: var(--gray-border); box-shadow: var(--shadow-subtle); transform: translateY(-2px); }
.tcard__icon {
  width: 46px; height: 46px; border-radius: var(--radius-12);
  background: var(--gold-subtle); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.tcard__icon i, .tcard__icon svg { width: 22px; height: 22px; }

/* Icon chip in brand violet (for dark surfaces) */
.chip-violet {
  width: 46px; height: 46px; border-radius: var(--radius-12);
  background: rgba(255,255,255,0.08); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
}

/* Pills / list of capabilities */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--text-primary); }
.checklist li i, .checklist li svg { width: 20px; height: 20px; color: var(--green-500); flex: none; margin-top: 1px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--text-primary);
  background: #fff; transition: border-color 150ms ease, background 150ms ease;
}
.pill:hover { border-color: var(--purple-500); background: var(--purple-subtle); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

/* Stat */
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -1px; color: var(--text-primary); line-height: 1; }
.stat__l { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.section--brand .stat__n { color: #fff; }
.section--brand .stat__l { color: rgba(255,255,255,0.7); }

/* Eyebrow divider line for section heads */
.section-head { max-width: 720px; }
.section-head--center { margin: 0 auto; text-align: center; }

/* Link with arrow */
.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--purple-500); text-decoration: none; }
.arrow-link i, .arrow-link svg { width: 17px; height: 17px; transition: transform 160ms ease; }
.arrow-link:hover i, .arrow-link:hover svg { transform: translateX(3px); }

/* Footer */
.footer { background: var(--violet-900); color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 56px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 30px; }
.footer__tag { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.72); margin: 18px 0 0; max-width: 280px; }
.footer__col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 18px; font-weight: 600; }
.footer__col a, .footer__contact .row > span, .footer__contact .row > a { display: block; font-size: 15px; color: rgba(255,255,255,0.78); text-decoration: none; margin-bottom: 12px; line-height: 1.5; transition: color 150ms ease; }
.footer__contact .row > span .__om-t, .footer__contact .row > a .__om-t { display: inline; margin: 0; }
.footer__col a:hover { color: #fff; }
.footer__contact i, .footer__contact svg { width: 16px; height: 16px; color: var(--gold-400); }
.footer__contact .row { display: flex; gap: 10px; align-items: flex-start; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__bottom span, .footer__bottom a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ── Page-specific responsive grids ── */
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 48px; align-items: center; padding: 84px 0 80px; }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.split-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.split-grid--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .split-grid, .split-grid--even { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
}
@media (max-width: 560px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.field .req { color: var(--purple-500); }
.field input, .field select, .field textarea {
  font-family: var(--font-ui); font-size: 15px; color: var(--text-primary);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-10);
  padding: 12px 14px; width: 100%; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px var(--purple-subtle);
}
.file-drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--gray-border); border-radius: var(--radius-12); padding: 16px 18px; color: var(--text-muted); cursor: pointer; transition: border-color 150ms ease, background 150ms ease; font-size: 14px; }
.file-drop:hover { border-color: var(--purple-500); background: var(--purple-subtle); color: var(--purple-500); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-grid label { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-8); cursor: pointer; transition: border-color 150ms ease, background 150ms ease; }
.checkbox-grid label:hover { border-color: var(--purple-500); }
.checkbox-grid input { accent-color: var(--purple-500); width: 16px; height: 16px; flex: none; }
@media (max-width: 640px) { .form-grid, .checkbox-grid { grid-template-columns: 1fr; } }

/* Contact split */
.contact-grid { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 48px; align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.info-card { background: var(--violet-900); color: #fff; border-radius: var(--radius-16); padding: 36px; }
.info-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.info-card .row:last-child { border-bottom: none; }
.info-card .row i, .info-card .row svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; margin-top: 2px; }
.info-card .row a, .info-card .row span { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 15px; line-height: 1.5; }
.info-card .row a:hover { color: #fff; }
.info-card .lbl { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); display: block; margin-bottom: 2px; }

/* ── Isometric BIM visual ── */
.iso { width: 100%; height: auto; overflow: visible; }
.iso path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: isoDraw 1.05s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes isoDraw { to { stroke-dashoffset: 0; } }
.iso .node { transform-box: fill-box; transform-origin: center; opacity: 0; animation: isoNode 0.4s ease forwards; }
@keyframes isoNode { from { opacity: 0; } to { opacity: 1; } }
.iso .slab { opacity: 0; animation: isoSlab 0.8s ease forwards; }
@keyframes isoSlab { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .iso path.draw { animation: none; stroke-dashoffset: 0; }
  .iso .node { animation: none; opacity: 1; }
  .iso .slab { animation: none; opacity: 1; }
}

/* CTA band */
.cta-band {
  background: var(--violet-900); border-radius: var(--radius-16);
  padding: 64px 56px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band .h2 { color: #fff; }
@media (max-width: 640px) { .cta-band { padding: 44px 28px; } .container { padding-inline: 24px; } .section { padding: 64px 0; } }
