/* QTI Labs unified website polish — 12 July 2026 */
:root {
  --site-max: 1180px;
  --site-header: 78px;
  --site-space-section: clamp(72px, 8vw, 104px);
  --site-title: clamp(2.6rem, 5vw, 4.8rem);
  --site-h2: clamp(2rem, 3.5vw, 3.25rem);
  --site-body: 1rem;
}

html { scroll-padding-top: calc(var(--site-header) + 18px); }
body { font-size: var(--site-body); line-height: 1.65; }
.container { width: min(calc(100% - 48px), var(--site-max)); }

h1, h2, h3 { text-wrap: balance; }
p { max-width: 72ch; }

.site-header {
  height: var(--site-header);
  background: rgba(7, 17, 31, .96);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
}
.site-header.is-scrolled { background: rgba(7,17,31,.985); }
.header-inner { gap: 42px; }
.brand-image-only { width: 158px; height: 54px; }
.primary-navigation { gap: 28px; }
.site-nav-link,
.site-nav-dropdown-trigger {
  font-size: .96rem !important;
  font-weight: 650 !important;
}

/* Shared company/product page hero */
.company-page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--site-header) + 78px) 0 86px;
  background:
    radial-gradient(circle at 85% 10%, rgba(47,208,255,.2), transparent 34%),
    radial-gradient(circle at 8% 105%, rgba(23,104,229,.24), transparent 35%),
    linear-gradient(135deg, #07111f 0%, #0a1930 52%, #09213f 100%);
  color: #fff;
}
.company-page-hero::after {
  position: absolute;
  inset: auto -8% -160px auto;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
}
.company-page-hero .container { position: relative; z-index: 1; }
.company-page-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
  color: #fff;
  font-size: var(--site-title);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.company-page-hero p {
  max-width: 820px;
  margin-bottom: 0;
  color: #c7d7e8;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.company-section { padding: var(--site-space-section) 0; }
.company-section + .company-section { border-top: 1px solid #e7edf5; }
.company-section-soft { background: #f5f8fc; }
.company-section h2 {
  max-width: 900px;
  font-size: var(--site-h2);
  line-height: 1.12;
}
.company-section p { font-size: 1.02rem; }

.company-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(44px, 7vw, 88px);
  align-items: center;
}
.company-quote {
  position: relative;
  padding: clamp(34px, 5vw, 52px);
  border: 1px solid #dbe6f2;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f6faff);
  box-shadow: 0 20px 55px rgba(12,31,58,.1);
}
.company-quote::before {
  display: block;
  margin-bottom: 14px;
  color: #1768e5;
  content: "“";
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: .6;
}
.company-quote p {
  margin: 0;
  color: #24364d;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.45;
}

.company-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.company-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid #dce4ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(12,31,58,.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.company-card:hover {
  border-color: rgba(23,104,229,.35);
  box-shadow: 0 22px 55px rgba(12,31,58,.13);
  transform: translateY(-5px);
}
.company-card-number {
  margin-bottom: 30px;
  color: #1768e5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.company-card h2,
.company-card h3 {
  margin-bottom: 14px;
  color: #122033;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}
.company-card p { flex: 1; margin-bottom: 22px; }
.company-card .button { align-self: flex-start; }

.products-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.portfolio-card {
  display: grid;
  min-height: 390px;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(12,31,58,.09);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 28px 65px rgba(12,31,58,.15); }
.portfolio-card-visual {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0b4cb9, #2fc9f7);
}
.portfolio-card-eramakoti .portfolio-card-visual {
  background: linear-gradient(145deg, #b54f13, #f1a52a);
}
.portfolio-mark {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px;
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.portfolio-card-body { display: flex; flex-direction: column; padding: 38px; }
.portfolio-chip {
  align-self: flex-start;
  margin-bottom: 24px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1768e5;
  font-size: .72rem;
  font-weight: 780;
}
.portfolio-card-body h3 { font-size: 2rem; }
.portfolio-card-body p { flex: 1; }
.portfolio-link { color: #1768e5; font-weight: 760; }
.portfolio-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* StatusDeck and standard product sections */
.statusdeck-hero { padding-top: calc(var(--site-header) + 48px); }
.problem-section { background: #f5f8fc; }

/* Forms/careers/support consistency */
.page-hero-compact {
  padding: calc(var(--site-header) + 66px) 0 76px !important;
}
.page-hero-compact h1 {
  max-width: 920px;
  color: #fff;
  font-size: clamp(2.55rem, 4.8vw, 4.4rem);
  line-height: 1.08;
}
.page-hero-compact p { font-size: 1.08rem; }
.content-section { padding: var(--site-space-section) 0 !important; }

/* Footer and general rhythm */
.site-footer { margin-top: 0; }
.footer-main { gap: clamp(36px, 6vw, 72px); }
.footer-column h2 { font-size: .78rem; letter-spacing: .11em; }
.footer-column a { font-size: .92rem; }
.button { min-height: 46px; padding: 12px 20px; font-size: .92rem; }

@media (max-width: 980px) {
  .company-intro-grid { grid-template-columns: 1fr; }
  .company-quote { max-width: 720px; }
  .company-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 340px; }
}

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .brand-image-only { width: 145px; height: 48px; }
  .container { width: min(calc(100% - 34px), var(--site-max)); }
}

@media (max-width: 680px) {
  :root { --site-space-section: 64px; }
  .container { width: min(calc(100% - 28px), var(--site-max)); }
  .company-page-hero { padding: 128px 0 66px; }
  .company-page-hero h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  .company-page-hero p { font-size: 1rem; }
  .company-card-grid { grid-template-columns: 1fr; }
  .company-card { min-height: 0; padding: 26px; }
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-card-visual { min-height: 180px; }
  .portfolio-card-body { padding: 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 460px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}


/* Technology ecosystem marquee */
.ecosystem-section {
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: #ffffff;
  border-top: 1px solid rgba(19, 40, 68, .08);
}
.ecosystem-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 2.25rem;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.ecosystem-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: .35rem 0;
  animation: ecosystem-scroll 30s linear infinite;
}
.ecosystem-marquee:hover .ecosystem-track,
.ecosystem-marquee:focus-within .ecosystem-track {
  animation-play-state: paused;
}
.ecosystem-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(340px, 78vw);
  min-height: 104px;
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(32, 75, 128, .14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(16, 37, 67, .07);
}
.ecosystem-symbol {
  display: inline-grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #0d6efd, #32c5ff);
  color: #fff;
  font-size: .92rem;
  font-weight: 850;
  letter-spacing: -.03em;
}
.ecosystem-card strong,
.ecosystem-card small {
  display: block;
}
.ecosystem-card strong {
  margin-bottom: .26rem;
  color: #14243a;
  font-size: 1rem;
}
.ecosystem-card small {
  color: #607086;
  font-size: .78rem;
  line-height: 1.45;
}
.ecosystem-note {
  max-width: 860px;
  margin: 1.15rem auto 0;
  color: #728096;
  font-size: .75rem;
  line-height: 1.6;
  text-align: center;
}
@keyframes ecosystem-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - .5rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .ecosystem-track {
    width: auto;
    overflow-x: auto;
    animation: none;
  }
  .ecosystem-card[aria-hidden="true"] { display: none; }
}
