/* ==========================================================================
   chatstaff landing — main layout & components
   ToDesktop-faithful structure · chatstaff palette
   ========================================================================== */

/* fonts.css + tokens.css linked from index.html (avoid double @import) */

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

::selection {
  background: rgba(92, 88, 237, 0.22);
  color: var(--ink);
}

.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;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: var(--section-y-sm);
}

.sec-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 1rem;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

h1,
.hero-title,
h2,
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

h1,
.hero-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

h2,
.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

h3,
.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lead,
.hero-lead,
.sec-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.72);
}

.text-gradient-light {
  background-image: var(--grad-title-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
  isolation: isolate;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.5));
  opacity: 0.12;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
  z-index: -1;
}

.btn-primary:hover:not(:disabled)::before {
  opacity: 0.24;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--stroke-light);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  box-shadow:
    0 -4px 12px -4px rgba(255, 255, 255, 0.08) inset,
    0 1px 3px rgba(255, 255, 255, 0.06) inset,
    0 0.5px 0.5px rgba(255, 255, 255, 0.12) inset,
    0 8px 8px -3px rgba(9, 1, 20, 0.06),
    0 3px 3px -1.5px rgba(8, 1, 20, 0.06);
}

.btn-dark::before,
.btn-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
  z-index: -1;
}

.btn-dark::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  opacity: 0.35;
}

.btn-dark::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  opacity: 0;
}

.btn-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark:hover:not(:disabled)::after {
  opacity: 0.25;
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover:not(:disabled) {
  background: #2a2a2a;
}

.btn--sm {
  min-height: 2.25rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Site header / floating pill nav
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  padding: 1.5rem var(--gutter) 0;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--nav-max);
  margin-inline: auto;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  background: transparent;
  transition:
    max-width var(--dur) var(--ease-out),
    padding var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out);
}

.nav-pill.is-scrolled {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--nav-scrolled-max);
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
  background: #ffffffe0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--white);
  transition: color var(--dur) var(--ease-out);
}

.nav-pill.is-scrolled .nav-brand {
  color: var(--ink);
}

.nav-brand img,
.nav-brand svg {
  height: 1.75rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto 0.5rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-pill.is-scrolled .nav-links a {
  color: var(--ink);
  padding: 0.4rem 0.75rem;
}

.nav-pill.is-scrolled .nav-links a:hover {
  background: rgba(55, 55, 55, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke-light);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.nav-pill.is-scrolled .lang-switch {
  border-color: var(--stroke-muted);
  background: rgba(20, 20, 20, 0.03);
}

.lang-switch button {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.nav-pill.is-scrolled .lang-switch button {
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"],
.lang-switch button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.nav-pill.is-scrolled .lang-switch button[aria-pressed="true"],
.nav-pill.is-scrolled .lang-switch button.is-active {
  background: rgba(20, 20, 20, 0.08);
  color: var(--ink);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: var(--radius-pill);
  color: var(--white);
}

.nav-pill.is-scrolled .nav-toggle {
  color: var(--ink);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.15rem;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 920px);
  padding: 8.5rem 0 4rem;
  color: var(--white);
  background: var(--void);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 55%;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(92, 88, 237, 0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 46rem;
}

.hero-title {
  margin-bottom: 1.15rem;
  background-image: var(--grad-title-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke-light);
  margin-bottom: 1.5rem;
}

.hero-tab {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.hero-tab[aria-selected="true"],
.hero-tab.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 2px -0.5px rgba(255, 255, 255, 0.12) inset,
    0 0.5px 0.5px rgba(255, 255, 255, 0.16) inset;
}

.hero-demo {
  width: min(100%, 920px);
  margin-inline: auto;
  position: relative;
}

.demo-label {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(5, 6, 27, 0.45);
  border: 1px solid var(--stroke-light);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.65rem;
  pointer-events: none;
}

#produkti,
#si-funksionon,
#faq,
#demo,
#top {
  scroll-margin-top: 5.5rem;
}

/* --------------------------------------------------------------------------
   Dashboard mock (.demo-dash)
   -------------------------------------------------------------------------- */

.demo-dash {
  display: grid;
  grid-template-columns: 4.25rem minmax(11rem, 15rem) 1fr;
  min-height: 28rem;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background: #0f1428;
  box-shadow: var(--shadow-demo);
  border: 1px solid var(--stroke-light);
  text-align: left;
  color: var(--ink);
}

.demo-dash__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 0.5rem;
  background: #0a0e1c;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-dash__rail-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: rgba(92, 88, 237, 0.25);
  color: #c8c6ff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.demo-dash__rail-item {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
}

.demo-dash__rail-item.is-active {
  background: rgba(92, 88, 237, 0.35);
}

.demo-dash__list {
  background: #12182c;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
}

.demo-dash__list-head {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.5rem 0.65rem;
}

.demo-dash__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.demo-dash__row.is-active {
  background: rgba(92, 88, 237, 0.22);
  color: var(--white);
}

.demo-dash__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--sky));
  flex-shrink: 0;
}

