/* TOPDATA-WEB — production stylesheet */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F6F5F1;
  color: #0A1030;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
:where(a) { color: #2447E0; }
:where(a:hover) { color: #142C8C; }
::selection { background: #FD9222; color: #0A1030; }
:focus-visible { outline: 2px solid #FD9222; outline-offset: 3px; }
picture { display: contents; }

@keyframes tdDrift { from { transform: translate(0, 0); } to { transform: translate(6px, -5px); } }
@keyframes tdFlow { to { stroke-dashoffset: -32; } }
@keyframes tdPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes tdCell { from { opacity: .4; } to { opacity: 1; } }

[data-grid-lines="off"] .grid-overlay { display: none; }

.mono,
.nav-index, .hero-eyebrow, .viz figcaption, .cap-num, .eyebrow, .serving-label, .service-num,
.process-meta, .step-meta, .card-meta, .copy-btn, .footer-label, .legal-meta {
  font-family: 'Geist Mono', monospace;
}
.sq8 { width: 8px; height: 8px; background: #FD9222; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center;
  background: #FD9222; color: #0A1030;
  font-weight: 600; text-decoration: none; border-radius: 3px;
  transition: gap .25s ease, background .25s ease;
}
.btn:hover { background: #FFA540; color: #0A1030; }
.btn:active { background: #E8801A; }
.btn--header { gap: 10px; height: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.btn--header:hover { gap: 16px; }
.btn--hero { gap: 12px; height: 54px; padding: 0 24px; font-size: 15px; }
.btn--hero:hover { gap: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(10, 16, 48, 0.08);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 50px; width: auto; display: block; mix-blend-mode: multiply; }
.header-actions { display: flex; align-items: center; gap: 40px; }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 14px; font-weight: 500; color: #545B72; transition: color .2s;
}
.nav-link:hover, .nav-link.is-active { color: #0A1030; }
.nav-dot { width: 5px; height: 5px; background: #FD9222; opacity: 0; transition: opacity .2s; }
.nav-link.is-active .nav-dot { opacity: 1; }
.nav-index { font-size: 11px; color: #6B7189; }
@media (max-width: 999.98px) { .primary-nav { display: none; } }

/* Hero */
.hero { position: relative; background: #F6F5F1; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; max-width: 1280px; margin: 0 auto; pointer-events: none;
  background-image: linear-gradient(to right, rgba(10, 16, 48, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-right: 1px solid rgba(10, 16, 48, 0.05);
}
.hero-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 104px) clamp(20px, 4vw, 48px) 0; }
.hero-row { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; max-width: 640px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #2447E0;
}
.hero-eyebrow-rule { width: 32px; height: 1px; background: rgba(10, 16, 48, 0.25); }
.hero-eyebrow-meta { color: #545B72; }
.hero-title {
  margin: 28px 0 0; font-size: clamp(44px, 5.6vw, 82px); line-height: 1.01; font-weight: 500;
  letter-spacing: -0.04em; color: #0A1030; text-wrap: balance;
}
.hero-title .accent { color: #2447E0; }
.hero-sub {
  margin: 28px 0 0; max-width: 30ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45;
  color: #3A415A; font-weight: 400; text-wrap: pretty;
}
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.link-secondary {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500;
  color: #0A1030; text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid rgba(10, 16, 48, 0.3); transition: border-color .2s, color .2s;
}
.link-secondary:hover { color: #2447E0; border-color: #2447E0; }
.hero-visual { flex: 1 1 420px; min-width: 0; }
.viz { margin: 0; border: 1px solid rgba(10, 16, 48, 0.12); background: #FBFAF7; border-radius: 4px; overflow: hidden; }
.viz figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid rgba(10, 16, 48, 0.1);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #545B72;
}
.viz-keys { display: flex; gap: 5px; }
.viz-keys span { width: 6px; height: 6px; }
.viz-keys .k-blue { background: #2447E0; }
.viz-keys .k-gray { background: rgba(10, 16, 48, 0.2); }
.viz-keys .k-orange { background: #FD9222; }
.viz-body { padding: clamp(8px, 1.5vw, 20px); }
.viz-canvas { aspect-ratio: 640 / 550; }
.viz-canvas svg { display: block; width: 100%; height: auto; }

.cap-index {
  margin-top: clamp(56px, 7vw, 96px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid rgba(10, 16, 48, 0.14);
}
.cap-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 20px 26px 0; text-decoration: none; color: #0A1030;
  border-bottom: 1px solid rgba(10, 16, 48, 0.08); transition: color .2s, padding .25s;
}
.cap-link:hover { color: #2447E0; padding-left: 8px; }
.cap-link-label { display: flex; align-items: baseline; gap: 14px; }
.cap-num { font-size: 12px; color: #FD9222; }
.cap-name { font-size: 16px; font-weight: 500; }
.cap-arrow { color: #6B7189; }

/* Shared section pieces */
.section-inner { max-width: 1280px; margin: 0 auto; padding: clamp(80px, 10vw, 144px) clamp(20px, 4vw, 48px); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #FD9222;
}
.eyebrow-rule { width: 24px; height: 1px; }
.eyebrow--dark .eyebrow-rule { background: rgba(255, 255, 255, 0.3); }
.eyebrow--dark .eyebrow-label { color: #AFC0FF; }
.eyebrow--light .eyebrow-rule { background: rgba(10, 16, 48, 0.3); }
.eyebrow--light .eyebrow-label { color: #2447E0; }
.h2 {
  font-size: clamp(34px, 3.7vw, 54px); line-height: 1.05; font-weight: 500;
  letter-spacing: -0.035em; text-wrap: balance;
}

/* Capabilities */
.capabilities { position: relative; background: #0A1030; color: #FFFFFF; scroll-margin-top: 76px; }
.cap-layout { display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 104px); align-items: flex-start; }
.cap-intro { flex: 1 1 360px; min-width: 0; position: relative; top: 0; }
@media (min-width: 1000px) { .cap-intro { position: sticky; top: 124px; } }
.cap-intro .h2 { margin: 28px 0 0; }
.cap-lead {
  margin: 28px 0 0; max-width: 48ch; font-size: 17px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.76); text-wrap: pretty;
}
.serving {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
}
.serving-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.serving-item { font-size: 14px; color: #FFFFFF; }
.service-list { flex: 1.35 1 480px; min-width: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.service {
  position: relative; padding: 40px 0 44px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: 20px 28px; scroll-margin-top: 110px;
}
.service-rule {
  position: absolute; top: -1px; left: 0; height: 1px; width: 0%; background: #FD9222;
  transition: width .7s cubic-bezier(.2, .7, .2, 1);
}
.service.is-active .service-rule { width: 100%; }
.service-num { flex: 0 0 40px; font-size: 13px; padding-top: 9px; color: rgba(255, 255, 255, 0.55); transition: color .3s; }
.service.is-active .service-num { color: #FD9222; }
.service-body { flex: 1 1 260px; min-width: 0; }
.service h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.service p { margin: 14px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.74); }
.service-motif { flex: 0 0 120px; padding-top: 6px; min-height: 70px; }

/* Process */
.process { position: relative; background: #F6F5F1; scroll-margin-top: 76px; }
.process-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.stage-label { color: #545B72; }
.process-head { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 96px); align-items: flex-end; }
.process-head .h2 { flex: 1.2 1 440px; min-width: 0; margin: 0; color: #0A1030; }
.process-head p { flex: 1 1 340px; min-width: 0; margin: 0; max-width: 52ch; font-size: 17px; line-height: 1.65; color: #3A415A; text-wrap: pretty; }
.pipeline {
  list-style: none; margin: clamp(64px, 8vw, 104px) 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); row-gap: 56px;
}
.step { position: relative; padding-right: 28px; }
.step-track { position: relative; height: 18px; display: flex; align-items: center; }
.step-line { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(10, 16, 48, 0.12); }
.step-fill { position: absolute; left: 0; top: 8px; height: 2px; width: 0%; background: #2447E0; transition: width .35s linear; }
.step-node {
  position: relative; width: 14px; height: 14px; transform: rotate(45deg);
  background: #F6F5F1; border: 2px solid rgba(10, 16, 48, 0.3);
  box-shadow: 0 0 0 0 rgba(253, 146, 34, 0); transition: all .35s ease;
}
.step-meta { margin-top: 32px; display: flex; align-items: baseline; gap: 12px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.step-num { color: #545B72; transition: color .3s; }
.step-tag { color: #6B7189; }
.step h3 { margin: 14px 0 0; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: #0A1030; }
.step p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #3A415A; max-width: 32ch; }

/* Partners */
.partners {
  background: #ECEFF5; border-top: 1px solid rgba(10, 16, 48, 0.08);
  border-bottom: 1px solid rgba(10, 16, 48, 0.08); scroll-margin-top: 76px;
}
.partners-inner {
  max-width: 1280px; margin: 0 auto; padding: clamp(64px, 7vw, 96px) clamp(20px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); align-items: center;
}
.partners-head { flex: 0 1 300px; min-width: 0; }
.eyebrow--partners > span:first-child { color: #B45F0A; }
.eyebrow--partners .eyebrow-rule { background: rgba(10, 16, 48, 0.3); }
.eyebrow--partners .eyebrow-label { color: #2447E0; }
.partners-head h2 { margin: 20px 0 0; font-size: clamp(32px, 3vw, 44px); line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; color: #0A1030; }
.partner-grid {
  flex: 1 1 560px; min-width: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: rgba(10, 16, 48, 0.12); border: 1px solid rgba(10, 16, 48, 0.12);
}
.partner { height: 128px; display: flex; align-items: center; justify-content: center; background: #ECEFF5; transition: background .3s; }
.partner:hover { background: #FFFFFF; }
.partner img { width: auto; height: auto; display: block; mix-blend-mode: multiply; }
.logo-garmoosh { max-height: 34px; max-width: 70%; }
.logo-pomegranate { max-height: 60px; max-width: 60%; }
.logo-mikron { max-height: 30px; max-width: 70%; }
.logo-velocity { max-height: 44px; max-width: 60%; }

/* Contact */
.contact { position: relative; background: #1A36B8; color: #FFFFFF; overflow: hidden; scroll-margin-top: 76px; }
.contact-grid {
  position: absolute; inset: 0; pointer-events: none;
  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: 80px 80px;
}
.orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit--lg { right: -180px; top: -220px; width: 620px; height: 620px; border: 1px solid rgba(255, 255, 255, 0.12); }
.orbit--sm { right: -60px; top: -100px; width: 380px; height: 380px; border: 1px solid rgba(255, 255, 255, 0.16); }
.contact-diamond { position: absolute; right: 124px; top: 84px; width: 12px; height: 12px; background: #FD9222; transform: rotate(45deg); pointer-events: none; }
.contact-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(88px, 10vw, 152px) clamp(20px, 4vw, 48px) clamp(72px, 8vw, 112px); }
.eyebrow--contact { color: #D6DEFF; }
.eyebrow--contact .eyebrow-rule { background: rgba(255, 255, 255, 0.35); }
.contact-title {
  margin: 32px 0 0; max-width: 22ch; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04;
  font-weight: 500; letter-spacing: -0.04em; text-wrap: balance;
}
.contact-title span { color: #C7D2FF; }
.contact-cards {
  margin-top: clamp(56px, 7vw, 88px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px;
}
.contact-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 4px;
  background: rgba(10, 16, 48, 0.2); transition: background .3s, border-color .3s;
}
.contact-card:hover { background: rgba(10, 16, 48, 0.32); border-color: rgba(255, 255, 255, 0.4); }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #C7D2FF; }
.contact-card h3 { margin: 22px 0 0; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.contact-card p { margin: 14px 0 0; max-width: 50ch; font-size: 16px; line-height: 1.65; color: #DCE3FF; }
.card-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.email-link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: #FFFFFF;
  text-decoration: none; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500;
  letter-spacing: -0.01em; overflow-wrap: anywhere; transition: gap .25s;
}
.email-link:hover { gap: 20px; color: #FFFFFF; }
.email-text { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.email-arrow {
  flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: #FD9222; color: #0A1030; border-radius: 2px; font-size: 16px;
}
.copy-btn {
  height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 2px;
  background: transparent; color: #FFFFFF; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: all .2s;
}
.copy-btn:hover { border-color: #FFFFFF; }
.copy-btn.is-copied { background: #FD9222; color: #0A1030; }

/* Footer */
.site-footer { background: #F6F5F1; }
.footer-main {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px);
}
.footer-company { flex: 2 1 400px; min-width: 0; }
.footer-logo { height: 64px; width: auto; display: block; mix-blend-mode: multiply; margin-left: -6px; }
.company-name { margin-top: 32px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: #0A1030; }
.footer-company p { margin: 14px 0 0; max-width: 54ch; font-size: 16px; line-height: 1.65; color: #3A415A; text-wrap: pretty; }
.footer-col { min-width: 0; }
.footer-col--nav { flex: 1 1 160px; }
.footer-col--contact { flex: 1 1 240px; }
.footer-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #545B72; }
.footer-nav { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 15px; color: #0A1030; text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: #2447E0; }
.footer-contacts { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.footer-contact-label { font-size: 13px; color: #545B72; }
.footer-email {
  font-size: 15px; color: #0A1030; text-decoration: none;
  border-bottom: 1px solid rgba(10, 16, 48, 0.25); transition: color .2s, border-color .2s;
}
.footer-email:hover { color: #2447E0; border-color: #2447E0; }
.legal { background: #0A1030; color: #FFFFFF; }
.legal-inner {
  max-width: 1280px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.legal p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.legal-meta { display: flex; align-items: center; gap: 28px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.coords { color: rgba(255, 255, 255, 0.6); }
.to-top { color: #FFFFFF; text-decoration: none; display: flex; gap: 8px; align-items: center; transition: color .2s; }
.to-top:hover { color: #FD9222; }

/* Reduced motion: only applies when the visitor has asked the OS for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz-canvas svg * { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
