/* Quint Discovery - dark mode product-first portal */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

:root {
  --quint-purple: #771aaf;
  --quint-red: #e45526;
  --quint-purple-dark: #4f1aaf;
  --quint-lavender: #8373d2;
  --ink: #f4eefb;
  --ink-soft: #b9adc8;
  --line: rgba(194, 160, 255, 0.16);
  --surface: #1a1228;
  --surface-2: #221833;
  --bg: #0b0712;
  --bg-deep: #140d1f;
  --glow-purple: rgba(119, 26, 175, 0.55);
  --glow-red: rgba(228, 85, 38, 0.4);
  --font: "Open Sans", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Ambient aurora */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(119, 26, 175, 0.38), transparent 55%),
    radial-gradient(700px 480px at -10% 90%, rgba(228, 85, 38, 0.22), transparent 50%),
    radial-gradient(600px 400px at 50% 50%, rgba(79, 26, 175, 0.18), transparent 60%),
    linear-gradient(180deg, #10081a 0%, var(--bg) 40%, #08050d 100%);
  pointer-events: none;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aurora-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  will-change: transform;
}

.aurora-orb--a {
  width: 380px;
  height: 380px;
  top: 10%;
  left: -80px;
  background: var(--glow-purple);
}

.aurora-orb--b {
  width: 320px;
  height: 320px;
  bottom: 5%;
  right: -60px;
  background: var(--glow-red);
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 26, 175, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  mix-blend-mode: screen;
  will-change: transform;
}

body.is-pointer-fine .cursor-glow.is-on {
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr minmax(180px, 320px) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(11, 7, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  justify-self: start;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand-lockup img {
  height: 36px;
  width: auto;
}

.brand-lockup .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header-search {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 160, 255, 0.22);
  background: rgba(244, 238, 251, 0.08);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s;
}

.header-search svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.header-search:hover,
.header-search:focus-visible {
  outline: none;
  color: var(--ink);
  border-color: rgba(131, 115, 210, 0.55);
  background: rgba(244, 238, 251, 0.12);
  box-shadow: 0 0 24px rgba(119, 26, 175, 0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(119, 26, 175, 0.28);
  box-shadow: 0 0 24px rgba(119, 26, 175, 0.25);
}

.seg-control {
  display: inline-flex;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.seg-control button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, box-shadow 0.25s;
}

.seg-control button.is-active {
  background: linear-gradient(135deg, var(--quint-purple), var(--quint-purple-dark));
  color: #fff;
  box-shadow: 0 0 20px rgba(119, 26, 175, 0.45);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--quint-lavender);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--quint-lavender);
  box-shadow: 0 0 20px rgba(131, 115, 210, 0.35);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button.is-active {
  background: var(--quint-red);
  color: #fff;
}

.user-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.4rem 0.75rem;
}

/* Layout */
.page {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 5rem;
  position: relative;
  z-index: 1;
}

.page--wide {
  width: min(1200px, calc(100% - 2.5rem));
}

.deck-hero {
  min-height: calc(100vh - var(--header-h) - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quint-red);
  text-shadow: 0 0 24px rgba(228, 85, 38, 0.45);
}

h1,
.h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
  background: linear-gradient(135deg, #fff 20%, #d6c4f5 70%, #f0a070 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2,
.h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  font-weight: 400;
}

.deck-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.deck-section:first-of-type {
  border-top: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--quint-purple), var(--quint-purple-dark));
  color: #fff;
  box-shadow: 0 0 0 0 rgba(119, 26, 175, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(119, 26, 175, 0.55);
}

.btn-accent {
  background: var(--quint-red);
  color: #fff;
}

.btn-accent:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(228, 85, 38, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--quint-lavender);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(119, 26, 175, 0.95) 0%, rgba(79, 26, 175, 0.9) 45%, #12081f 100%);
}

.login-shell::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -18%;
  width: min(720px, 70vw);
  height: min(720px, 70vw);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  animation: pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.login-shell::after {
  content: "";
  position: absolute;
  bottom: -42%;
  left: 18%;
  width: min(900px, 85vw);
  height: min(900px, 85vw);
  background: radial-gradient(circle, rgba(228, 85, 38, 0.45), transparent 70%);
  animation: pulse-glow 7s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

.login-brand {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem);
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.login-brand::before,
.login-brand::after {
  content: none;
}

.login-brand-logo,
.login-brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 160px;
  margin: 0;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.login-brand h1 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.login-brand p {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  font-size: 1.15rem;
  opacity: 0.92;
}

.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: transparent;
}