.demo-dash__row b {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}

.demo-dash__row span {
  color: rgba(255, 255, 255, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.demo-dash__row.is-active span {
  color: rgba(255, 255, 255, 0.65);
}

.demo-dash__thread {
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 28rem;
}

.demo-dash__thread-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--stroke);
}

.demo-dash__thread-bar strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-dash__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(37, 211, 102, 0.12);
  color: #128c4a;
}

.demo-dash__badge--bot {
  background: rgba(92, 88, 237, 0.12);
  color: var(--brand);
  margin-left: auto;
}

.demo-dash__badge--human {
  background: rgba(18, 45, 112, 0.1);
  color: var(--navy);
  margin-left: auto;
}

.demo-dash__messages {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background:
    linear-gradient(180deg, #fafbff 0%, #f4f5fa 100%);
  overflow: hidden;
}

.demo-msg {
  max-width: 78%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.demo-msg.is-visible,
.demo-dash.is-static .demo-msg {
  opacity: 1;
  transform: none;
}

.demo-msg--in {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-top-left-radius: 0.3rem;
  color: var(--ink);
}

.demo-msg--out {
  align-self: flex-end;
  background: #ebe9ff;
  color: var(--ink);
  border-top-right-radius: 0.3rem;
}

.demo-msg--system {
  align-self: center;
  max-width: 90%;
  background: rgba(18, 45, 112, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
}

.demo-product {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.5rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--stroke);
}

.demo-product__img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, var(--brand), var(--cyan));
  flex-shrink: 0;
}

.demo-product strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.demo-product span {
  font-size: 0.72rem;
  color: var(--muted);
}

.demo-typing {
  align-self: flex-start;
  display: none;
  gap: 0.3rem;
  padding: 0.75rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: 0.85rem;
  border-top-left-radius: 0.3rem;
}

.demo-typing.is-visible {
  display: inline-flex;
}

.demo-typing i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ghost);
  animation: demo-dot 1s infinite;
}

.demo-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.demo-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes demo-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.demo-dash__composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--stroke);
  background: var(--white);
}

.demo-dash__composer-input {
  flex: 1;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke-muted);
  background: var(--canvas);
  padding: 0 0.9rem;
  font-size: 0.78rem;
  color: var(--ghost);
  pointer-events: none;
}

.demo-dash__composer-send {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Channels (wall-of-love equivalent)
   -------------------------------------------------------------------------- */

.channels {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--white);
  background: var(--grad-channels);
  overflow: hidden;
}

.channels::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 0% 50%, rgba(86, 225, 232, 0.18), transparent 60%),
    radial-gradient(ellipse 35% 70% at 100% 40%, rgba(18, 45, 112, 0.35), transparent 55%);
  pointer-events: none;
}

.channels .container {
  position: relative;
}

.channels .sec-head {
  color: var(--white);
}

.channels .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.channels .section-title {
  background-image: var(--grad-title-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.channels .sec-lead {
  color: rgba(255, 255, 255, 0.78);
}

.channel-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(8, 1, 20, 0.12);
}

.channel-chip svg,
.channel-chip .channel-chip__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.channel-chip--soon {
  opacity: 0.7;
}

.channel-chip__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  background: var(--canvas);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-card);
  min-height: 12rem;
}

.feature-card--wide {
  grid-column: span 2;
}

.feature-card .card-title {
  margin-top: 0.25rem;
}

.feature-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.feature-card__visual {
  margin-top: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--surface-soft);
  padding: 0.85rem;
  min-height: 5.5rem;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.how {
  background: var(--white);
  border-block: 1px solid var(--stroke);
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.how-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.how-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.how-tab__num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--stroke);
}

.how-tab__body strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.how-tab__body span {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
}

.how-tab[aria-selected="true"],
.how-tab.is-active {
  background: var(--canvas);
  border-color: var(--stroke-muted);
  box-shadow: var(--shadow-card);
}

