:root {
  --qeres-line: rgba(255, 255, 255, 0.12);
  --qeres-text: #f3f4ff;
  --qeres-muted: #c7c9e9;
  --radius-lg: 18px;
  --max: 1220px;
  --topbar-height: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 520px at -6% -10%, rgba(108, 72, 196, 0.28), rgba(34, 20, 59, 0) 65%),
    radial-gradient(1000px 460px at 108% 2%, rgba(56, 189, 248, 0.18), rgba(16, 9, 32, 0) 60%),
    linear-gradient(180deg, #191331 0%, #15102b 44%, #110d22 100%);
  color: var(--qeres-text);
  line-height: 1.4;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: 76px 0; }

[data-site-header] {
  display: block;
  min-height: var(--topbar-height, 64px);
  height: var(--topbar-height, 64px);
}

.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  backdrop-filter: blur(12px);
  background:
    linear-gradient(90deg, rgba(27, 21, 51, 0.92), rgba(26, 18, 55, 0.9), rgba(18, 18, 45, 0.9)),
    rgba(27, 21, 51, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-main {
  min-height: var(--topbar-height, 64px);
  display: flex;
  align-items: center;
}

.topbar-main-inner {
  width: min(var(--max), 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.topbar-left { min-width: 0; display: flex; align-items: center; gap: 10px; }
.brand-company { display: inline-flex; align-items: center; min-width: 0; }
.company-wordmark { width: 172px; height: auto; aspect-ratio: 333 / 93; object-fit: contain; display: block; }
.menu-toggle { display: none; }
.topbar-search { width: min(100%, 520px); justify-self: center; }
.topbar-controls { display: flex; align-items: center; gap: 8px; justify-self: end; white-space: nowrap; }
.control-pill { border-radius: 999px; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, rgba(192, 38, 211, 0.95), rgba(147, 51, 234, 0.92));
}
.btn-ghost {
  color: #f2f4ff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.btn-surface {
  color: #eef0ff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.card {
  border: 1px solid var(--qeres-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(22, 8, 35, 0.92), rgba(14, 7, 24, 0.94));
}

.hero { padding: 68px 0 34px; }
.hero-platform { padding-top: 0; padding-bottom: 30px; }
.hero-platform-fullbleed { width: 100%; }
.hero-platform-summary { margin-top: 16px; }
.hero-platform-carousel {
  position: relative;
  height: clamp(430px, 74vh, 660px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f0b1f;
}
.hero-platform-media,
.hero-platform-overlay { position: absolute; inset: 0; }
.hero-platform-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.04) brightness(0.78); }
.hero-platform-content {
  position: absolute;
  z-index: 2;
  width: min(var(--max), 92vw);
  left: 50%;
  transform: translateX(-50%);
  bottom: 76px;
}
.hero-platform-content h1 { margin: 0; font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.04; max-width: 18ch; }
.hero-platform-content p { margin: 12px 0 0; color: rgba(244,246,255,0.88); max-width: 72ch; }
.hero-platform-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.hero-platform-metrics { margin-top: 14px; display: grid; gap: 10px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#home-counts, #home-extra-stats { min-height: 110px; }
.metric {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 9, 27, 0.76);
  padding: 12px 12px 10px;
  min-height: 98px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
.section-head p { margin: 8px 0 0; color: var(--qeres-muted); }

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.decision-card { padding: 18px; display: grid; gap: 10px; }
.decision-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.decision-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}
.decision-list { margin: 0; padding-left: 18px; color: #d8ddf6; }

.home-change {
  padding: 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
}
.home-change-logo {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  min-height: 102px;
  display: grid;
  place-items: center;
  padding: 14px;
}
.home-change-logo img { width: 160px; }

@media (max-width: 1080px) {
  .topbar-main-inner { grid-template-columns: auto minmax(220px, 1fr) auto; }
  .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --topbar-height: 58px; }
  .topbar-main-inner { grid-template-columns: auto 1fr auto; }
  .topbar-search, .topbar-lang, .topbar-login, .topbar-cta { display: none; }
  .menu-toggle { display: inline-flex; border: 1px solid var(--qeres-line); background: rgba(20,0,34,0.85); color: #fff; }
  .hero-platform-carousel { height: clamp(330px, 62vh, 470px); }
  .hero-platform-content { bottom: 56px; }
  .hero-platform-content h1 { font-size: clamp(1.55rem, 8.5vw, 2.6rem); }
  .hero-platform-content p { font-size: 0.9rem; }
  .hero-platform-actions .btn { width: 100%; }
  .metrics, .decision-grid { grid-template-columns: 1fr; }
  #home-counts, #home-extra-stats { min-height: 314px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .home-change { grid-template-columns: 1fr; }
}
