/* =========================
   HERO SEARCH
========================= */

.hero-search {

  width: 100%;

  display: flex;

  justify-content: center;

  padding:
    30px 20px;

}

/* ==================================================
   Home Page Production Upgrade
================================================== */

.home-header {
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
}

.home-header-inner {
  max-width: var(--qt-container, 1180px);
  padding: 14px 24px;
}

.hero {
  min-height: min(720px, calc(100svh - 72px));
  padding: clamp(4rem, 8vw, 6.5rem) 1rem clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(760px 340px at 75% 20%, rgba(15, 118, 110, 0.13), transparent 70%),
    radial-gradient(980px 440px at 45% -20%, rgba(37, 99, 235, 0.18), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f6f8fb 100%);
}

.hero-inner {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  gap: 1.4rem;
}

.hero-text {
  display: grid;
  justify-items: center;
}

.hero-eyebrow {
  color: #0f3f3b !important;
  background: #dff7f3 !important;
  border: 1px solid #b8eee5;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: 0;
}

.hero-description {
  max-width: 680px !important;
  font-size: clamp(1rem, 2vw, 1.18rem) !important;
}

.hero-search {
  padding: 8px 20px 0;
}

.hero-search .search-bar {
  max-width: 720px;
  height: 62px;
  border: 1px solid rgba(207, 216, 230, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}

.hero-search .search-bar input {
  color: var(--qt-text, #0b1220);
}

.hero-search .search-icon {
  color: #64748b;
}

.hero-search .search-shortcut {
  background: #eef4ff;
  border: 1px solid #d8e6ff;
  color: #31538a;
}

.use-cases-pro {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.usecases-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.usecase-card {
  min-height: 190px;
  padding: 22px;
}

.usecase-icon {
  border-radius: 14px;
  background: #eef7ff;
}

.category-strip {
  padding: 18px;
  border: 1px solid var(--qt-border, #dfe7f2);
  border-radius: var(--qt-radius, 14px);
  background: rgba(255, 255, 255, 0.74);
}

.stats-grid {
  background: #0b1220;
  box-shadow: none;
}

.stats-grid strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.stats-grid span {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  .home-header {
    position: sticky;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-search .search-bar.mobile-search-active {
    transform: translateY(-7rem);
  }
}

/* =========================
   SEARCH BAR
========================= */

.hero-search .search-bar {

  position: relative;

  width: 100%;

  max-width: 760px;

  height: 64px;

  display: flex;

  align-items: center;

  gap: 10px;

  padding:
    0 10px 0 20px;

  border-radius: 22px;

  background:
    rgba(255,255,255,0.88);

  border:
    1px solid rgba(255,255,255,0.7);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

  box-shadow:
    0 20px 60px rgba(15,23,42,0.10),
    0 6px 18px rgba(15,23,42,0.05),
    inset 0 1px 0 rgba(255,255,255,0.75);

  transition:
    all 0.3s cubic-bezier(.4,0,.2,1);

}

/* HOVER */

.hero-search .search-bar:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 28px 80px rgba(15,23,42,0.14),
    0 12px 28px rgba(15,23,42,0.06);

}

/* FOCUS */

.hero-search .search-bar:focus-within {

  border-color:
    rgba(59,130,246,0.28);

  box-shadow:
    0 0 0 5px rgba(59,130,246,0.10),
    0 32px 90px rgba(15,23,42,0.16);

}

/* =========================
   ICON
========================= */

.hero-search .search-icon {

  color:
    #94a3b8;

  font-size: 1rem;

  flex-shrink: 0;

}

/* =========================
   INPUT
========================= */

.hero-search .search-bar input {

  flex: 1;

  height: 100%;

  border: none;

  outline: none;

  background: transparent;

  color: #0f172a;

  font-size: 1rem;

  font-weight: 500;

  letter-spacing: -0.01em;

  font-family:
    Inter,
    system-ui,
    sans-serif;

}

/* PLACEHOLDER */

.hero-search .search-bar input::placeholder {

  color:
    #94a3b8;

}

/* =========================
   SHORTCUT
========================= */

.hero-search .search-shortcut {

  padding:
    8px 12px;

  border-radius: 12px;

  background:
    rgba(148,163,184,0.10);

  color:
    #64748b;

  font-size: 0.78rem;

  font-weight: 700;

  white-space: nowrap;

}

/* =========================
   BUTTON
========================= */

.hero-search .search-bar button {

  border: none;

  cursor: pointer;

  width: 48px;

  height: 48px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #60a5fa
    );

  color: white;

  font-size: 1rem;

  display: flex;

  align-items: center;

  justify-content: center;

  transition:
    all 0.25s ease;

  box-shadow:
    0 10px 24px rgba(59,130,246,0.22);

}

/* BUTTON HOVER */

.hero-search .search-bar button:hover {

  transform:
    scale(1.05);

  box-shadow:
    0 14px 34px rgba(59,130,246,0.30);

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .hero-search .search-bar {

    height: 58px;

    border-radius: 18px;

    padding:
      0 8px 0 16px;

  }

  .hero-search .search-shortcut {

    display: none;

  }

  .hero-search .search-bar button {

    width: 44px;

    height: 44px;

    border-radius: 14px;

  }

}

/* Final home overrides: keep this after legacy rules. */
.hero {
  min-height: min(720px, calc(100svh - 72px)) !important;
  padding: clamp(4rem, 8vw, 6.5rem) 1rem clamp(3rem, 6vw, 5rem) !important;
  background:
    radial-gradient(760px 340px at 75% 20%, rgba(15, 118, 110, 0.13), transparent 70%),
    radial-gradient(980px 440px at 45% -20%, rgba(37, 99, 235, 0.18), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f6f8fb 100%) !important;
}

.hero-inner {
  grid-template-columns: minmax(0, 1fr) !important;
  text-align: center;
}

.hero-text {
  display: grid;
  justify-items: center;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 5.4rem) !important;
  letter-spacing: 0 !important;
}

.hero-search .search-bar {
  max-width: 720px !important;
}

@media (max-width: 640px) {
  .hero-search .search-bar.mobile-search-active {
    transform: translateY(-7rem) !important;
  }
}

/* End-of-file guard against legacy home header/search rules above. */
.home-page .home-header {
  position: fixed !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-page .home-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  justify-content: initial !important;
  max-width: var(--qt-container, 1180px) !important;
  border: 1px solid rgba(210, 222, 236, 0.9) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,251,255,0.9)) !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.home-page .home-logo span,
.home-page .home-nav a {
  background: none !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: currentColor !important;
}

.home-page .home-nav-cta {
  background: linear-gradient(135deg, #0f172a, #2563eb) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28) !important;
}

.home-page .home-nav-cta:hover {
  background: linear-gradient(135deg, #0f766e, #1d4ed8) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28) !important;
}

.home-page .home-nav a::after {
  display: none !important;
}

.home-page .hero {
  padding-top: clamp(5.25rem, 9vw, 7.25rem) !important;
}

.home-page .hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr) !important;
  align-items: center !important;
  text-align: left !important;
}

.home-page .hero-text {
  justify-items: start !important;
}

.home-page .hero-search {
  max-width: 720px;
  padding: 26px 0 0 !important;
}

.home-page .hero-search .search-bar {
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .home-page .hero-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .home-page .home-header {
    position: sticky !important;
    padding: 0 !important;
  }

  .home-page .home-header-inner {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
}

/* End-of-file guard against legacy home header/search rules above. */
.home-page .home-header {
  position: fixed !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-page .home-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  justify-content: initial !important;
  max-width: var(--qt-container, 1180px) !important;
  border: 1px solid rgba(210, 222, 236, 0.9) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,251,255,0.9)) !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.home-page .home-logo span,
.home-page .home-nav a {
  background: none !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: currentColor !important;
}

.home-page .home-nav-cta {
  background: linear-gradient(135deg, #0f172a, #2563eb) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28) !important;
}

.home-page .home-nav-cta:hover {
  background: linear-gradient(135deg, #0f766e, #1d4ed8) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28) !important;
}

.home-page .home-nav a::after {
  display: none !important;
}

.home-page .hero {
  padding-top: clamp(5.25rem, 9vw, 7.25rem) !important;
}

.home-page .hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr) !important;
  align-items: center !important;
  text-align: left !important;
}

.home-page .hero-text {
  justify-items: start !important;
}

.home-page .hero-search {
  max-width: 720px;
  padding: 26px 0 0 !important;
}

.home-page .hero-search .search-bar {
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .home-page .hero-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .home-page .home-header {
    position: sticky !important;
    padding: 0 !important;
  }

  .home-page .home-header-inner {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
}

/* End-of-file guard against legacy home header/search rules above. */
.home-page .home-header {
  position: fixed !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-page .home-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  justify-content: initial !important;
  max-width: var(--qt-container, 1180px) !important;
  border: 1px solid rgba(210, 222, 236, 0.9) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,251,255,0.9)) !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.home-page .home-logo span,
.home-page .home-nav a {
  background: none !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: currentColor !important;
}

.home-page .home-nav-cta {
  background: linear-gradient(135deg, #2563eb, #0f766e) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.home-page .home-nav a::after {
  display: none !important;
}

.home-page .hero {
  padding-top: clamp(5.25rem, 9vw, 7.25rem) !important;
}

.home-page .hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr) !important;
  align-items: center !important;
  text-align: left !important;
}