.how-tab[aria-selected="true"] .how-tab__num,
.how-tab.is-active .how-tab__num {
  background: var(--brand);
  border-color: transparent;
  color: var(--white);
}

.how-scene {
  position: relative;
  border-radius: var(--radius-card-lg);
  border: 1px solid var(--stroke);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
  min-height: 22rem;
  overflow: hidden;
  padding: 1.5rem;
}

.how-scene__panel {
  display: none;
  height: 100%;
  animation: how-fade 0.45s var(--ease-soft);
}

.how-scene__panel.is-active {
  display: block;
}

@keyframes how-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.how-mini {
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--stroke);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.how-mini__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--stroke);
  font-size: var(--fs-sm);
}

.how-mini__row:last-child {
  border-bottom: none;
}

.how-mini__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Benefits (5 feature cards with mini-UI)
   -------------------------------------------------------------------------- */

.benefits {
  background: var(--canvas);
}

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

.benefit-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-card);
  min-height: 16rem;
}

.benefit-card:nth-child(4),
.benefit-card:nth-child(5) {
  grid-column: span 3;
}

.benefit-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.benefit-card__ui {
  margin-top: auto;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--stroke);
  padding: 0.85rem;
  min-height: 6.5rem;
}

.mini-ui-line {
  height: 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 20, 0.08);
  margin-bottom: 0.45rem;
}

.mini-ui-line--short {
  width: 55%;
}

.mini-ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(92, 88, 237, 0.12);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Handoff band (dark mid CTA / product scene)
   -------------------------------------------------------------------------- */

.handoff-band {
  position: relative;
  padding-block: var(--section-y);
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(92, 88, 237, 0.35), transparent 60%),
    radial-gradient(ellipse 40% 45% at 10% 80%, rgba(86, 225, 232, 0.15), transparent 55%),
    linear-gradient(160deg, var(--void) 0%, var(--navy) 100%);
  overflow: hidden;
}

.handoff-band .section-title {
  background-image: var(--grad-title-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.handoff-band .sec-lead {
  color: rgba(255, 255, 255, 0.7);
}

.handoff-scene {
  margin-top: 2rem;
  border-radius: var(--radius-card-lg);
  border: 1px solid var(--stroke-light);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
  box-shadow: var(--shadow-demo);
}

.handoff-transfer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.handoff-pane {
  border-radius: var(--radius-md);
  background: rgba(15, 20, 40, 0.75);
  border: 1px solid var(--stroke-light);
  padding: 1rem;
  min-height: 8rem;
}

.handoff-pane__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.65rem;
}

.handoff-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(92, 88, 237, 0.35);
  color: var(--white);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Final CTA (pastel gradient card + form)
   -------------------------------------------------------------------------- */

.final-cta {
  background: var(--canvas);
}

.final-cta-card {
  border-radius: var(--radius-card-lg);
  background: var(--grad-final-cta);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 22rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.final-cta-card .section-title {
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.final-cta-card .sec-lead {
  color: var(--muted);
}

.demo-form {
  display: grid;
  gap: 0.75rem;
}

.demo-form label {
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}

.demo-form input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--stroke-muted);
  background: rgba(255, 255, 255, 0.85);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.demo-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(92, 88, 237, 0.18);
}

.demo-form input::placeholder {
  color: var(--ghost);
}

.demo-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-status {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-muted);
  background: rgba(255, 255, 255, 0.75);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: rgba(18, 140, 74, 0.25);
  background: rgba(37, 211, 102, 0.1);
}

.form-status.is-error {
  border-color: rgba(185, 28, 48, 0.25);
  background: rgba(185, 28, 48, 0.06);
}

.form-status strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.form-status p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.form-error-field {
  font-size: 0.75rem;
  color: #b91c30;
  margin-top: -0.35rem;
}

/* Modal variant (optional) */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  place-items: center;
  padding: var(--gutter);
}

.demo-modal.is-open {
  display: grid;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 27, 0.55);
  backdrop-filter: blur(6px);
}

.demo-modal__panel {
  position: relative;
  width: min(100%, 28rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.demo-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--canvas);
}

body.modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.faq-item {
  border-radius: var(--radius-faq);
  border: 1px solid var(--stroke);
  background: var(--canvas);
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}

.faq-item[data-open="true"] {
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.05rem 1.15rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--stroke);
  transition: transform var(--dur-fast) var(--ease-out);
}

.faq-item__btn[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
  background: var(--brand);
  border-color: transparent;
  color: var(--white);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-out);
}

.faq-item__btn[aria-expanded="true"] + .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__panel p {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--void);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--stroke-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 0.85rem;
}

