:root {
  color-scheme: light;
  --qelumi-blue: #211b63;
  --qelumi-blue-2: #352b9a;
  --qelumi-indigo: #5548dc;
  --qelumi-coral: #ff665f;
  --qelumi-cream: #fffaf3;
  --qelumi-ink: #172033;
  --qelumi-muted: #5e687b;
  --qelumi-line: #e4e7ef;
  --qelumi-card: #ffffff;
  --qelumi-success: #087f63;
  --qelumi-warning: #9a5a00;
  --qelumi-danger: #b42336;
  --shadow-sm: 0 8px 30px rgba(33, 27, 99, 0.08);
  --shadow-lg: 0 24px 70px rgba(33, 27, 99, 0.15);
  --page-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 102, 95, 0.12), transparent 24rem),
    radial-gradient(circle at 3% 18%, rgba(85, 72, 220, 0.10), transparent 26rem),
    var(--qelumi-cream);
  color: var(--qelumi-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }

a { color: var(--qelumi-blue-2); }
a:hover { color: var(--qelumi-coral); }

:focus-visible {
  outline: 3px solid rgba(85, 72, 220, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--qelumi-blue);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(33, 27, 99, 0.96);
  box-shadow: 0 8px 28px rgba(24, 19, 79, 0.18);
  color: #fff;
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--page-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-link:hover { color: #fff; }

.brand-link img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.brand-word { font-size: 1.45rem; font-weight: 850; letter-spacing: -0.03em; }
.brand-tagline { display: block; color: #dcd9ff; font-size: 0.68rem; line-height: 1.1; font-weight: 550; }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 12px;
  color: #e8e6ff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.nav-links .nav-app {
  margin-left: 6px;
  background: var(--qelumi-coral);
  color: #211b63;
}

.nav-links .nav-app:hover { background: #ff817b; color: #211b63; }

.menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.page-shell {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(33, 27, 99, 0.09);
  border-radius: 32px;
  padding: clamp(28px, 6vw, 68px);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-lg);
}

.hero::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(85,72,220,.14), rgba(255,102,95,.18));
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--qelumi-indigo);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--qelumi-blue);
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--qelumi-muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions,
.button-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 18px;
  background: var(--qelumi-blue);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  background: var(--qelumi-blue-2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(33,27,99,.18);
  transform: translateY(-1px);
}