.home-page .hero-text {
  justify-items: start !important;
}

.home-page .hero-search {
  max-width: 720px;
  padding: 26px 0 0 !important;
}

.home-page .hero-search .search-bar {
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .home-page .hero-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .home-page .home-header {
    position: sticky !important;
    padding: 0 !important;
  }

  .home-page .home-header-inner {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
}

/* Homepage final production overrides */
.home-page .home-header {
  position: fixed !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-page .home-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  justify-content: initial !important;
  max-width: var(--qt-container, 1180px) !important;
  border: 1px solid rgba(210, 222, 236, 0.9) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,251,255,0.9)) !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.home-page .home-logo span,
.home-page .home-nav a {
  background: none !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: currentColor !important;
}

.home-page .home-nav-cta {
  background: linear-gradient(135deg, #2563eb, #0f766e) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.home-page .home-nav a::after {
  display: none !important;
}

.home-page .hero {
  padding-top: clamp(5.25rem, 9vw, 7.25rem) !important;
}

.home-page .hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr) !important;
  align-items: center !important;
  text-align: left !important;
}

.home-page .hero-text {
  justify-items: start !important;
}

.home-page .hero-search {
  max-width: 720px;
  padding: 26px 0 0 !important;
}

.home-page .hero-search .search-bar {
  max-width: 100% !important;
}

