/* TeamPulse landing — base styles */

:root {
  --bg: #FAF8F4;
  --bg-elev: #FFFFFF;
  --ink: #0B0A14;
  --ink-2: #2A2832;
  --muted: #5C5A52;
  --muted-2: #8A887F;
  --hairline: #ECEAE3;
  --hairline-2: #DEDBD1;
  --violet: #8247F5;
  --orange: #FC4A2B;
  --pink: #C84690;

  --grad: linear-gradient(135deg, #8247F5 0%, #C84690 50%, #FC4A2B 100%);
  --grad-soft: linear-gradient(135deg, rgba(130,71,245,0.10) 0%, rgba(252,74,43,0.10) 100%);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-card: 0 1px 0 rgba(11,10,20,0.04), 0 12px 32px -16px rgba(11,10,20,0.18);
  --shadow-soft: 0 1px 0 rgba(11,10,20,0.03), 0 6px 20px -10px rgba(11,10,20,0.10);

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }
@media (max-width: 900px) { .section { padding: 64px 0; } }

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.h-3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.08em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ink);
  color: #FAF8F4;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.btn--primary:hover::before { opacity: 1; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn--ghost:hover {
  background: var(--bg-elev);
  border-color: var(--ink);
}
.btn--grad {
  background: var(--grad);
  color: #fff;
  border: none;
}
.btn--grad:hover { box-shadow: 0 12px 30px -10px rgba(130,71,245,0.45); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav--scrolled { border-bottom-color: var(--hairline); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
}
.nav__logo img { height: 26px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 28px;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--grad); margin-right: 8px;
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__inner { gap: 8px; }
  .lang-toggle { padding: 0 10px; font-size: 10px; }
  .lang-toggle .dot { margin-right: 6px; }
}
@media (max-width: 420px) {
  .lang-toggle .full-label { display: none; }
}

/* Hero */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero__title { margin-top: 28px; }
.hero__sub { margin-top: 28px; }
.hero__ctas { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 720px; height: 720px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(252,74,43,0.35) 0%, rgba(130,71,245,0.25) 45%, rgba(130,71,245,0) 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
}
.hero__glow--2 {
  top: 220px; right: 320px;
  width: 480px; height: 480px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(130,71,245,0.30) 0%, rgba(130,71,245,0) 70%);
}

.hero__stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.stat__v {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat__l {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: 1fr; gap: 20px; }
}