.button-secondary { border-color: #d9d6f5; background: #f0efff; color: var(--qelumi-blue); }
.button-secondary:hover { background: #e4e1ff; color: var(--qelumi-blue); }
.button-coral { background: var(--qelumi-coral); color: #211b63; }
.button-coral:hover { background: #ff7b75; color: #211b63; }
.button-danger { background: var(--qelumi-danger); }
.button-danger:hover { background: #941c2c; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

.meta-line {
  margin-top: 18px;
  color: var(--qelumi-muted);
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  margin-top: 42px;
  align-items: start;
}

.content { min-width: 0; }

.side-nav {
  position: sticky;
  top: 96px;
  order: 2;
  border: 1px solid var(--qelumi-line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-sm);
}

.side-nav strong { display: block; margin-bottom: 8px; color: var(--qelumi-blue); }
.side-nav a { display: block; border-radius: 9px; padding: 7px 9px; color: var(--qelumi-muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.side-nav a:hover { background: #f0efff; color: var(--qelumi-blue); }

.section {
  scroll-margin-top: 100px;
  margin-top: 46px;
}

.section:first-child { margin-top: 0; }

.section h2 {
  margin: 0 0 14px;
  color: var(--qelumi-blue);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section h3 {
  margin: 28px 0 8px;
  color: #28324a;
  font-size: 1.12rem;
  line-height: 1.35;
}

.section p { margin: 10px 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--qelumi-line);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}

.card h2,
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: #eeecff;
  color: var(--qelumi-blue);
  font-size: 1.3rem;
}

.callout {
  margin: 22px 0;
  border: 1px solid #d9d6f5;
  border-left: 5px solid var(--qelumi-indigo);
  border-radius: 14px;
  padding: 16px 18px;
  background: #f4f3ff;
}

.callout.success { border-color: #b8eadb; border-left-color: var(--qelumi-success); background: #effbf7; }
.callout.warning { border-color: #f1d6a7; border-left-color: #d58a0d; background: #fff8e9; }
.callout.danger { border-color: #f1c0c8; border-left-color: var(--qelumi-danger); background: #fff2f4; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.plain-list,
.check-list,
.number-list { padding-left: 1.3rem; }
.plain-list li,
.check-list li,
.number-list li { margin: 8px 0; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { position: absolute; left: 0; top: 1px; color: var(--qelumi-success); font-weight: 900; content: "✓"; }

.data-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--qelumi-line);
  border-radius: 16px;
  background: #fff;
  font-size: .92rem;
}

.data-table th,
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--qelumi-line); text-align: left; vertical-align: top; }
.data-table th { width: 31%; background: #f5f4ff; color: var(--qelumi-blue); }
.data-table tr:last-child th,
.data-table tr:last-child td { border-bottom: 0; }

.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-number {
  position: absolute;
  right: 16px;
  top: 10px;
  color: rgba(33,27,99,.08);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.steps {
  counter-reset: qelumi-step;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 42px;
  margin: 12px 0;
  padding-left: 48px;
  counter-increment: qelumi-step;
}

.steps li::before {
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--qelumi-blue);
  color: #fff;
  font-weight: 850;
  content: counter(qelumi-step);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 34px;
}

.mini-demo {
  overflow: hidden;
  border: 1px solid var(--qelumi-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.demo-stage {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(160deg, #211b63 0 24%, #f5f6fa 24% 100%);
}

.demo-phone {
  position: absolute;
  inset: 18px 22px;
  overflow: hidden;
  border: 5px solid #11172a;
  border-radius: 25px;
  background: #f7f8fb;
  box-shadow: 0 20px 38px rgba(16,15,42,.3);
}

.demo-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--qelumi-blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.demo-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--qelumi-coral); }
.demo-screen { padding: 13px; }
.demo-languages { display: flex; justify-content: space-between; color: #5b6475; font-size: .68rem; font-weight: 800; }
.demo-input { height: 38px; margin-top: 9px; border: 2px solid #dedcf5; border-radius: 10px; padding: 9px 11px; background: #fff; color: #1c2435; font-size: .72rem; }
.demo-action { width: 100%; height: 31px; margin-top: 8px; border: 0; border-radius: 9px; background: var(--qelumi-indigo); color: #fff; font-size: .67rem; font-weight: 800; }
.demo-result { margin-top: 9px; border-radius: 11px; padding: 10px; background: #fff; color: var(--qelumi-blue); font-size: .7rem; font-weight: 800; opacity: 0; transform: translateY(12px); }
.demo-result span { display: block; margin-top: 4px; color: var(--qelumi-muted); font-weight: 600; }
.demo-pointer { position: absolute; z-index: 5; left: 50%; top: 62%; width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50% 50% 50% 8px; background: var(--qelumi-coral); box-shadow: 0 3px 12px rgba(0,0,0,.25); transform: rotate(-20deg); opacity: 0; }
.demo-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 52px; margin-top: 12px; border-radius: 12px; background: #fff; }
.demo-wave i { width: 5px; height: 10px; border-radius: 9px; background: var(--qelumi-coral); }
.demo-bubble { max-width: 76%; margin: 9px 0; border-radius: 12px 12px 12px 3px; padding: 8px 10px; background: #e7e4ff; color: var(--qelumi-blue); font-size: .63rem; opacity: 0; transform: translateY(8px); }
.demo-bubble.right { margin-left: auto; border-radius: 12px 12px 3px 12px; background: #ffe3df; color: #7e2626; }
.demo-card { display: flex; align-items: center; gap: 9px; margin-top: 9px; border-radius: 12px; padding: 10px; background: #fff; color: #30384a; font-size: .67rem; opacity: .38; transform: scale(.96); }
.demo-card i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #e9e6ff; color: var(--qelumi-blue); font-style: normal; }

.mini-demo.is-playing .demo-pointer { animation: demo-pointer 5.6s ease-in-out both; }
.mini-demo.is-playing .demo-result { animation: demo-result 5.6s ease both; }
.mini-demo.is-playing .demo-input::after { animation: demo-type 5.6s steps(12, end) both; }
.mini-demo.is-playing .demo-wave i { animation: demo-wave 0.7s ease-in-out infinite alternate; }
.mini-demo.is-playing .demo-wave i:nth-child(2n) { animation-delay: .16s; }
.mini-demo.is-playing .demo-wave i:nth-child(3n) { animation-delay: .3s; }
.mini-demo.is-playing .demo-bubble.first { animation: demo-bubble 5.6s 1s ease both; }
.mini-demo.is-playing .demo-bubble.right { animation: demo-bubble 5.6s 2.4s ease both; }
.mini-demo.is-playing .demo-bubble.translated { animation: demo-bubble 5.6s 3.8s ease both; }
.mini-demo.is-playing .demo-card:nth-child(1) { animation: demo-card 5.6s .6s ease both; }
.mini-demo.is-playing .demo-card:nth-child(2) { animation: demo-card 5.6s 1.7s ease both; }
.mini-demo.is-playing .demo-card:nth-child(3) { animation: demo-card 5.6s 2.8s ease both; }

@keyframes demo-pointer {
  0%, 10% { opacity: 0; left: 18%; top: 47%; }
  18% { opacity: 1; left: 22%; top: 47%; }
  42% { opacity: 1; left: 54%; top: 66%; }
  48% { transform: rotate(-20deg) scale(.72); }
  54%, 100% { opacity: 0; }
}

@keyframes demo-result {
  0%, 50% { opacity: 0; transform: translateY(12px); }
  60%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes demo-wave { from { height: 8px; } to { height: 38px; } }
@keyframes demo-bubble { 0%, 8% { opacity: 0; transform: translateY(8px); } 18%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes demo-card { 0%, 7% { opacity: .38; transform: scale(.96); } 14%, 28% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 3px rgba(85,72,220,.16); } 38%, 100% { opacity: .72; transform: scale(1); box-shadow: none; } }

.demo-caption { padding: 15px 17px 17px; }
.demo-caption strong { display: block; color: var(--qelumi-blue); }
.demo-caption p { margin: 4px 0 12px; color: var(--qelumi-muted); font-size: .85rem; }
.demo-replay { border: 0; border-radius: 10px; padding: 8px 11px; background: #efedff; color: var(--qelumi-blue); font-size: .8rem; font-weight: 800; cursor: pointer; }

.faq-list { display: grid; gap: 12px; margin-top: 18px; }
.faq-list details { border: 1px solid var(--qelumi-line); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 5px 18px rgba(33,27,99,.05); }
.faq-list summary { position: relative; padding: 17px 46px 17px 18px; color: #28324a; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 18px; top: 16px; color: var(--qelumi-indigo); font-size: 1.2rem; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { border-top: 1px solid var(--qelumi-line); padding: 5px 18px 16px; color: var(--qelumi-muted); }

.help-search {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 2px solid #d8d5f2;
  border-radius: 15px;
  padding: 12px 16px;
  background: #fff;
  color: var(--qelumi-ink);
}

.help-empty { display: none; margin-top: 20px; border-radius: 14px; padding: 18px; background: #fff2f4; color: var(--qelumi-danger); }

.form-panel {
  max-width: 690px;
  margin: 30px auto 0;
  border: 1px solid var(--qelumi-line);
  border-radius: 24px;
  padding: clamp(20px, 5vw, 34px);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.field { margin-top: 17px; }
.field label { display: block; margin-bottom: 6px; color: #344056; font-size: .9rem; font-weight: 800; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 49px;
  border: 1px solid #cfd3df;
  border-radius: 13px;
  padding: 11px 13px;
  background: #fff;
  color: var(--qelumi-ink);
}
.field textarea { min-height: 145px; resize: vertical; }
.field-hint { margin-top: 5px; color: var(--qelumi-muted); font-size: .8rem; }

.status-box {
  margin-top: 18px;
  border: 1px solid #d9d6f5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #f4f3ff;
  color: var(--qelumi-blue);
}
.status-box[data-tone="success"] { border-color: #b8eadb; background: #effbf7; color: var(--qelumi-success); }
.status-box[data-tone="danger"] { border-color: #f1c0c8; background: #fff2f4; color: var(--qelumi-danger); }
.status-box[data-tone="warning"] { border-color: #f1d6a7; background: #fff8e9; color: var(--qelumi-warning); }

.account-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 0;
  border-radius: 16px;
  padding: 14px;
  background: #f4f3ff;
}
.account-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--qelumi-blue); color: #fff; font-weight: 850; }
.account-summary strong,
.account-summary span { display: block; overflow-wrap: anywhere; }
.account-summary span { color: var(--qelumi-muted); font-size: .85rem; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--qelumi-muted); font-size: .8rem; text-transform: uppercase; }
.divider::before,
.divider::after { height: 1px; flex: 1; background: var(--qelumi-line); content: ""; }

.inline-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--qelumi-muted); }
.inline-check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--qelumi-blue); }

.page-footer {
  border-top: 1px solid rgba(33,27,99,.11);
  background: #fff;
}

.footer-shell {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--qelumi-muted);
  font-size: .86rem;
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a { font-weight: 700; text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-shell { flex-wrap: wrap; padding: 10px 0; }
  .nav-links {
    width: 100%;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    transition: max-height .25s ease, padding .25s ease;
  }
  .nav-links.is-open { max-height: 430px; padding: 6px 0 10px; }
  .nav-links a { text-align: center; }
  .nav-links .nav-app { margin-left: 0; }
  .layout { grid-template-columns: 1fr; }
  .side-nav { position: static; order: 0; }
  .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .page-shell { padding-top: 24px; }
  .hero { border-radius: 23px; padding: 25px 20px; }
  .hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .card-grid,
  .card-grid.three,
  .demo-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid var(--qelumi-line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table th { border-bottom: 0; padding-bottom: 4px; }
  .data-table td { padding-top: 4px; }
  .footer-shell { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .brand-tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .demo-result, .demo-bubble, .demo-card { opacity: 1; transform: none; }
}