.hero-stats-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(210, 222, 236, 0.95);
  border-radius: 22px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(15, 118, 110, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.94));
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.hero-panel-top {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #101828, #16303a);
  color: #ffffff;
}

.hero-panel-top span,
.hero-metrics-grid span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.86rem;
  font-weight: 650;
}

.hero-panel-top strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-metrics-grid div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--qt-border, #dfe7f2);
  border-radius: 14px;
  background: #ffffff;
}

.hero-metrics-grid strong {
  display: block;
  color: var(--qt-text, #0b1220);
  font-size: 1.16rem;
  line-height: 1.2;
}

.hero-metrics-grid span {
  margin-top: 6px;
  color: var(--qt-muted, #5b667a);
}

.hero-panel-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-panel-links a {
  padding: 12px 13px;
  border: 1px solid var(--qt-border, #dfe7f2);
  border-radius: 12px;
  background: #ffffff;
  color: var(--qt-text, #0b1220);
  font-weight: 720;
}

.hero-panel-links a:hover {
  border-color: #b9d7d1;
  background: #e6f6f2;
}

@media (max-width: 900px) {
  .home-page .hero-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .home-page .home-header {
    position: sticky !important;
    padding: 0 !important;
  }

  .home-page .home-header-inner {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .hero-stats-panel {
    padding: 14px;
  }

  .hero-metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  .hero-search .search-bar {

    height: 54px;

    border-radius: 16px;

  }

  .hero-search .search-bar input {

    font-size: 0.95rem;

  }

}

/* =========================
   FULL WIDTH HEADER
========================= */

.home-header {

  position: sticky;

  top: 0;

  width: 100%;

  z-index: 9999;

  background:
    rgba(60, 58, 200, 0.78);

  backdrop-filter:
    blur(125px);

  -webkit-backdrop-filter:
    blur(135px);

  border-bottom:
    1px solid rgba(255,255,255,0.08);

  transition:
    all 0.3s ease;

}

/* =========================
   INNER LAYOUT
========================= */

.home-header-inner {

  max-width: 1320px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;

  padding:
    18px 24px;

}

/* =========================
   LOGO
========================= */

.home-logo a {

  display: flex;

  align-items: center;

  gap: 12px;

  text-decoration: none;

}

.home-logo img {

  width: 42px;

  height: 42px;

  border-radius: 12px;

  object-fit: cover;

}

.home-logo span {

  font-size: 1.45rem;

  font-weight: 800;

  letter-spacing: -0.03em;

  background:
    linear-gradient(
      90deg,
      rgba(153, 240, 251, 0.96),
      #a8f0ed
    );

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

}

/* =========================
   NAVIGATION
========================= */

.home-nav {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-wrap: wrap;

}

.home-nav a {

  position: relative;

  text-decoration: none;

  color:
    rgba(255,255,255,0.72);

  font-size: 0.94rem;

  font-weight: 600;

  padding:
    10px 16px;

  border-radius: 12px;

  transition:
    all 0.25s ease;

  white-space:
    nowrap;

}

/* HOVER */

.home-nav a:hover {

  color:
    rgba(255,255,255,0.96);

  background:
    rgba(255,255,255,0.06);

}

/* ACTIVE LINE */

.home-nav a::after {

  content: "";

  position: absolute;

  left: 50%;

  bottom: 6px;

  width: 0;

  height: 2px;

  border-radius: 999px;

  background:
    #3b82f6;

  transform:
    translateX(-50%);

  transition:
    width 0.25s ease;

}

.home-nav a:hover::after {

  width: 55%;

}

/* =========================
   CTA BUTTON
========================= */

.home-nav-cta {

  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #60a5fa
    );

  color:
    rgba(255,255,255,0.96) !important;

  padding:
    10px 18px !important;

  border-radius:
    12px;

  box-shadow:
    0 8px 24px rgba(59,130,246,0.22);

}

.home-nav-cta:hover {

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #3b82f6
    );

}

/* =========================
   TABLET
========================= */

@media (max-width: 980px) {

  .home-header-inner {

    flex-wrap: wrap;

    justify-content: center;

    gap: 18px;

  }

  .home-nav {

    justify-content: center;

  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

  .home-header-inner {

    flex-direction: column;

    align-items: stretch;

    gap: 14px;

    padding:
      16px;

  }

  .home-logo {

    display: flex;

    justify-content: center;

  }

  .home-logo img {

    width: 38px;

    height: 38px;

  }

  .home-logo span {

    font-size:
      1.2rem;

  }

  .home-nav {

    display: grid;

    grid-template-columns:
      repeat(2, 1fr);

    gap: 10px;

    width: 100%;

  }

  .home-nav a {

    text-align: center;

    width: 100%;

    padding:
      12px 10px;

    font-size:
      0.88rem;

  }

  .home-nav-cta {

    grid-column:
      span 2;

  }

}
/* =========================
   LIGHT THEME SEARCH DROPDOWN
========================= */

.search-results {

  position: absolute;

  top: calc(100% + 10px);

  left: 50%;

  transform:
    translateX(-50%);

  width: 100%;

  max-width: 620px;

  max-height: 360px;

  overflow-y: auto;

  overscroll-behavior: contain;

  padding:
    8px;

  border-radius: 20px;

  border:
    1px solid rgba(255,255,255,0.10);

  background:
    rgba(60, 58, 200, 0.78);

  box-shadow:
    0 20px 50px rgba(15,23,42,0.18),
    0 8px 20px rgba(15,23,42,0.08);

  z-index: 99999;

  display: none;

  animation:
    dropdownReveal 160ms ease;

}

/* =========================
   SCROLLBAR
========================= */

.search-results::-webkit-scrollbar {

  width: 7px;

}

.search-results::-webkit-scrollbar-thumb {

  background:
    rgba(255,255,255,0.20);

  border-radius: 999px;

}

.search-results::-webkit-scrollbar-track {

  background: transparent;

}

/* =========================
   SEARCH RESULT ITEM
========================= */

.search-result-item {

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 2px;

  min-height: 52px;

  padding:
    10px 14px;

  border:
    1px solid transparent;

  border-radius: 14px;

  text-decoration: none;

  transition:
    all 0.16s ease;

  background:
    transparent;

}

/* HOVER */

.search-result-item:hover,
.search-result-item.active {

  border:
    1px solid rgba(59,130,246,0.28);

  background:
    rgba(255,255,255,0.06);

}

/* =========================
   RESULT TITLE
========================= */

.result-title {

  font-size: 0.92rem;

  font-weight: 650;

  letter-spacing: -0.01em;

  color:
    rgba(255,255,255,0.96);

  line-height: 1.2;

}

/* =========================
   RESULT META
========================= */

.result-meta {

  font-size: 0.75rem;

  font-weight: 500;

  color:
    rgba(255,255,255,0.74);

  line-height: 1.2;

}

/* =========================
   EMPTY STATE
========================= */

.search-empty {

  padding:
    16px;

  text-align: center;

  border-radius: 14px;

  color:
    rgba(255,255,255,0.74);

  font-size: 0.85rem;

}

/* =========================
   ANIMATION
========================= */

@keyframes dropdownReveal {

  0% {

    opacity: 0;

    transform:
      translateX(-50%)
      translateY(8px);

  }

  100% {

    opacity: 1;

    transform:
      translateX(-50%)
      translateY(0);

  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .search-results {

    width: calc(100vw - 24px);

    max-width: unset;

    border-radius: 16px;

    padding:
      6px;

  }

  .search-result-item {

    min-height: 48px;

    padding:
      10px 12px;

    border-radius:
      12px;

  }

  .result-title {

    font-size:
      0.88rem;

  }

  .result-meta {

    font-size:
      0.72rem;

  }

}

/* =========================
   MOBILE HEADER CLEAN MODE
========================= */

@media (max-width: 640px) {

  .home-header {

    padding:
      10px 14px;

  }

  .home-header-inner {

    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
      14px 18px;

  }

  /* LOGO CENTER */

  .home-logo {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

  }

  .home-logo a {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

  }

  .home-logo img {

    width: 40px;

    height: 40px;

    border-radius: 12px;

  }

  .home-logo span {

    font-size: 1.18rem;

    font-weight: 800;

  }

  /* HIDE NAVIGATION */

  .home-nav {

    display: none !important;

  }

}

/* =========================
   MOBILE SEARCH ACTIVE
========================= */

@media (max-width: 768px) {

  .hero-search {

    position: relative;

    z-index: 200;

  }

  .hero-search .search-bar {

    transition:
      box-shadow 320ms ease,
      border-color 220ms ease,
      background 220ms ease;

  }

  /* ACTIVE STATE */

  .hero-search .search-bar.mobile-search-active {

    border-color:
      rgba(59,130,246,0.24);

    box-shadow:
      0 24px 60px rgba(15,23,42,0.12),
      0 0 0 4px rgba(59,130,246,0.10);

  }

  /* OVERLAY */

  .search-overlay {

    position: fixed;

    inset: 0;

    opacity: 0;

    pointer-events: none;

    transition:
      opacity 260ms ease;

    background:
      radial-gradient(
        circle at center,
        rgba(96,165,250,0.10),
        rgba(15,23,42,0.16)
      );

    backdrop-filter:
      blur(8px);

    -webkit-backdrop-filter:
      blur(8px);

    z-index: 150;

  }

  .search-overlay.is-visible {

    opacity: 1;

    pointer-events: auto;

  }

}

/* =========================
   MOBILE SEARCH LIFT
========================= */

@media (max-width: 768px) {

  .hero-search {

    position: relative;

    z-index: 200;

  }

  .hero-search .search-bar {

    position: relative;

    z-index: 220;

    transition:
      transform 420ms cubic-bezier(.16,1,.3,1),
      box-shadow 320ms ease,
      border-color 220ms ease,
      background 220ms ease;

    will-change:
      transform;

  }

  /* MOVE SEARCH UP */

  .hero-search .search-bar.mobile-search-active {

    transform:
      translateY(-18rem);

    border-color:
      rgba(59,130,246,0.24);

    box-shadow:
      0 28px 70px rgba(15,23,42,0.16),
      0 0 0 4px rgba(59,130,246,0.10);

  }

}

/* Final home overrides: keep this after legacy rules. */
.hero {
  min-height: min(720px, calc(100svh - 72px)) !important;
  padding: clamp(4rem, 8vw, 6.5rem) 1rem clamp(3rem, 6vw, 5rem) !important;
  background:
    radial-gradient(760px 340px at 75% 20%, rgba(15, 118, 110, 0.13), transparent 70%),
    radial-gradient(980px 440px at 45% -20%, rgba(37, 99, 235, 0.18), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f6f8fb 100%) !important;
}

.hero-inner {
  grid-template-columns: minmax(0, 1fr) !important;
  text-align: center;
}

.hero-text {
  display: grid;
  justify-items: center;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 5.4rem) !important;
  letter-spacing: 0 !important;
}

.hero-search .search-bar {
  max-width: 720px !important;
}

@media (max-width: 640px) {
  .hero-search .search-bar.mobile-search-active {
    transform: translateY(-7rem) !important;
  }
}

/* End-of-file guard against legacy home header/search rules above. */
.home-page .home-header {
  position: fixed !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.home-page .home-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  justify-content: initial !important;
  max-width: var(--qt-container, 1180px) !important;
  border: 1px solid rgba(210, 222, 236, 0.9) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,251,255,0.9)) !important;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.home-page .home-logo span,
.home-page .home-nav a {
  background: none !important;
  color: #0b1220 !important;
  -webkit-text-fill-color: currentColor !important;
}

.home-page .home-nav-cta {
  background: linear-gradient(135deg, #2563eb, #0f766e) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.home-page .home-nav a::after {
  display: none !important;
}

.home-page .hero {
  padding-top: clamp(5.25rem, 9vw, 7.25rem) !important;
}

.home-page .hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr) !important;
  align-items: center !important;
  text-align: left !important;
}

.home-page .hero-text {
  justify-items: start !important;
}

.home-page .hero-search {
  max-width: 720px;
  padding: 26px 0 0 !important;
}

.home-page .hero-search .search-bar {
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .home-page .hero-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .home-page .home-header {
    position: sticky !important;
    padding: 0 !important;
  }

  .home-page .home-header-inner {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
}

.home-page .search-results {
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  max-width: none !important;
  border: 1px solid #ccd7e5 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98)) !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14) !important;
}

.home-page .search-result-item:hover,
.home-page .search-result-item.active {
  border-color: #c5d8ff !important;
  background: linear-gradient(135deg, #eaf1ff, #eefbf8) !important;
}

.home-page .result-title {
  color: #101828 !important;
}

.home-page .result-meta,
.home-page .search-empty {
  color: #5d6b82 !important;
}

/* Production homepage sections */
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid #cbe2df;
  border-radius: 999px;
  background: #eefbf8;
  color: #0f5f59;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 820;
  text-transform: uppercase;
}

.use-cases-pro {
  width: min(var(--qt-container, 1180px), calc(100vw - 32px)) !important;
  margin: clamp(34px, 6vw, 72px) auto 0 !important;
  padding: clamp(24px, 4vw, 34px) !important;
  border: 1px solid rgba(221, 231, 241, 0.95);
  border-radius: 24px;
  background:
    radial-gradient(560px 220px at 100% 0%, rgba(15, 118, 110, 0.1), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,251,255,0.72));
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.workflow-header {
  display: grid;
  justify-items: start;
  max-width: 780px !important;
  margin: 0 0 22px !important;
  text-align: left !important;
}

.workflow-header h2 {
  font-size: clamp(1.9rem, 4vw, 3rem) !important;
}

.workflow-header p {
  max-width: 690px;
}

.usecases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.usecase-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 224px !important;
  padding: 20px !important;
  border-radius: 16px !important;
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(37, 99, 235, 0.11), transparent 72%),
    #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.usecase-card::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 24%, rgba(255,255,255,0.7), transparent 58%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 180ms ease, transform 520ms cubic-bezier(.22,1,.36,1);
}

.usecase-card:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.usecase-card::after {
  content: "Open";
  display: inline-flex !important;
  position: absolute !important;
  right: 18px;
  bottom: 18px;
  width: auto !important;
  height: auto !important;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf1ff !important;
  color: #2563eb !important;
  font-size: 0.76rem;
  font-weight: 820;
  opacity: 1 !important;
}

.usecase-icon {
  width: 46px !important;
  height: 46px !important;
  margin-bottom: 16px !important;
  border-radius: 12px !important;
  background: #eef6f4 !important;
  color: #0f766e !important;
  font-size: 0 !important;
  font-weight: 900;
}

.usecase-icon::after {
  font-size: 0.78rem;
  line-height: 1;
}

.usecase-card:nth-child(1) .usecase-icon::after { content: "DEV"; }
.usecase-card:nth-child(2) .usecase-icon::after { content: "TXT"; }
.usecase-card:nth-child(3) .usecase-icon::after { content: "FIN"; }
.usecase-card:nth-child(4) .usecase-icon::after { content: "WEB"; }
.usecase-card:nth-child(5) .usecase-icon::after { content: "YT"; }
.usecase-card:nth-child(6) .usecase-icon::after { content: "FIT"; }

.usecase-meta {
  display: block;
  margin-bottom: 7px;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.usecase-card h3 {
  margin: 0 !important;
  font-size: 1.1rem !important;
}

.usecase-card p {
  max-width: 92%;
  margin-top: 9px !important;
  padding-bottom: 28px;
}

.platform-command {
  width: min(var(--qt-container, 1180px), calc(100vw - 32px));
  margin: clamp(40px, 7vw, 82px) auto !important;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(221, 231, 241, 0.95);
  border-radius: 26px;
  background:
    radial-gradient(520px 240px at 0% 100%, rgba(37, 99, 235, 0.12), transparent 72%),
    radial-gradient(420px 220px at 100% 0%, rgba(15, 118, 110, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.9));
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.1);
}

.platform-command h2 {
  max-width: 560px;
  color: #101828 !important;
  font-size: clamp(2rem, 4.5vw, 3.3rem) !important;
  line-height: 1.04 !important;
}

.platform-command-copy p {
  max-width: 570px;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.75;
}

.platform-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.platform-command-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 780;
}