/* Trust strip */
.trust {
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--hairline);
}
.trust__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  margin-bottom: 24px;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.logo-placeholder {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  opacity: 0.7;
  transition: opacity .2s ease;
}
.logo-placeholder:hover { opacity: 1; }
@media (max-width: 820px) {
  .trust__row { grid-template-columns: repeat(3, 1fr); }
}

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 24px; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* Self-service */
.selfservice {
  background: var(--bg);
}
.ss-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.ss-features { display: grid; gap: 24px; }
.feature-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.feature-row:first-child { border-top: none; padding-top: 4px; }
.feature-row__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.feature-row__t { font-weight: 500; font-size: 19px; letter-spacing: -0.015em; }
.feature-row__d { margin-top: 6px; color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .ss-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* Mobile mockup */
.phone {
  --w: 320px;
  width: var(--w);
  margin: 0 auto;
  background: #111;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1.5px #2a2832,
    0 30px 80px -20px rgba(11,10,20,0.35),
    0 10px 30px -10px rgba(130,71,245,0.18);
  position: relative;
}
.phone__screen {
  background: #FFFFFF;
  border-radius: 36px;
  overflow: hidden;
  height: 640px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #111;
  border-radius: 999px;
  z-index: 5;
}
.phone__statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.phone__statusbar .right { display: flex; gap: 5px; align-items: center; }
.phone__body {
  flex: 1; overflow: hidden; padding: 14px 18px 90px;
  display: flex; flex-direction: column; gap: 16px;
}
.phone__greet { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.phone__subgreet { font-size: 12px; color: var(--muted); margin-top: 2px; }
.phone__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.phone__quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phone__quick button {
  background: #F4F2EC;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  min-height: 70px;
}
.phone__quick button .ico {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--grad-soft);
  border: 1px solid rgba(130,71,245,0.15);
  display: flex; align-items: center; justify-content: center;
}
.phone__quick button .ico svg { width: 13px; height: 13px; }
.phone__card {
  background: linear-gradient(135deg, #14101F 0%, #0B0A14 100%);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.phone__card::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px;
  background: var(--grad);
  filter: blur(30px);
  opacity: 0.45;
}
.phone__card__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; }
.phone__card__t { font-size: 14px; font-weight: 500; }
.phone__card__s { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.phone__card .badge {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  text-transform: uppercase;
}
.phone__feed { display: flex; flex-direction: column; gap: 8px; }
.phone__feed__item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.phone__feed__item .avi {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(130,71,245,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.phone__feed__item .meta { font-size: 12px; }
.phone__feed__item .t { font-weight: 500; }
.phone__feed__item .s { color: var(--muted); font-size: 11px; margin-top: 1px; }

.phone__tabbar {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 10px 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.phone__tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px;
  color: var(--muted-2);
  cursor: pointer;
}
.phone__tabbar .tab.active { color: var(--ink); }
.phone__tabbar .tab .dot {
  width: 4px; height: 4px; border-radius: 999px; background: transparent;
}
.phone__tabbar .tab.active .dot { background: var(--orange); }

/* Admin / dashboard section */
.admin { background: var(--bg); }
.admin-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; gap: 56px; }
}

.dash-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.dash-img {
  width: 100%;
  max-width: 619px;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  background: var(--bg-elev);
}

.dash {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.dash__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: #fbfaf6;
}
.dash__bar .dots { display: flex; gap: 6px; }
.dash__bar .dots i { width: 10px; height: 10px; border-radius: 999px; background: #E6E3DA; }
.dash__bar .url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.dash__tabs {
  display: flex; gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
}
.dash__tabs .tab {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.dash__tabs .tab.active {
  background: var(--ink);
  color: #fff;
}
.dash__head {
  padding: 22px 22px 12px;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
}
.dash__head h4 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.018em; }
.dash__head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.dash__head .pill {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--hairline-2); color: var(--muted);
}

.dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 14px;
}
.kpi { background: var(--bg-elev); padding: 18px 18px 20px; }
.kpi__l { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.kpi__v { font-size: 28px; font-weight: 500; letter-spacing: -0.025em; margin-top: 8px; line-height: 1; }
.kpi__d { font-size: 11px; color: var(--muted); margin-top: 6px; }

.dash__split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  background: var(--hairline);
}
.dash__panel { background: var(--bg-elev); padding: 20px 22px; }
.dash__panel h5 {
  margin: 0 0 14px; font-size: 13px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.dash__panel h5 .badge {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted-2);
  letter-spacing: 0.1em;
}

/* Bar chart (CSS-only) */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 140px;
  padding-top: 6px;
  border-bottom: 1px solid var(--hairline);
}
.chart .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: flex-end;
  position: relative;
}
.chart .seg { border-radius: 4px 4px 0 0; }
.chart .seg.s1 { background: #14101F; }
.chart .seg.s2 { background: #8247F5; }
.chart .seg.s3 { background: #C84690; }
.chart .seg.s4 { background: #FC4A2B; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 12px;
  font-size: 11px; color: var(--muted);
}
.chart-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 8px; height: 8px; border-radius: 2px; }

/* Activity list */
.activity { display: flex; flex-direction: column; gap: 10px; }
.activity__item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 12px;
}
.activity__item:last-child { border-bottom: none; }
.activity__avi {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(130,71,245,0.18);
}
.activity__who { font-weight: 500; }
.activity__what { color: var(--muted); margin-left: 4px; }
.activity__when { color: var(--muted-2); font-family: var(--font-mono); font-size: 10px; }

/* Qubi section (LIGHT with gradient mesh) */
.qubi {
  background: linear-gradient(180deg, #F6F0FF 0%, #FFF1EC 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(130,71,245,0.10);
  border-bottom: 1px solid rgba(252,74,43,0.10);
}
.qubi::before {
  content: "";
  position: absolute;
  top: -20%; left: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(130,71,245,0.35) 0%, rgba(130,71,245,0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.qubi::after {
  content: "";
  position: absolute;
  bottom: -20%; right: -10%;
  width: 50%; height: 100%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(252,74,43,0.28) 0%, rgba(252,74,43,0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.qubi__inner { position: relative; z-index: 1; }
.qubi .eyebrow { color: var(--muted); }
.qubi .eyebrow::before { background: var(--ink); opacity: 0.4; }
.qubi .lede { color: var(--muted); }
.qubi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 980px) {
  .qubi-grid { grid-template-columns: 1fr; gap: 56px; }
}
.qubi-orb {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.qubi-orb__core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(2px);
  box-shadow: 0 0 80px 10px rgba(130,71,245,0.30), 0 0 160px 30px rgba(252,74,43,0.22);
  opacity: 0.55;
  animation: pulse 4s ease-in-out infinite;
}
.qubi-orb__ring {
  position: absolute; inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(11,10,20,0.10);
}
.qubi-orb__ring--2 { inset: -4%; border-color: rgba(11,10,20,0.07); }
.qubi-orb__ring--3 { inset: -16%; border-color: rgba(11,10,20,0.05); }
.qubi-orb__iso {
  position: relative;
  z-index: 2;
  width: auto;
  height: 78%;
  max-height: 380px;
  filter: drop-shadow(0 18px 36px rgba(11,121,253,0.35)) drop-shadow(0 6px 14px rgba(130,71,245,0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.qubi-orb__sparks i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
}
.qubi-orb__sparks i:nth-child(1) { top: 18%; left: 22%; animation: spark 3s ease-in-out infinite; }
.qubi-orb__sparks i:nth-child(2) { top: 70%; left: 14%; animation: spark 3s ease-in-out infinite .4s; }
.qubi-orb__sparks i:nth-child(3) { top: 28%; right: 18%; animation: spark 3s ease-in-out infinite .8s; }
.qubi-orb__sparks i:nth-child(4) { bottom: 22%; right: 22%; animation: spark 3s ease-in-out infinite 1.2s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}
@keyframes spark {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.qubi-caps { display: grid; gap: 24px; margin-top: 36px; }
.cap {
  padding: 22px 0;
  border-top: 1px solid rgba(243,242,238,0.10);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
}
.cap:first-child { border-top: none; padding-top: 4px; }
.cap__n { font-family: var(--font-mono); font-size: 12px; color: rgba(243,242,238,0.55); letter-spacing: 0.1em; }
.cap__t { font-weight: 500; font-size: 19px; letter-spacing: -0.015em; }
.cap__d { color: rgba(243,242,238,0.65); margin-top: 6px; font-size: 15px; }

.prompts-panel {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(11,10,20,0.08);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -24px rgba(130,71,245,0.25);
  padding: 20px;
  width: 100%;
  max-width: 460px;
}
.prompts-panel__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.prompts-list { display: flex; flex-direction: column; gap: 8px; }
.prompts-list .prompt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(11,10,20,0.06);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.prompts-list .prompt:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(11,10,20,0.14);
}
.prompts-list .prompt .arrow { color: var(--muted-2); }
.prompts-list .prompt.active {
  background: linear-gradient(135deg, rgba(130,71,245,0.10) 0%, rgba(252,74,43,0.10) 100%);
  border-color: rgba(130,71,245,0.35);
  color: var(--ink);
}

.reply {
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: 14px;
  background: #0B0A14;
  background-image: radial-gradient(80% 100% at 0% 0%, rgba(130,71,245,0.35), transparent 60%), radial-gradient(80% 100% at 100% 100%, rgba(252,74,43,0.25), transparent 60%);
  border: 1px solid rgba(11,10,20,0.10);
  font-size: 13px;
  color: rgba(243,242,238,0.88);
  line-height: 1.55;
  position: relative;
}
.reply__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,242,238,0.65);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reply__label .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--grad);
  animation: pulse 2s ease-in-out infinite;
}
.reply b { color: #fff; font-weight: 600; }

/* Other features grid */
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  overflow: hidden;
}
.other-cell {
  background: var(--bg-elev);
  padding: 32px 28px;
  min-height: 200px;
  display: flex; flex-direction: column;
  transition: background .2s ease;
}
.other-cell:hover { background: #FBFAF6; }
.other-cell__n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.other-cell__t { font-weight: 500; font-size: 19px; letter-spacing: -0.015em; }
.other-cell__d { color: var(--muted); margin-top: 10px; font-size: 14px; }
@media (max-width: 820px) {
  .other-grid { grid-template-columns: 1fr; }
}

/* Pricing */
.pricing { background: var(--bg); }
.pricing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: var(--bg-elev);
  margin: 24px auto 0;
}
.pricing-toggle button {
  border: none; background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.pricing-toggle button.active {
  background: var(--ink); color: #fff;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.tier {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.tier__name { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--muted); }
.tier__tag {
  margin-top: 4px;
  font-size: 13px; color: var(--muted-2);
}
.tier__price {
  margin: 28px 0 4px;
  display: flex; align-items: baseline; gap: 6px;
}
.tier__price .currency { font-size: 22px; font-weight: 400; color: var(--muted); }
.tier__price .amount { font-size: 56px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.tier__price .per { font-size: 13px; color: var(--muted); }
.tier__price--text .amount { font-size: 42px; }
.tier__per { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.tier__features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.tier__features li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-size: 14px; color: var(--ink-2);
  align-items: start;
}
.tier__features li::before {
  content: ""; width: 14px; height: 14px;
  margin-top: 4px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}
.tier__cta { margin-top: auto; }
.tier--highlight {
  background: #0B0A14;
  color: #F3F2EE;
  border-color: #0B0A14;
  position: relative;
  overflow: hidden;
}
.tier--highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 80% 0%, rgba(252,74,43,0.25), rgba(130,71,245,0) 70%),
              radial-gradient(50% 40% at 0% 100%, rgba(130,71,245,0.35), rgba(130,71,245,0) 70%);
  pointer-events: none;
}
.tier--highlight > * { position: relative; }
.tier--highlight .tier__name { color: rgba(243,242,238,0.7); }
.tier--highlight .tier__tag { color: rgba(243,242,238,0.6); }
.tier--highlight .tier__price .currency,
.tier--highlight .tier__per,
.tier--highlight .tier__price .per { color: rgba(243,242,238,0.7); }
.tier--highlight .tier__features li { color: rgba(243,242,238,0.85); }
.tier--highlight .tier__features li::before { background: #fff; }
.tier--highlight .badge-popular {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  padding: 6px 10px; border-radius: 999px;
  background: var(--grad);
  color: #fff;
}

/* Testimonials */
.testimonials { background: var(--bg); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .test-grid { grid-template-columns: 1fr; }
}
.test-card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 24px;
  min-height: 240px;
}
.test-card__quote {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}
.test-card__quote::before {
  content: "“";
  display: block;
  font-size: 36px;
  line-height: 0.5;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.test-card__meta { margin-top: auto; font-size: 13px; }
.test-card__who { font-weight: 500; }
.test-card__co { color: var(--muted); margin-top: 2px; font-size: 12px; }

/* Final CTA banner */
.cta-banner {
  background: #0B0A14;
  color: #F3F2EE;
  border-radius: 32px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(252,74,43,0.35), rgba(252,74,43,0) 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(130,71,245,0.45), rgba(130,71,245,0) 60%);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-banner h3 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.cta-banner p {
  color: rgba(243,242,238,0.7);
  margin-top: 16px;
  max-width: 50ch;
  text-wrap: pretty;
}
.cta-banner__right { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.cta-banner__right .or {
  font-size: 13px;
  color: rgba(243,242,238,0.6);
}
.cta-banner__right .or a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
@media (max-width: 820px) {
  .cta-banner { padding: 40px 28px; border-radius: 24px; }
  .cta-banner__inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner__right { align-items: flex-start; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer__brand img { height: 28px; }
.footer__tagline { color: var(--muted); margin-top: 18px; max-width: 28ch; font-size: 14px; }
.footer__col h6 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink-2); font-size: 14px; }
.footer__col a:hover { color: var(--ink); }

.footer__qubik {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer__qubik .note { font-size: 14px; color: var(--ink-2); }
.footer__qubik .note strong { font-weight: 500; }
.footer__qubik a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
}
.footer__qubik a:hover { border-color: var(--ink); }

.footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-2);
}

/* Modal */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(11,10,20,0.55);
  backdrop-filter: blur(8px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__card {
  background: var(--bg-elev);
  border-radius: 24px;
  width: 100%; max-width: 560px;
  padding: 36px 36px 32px;
  box-shadow: 0 30px 80px -20px rgba(11,10,20,0.4);
  position: relative;
  max-height: 92vh;
  overflow: auto;
  animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { border-color: var(--ink); }
.modal h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.modal p.modal__sub { color: var(--muted); margin: 8px 0 24px; font-size: 14px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--hairline-2);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--bg-elev);
}
.field textarea { min-height: 88px; resize: vertical; }
.modal__actions {
  margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.modal__sent {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(130,71,245,0.2);
  font-size: 13px;
  color: var(--ink);
}
.modal__sent a { font-weight: 500; border-bottom: 1px solid currentColor; }

@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal__card { padding: 28px 22px; }
}
