/* Tag / Badge */
.tag {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 15px; border-radius: var(--radius); background: var(--neutral-07);
}
.tag--light { background: var(--neutral-01); }
.tag--light .tag-text { color: var(--neutral-07); }
.tag .tag-text { color: var(--neutral-01); }
.tag svg { width: 34px; height: 20px; flex-shrink: 0; color: var(--neutral-01); }
.tag--light svg { color: var(--neutral-07); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 40px; border-radius: var(--radius);
  font-family: var(--font-inter); font-weight: 700; font-size: 16px; line-height: 24px;
  cursor: pointer; border: none; white-space: nowrap; transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: var(--neutral-01); }
.btn-primary:hover { background: #b8171f; }
.btn-dark { background: var(--neutral-07); color: var(--neutral-01); }
.btn-outline { background: transparent; border: 1.5px solid var(--neutral-03); color: var(--neutral-07); }
.btn-outline:hover { border-color: var(--neutral-06); }
.btn-sm { padding: 12px 24px; }

.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-inter); font-weight: 700; font-size: 16px; line-height: 24px;
  color: var(--primary); border-bottom: 1.5px solid var(--primary); padding-bottom: 4px;
  background: none; border-top: none; border-left: none; border-right: none; cursor: pointer;
}
.btn-link svg { width: 16px; height: 13px; }

/* Cards */
.card {
  background: var(--neutral-01); border: 1px solid var(--neutral-03);
  border-radius: var(--radius); padding: 30px 40px;
}
.card-icon {
  width: 60px; height: 60px; margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 40px; height: 40px; }
.icon-badge { background: var(--primary); border-radius: 16px; }
.icon-badge svg { width: auto; height: auto; }
.card h3 { margin-bottom: 15px; }

/* Header */
header { padding: 32px 0; position: sticky; top: 0; z-index: 100; background: var(--neutral-01); border-bottom: 1px solid var(--neutral-03); }
header .container-wide { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 32px; width: auto; }
.logo svg { height: 32px; width: auto; }
nav { display: flex; align-items: center; gap: 42px; }
nav a { font-family: var(--font-inter); font-weight: 500; font-size: 16px; line-height: 24px; color: var(--neutral-07); }
nav a.active { color: var(--primary); }
.header-actions { display: flex; gap: 16px; align-items: center; }

/* Hero */
.hero { padding: 60px 0 80px; text-align: center; }
.hero .h1 { margin-bottom: 24px; }
.hero .body-18 { max-width: 700px; margin: 0 auto 40px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; }

/* CTA split layout (used by about, case-studies, solutions, products) */
.cta-section { padding: var(--section-padding) 0; background: var(--neutral-08); }
.cta-layout { display: flex; align-items: center; gap: 80px; }
.cta-left { flex: 1; }
.cta-left .h2 { color: var(--neutral-01); margin-bottom: 24px; }
.cta-left .body-18 { color: var(--neutral-03); margin-bottom: 56px; max-width: 417px; }
.cta-right { display: flex; gap: 0; flex: 1; }
.cta-card { background: var(--neutral-01); padding: 32px 42px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.cta-card h3 { margin-bottom: 15px; }
.cta-card .btn-link { border-bottom: none; margin-top: auto; padding-top: 8px; }
.cta-card .body-16 { margin-bottom: 20px; }

/* Footer (compact - about, case-studies, pricing, solutions) */
footer { background: var(--neutral-07); padding: 80px 0 40px; color: var(--neutral-01); }
.footer-top { display: flex; gap: 80px; margin-bottom: 60px; }
.footer-brand { max-width: 260px; }
.footer-brand p { font-size: 14px; line-height: 22px; color: var(--neutral-04); }
.footer-columns { flex: 1; display: flex; gap: 40px; }
.footer-col { flex: 1; }
.footer-group { margin-bottom: 32px; }
.footer-group h4 { font-family: var(--font-inter); font-weight: 600; font-size: 14px; margin-bottom: 16px; color: var(--neutral-01); }
.footer-group ul { list-style: none; }
.footer-group li { margin-bottom: 10px; }
.footer-group a { font-size: 14px; color: var(--neutral-04); transition: color 0.2s; }
.footer-group a:hover { color: var(--neutral-01); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-copyright { font-size: 14px; color: var(--neutral-04); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--neutral-06); transition: color 0.2s; }
.footer-social a:hover { color: var(--neutral-01); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

/* Products mega-menu */
.nav-mega { position: static; display: inline-flex; align-items: center; }
.nav-mega > a {
  position: relative; z-index: 210;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 34px 0 46px; margin: -34px 0 -46px;
  transition: color 0.18s;
}
.nav-mega > a::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px;
  opacity: 0.55; transition: transform 0.2s, margin-top 0.2s;
}
.nav-mega > a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--primary); opacity: 0; transition: opacity 0.18s;
}
.nav-mega:hover > a, .nav-mega:focus-within > a { color: var(--primary); }
.nav-mega:hover > a::after { transform: rotate(225deg); margin-top: 2px; }
.nav-mega:hover > a::before, .nav-mega:focus-within > a::before { opacity: 1; }

.nav-mega-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--neutral-01);
  border-top: 1px solid var(--neutral-03);
  box-shadow: -35px 35px 20px 8px rgba(0,0,0,0.04);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease; z-index: 200;
  padding: 52px 0 60px;
}
.nav-mega:hover .nav-mega-panel,
.nav-mega:focus-within .nav-mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-mega-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px;
  align-items: start; align-content: start;
}
.nav-mega-intro { align-self: start; }
.nav-mega-intro h4 {
  font-family: var(--font-inter); font-weight: 600; font-size: 24px;
  letter-spacing: -0.5px; color: var(--neutral-07); margin-bottom: 14px;
}
.nav-mega-intro p { font-size: 15px; line-height: 23px; color: var(--neutral-06); max-width: 320px; }
.nav-mega-col { display: flex; flex-direction: column; gap: 20px; align-self: start; }
.nav-mega-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-dm); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--neutral-07); margin-bottom: 4px;
}
.nav-mega-link { display: block; }
.nml-title { display: block; font-size: 15px; font-weight: 600; color: var(--primary); transition: color 0.15s; }
.nav-mega-link:hover .nml-title { color: #b8171f; }
.nml-desc { display: block; font-size: 13px; color: var(--neutral-06); margin-top: 3px; line-height: 18px; }
.nav-dd-new {
  font-family: var(--font-dm); font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 2px 7px; border-radius: 20px;
}

/* Demo video modal (inline YouTube embed, no redirect) */
.demo-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(16, 15, 13, 0.8);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.demo-modal[hidden] { display: none; }
.demo-modal.is-open { opacity: 1; visibility: visible; }

.demo-modal__frame {
  position: relative;
  width: min(960px, 90vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.demo-modal.is-open .demo-modal__frame { transform: scale(1); }

.demo-modal__video,
.demo-modal__video iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

.demo-modal__close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
  color: var(--neutral-01); background: transparent;
  border: none; cursor: pointer; padding: 0;
  transition: opacity 0.2s ease;
}
.demo-modal__close:hover { opacity: 0.7; }

@media (max-width: 600px) {
  .demo-modal__close { top: 0; right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-modal,
  .demo-modal__frame { transition: none; }
  .demo-modal__frame { transform: none; }
}
