/* Shared frontend — prefer Bootstrap; keep only what BS can't cover */

/* Section chrome */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-y) var(--section-x);
}
.section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 1rem;
}
.section-kicker::before { content: ' # '; opacity: 0.5; }
.section-h {
  font-family: var(--syne);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-h em { font-style: normal; color: var(--blue-500); }
.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink3);
  line-height: 1.75;
  max-width: 540px;
}

/* Dark band sections */
.demos-section,
.ind-section { background: var(--blue-950); }
.demos-inner,
.ind-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-y) var(--section-x);
}
.ind-section { padding: 5rem 0; }
.ind-inner { padding-top: 0; padding-bottom: 0; }
.demos-inner .section-kicker,
.ind-inner .section-kicker { color: var(--blue-300); }
.demos-inner .section-h,
.ind-inner .section-h { color: var(--white); }
.demos-inner .section-h em,
.ind-inner .section-h em { color: var(--blue-300); }
.demos-inner .section-sub { color: var(--blue-200); }
.projects-bg { background: var(--off); }

/* Feature cards — Bootstrap .card + light polish */
.qz-card {
  border-color: var(--border) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qz-card:hover {
  border-color: var(--border-strong) !important;
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06) !important;
}
.qz-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--blue-600);
  font-size: 28px;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
}
.qz-card-icon.tone-0 { background: var(--tone-0); }
.qz-card-icon.tone-1 { background: var(--tone-1); }
.qz-card-icon.tone-2 { background: var(--tone-2); }
.qz-card-icon.tone-3 { background: var(--tone-3); }
.qz-card-icon.tone-4 { background: var(--tone-4); }
.qz-card .card-title {
  font-family: var(--syne);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.15rem;
}
.qz-card .card-text {
  color: var(--ink3);
  font-size: 14px;
  line-height: 1.7;
}
.qz-card-rule {
  border: 0;
  border-top: 1px solid var(--border);
  opacity: 1;
  width: 70%;
  margin: 1.5rem auto 0;
}
.qz-card-cta {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.qz-card-cta:hover { color: var(--blue-600); }

/* Solution cards — accent cycles: blue / violet / teal */
.sol-card {
  --accent-grad: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  --accent-glow: radial-gradient(circle, rgba(26, 127, 232, 0.22), transparent 70%);
  --accent-shadow: rgba(26, 127, 232, 0.45);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white, #fff);
  border: 1px solid rgba(13, 66, 128, 0.1);
  border-radius: 20px;
  padding: 34px 30px 30px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(13, 40, 80, 0.04), 0 10px 30px -18px rgba(13, 40, 80, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(13, 40, 80, 0.05), 0 26px 50px -20px rgba(13, 40, 80, 0.22);
  border-color: rgba(13, 66, 128, 0.18);
}
.sol-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sol-card:hover::before { transform: scaleX(1); }
.sol-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-glow);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  z-index: -1;
}
.sol-card:hover::after { opacity: 1; }
.sol-card.blue {
  --accent-grad: linear-gradient(135deg, #0d4280, #1a7fe8);
  --accent-glow: radial-gradient(circle, rgba(26, 127, 232, 0.22), transparent 70%);
  --accent-shadow: rgba(26, 127, 232, 0.45);
}
.sol-card.violet {
  --accent-grad: linear-gradient(135deg, #5b3fc9, #7b61ff);
  --accent-glow: radial-gradient(circle, rgba(123, 97, 255, 0.22), transparent 70%);
  --accent-shadow: rgba(123, 97, 255, 0.4);
}
.sol-card.teal {
  --accent-grad: linear-gradient(135deg, #0a6e63, #12b3a1);
  --accent-glow: radial-gradient(circle, rgba(18, 179, 161, 0.2), transparent 70%);
  --accent-shadow: rgba(18, 179, 161, 0.4);
}
.sol-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-grad);
  margin-bottom: 22px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -8px var(--accent-shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sol-card:hover .sol-card-icon { transform: scale(1.06) rotate(-4deg); }
.sol-card-icon i { font-size: 24px; color: #fff; line-height: 1; }
.sol-card h3 {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--ink);
}
.sol-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink2);
  margin: 0 0 24px;
  font-weight: 400;
  flex-grow: 1;
}
.sol-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 66, 128, 0.1);
  width: 100%;
  margin-top: auto;
  transition: color 0.3s ease;
}
.sol-card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.sol-card-arrow i {
  font-size: 13px;
  color: var(--ink3);
  transition: color 0.3s ease;
}
.sol-card:hover .sol-card-link { color: var(--blue-600); }
.sol-card:hover .sol-card-arrow {
  background: var(--accent-grad);
  transform: translateX(2px);
}
.sol-card:hover .sol-card-arrow i { color: #fff; }

/* Project tiles — thumbnail top, details below */
.proj-tile {
  --accent-grad: linear-gradient(135deg, #0d4280, #1a7fe8);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white, #fff);
  border: 1px solid rgba(13, 66, 128, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 40, 80, 0.04), 0 10px 30px -18px rgba(13, 40, 80, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.proj-tile.blue { --accent-grad: linear-gradient(135deg, #0d4280, #1a7fe8); }
.proj-tile.violet { --accent-grad: linear-gradient(135deg, #5b3fc9, #7b61ff); }
.proj-tile.teal { --accent-grad: linear-gradient(135deg, #0a6e63, #12b3a1); }
.proj-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(13, 40, 80, 0.05), 0 26px 50px -20px rgba(13, 40, 80, 0.22);
  border-color: rgba(13, 66, 128, 0.18);
}
.proj-tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--accent-grad);
}
.proj-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-tile:hover .proj-tile-media img { transform: scale(1.06); }
.proj-tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 18, 37, 0.55) 100%);
  opacity: 0.85;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.proj-tile:hover .proj-tile-media::after { opacity: 1; }
.proj-tile-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 42px;
}
.proj-tile-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(4, 18, 37, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: var(--bs-border-radius-pill);
  padding: 5px 12px;
}
.proj-tile-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.35rem 1.4rem 1.45rem;
}
.proj-tile-body h3 {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  transition: color 0.25s ease;
}
.proj-tile:hover .proj-tile-body h3 { color: var(--blue-600); }
.proj-tile-body p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink2);
  margin: 0 0 1.15rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}
.proj-tile-link i { font-size: 15px; transition: transform 0.25s ease; }
.proj-tile:hover .proj-tile-link { color: var(--blue-600); gap: 10px; }
.proj-tile:hover .proj-tile-link i { transform: translate(2px, -2px); }

/* Filter chips → Bootstrap pill buttons */
.df-btn {
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 500;
  --bs-btn-color: var(--blue-200);
  --bs-btn-bg: rgba(7, 32, 64, 0.8);
  --bs-btn-border-color: rgba(26, 127, 232, 0.2);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: rgba(26, 127, 232, 0.15);
  --bs-btn-hover-border-color: rgba(26, 127, 232, 0.35);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--blue-500);
  --bs-btn-active-border-color: var(--blue-500);
  --bs-btn-border-radius: var(--bs-border-radius-pill);
  display: inline-block;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
  font-size: var(--bs-btn-font-size);
  font-weight: var(--bs-btn-font-weight);
  color: var(--bs-btn-color);
  background: var(--bs-btn-bg);
  border: 1px solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.df-btn:hover {
  color: var(--bs-btn-hover-color);
  background: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}
.df-btn.active {
  color: var(--bs-btn-active-color);
  background: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
}
.projects-bg .df-btn {
  --bs-btn-color: var(--ink3);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: rgba(18, 96, 184, 0.15);
  --bs-btn-hover-color: var(--blue-600);
  --bs-btn-hover-bg: var(--blue-50);
}

/* Marquee */
.marquee-wrap {
  background: var(--blue-50);
  border-top: 1px solid rgba(18, 96, 184, 0.08);
  border-bottom: 1px solid rgba(18, 96, 184, 0.08);
  padding: 1rem 0;
  overflow: hidden;
}
.marquee-track {
  gap: 3rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-sep { color: var(--blue-300); font-size: 18px; }

/* CTA band */
.cta-section { padding: 4rem var(--section-x); }
.cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--blue-500);
  border-radius: var(--r24);
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
}
.cta-deco,
.cta-deco2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-deco { top: -80px; right: -80px; width: 320px; height: 320px; }
.cta-deco2 {
  bottom: -60px; left: 30%;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.04);
}
.cta-inner h2 {
  font-family: var(--syne);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
}
.cta-inner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 0;
}
.cta-contact {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.cta-actions .btn i {
  font-size: 1.15em;
  line-height: 1;
}
.cta-actions a.cta-contact:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Shared hero (about / solutions / index) */
.hero {
  min-height: 100vh;
  background: var(--blue-950);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-page { min-height: 55vh; }
.hero-page .hero-inner { display: block; }
.hero-page .hero-left { max-width: 820px; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 96, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 96, 184, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}
.hero-orb,
.hero-orb2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26, 127, 232, 0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.12) 0%, transparent 70%);
  top: 20%; right: 10%;
}
.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 5rem var(--section-x);
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-badge {
  background: rgba(26, 127, 232, 0.15);
  border: 1px solid rgba(77, 163, 255, 0.25);
  border-radius: var(--bs-border-radius-pill);
  padding: 6px 16px;
  margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero h1 {
  font-family: var(--syne);
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 .h2 { color: var(--blue-300); }
.hero h1 .h3 { color: var(--blue-200); font-size: 0.88em; opacity: 0.7; }
.hero-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--blue-200);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 440px;
}
.hs-n {
  font-family: var(--syne);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1;
}
.hs-l { font-size: 12px; color: var(--ink4); margin-top: 3px; }
.hs-sep { width: 1px; background: rgba(77, 163, 255, 0.2); }