.footer-brand svg,
.footer-brand img {
  height: 1.65rem;
  width: auto;
}

.footer-blurb {
  font-size: var(--fs-sm);
  max-width: 22rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--dur-fast);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke-light);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  filter: blur(var(--reveal-blur));
  transition:
    opacity var(--dur-slow) var(--ease-soft),
    transform var(--dur-slow) var(--ease-soft),
    filter var(--dur-slow) var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-inview,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-stagger > .reveal:nth-child(1) {
  --reveal-delay: 0ms;
}
.reveal-stagger > .reveal:nth-child(2) {
  --reveal-delay: 70ms;
}
.reveal-stagger > .reveal:nth-child(3) {
  --reveal-delay: 140ms;
}
.reveal-stagger > .reveal:nth-child(4) {
  --reveal-delay: 210ms;
}
.reveal-stagger > .reveal:nth-child(5) {
  --reveal-delay: 280ms;
}
.reveal-stagger > .reveal:nth-child(6) {
  --reveal-delay: 350ms;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .demo-msg,
  .demo-typing {
    transition: none !important;
  }

  .demo-msg {
    opacity: 1;
    transform: none;
  }

  .demo-typing {
    display: none !important;
  }

  .how-scene__panel {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive — 960
   -------------------------------------------------------------------------- */

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

  .feature-card--wide {
    grid-column: span 2;
  }

  .how-layout {
    grid-template-columns: 1fr;
  }

  .how-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .how-tab {
    min-width: 14rem;
    flex-shrink: 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-card,
  .benefit-card:nth-child(4),
  .benefit-card:nth-child(5) {
    grid-column: span 1;
  }

  .final-cta-card {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-dash {
    grid-template-columns: minmax(10rem, 13rem) 1fr;
  }

  .demo-dash__rail {
    display: none;
  }

  .handoff-transfer {
    grid-template-columns: 1fr;
  }

  .handoff-arrow {
    margin-inline: auto;
    transform: rotate(90deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive — 768 (mobile nav)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .site-header {
    padding-top: 0.85rem;
  }

  .nav-pill {
    padding: 0.55rem 0.65rem 0.55rem 1rem;
  }

  .nav-links,
  .nav-actions .nav-cta,
  .nav-actions .lang-switch {
    display: none;
  }

  .nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-pill.is-menu-open .nav-links,
  .nav-pill.is-menu-open .nav-actions .lang-switch,
  .nav-pill.is-menu-open .nav-actions .nav-cta {
    display: flex;
  }

  .nav-pill.is-menu-open {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 1rem 1.25rem 2rem;
    background: linear-gradient(0deg, #0a0f2e 0%, #122d70 40%, #05061b 100%);
    backdrop-filter: none;
    box-shadow: none;
    overflow-y: auto;
    z-index: var(--z-menu);
  }

  .nav-pill.is-menu-open .nav-brand {
    color: var(--white);
  }

  .nav-pill.is-menu-open .nav-toggle {
    color: var(--white);
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .nav-pill.is-menu-open .nav-brand {
    margin-top: 0.25rem;
  }

  .nav-pill.is-menu-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    margin: 3rem 0 0;
    gap: 0.25rem;
  }

  .nav-pill.is-menu-open .nav-links a {
    padding: 0.9rem 0.75rem;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
  }

  .nav-pill.is-menu-open .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: auto;
  }

  .nav-pill.is-menu-open .lang-switch {
    align-self: flex-start;
    border-color: var(--stroke-light);
  }

  .nav-pill.is-menu-open .lang-switch button {
    color: rgba(255, 255, 255, 0.55);
  }

  .nav-pill.is-menu-open .lang-switch button[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
  }

  .nav-pill.is-menu-open .nav-cta {
    width: 100%;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }

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

  .hero-title {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: span 1;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .demo-dash {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .demo-dash__list {
    display: none;
  }

  .demo-dash__thread {
    min-height: 22rem;
  }

  .demo-dash__thread-bar {
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-right: 0.75rem;
  }

  .demo-label {
    top: auto;
    bottom: 0.65rem;
    right: auto;
    left: 0.65rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--stroke);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive — 390
   -------------------------------------------------------------------------- */

@media (max-width: 390px) {
  :root {
    --gutter: 0.85rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-tabs {
    width: 100%;
    justify-content: center;
  }

  .channel-dock {
    gap: 0.5rem;
  }

  .channel-chip {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }

  .final-cta-card {
    padding: 1.25rem;
  }
}