.platform-command-actions a:first-child {
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #ffffff;
}

.platform-command-actions a:last-child {
  border: 1px solid #cfd8e6;
  background: #ffffff;
  color: #101828;
}

.platform-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-command-grid article {
  min-height: 230px;
  padding: 18px;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.platform-command-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
}

.platform-command-grid h3 {
  color: #101828 !important;
  font-size: 1.08rem !important;
}

.platform-command-grid p {
  margin-top: 10px;
  line-height: 1.65;
}

.footer-actions {
  align-items: center;
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

@media (max-width: 980px) {
  .usecases-grid,
  .platform-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .platform-command {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .use-cases-pro,
  .platform-command {
    width: min(100% - 24px, var(--qt-container, 1180px)) !important;
    padding: 18px !important;
    border-radius: 18px;
  }

  .usecases-grid,
  .platform-command-grid {
    grid-template-columns: 1fr !important;
  }

  .usecase-card,
  .platform-command-grid article {
    min-height: auto !important;
  }

  .platform-command-actions {
    display: grid;
  }

  .platform-command-actions a {
    width: 100%;
  }
}

.home-page .home-nav-cta {
  background: linear-gradient(135deg, #0f172a, #2563eb) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28) !important;
}

.home-page .home-nav-cta:hover {
  background: linear-gradient(135deg, #0f766e, #1d4ed8) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28) !important;
}