.login-card {
  width: min(400px, 100%);
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(34, 24, 51, 0.95), rgba(20, 13, 31, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-card h2 {
  margin-bottom: 0.35rem;
}

.login-card .hint {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field input {
  height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-deep);
  color: var(--ink);
}

.field input::placeholder {
  color: rgba(185, 173, 200, 0.55);
}

.field input:focus {
  outline: 2px solid rgba(119, 26, 175, 0.55);
  border-color: var(--quint-lavender);
  box-shadow: 0 0 24px rgba(119, 26, 175, 0.25);
}

.login-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.login-step {
  display: grid;
  gap: 0.5rem;
}

.login-steps {
  position: relative;
}

.login-step[hidden] {
  display: none !important;
}

.login-brand.is-pending-motion .login-reveal,
.login-brand.is-pending-motion .login-title,
.login-card.is-pending-motion {
  opacity: 0;
}

.login-title .login-title-word {
  display: inline-block;
  will-change: transform, opacity;
}

.login-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(228, 85, 38, 0.15);
  border: 1px solid rgba(228, 85, 38, 0.45);
  color: #ffb59a;
  font-size: 0.92rem;
}

.login-success {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.login-card .btn-ghost {
  margin-top: 0.25rem;
}

/* Home grid */
.view-panel {
  margin-bottom: 2.75rem;
}

.view-panel[hidden] {
  display: none !important;
}

.view-panel .suite-block:last-child {
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.home-view-toggle {
  display: flex;
  margin: 1.25rem 0 2rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip.is-active {
  background: rgba(119, 26, 175, 0.28);
  border-color: var(--quint-lavender);
  color: #fff;
  box-shadow: 0 0 18px rgba(119, 26, 175, 0.35);
}

.suite-block {
  margin-bottom: 2.75rem;
}

.suite-label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.solution-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.solution-card {
  --spot-x: 50%;
  --spot-y: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 220px;
  padding: 1.4rem 1.35rem 1.25rem;
  background:
    radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(119, 26, 175, 0.28), transparent 45%),
    linear-gradient(165deg, rgba(34, 24, 51, 0.95), rgba(18, 12, 28, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(194, 160, 255, 0.45), transparent 40%, rgba(228, 85, 38, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.3s;
}

.solution-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(194, 160, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(119, 26, 175, 0.2);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-card[data-suite="assessment"] {
  background:
    radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(119, 26, 175, 0.32), transparent 45%),
    linear-gradient(165deg, rgba(40, 22, 64, 0.98), rgba(18, 12, 28, 0.95));
}

.solution-card[data-suite="development"] {
  background:
    radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(228, 85, 38, 0.22), transparent 45%),
    linear-gradient(165deg, rgba(48, 22, 28, 0.95), rgba(18, 12, 28, 0.95));
}

.solution-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.solution-card p {
  margin: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(119, 26, 175, 0.28);
  color: #d9c8f5;
}

.badge--red {
  background: rgba(228, 85, 38, 0.22);
  color: #ffb08a;
}

.card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--quint-lavender);
}

.extra-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(26, 18, 40, 0.8);
  border: 1px dashed var(--line);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.extra-strip strong {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.extra-strip a {
  font-weight: 700;
  color: var(--quint-lavender);
  transition: color 0.2s, text-shadow 0.2s;
}

.extra-strip a:hover {
  color: var(--quint-red);
  text-shadow: 0 0 16px rgba(228, 85, 38, 0.5);
}

/* Product page */
.product-top {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: 1rem;
}

.product-panel {
  background: linear-gradient(165deg, rgba(34, 24, 51, 0.95), rgba(18, 12, 28, 0.9));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.product-panel h2 {
  font-size: 1.35rem;
}

.product-panel ol,
.product-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.product-panel li + li {
  margin-top: 0.45rem;
}

.product-cover {
  margin: 1.5rem 0 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.product-cover img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.product-hero {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  background-color: #1a0a14;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(11, 7, 18, 0.78) 0%, rgba(11, 7, 18, 0.35) 52%, rgba(11, 7, 18, 0.08) 100%),
    linear-gradient(180deg, rgba(11, 7, 18, 0.2) 0%, rgba(11, 7, 18, 0.55) 100%);
  pointer-events: none;
}

.product-hero__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.product-hero__kicker {
  color: #ffb59a;
  margin-bottom: 0.75rem;
}

.product-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.product-hero__lede {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28rem;
}

.product-hero .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-hero__ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.product-hero__ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 720px) {
  .product-hero {
    min-height: min(68vh, 520px);
    background-position: 70% center;
    align-items: end;
  }

  .product-hero__overlay {
    background:
      linear-gradient(180deg, rgba(11, 7, 18, 0.25) 0%, rgba(11, 7, 18, 0.88) 62%, rgba(11, 7, 18, 0.95) 100%);
  }
}

.demo-rail {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: linear-gradient(160deg, var(--quint-purple), var(--quint-purple-dark) 55%, #2a0f4a);
  color: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 60px rgba(119, 26, 175, 0.45), 0 0 80px rgba(119, 26, 175, 0.25);
  overflow: hidden;
}

.demo-rail::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

.demo-rail h2 {
  color: #fff;
  font-size: 1.5rem;
  position: relative;
}

.demo-rail p {
  margin: 0;
  opacity: 0.92;
  position: relative;
}

.demo-rail .btn {
  background: #fff;
  color: var(--quint-purple);
  border-color: #fff;
  position: relative;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: cta-pulse 2.8s ease-in-out infinite;
}

.demo-rail .btn:hover {
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
  animation: none;
}

.demo-rail .btn-secondary-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  animation: none;
  box-shadow: none;
}

.assess-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  position: relative;
}

.assess-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.assess-list--report li {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
}

.assess-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.assess-meta strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.assess-family {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  color: #fff;
}

.btn-assess {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  background: #fff;
  color: var(--quint-purple);
  border-radius: 999px;
  font-weight: 700;
  animation: none;
  box-shadow: none;
}

.btn-assess[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-assess:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
}

.assess-empty {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--quint-lavender);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.related a:hover {
  transform: translateY(-2px);
  border-color: var(--quint-lavender);
  box-shadow: 0 0 20px rgba(131, 115, 210, 0.3);
}

.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0 0;
}

.journey span {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--ink-soft);
  border: 1px solid transparent;
}

.journey span.is-here {
  background: linear-gradient(135deg, var(--quint-purple), var(--quint-purple-dark));
  color: #fff;
  box-shadow: 0 0 22px rgba(119, 26, 175, 0.45);
}

.journey .arrow {
  color: var(--quint-lavender);
  font-weight: 700;
  border: 0;
  background: none;
  padding: 0;
}

.anti {
  background: rgba(228, 85, 38, 0.12);
  border-left: 3px solid var(--quint-red);
  padding: 1rem 1.15rem;
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
}

.kb-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.kb-hint button {
  border: 0;
  background: none;
  color: var(--quint-lavender);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.placeholder-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-deep);
  color: var(--ink-soft);
  font-size: 0.9rem;
  border: 1px solid var(--line);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.case-item {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.case-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.case-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* Launcher overlay */
.launcher-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 2, 10, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: start center;
  padding: min(12vh, 6rem) 1rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.launcher-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.launcher-panel {
  width: min(700px, 100%);
  background: linear-gradient(180deg, #1c1430, #120c1c);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(119, 26, 175, 0.18);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(70vh, 560px);
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.launcher-overlay.is-open .launcher-panel {
  transform: translateY(0) scale(1);
}

.launcher-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 160, 255, 0.22);
  background: rgba(244, 238, 251, 0.08);
  color: var(--ink-soft);
}

.launcher-input-wrap:focus-within {
  border-color: rgba(131, 115, 210, 0.55);
  box-shadow: 0 0 24px rgba(119, 26, 175, 0.22);
  color: var(--ink);
}

.launcher-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.launcher-input::placeholder {
  color: var(--ink-soft);
}

.launcher-results {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.25rem 0.15rem 0.5rem;
}

.launcher-group-label {
  margin: 0;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.launcher-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  text-align: left;
  font: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.launcher-item:hover,
.launcher-item.is-active {
  background: rgba(119, 26, 175, 0.22);
  border-color: rgba(131, 115, 210, 0.35);
}

.launcher-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.launcher-item span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.launcher-empty {
  margin: 0;
  padding: 1rem 0.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.launcher-hint {
  margin: 0;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* KB overlay */
.kb-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 2, 10, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  justify-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.kb-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.kb-panel {
  width: 50%;
  max-width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1c1430, #120c1c);
  padding: 1.5rem;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55), 0 0 80px rgba(119, 26, 175, 0.15);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kb-overlay.is-open .kb-panel {
  transform: translateX(0);
}

.kb-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kb-panel h2 {
  font-size: 1.25rem;
  margin: 0;
}

.kb-search-input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 1rem;
  background: var(--bg-deep);
  color: var(--ink);
}

.kb-search-input:focus {
  outline: 2px solid rgba(119, 26, 175, 0.5);
  box-shadow: 0 0 24px rgba(119, 26, 175, 0.25);
}

.kb-results {
  display: grid;
  gap: 0.75rem;
  overflow: auto;
}

.kb-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 18, 40, 0.9);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.kb-card:hover {
  border-color: rgba(194, 160, 255, 0.4);
  transform: translateX(-2px);
  box-shadow: 0 0 24px rgba(119, 26, 175, 0.2);
}

.kb-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #fff;
}

.kb-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .deck-hero h1,
  .deck-hero .lede,
  .deck-hero .btn-row,
  .deck-hero .kicker {
    animation: rise 0.8s var(--ease) both;
  }

  .deck-hero .lede {
    animation-delay: 0.1s;
  }

  .deck-hero .btn-row {
    animation-delay: 0.18s;
  }

  .solution-card {
    animation: rise 0.65s var(--ease) both;
  }

  .solution-card:nth-child(2) {
    animation-delay: 0.06s;
  }

  .solution-card:nth-child(3) {
    animation-delay: 0.12s;
  }

  .solution-card:nth-child(4) {
    animation-delay: 0.18s;
  }

  .demo-rail {
    animation: rise 0.75s var(--ease) 0.15s both;
  }

  .aurora-orb--a {
    animation: drift-a 14s ease-in-out infinite;
  }

  .aurora-orb--b {
    animation: drift-b 18s ease-in-out infinite;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 30px);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-50px, -25px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-orb,
  .cursor-glow,
  .demo-rail .btn {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav-toggle {
    display: grid;
    grid-column: 4;
    grid-row: 1;
  }

  .header-left {
    grid-column: 1;
    grid-row: 1;
  }

  .header-search {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    justify-self: stretch;
  }

  .nav-actions {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
    background: rgba(11, 7, 18, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    justify-self: stretch;
  }

  .site-header.is-nav-open {
    height: auto;
  }

  .site-header.is-nav-open .nav-actions {
    display: flex;
  }

  .nav-actions .seg-control,
  .nav-actions .lang-toggle {
    align-self: flex-start;
  }

  .nav-actions .nav-link,
  .nav-actions .icon-btn {
    width: fit-content;
  }
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 42vh;
  }

  .solution-grid,
  .solution-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .product-top {
    grid-template-columns: 1fr;
  }

  .demo-rail {
    position: static;
  }

  .kb-panel {
    width: 100%;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-search span {
    display: none;
  }

  .header-search {
    width: 42px;
    max-width: 42px;
    padding: 0;
    justify-content: center;
    justify-self: end;
  }

  .brand-lockup .eyebrow {
    display: none;
  }

  .solution-grid,
  .solution-grid--4 {
    grid-template-columns: 1fr;
  }

  h1,
  .h1 {
    max-width: none;
  }

  .user-chip {
    display: none;
  }

  .page,
  .page--wide {
    width: min(1120px, calc(100% - 1.5rem));
  }
}

[data-lang="en"] [data-i18n-it] {
  display: none !important;
}

[data-lang="it"] [data-i18n-en] {
  display: none !important;
}