/* Why / proof (about + index) */
.why-num {
  font-family: var(--syne);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-400);
  background: var(--blue-50);
  border: 1px solid rgba(26, 127, 232, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 1;
}
.why-num i {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}
.why-item h4 {
  font-family: var(--syne);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.why-item p {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 0;
}
.proof-board {
  background: var(--blue-950);
  border-radius: var(--r24);
  padding: 2.5rem;
  border: 1px solid rgba(26, 127, 232, 0.15);
}
.pb-header {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-300);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}
.pb-m {
  background: rgba(7, 32, 64, 0.6);
  border: 1px solid rgba(26, 127, 232, 0.15);
  border-radius: var(--r12);
  padding: 1.25rem;
}
.pb-m-n {
  font-family: var(--syne);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1;
}
.pb-m-n span { font-size: 1.2rem; }
.pb-m-l { font-size: 12px; color: var(--ink4); margin-top: 5px; }
.pb-bar-label span { font-family: var(--mono); font-size: 10px; color: var(--ink4); }
.pb-bar-track {
  height: 6px;
  background: rgba(26, 127, 232, 0.15);
  border-radius: var(--bs-border-radius-pill);
  margin-bottom: 10px;
}
.pb-bar-fill {
  height: 100%;
  border-radius: var(--bs-border-radius-pill);
  background: var(--blue-400);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-chip {
  gap: 8px;
  background: rgba(7, 32, 64, 0.7);
  border: 1px solid rgba(26, 127, 232, 0.15);
  border-radius: var(--bs-border-radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-200);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ind-chip:hover {
  border-color: rgba(77, 163, 255, 0.4);
  color: var(--white);
  background: rgba(26, 127, 232, 0.15);
}
.ind-chip-dot { width: 7px; height: 7px; border-radius: 50%; }

.bento-icon {
  width: 44px; height: 44px;
  border-radius: var(--r12);
  font-size: 22px;
  margin-bottom: 1.25rem;
}
.bi-blue { background: rgba(26, 127, 232, 0.12); color: var(--blue-500); }
.bi-light { background: var(--blue-50); color: var(--blue-600); }

/* Visible by default; only hide when JS is active and not yet in view */
.fade-up {
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .fade-up:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .fade-up:not(.visible),
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .cta-inner { padding: 3rem 1.75rem; }
  :root { --section-x: 1.25rem; }
}
