/* ============================================================
   RIT Gestio — components & page-specific styles
   ============================================================ */

/* ---------- Global Markets card ---------- */
.markets-card .row-asset {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--line-soft);
}
.markets-card .row-asset:first-of-type { border-top: 0; }
.markets-card .row-asset:hover { background: var(--bg-soft-2); }
.symbol-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  color: #fff;
}
.sym-eur { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.sym-gbp { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.sym-aapl { background: linear-gradient(135deg, #0f172a, #475569); }
.sym-amzn { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sym-nvda { background: linear-gradient(135deg, #16a34a, #22d3ee); }
.sym-btc { background: linear-gradient(135deg, #f97316, #facc15); }
.sym-name { font-weight: 600; font-size: 14px; }
.sym-name span { display: block; font-weight: 400; color: var(--muted-2); font-size: 12px; }
.sym-px {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  text-align: right;
  min-width: 80px;
}
.sym-delta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  min-width: 64px;
}

/* ---------- Signal card ---------- */
.signal-card .body { padding: 22px; }
.signal-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.signal-pair {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.signal-action {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--success);
}
.signal-action.sell { color: var(--danger); }
.gauge {
  height: 8px; border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  position: relative;
}
.gauge > span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #06b6d4, #2563eb, #4f46e5);
  border-radius: 999px;
}
.signal-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.signal-stats .stat-label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.signal-stats .stat-val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- Execution card ---------- */
.exec-card .body { padding: 22px; }
.exec-tabs { margin-bottom: 16px; }
.exec-pair-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.exec-pair { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.field {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
}
.field + .field { margin-top: 10px; }
.field label { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field .value {
  border: 0; outline: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 600;
  text-align: right;
  background: transparent;
  width: 60%;
}
.field .stepper {
  display: inline-flex; align-items: center; gap: 6px;
}
.field .stepper button {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 12px; font-weight: 600;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exec-buttons {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 16px;
}
.exec-btn {
  border: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  transition: filter .15s ease;
}
.exec-btn.sell { background: var(--danger); }
.exec-btn.buy  { background: var(--success); }
.exec-btn:hover { filter: brightness(1.08); }

/* ---------- Analysis card (with chart) ---------- */
.analysis-card .body { padding: 22px; }
.analysis-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.stat-box {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
}
.stat-box .stat-label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.stat-box .stat-val { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.stat-box .stat-val small { font-size: 12px; color: var(--muted-2); font-weight: 500; margin-left: 4px; }
.chart {
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0));
  position: relative;
  overflow: hidden;
}
.chart svg { width: 100%; height: 100%; display: block; }

/* ---------- Market Friction section ---------- */
.friction-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 72px;
  box-shadow: var(--shadow-md);
}
.friction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.friction-left h2 { margin-top: 18px; max-width: 14ch; }
.friction-left p { margin-top: 22px; font-size: 16.5px; line-height: 1.65; }
.friction-quote {
  margin-top: 36px;
  padding: 26px 28px;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f9 100%);
  border-left: 3px solid var(--brand);
  border-radius: 6px 14px 14px 6px;
  position: relative;
}
.friction-quote::before {
  content: "“";
  position: absolute;
  top: 4px; left: 18px;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--brand);
  opacity: 0.18;
  line-height: 1;
}
.friction-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  padding-left: 30px;
}
.friction-right { display: flex; flex-direction: column; gap: 14px; }
.friction-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.friction-card:hover {
  transform: translateX(4px);
  border-color: var(--line);
  background: #fff;
}
.friction-card .ic {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: #475569;
  display: grid; place-items: center;
}
.friction-card.tone-1 .ic { color: #b45309; background: #fef9c3; border-color: #fde68a; }
.friction-card.tone-2 .ic { color: #1d4ed8; background: var(--brand-soft); border-color: #c7d2fe; }
.friction-card.tone-3 .ic { color: #7c3aed; background: #ede9fe; border-color: #ddd6fe; }
.friction-card.tone-4 .ic { color: #0e7490; background: #cffafe; border-color: #a5f3fc; }
.friction-card.tone-5 .ic { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.friction-card .txt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.friction-transition {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.friction-transition p {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 60ch;
  margin: 0 auto;
}
.friction-transition p strong { color: var(--brand); font-weight: 600; }

@media (max-width: 980px) {
  .friction-wrap { padding: 48px; }
  .friction-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 560px) {
  .friction-wrap { padding: 32px 24px; }
  .friction-quote { padding: 22px 22px 22px 18px; }
  .friction-quote p { padding-left: 22px; font-size: 17px; }
  .friction-card { padding: 16px 18px; gap: 14px; }
  .friction-card .ic { width: 36px; height: 36px; }
}
/* ---------- FAQ accordion (home) ---------- */
.faq-section { position: relative; overflow: hidden; }
.faq-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(35% 50% at 15% 20%, rgba(37, 99, 235, 0.05), transparent 60%),
    radial-gradient(40% 50% at 90% 90%, rgba(6, 182, 212, 0.04), transparent 60%);
}
.faq-bg-grid {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 65%);
}
.faq-section .container { position: relative; z-index: 1; }

.faq-list {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 250ms ease, box-shadow 250ms cubic-bezier(.2,.7,.2,1), border-color 250ms ease;
  position: relative;
}
.faq-item:hover {
  transform: translateY(-3px);
  border-color: #cfd8e3;
  box-shadow: var(--shadow-md);
}
.faq-item.open {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow:
    0 22px 50px -18px rgba(15, 23, 42, 0.18),
    0 8px 22px -8px rgba(37, 99, 235, 0.22),
    0 0 0 1px rgba(37, 99, 235, 0.18);
}
.faq-item.open::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, 0.10), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 26px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: left;
  line-height: 1.35;
}
.faq-toggle {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--brand);
  flex-shrink: 0;
  position: relative;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-toggle::before { /* horizontal */
  left: 25%; right: 25%; top: 50%; height: 2px; margin-top: -1px;
}
.faq-toggle::after { /* vertical */
  top: 25%; bottom: 25%; left: 50%; width: 2px; margin-left: -1px;
}
.faq-item.open .faq-toggle {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: rotate(45deg);
}

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(.2,.7,.2,1), opacity 280ms ease;
  opacity: 0;
}
.faq-item.open .faq-a-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-a-wrap > .faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a {
  padding: 0 26px 24px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 80ch;
}

@media (max-width: 640px) {
  .faq-q { padding: 18px 20px; font-size: 16px; }
  .faq-a { padding: 0 20px 20px; font-size: 14.5px; }
  .faq-toggle { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-toggle, .faq-a-wrap {
    transition: none !important;
  }
  .faq-item:hover { transform: none; }
}
.cmp-card { overflow: hidden; }
.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cmp-tbl { min-width: 720px; }
.cmp-tbl th,
.cmp-tbl td {
  text-align: center;
  vertical-align: middle;
}
.cmp-tbl thead th { background: var(--bg-soft); white-space: nowrap; }
.cmp-tbl th[scope="row"],
.cmp-tbl .cmp-feat-col {
  text-align: left;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 200px;
  border-right: 1px solid var(--line-soft);
  text-transform: none;
  letter-spacing: -0.005em;
}
.cmp-tbl thead .cmp-feat-col {
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.cmp-tbl tr:hover th[scope="row"] { background: var(--bg-soft-2); }
.cmp-tbl tr:hover td { background: var(--bg-soft-2); }
.cmp-tbl .cmp-on {
  color: var(--brand);
}
.cmp-tbl .cmp-on svg {
  display: inline-block;
  vertical-align: middle;
}
.cmp-tbl .cmp-off {
  color: #cbd5e1;
  font-weight: 500;
}

@media (max-width: 640px) {
  .cmp-tbl { min-width: 600px; font-size: 13px; }
  .cmp-tbl th[scope="row"], .cmp-tbl .cmp-feat-col { min-width: 160px; }
  .cmp-tbl th, .cmp-tbl td { padding: 12px 14px; }
}
.testi-section { position: relative; overflow: hidden; }
.testi-bg-motif {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 18% 20%, rgba(37, 99, 235, 0.07), transparent 60%),
    radial-gradient(40% 50% at 82% 85%, rgba(6, 182, 212, 0.05), transparent 60%);
}
.testi-motif-lines {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
}
.testi-section .container { position: relative; z-index: 1; }
.testi-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: stretch;
}

/* Featured (large, dark) card */
.testi-featured {
  background: linear-gradient(165deg, #0b1220 0%, #131f3a 100%);
  color: #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative; overflow: hidden;
}
.testi-featured::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(6, 182, 212, 0.20), transparent 60%);
  pointer-events: none;
}
.testi-featured::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 20%, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, black 25%, transparent 70%);
  pointer-events: none;
}
.testi-featured > * { position: relative; z-index: 1; }
.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 92px; line-height: 0.55;
  color: #60a5fa;
  opacity: 0.85;
  margin-bottom: -18px;
}
.testi-featured .quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 500;
  margin: 0;
}
.testi-stars-row {
  display: flex; align-items: center; gap: 14px;
  color: #facc15;
}
.testi-stars-row .stars { display: inline-flex; gap: 3px; }
.testi-stars-row .stars svg { width: 16px; height: 16px; fill: currentColor; }
.testi-stars-row .verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #94a3b8; font-weight: 500;
}
.testi-stars-row .verified svg { width: 14px; height: 14px; color: #4ade80; }

.testi-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.testi-chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(96, 165, 250, 0.18);
  white-space: nowrap;
}
.testi-author-row {
  display: flex; align-items: center; gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.testi-author-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}
.testi-author-meta { color: #94a3b8; font-size: 13px; margin-top: 2px; }

/* Side stack */
.testi-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.testi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfd8e3; }
.testi-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.testi-chip.light { background: var(--brand-soft); color: var(--brand-2); border-color: transparent; }
.testi-card .quote {
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}
.testi-card .quote::before { content: "“"; color: var(--brand); margin-right: 2px; }
.testi-card .testi-author-row { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.testi-card .testi-author-name { color: var(--ink); }
.testi-card .testi-author-meta { color: var(--muted-2); }

/* Trust row */
.testi-trust-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.testi-trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px;
  border-right: 1px solid var(--line-soft);
}
.testi-trust-item:last-child { border-right: 0; }
.testi-trust-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.testi-trust-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

@media (max-width: 960px) {
  .testi-grid { grid-template-columns: 1fr; }
  .testi-featured { padding: 34px; }
  .testi-trust-row { grid-template-columns: 1fr; }
  .testi-trust-item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .testi-trust-item:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .testi-featured { padding: 28px; }
  .testi-quote-mark { font-size: 72px; margin-bottom: -14px; }
  .testi-featured .quote { font-size: 18px; }
  .testi-card { padding: 22px; }
}
.calm-stage {
  position: relative;
  height: clamp(560px, 46vw, 680px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 60% at 70% 25%, rgba(37, 99, 235, 0.10), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, rgba(6, 182, 212, 0.07), transparent 70%),
    linear-gradient(165deg, #f8fafc 0%, #eef2f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.7);
  overflow: hidden;
}
.calm-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 80%);
  pointer-events: none;
}

/* Advisor portrait */
.advisor {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 96%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.18));
  will-change: transform;
}
/* Soft elliptical platform glow behind the advisor */
.advisor-glow {
  position: absolute;
  z-index: 0;
  bottom: -40px;
  right: 4%;
  width: 78%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 99, 235, 0.20) 0%, rgba(37, 99, 235, 0) 65%);
  pointer-events: none;
  filter: blur(6px);
  will-change: transform, opacity;
  animation: advisorBreath 8s ease-in-out infinite;
}
@keyframes advisorBreath {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Subtle moving data-line behind everything — luminous signal traces */
.calm-data-line {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.calm-data-line .dl {
  position: absolute;
  left: 0;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(6, 182, 212, 0)   0%,
    rgba(6, 182, 212, 0.55) 38%,
    rgba(37, 99, 235, 0.85) 52%,
    rgba(79, 70, 229, 0.55) 66%,
    rgba(79, 70, 229, 0)   100%);
  box-shadow:
    0 0 6px rgba(37, 99, 235, 0.45),
    0 0 14px rgba(6, 182, 212, 0.18);
  opacity: 0;
  transform: translateX(-110%);
  will-change: transform, opacity;
}
@keyframes dataFlow {
  0%   { transform: translateX(-110%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(180%);  opacity: 0; }
}
.calm-data-line .dl-1 { top: 14%; height: 1px; animation: dataFlow 6.5s ease-in-out 0.2s infinite; }
.calm-data-line .dl-2 { top: 56%; height: 2px; animation: dataFlow 7.8s ease-in-out 2.4s infinite; opacity: 0; }
.calm-data-line .dl-3 { top: 76%; height: 1px; animation: dataFlow 5.6s ease-in-out 4.1s infinite; opacity: 0; }
.calm-data-line .dl-4 { top: 90%; height: 1px; animation: dataFlow 8.4s ease-in-out 1.2s infinite; opacity: 0; }

/* Grid uses CSS vars for subtle parallax */
.calm-stage::before {
  background-position: var(--grid-x, 0) var(--grid-y, 0);
}

/* Floating mini cards — positioned around the advisor */
.mini {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.18), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
  padding: 16px 18px;
  z-index: 3;
  transition: box-shadow 280ms ease, border-color 280ms ease;
  will-change: transform;
}
.mini:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 30px 60px -22px rgba(15, 23, 42, 0.24), 0 10px 22px -8px rgba(37, 99, 235, 0.22);
}
.mini .ic {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 12px;
  animation: iconPulse 4s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.10); }
}
.mini-label {
  font-size: 11px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.mini-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.mini .bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}
.mini .bar span {
  position: absolute; inset: 0; right: 17.6%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  animation: barFill 1.4s 0.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes barFill {
  from { right: 100%; }
  to   { right: 17.6%; }
}

/* Respect prefers-reduced-motion: disable all hero motion */
@media (prefers-reduced-motion: reduce) {
  .advisor-glow,
  .calm-data-line .dl,
  .mini .ic,
  .mini .bar span {
    animation: none !important;
  }
  .calm-data-line { display: none; }
}

/* Positioning of the three floating cards — clear of the face */
.mini-1 {           /* AI Signal — upper-left (opposite side from face) */
  top: 36px;
  left: 24px;
  width: 196px;
}
.mini-2 {           /* Market Clarity — lower-right, chest/torso level */
  bottom: 110px;
  right: 16px;
  width: 218px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}
.mini-2 .ic { margin-bottom: 0; flex-shrink: 0; }
.mini-3 {           /* Risk-aware workflow — bottom-left, lower body */
  bottom: 28px;
  left: 24px;
  width: 232px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}
.mini-3 .ic { margin-bottom: 0; flex-shrink: 0; background: #dcfce7; color: #16a34a; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
}

@media (max-width: 980px) {
  .calm-stage { min-height: 520px; }
  .advisor-glow { width: 70%; max-width: 380px; }
  .mini-2 { bottom: 96px; }
}
@media (max-width: 700px) {
  .calm-stage { min-height: 480px; }
  .advisor-glow { width: 62%; max-width: 320px; }
  .mini-1 { top: 24px; left: 16px; width: 180px; }
  .mini-2 { bottom: 100px; right: 16px; width: 184px; padding: 12px 14px; }
  .mini-3 { bottom: 20px; left: 16px; width: 190px; padding: 12px 14px; }
}
@media (max-width: 460px) {
  .calm-stage { min-height: 440px; }
  .advisor-glow { width: 58%; max-width: 260px; }
  .mini-1 { width: 160px; padding: 12px 14px; }
  .mini-1 .mini-val { font-size: 12.5px; }
  .mini-2 { display: none; }
  .mini-3 { width: 184px; }
}

/* ---------- Logo strip ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: center;
  padding: 28px 0;
}
.logo-strip .ls {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #94a3b8;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 14px;
  border-radius: 12px;
  transition: color .15s ease;
}
.logo-strip .ls:hover { color: var(--muted); }
.logo-strip .ls svg { margin-right: 8px; opacity: 0.55; }
@media (max-width: 760px) {
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Step/Process cards (AI Signals) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.step h4 { margin-bottom: 8px; font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); }
.step-icon {
  position: absolute; top: 28px; right: 28px;
  color: var(--brand);
  opacity: 0.85;
}
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Split layout (image+text alternating) ---------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-block.reverse > :first-child { order: 2; }
.split-block h2 { margin-bottom: 18px; }
.split-block p { font-size: 16.5px; margin-bottom: 16px; }
.feature-list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-top: 1px;
}
.feature-list strong { color: var(--ink); font-weight: 600; display: block; }
.feature-list span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 880px) {
  .split-block { grid-template-columns: 1fr; gap: 32px; }
  .split-block.reverse > :first-child { order: initial; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tier.featured {
  border-color: var(--brand);
  box-shadow: 0 28px 60px -24px rgba(37, 99, 235, 0.35), 0 0 0 1px var(--brand);
}
.tier.vip {
  background: linear-gradient(160deg, #0b1220 0%, #111c33 100%);
  color: #e2e8f0;
  border-color: transparent;
}
.tier.vip .tier-name,
.tier.vip .tier-price,
.tier.vip .tier-feature { color: #fff; }
.tier.vip .tier-feature .ic { background: rgba(37, 99, 235, 0.25); color: #93c5fd; }
.tier.vip .tier-sub, .tier.vip .tier-desc { color: #94a3b8; }
.tier-flag {
  position: absolute; top: -12px; right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tier.vip .tier-flag { background: linear-gradient(135deg, #facc15, #f97316); color: #1f1300; }
.tier-name {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.tier-price {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-sub { font-size: 13px; color: var(--muted-2); margin-top: 6px; }
.tier-desc { font-size: 14.5px; color: var(--muted); margin: 16px 0 24px; }
.tier-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier-feature { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.tier-feature .ic {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tier-feature.off { color: var(--muted-2); }
.tier-feature.off .ic { background: #f1f5f9; color: #94a3b8; }

.tier-params-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 4px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tier-params-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.tier.vip .tier-feature { color: #cbd5e1; }
.tier.vip .tier-feature.off { color: #64748b; }
.tier.vip .tier-feature.off .ic { background: rgba(255, 255, 255, 0.06); color: #475569; }
.tier.vip .tier-params-label { color: #94a3b8; }
.tier.vip .tier-params-label::after { background: rgba(255, 255, 255, 0.10); }
.tier-cta { margin-top: auto; }
.tier-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.tlogo-strip {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 36px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tlogo-strip span {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.t-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.t-card .quote {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 500;
}
.t-card .quote::before { content: "“"; color: var(--brand); margin-right: 4px; }
.t-card .quote::after  { content: "”"; color: var(--brand); margin-left: 2px; }
.t-author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.t-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.t-name span { display: block; color: var(--muted-2); font-size: 12.5px; font-weight: 500; margin-top: 2px; }
@media (max-width: 880px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-side {
  background: linear-gradient(165deg, #0b1220 0%, #131f3a 100%);
  color: #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex; flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.contact-side::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(6, 182, 212, 0.2), transparent 60%);
  pointer-events: none;
}
.contact-side > * { position: relative; }
.contact-side h3 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.contact-side p { color: #94a3b8; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-list strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.contact-list span { color: #94a3b8; font-size: 14px; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-group label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-actions small { color: var(--muted-2); font-size: 12.5px; max-width: 36ch; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Login ---------- */
.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(6, 182, 212, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #131f3a 100%);
  color: #e2e8f0;
  padding: 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 70%);
  pointer-events: none;
}
.auth-aside .logo { color: #fff; }
.auth-aside h2 { color: #fff; margin: 28px 0 14px; }
.auth-aside p { color: #94a3b8; font-size: 17px; max-width: 38ch; }
.auth-features { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth-features li { color: #cbd5e1; font-size: 14.5px; display: flex; gap: 12px; align-items: center; }
.auth-features .dot { color: #60a5fa; }
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 64px;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 36px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: 15.5px; margin-bottom: 32px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .btn { width: 100%; justify-content: center; padding: 14px 22px; font-size: 15px; }
.auth-card .alt-line {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.auth-card .alt-line a { color: var(--brand); font-weight: 600; }
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  color: var(--muted-2);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.oauth-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.forgot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  margin: -6px 0 18px;
}
.forgot a { color: var(--brand); font-weight: 500; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.checkbox input { accent-color: var(--brand); }
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 40px 24px; }
}

/* ---------- CTA / Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0b1220 0%, #131f3a 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(6, 182, 212, 0.2), transparent 60%);
  pointer-events: none;
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  position: relative;
}
.cta-banner h2 { color: #fff; max-width: 18ch; }
.cta-banner p { color: #94a3b8; max-width: 48ch; margin-top: 14px; }
.cta-banner .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.15); }
.cta-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 840px) {
  .cta-banner { padding: 40px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}


/* ---------- Split VS section (Old tools vs RIT Gestio) ---------- */
.split-vs {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.split-vs-side {
  padding: 48px 44px 32px;
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}
.split-old {
  background: linear-gradient(165deg, #f1f5f9 0%, #e2e8f0 100%);
}
.split-old::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 18px, rgba(15, 23, 42, 0.018) 18px 19px);
  pointer-events: none;
}
.split-new {
  background: linear-gradient(165deg, #ffffff 0%, #eef4ff 100%);
}
.split-new::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 25%, transparent 80%);
  pointer-events: none;
}
.split-vs-side > * { position: relative; z-index: 1; }

.split-vs-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted-2);
  margin-bottom: 16px;
}
.split-vs-eyebrow.on { background: var(--brand-soft); color: var(--brand-2); }
.split-vs-side h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--ink);
}
.split-old h3 { color: var(--muted); }
.split-vs-side > p {
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 38ch;
  color: var(--muted);
}

.split-stage {
  position: relative;
  flex: 1;
  min-height: 320px;
  margin-bottom: 24px;
}

/* Vertical divider with VS pill */
.split-divider {
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.10) 18%, rgba(15, 23, 42, 0.10) 82%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.vs-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* OLD widgets — desaturated, slightly rotated, floating */
.ow {
  position: absolute;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  filter: saturate(0.25) grayscale(0.15);
  opacity: 0.9;
  transform: rotate(var(--r, 0deg));
  animation: owFloat 7s ease-in-out infinite;
}
.ow .ow-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.ow .ow-title::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #94a3b8;
}
.ow-chart { top: 0; left: 0; width: 60%; animation-duration: 6.5s; }
.ow-chart .ow-line {
  height: 70px;
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.12), transparent);
  border-radius: 6px;
  overflow: hidden;
}
.ow-chart .ow-line svg { width: 100%; height: 100%; display: block; }
.ow-list { top: 8%; right: 0; width: 46%; animation-duration: 7.5s; animation-delay: 0.6s; }
.ow-list .ow-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
}
.ow-list .ow-row:first-of-type { border-top: 0; }
.ow-ticket { bottom: 4%; left: 4%; width: 52%; animation-duration: 8.5s; animation-delay: 0.3s; }
.ow-ticket .ow-field {
  height: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  margin-bottom: 6px;
}
.ow-ticket .ow-btn {
  height: 28px;
  background: #94a3b8;
  border-radius: 999px;
  margin-top: 4px;
  opacity: 0.5;
}
.ow-note { bottom: 26%; right: 0; width: 42%; animation-duration: 9s; animation-delay: 1.2s; }
.ow-note .ow-text {
  display: flex; flex-direction: column; gap: 5px;
}
.ow-note .ow-text span {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}
.ow-note .ow-text span:nth-child(2) { width: 80%; }
.ow-note .ow-text span:nth-child(3) { width: 65%; }
@keyframes owFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

/* NEW dashboard — clean, branded */
.new-dashboard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 36px -12px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(37, 99, 235, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  margin: 18px 0;
}
.new-dashboard:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 52px -16px rgba(15, 23, 42, 0.22), 0 8px 18px rgba(37, 99, 235, 0.18);
}
.new-dash-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fafbfd, #ffffff);
}
.new-dash-bar .ttl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.new-dash-bar .ttl::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.new-dash-bar .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.new-dash-body {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
}
.new-chart-pane {
  padding: 14px 16px;
  border-right: 1px solid var(--line-soft);
}
.new-chart {
  height: 130px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.07), rgba(37, 99, 235, 0));
  overflow: hidden;
}
.new-chart svg { width: 100%; height: 100%; display: block; }
.new-chart-stats {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.new-chart-stats strong { color: var(--ink); font-size: 11.5px; font-weight: 600; }

.new-watchlist {
  padding: 8px 8px;
  display: flex; flex-direction: column;
  gap: 2px;
}
.new-watch-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .15s ease;
}
.new-watch-row:hover { background: var(--bg-soft); }
.new-watch-row.on { background: var(--brand-soft); }
.new-watch-row strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.new-watch-row .px {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.new-watch-row .pct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-align: right;
  width: 42px;
}

/* Floating accent cards */
.new-card-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(37, 99, 235, 0.14);
  z-index: 3;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: ncFloat 7s ease-in-out infinite;
}
.new-card-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(15, 23, 42, 0.22), 0 6px 14px rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.45);
}
.new-card-float .nc-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.new-card-float .nc-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.new-card-float .nc-bar {
  margin-top: 8px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  position: relative;
}
.new-card-float .nc-bar span {
  position: absolute; inset: 0; right: 17.6%;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  border-radius: 999px;
}
.new-card-ai { top: -14px; right: 16px; width: 180px; animation-duration: 6.5s; }
.new-card-risk {
  bottom: -16px; left: 14px; width: 200px;
  animation-duration: 7.5s; animation-delay: 0.8s;
  display: flex; align-items: center; gap: 10px;
}
.new-card-risk .nc-ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
@keyframes ncFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

/* Data-line behind right side */
.split-data-line { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.split-data-line .sdl {
  position: absolute;
  left: 0; width: 65%;
  height: 1px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0), rgba(37, 99, 235, 0.7), rgba(79, 70, 229, 0));
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.35);
  transform: translateX(-110%);
  opacity: 0;
  animation: sdlFlow 8s ease-in-out infinite;
}
.split-data-line .sdl-1 { top: 20%; animation-delay: 0.4s; }
.split-data-line .sdl-2 { top: 72%; animation-delay: 3.8s; animation-duration: 9s; }
@keyframes sdlFlow {
  0%   { transform: translateX(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(170%); opacity: 0; }
}

/* Tags row */
.split-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}
.split-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  white-space: nowrap;
}
.split-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}
.split-tag.on {
  background: var(--brand-soft);
  color: var(--brand-2);
}
.split-tag.on::before {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* Bottom CTA bar */
.split-vs-cta {
  border-top: 1px solid var(--line);
  padding: 22px 44px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.split-vs-cta a.text-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
}
.split-vs-cta a.text-link:hover { color: var(--brand-2); }

@media (max-width: 880px) {
  .split-vs-grid { grid-template-columns: 1fr; }
  .split-vs-side { padding: 32px 26px; min-height: 0; }
  .split-divider {
    top: auto;
    left: 24px; right: 24px;
    bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,23,42,0.10) 15%, rgba(15,23,42,0.10) 85%, transparent);
    transform: none;
  }
  .split-stage { min-height: 280px; }
  .split-vs-cta { padding: 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .ow, .new-card-float, .split-data-line .sdl { animation: none !important; }
  .new-dashboard:hover, .new-card-float:hover { transform: none; }
}


/* ---------- Market Friction — animated workflow ---------- */
.friction-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 30px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14.5px;
  transition: color .15s ease, gap .2s ease;
}
.friction-link:hover { color: var(--brand-2); gap: 10px; }

.friction-flow-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 460;
  max-width: 560px;
  margin: 0 auto;
}
.friction-flow-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.flow-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0;
  transition: opacity .9s ease .4s, stroke-width .3s ease;
  animation: flowShimmer 4s linear infinite;
}
.in-view .flow-line { opacity: 0.7; }
.flow-line.glow {
  opacity: 1;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.6));
}
@keyframes flowShimmer {
  to { stroke-dashoffset: -40; }
}

/* Tiles */
.flow-tile {
  position: absolute;
  width: 30%;
  min-width: 132px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.05);
  z-index: 2;
  cursor: default;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1),
              box-shadow .25s ease, border-color .25s ease;
  animation: tileFloat 7s ease-in-out infinite;
  animation-play-state: paused;
}
.in-view .flow-tile {
  opacity: 1;
  transform: translateY(0);
  animation-play-state: running;
}
.flow-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 18px 36px -10px rgba(15, 23, 42, 0.20), 0 6px 14px rgba(37, 99, 235, 0.20);
}
.flow-tile .ft-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.flow-tile .ft-icon svg { width: 16px; height: 16px; }
.flow-tile:hover .ft-icon {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14);
}
.flow-tile .ft-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.flow-tile .ft-tip {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.3;
  margin-top: 3px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .25s ease, max-height .25s ease, margin-top .25s ease;
}
.flow-tile:hover .ft-tip {
  opacity: 1;
  max-height: 24px;
}

@keyframes tileFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

/* Staggered entrance delays */
.in-view .flow-tile.ft1 { transition-delay: 0s, 0s, 0s, 0s; }
.in-view .flow-tile.ft2 { transition-delay: .08s, .08s, 0s, 0s; }
.in-view .flow-tile.ft3 { transition-delay: .16s, .16s, 0s, 0s; }
.in-view .flow-tile.ft4 { transition-delay: .24s, .24s, 0s, 0s; }
.in-view .flow-tile.ft5 { transition-delay: .32s, .32s, 0s, 0s; }
.flow-tile.ft1 { animation-delay: 0s; }
.flow-tile.ft2 { animation-delay: 1.0s; }
.flow-tile.ft3 { animation-delay: 1.8s; }
.flow-tile.ft4 { animation-delay: 0.5s; }
.flow-tile.ft5 { animation-delay: 1.4s; }

/* Tile positions (pentagon around the central hub) */
.flow-tile.ft1 { top: 0%;     left: 38%; }
.flow-tile.ft2 { top: 28%;    left: 64%; }
.flow-tile.ft3 { top: 58%;    left: 60%; }
.flow-tile.ft4 { top: 58%;    left: 10%; }
.flow-tile.ft5 { top: 28%;    left: 6%; }

/* Central hub */
.flow-hub {
  position: absolute;
  top: 33%; left: 33%;
  width: 34%;
  min-width: 156px;
  background: linear-gradient(165deg, #0b1220 0%, #131f3a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  z-index: 3;
  box-shadow:
    0 22px 44px -12px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(37, 99, 235, 0.3),
    0 0 28px rgba(37, 99, 235, 0.22);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .55s ease .55s, transform .55s cubic-bezier(.2,.7,.2,1) .55s;
  animation: hubBreath 4.5s ease-in-out infinite 1.4s;
}
.in-view .flow-hub { opacity: 1; transform: scale(1); }
.flow-hub::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 22px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.flow-hub .fh-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin: 0 auto 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.50);
}
.flow-hub .fh-mark svg { width: 18px; height: 18px; }
.flow-hub .fh-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}
.flow-hub .fh-desc {
  font-size: 11.5px;
  color: #93c5fd;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@keyframes hubBreath {
  0%, 100% { box-shadow: 0 22px 44px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.28), 0 0 22px rgba(37, 99, 235, 0.18); }
  50%      { box-shadow: 0 22px 44px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.55), 0 0 38px rgba(37, 99, 235, 0.45); }
}

@media (max-width: 980px) {
  .friction-flow-stage { aspect-ratio: 1 / 1.2; max-width: 460px; }
}
@media (max-width: 560px) {
  .friction-flow-stage { aspect-ratio: 1 / 1.4; }
  .flow-tile { min-width: 110px; width: 38%; padding: 10px 12px; }
  .flow-tile .ft-name { font-size: 12.5px; }
  .flow-tile .ft-tip { opacity: 1; max-height: 24px; }
  .flow-hub { width: 40%; min-width: 130px; padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-tile, .flow-hub, .flow-line { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .flow-line { opacity: 0.5 !important; }
  .flow-tile:hover { transform: none; }
  .flow-tile:hover .ft-tip { opacity: 1; max-height: 24px; }
}


/* ---------- Market Friction — Workspace illustration ---------- */
.workspace-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 480;
  max-width: 620px;
  margin: 0 auto;
}
.ws-flow-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.ws-flow-line {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0;
  transition: opacity .9s ease .5s;
  animation: flowShimmer 4.5s linear infinite;
}
.in-view .ws-flow-line { opacity: 0.55; }
.in-view .ws-flow-line:nth-of-type(1) { transition-delay: .5s; }
.in-view .ws-flow-line:nth-of-type(2) { transition-delay: .6s; }
.in-view .ws-flow-line:nth-of-type(3) { transition-delay: .7s; }
.in-view .ws-flow-line:nth-of-type(4) { transition-delay: .8s; }

/* ----- Gray "old tool" fragments ----- */
.frag {
  position: absolute;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 11px;
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.08);
  filter: saturate(0.25) grayscale(0.15);
  opacity: 0;
  transform: translateX(-22px) rotate(var(--r, 0deg));
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  width: 22%;
  min-width: 110px;
  z-index: 2;
  animation: fragFloat 7s ease-in-out infinite;
  animation-play-state: paused;
}
.in-view .frag {
  opacity: 0.92;
  transform: translateX(0) rotate(var(--r, 0deg));
  animation-play-state: running;
}
.frag .frag-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.frag-chart  { top: 4%;  left: 0;    width: 24%; animation-delay: 0s; }
.in-view .frag-chart  { transition-delay: 0s, 0s; }
.frag-alert  { top: 26%; left: 2%;   animation-delay: 0.6s; }
.in-view .frag-alert  { transition-delay: .1s, .1s; }
.frag-risk   { top: 50%; left: 1%;   animation-delay: 1.2s; }
.in-view .frag-risk   { transition-delay: .2s, .2s; }
.frag-order  { top: 74%; left: 2%;   width: 22%; animation-delay: 1.8s; }
.in-view .frag-order  { transition-delay: .3s, .3s; }

.frag-chart svg { width: 100%; height: 28px; display: block; }
.frag-lines { display: flex; flex-direction: column; gap: 4px; }
.frag-lines span { height: 5px; background: #e2e8f0; border-radius: 999px; }
.frag-fields { display: flex; flex-direction: column; gap: 4px; }
.frag-fields span {
  height: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}
.frag-fields .frag-btn { background: #94a3b8; border-color: transparent; height: 14px; border-radius: 999px; opacity: 0.5; }

@keyframes fragFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}

/* ----- Main RIT Gestio workspace panel ----- */
.ws-panel {
  position: absolute;
  top: 5%; right: 0;
  width: 56%;
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow:
    0 22px 44px -14px rgba(15, 23, 42, 0.18),
    0 6px 16px -6px rgba(37, 99, 235, 0.10);
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease .2s, transform .6s cubic-bezier(.2,.7,.2,1) .2s;
}
.in-view .ws-panel { opacity: 1; transform: translateY(0); }
.ws-panel::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 24px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, 0.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.ws-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 6px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.ws-head-ttl {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.ws-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.ws-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.ws-chart-block { padding: 0 6px; margin-bottom: 14px; }
.ws-chart-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}
.ws-px { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ws-delta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; margin-left: auto; }
.ws-chart {
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0));
}
.ws-chart svg { width: 100%; height: 100%; display: block; }
.ws-chart-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.4s ease-out .6s;
}
.ws-chart-fill { opacity: 0; transition: opacity 1s ease 1.5s; }
.ws-chart-dot  { opacity: 0; transition: opacity .4s ease 1.8s; }
.in-view .ws-chart-line { stroke-dashoffset: 0; }
.in-view .ws-chart-fill { opacity: 1; }
.in-view .ws-chart-dot  { opacity: 1; }

.ws-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.ws-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.ws-coin {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  display: inline-grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.18), 0 1px 2px rgba(249, 115, 22, 0.25);
}
.ws-chip.on {
  background: var(--brand-soft);
  color: var(--brand-2);
  border-color: transparent;
}
.ws-chip small { font-family: var(--font-mono); font-weight: 600; color: var(--success); font-size: 10px; }
.ws-chip small.down { color: var(--danger); }
.in-view .ws-chip { opacity: 1; transform: translateY(0); }
.in-view .ws-chip:nth-of-type(1) { transition-delay: 1.0s; }
.in-view .ws-chip:nth-of-type(2) { transition-delay: 1.1s; }
.in-view .ws-chip:nth-of-type(3) { transition-delay: 1.2s; }
.in-view .ws-chip:nth-of-type(4) { transition-delay: 1.3s; }

.ws-row {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.ws-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 8px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.in-view .ws-card { opacity: 1; transform: translateY(0); }
.in-view .ws-card:nth-of-type(1) { transition-delay: 1.4s; }
.in-view .ws-card:nth-of-type(2) { transition-delay: 1.55s; }
.in-view .ws-card:nth-of-type(3) { transition-delay: 1.7s; }
.ws-card.ai-card { background: #fff; border-color: var(--line); }
.ws-card.mini { display: flex; align-items: center; gap: 8px; }
.ws-card .ws-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.ws-card .ws-card-val {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ws-card-val strong { font-family: var(--font-mono); font-weight: 700; color: var(--brand); }
.ws-card .ws-bar {
  margin-top: 6px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
  position: relative;
}
.ws-card .ws-bar span {
  position: absolute; inset: 0;
  width: 0;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1) 1.7s;
}
.in-view .ws-card .ws-bar span { width: 82.4%; }
.ws-card-ic {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  flex-shrink: 0;
}
.ws-card-ic.ic-time { background: #fef3c7; color: #b45309; }

/* Workflow strip */
.ws-workflow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  padding: 0 6px;
}
.wf-step {
  flex: 1;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 6px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
  letter-spacing: -0.005em;
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
  transition-delay: calc(2.0s + var(--i, 0) * 0.22s);
}
.wf-arrow {
  color: #cbd5e1;
  display: inline-flex; align-items: center; flex-shrink: 0;
  transition: color .35s ease;
  transition-delay: calc(2.1s + var(--i, 0) * 0.22s);
}
.in-view .wf-step {
  background: var(--brand-soft);
  color: var(--brand-2);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}
.in-view .wf-arrow { color: var(--brand); }

@media (max-width: 980px) {
  .workspace-stage { aspect-ratio: 600 / 540; }
  .ws-panel { width: 60%; }
}
@media (max-width: 760px) {
  .workspace-stage { aspect-ratio: 1 / 1.1; max-width: 480px; }
  .ws-panel { position: relative; width: 100%; right: auto; top: auto; margin-top: 10px; }
  .frag { display: none; }
  .ws-flow-svg { display: none; }
}
@media (max-width: 560px) {
  .ws-row { grid-template-columns: 1fr; }
  .ws-workflow { font-size: 10px; }
  .wf-step { padding: 6px 4px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .frag, .ws-flow-line, .ws-panel, .ws-chip, .ws-card, .wf-step, .wf-arrow,
  .ws-chart-line, .ws-chart-fill, .ws-chart-dot, .ws-card .ws-bar span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ws-flow-line { opacity: 0.5 !important; }
  .ws-chart-line { stroke-dashoffset: 0 !important; }
  .ws-card .ws-bar span { width: 82.4% !important; }
}


/* ---------- Why RIT Gestio (with expert portrait) ---------- */
.why-section { position: relative; }
.why-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

/* LEFT: expert portrait panel */
.expert-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(55% 60% at 30% 20%, rgba(37, 99, 235, 0.10), transparent 70%),
    radial-gradient(50% 50% at 80% 80%, rgba(6, 182, 212, 0.07), transparent 70%),
    linear-gradient(165deg, #f8fafc 0%, #eef2f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.7);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.expert-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
}
.in-view .expert-stage { opacity: 1; transform: translateX(0); }

.expert-glow {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 65%);
  filter: blur(6px);
  pointer-events: none;
  animation: expertBreath 8s ease-in-out infinite;
}
@keyframes expertBreath {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

.expert {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 96%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 24px 38px rgba(15, 23, 42, 0.18));
}

/* Floating mini cards around the expert */
.expert-mini {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(37, 99, 235, 0.08);
  transition: box-shadow .25s ease, border-color .25s ease;
  animation: emFloat 7s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0;
  transform: translateY(10px);
}
.in-view .expert-mini { opacity: 1; transform: translateY(0); animation-play-state: running; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.in-view .expert-mini.em-1 { transition-delay: .3s; }
.in-view .expert-mini.em-2 { transition-delay: .45s; }
.expert-mini .ic {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.expert-mini.em-2 .ic { background: #dcfce7; color: #16a34a; }
.em-label {
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.em-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.expert-mini.em-1 {
  top: 36px;
  left: 16px;
  width: 220px;
  animation-duration: 6.5s;
}
.expert-mini.em-2 {
  bottom: 36px;
  right: 12px;
  width: 220px;
  animation-duration: 7.5s;
  animation-delay: .8s;
}
@keyframes emFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

/* RIGHT: content */
.why-content { max-width: 560px; }
.why-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 4vw, 48px);
}
.why-content > p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
  color: var(--muted);
}

.why-features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.why-features li {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  opacity: 0;
  transform: translateY(12px);
}
.in-view .why-features li { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), border-color .2s ease, box-shadow .2s ease; }
.in-view .why-features li:nth-child(1) { transition-delay: .1s, .1s, 0s, 0s; }
.in-view .why-features li:nth-child(2) { transition-delay: .2s, .2s, 0s, 0s; }
.in-view .why-features li:nth-child(3) { transition-delay: .3s, .3s, 0s, 0s; }
.in-view .why-features li:nth-child(4) { transition-delay: .4s, .4s, 0s, 0s; }
.why-features li:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(37, 99, 235, 0.18);
}
.why-features .why-ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.why-features strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.why-features span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .why-split { grid-template-columns: 1fr; gap: 48px; }
  .expert-stage { max-width: 440px; }
}
@media (max-width: 640px) {
  .why-features { grid-template-columns: 1fr; }
  .expert-stage { aspect-ratio: 3 / 4; }
  .expert-mini.em-1, .expert-mini.em-2 { width: 200px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .expert-stage, .expert-mini, .why-features li { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .why-features li:hover { transform: none; }
}


/* ---------- Packages preview (home) ---------- */
.pricing-preview-grid { grid-template-columns: 1fr 1.05fr 1fr; }
.pp-tier {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1),
              box-shadow .25s ease, border-color .25s ease;
}
.in-view .pp-tier { opacity: 1; transform: translateY(0); }
.in-view .pp-tier:nth-child(1) { transition-delay: .05s, .05s, 0s, 0s; }
.in-view .pp-tier:nth-child(2) { transition-delay: .18s, .18s, 0s, 0s; }
.in-view .pp-tier:nth-child(3) { transition-delay: .31s, .31s, 0s, 0s; }

.tier.featured.pp-tier {
  animation: ppFeatGlow 5s ease-in-out infinite;
}
@keyframes ppFeatGlow {
  0%, 100% { box-shadow: 0 28px 60px -24px rgba(37, 99, 235, 0.35), 0 0 0 1px var(--brand); }
  50%      { box-shadow: 0 28px 60px -24px rgba(37, 99, 235, 0.55), 0 0 0 1px var(--brand), 0 0 28px rgba(37, 99, 235, 0.30); }
}

.pp-vip { position: relative; }
.pp-vip::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.06) 40%, rgba(250, 204, 21, 0.10) 50%, rgba(255, 255, 255, 0.06) 60%, transparent 100%);
  transform: skewX(-12deg);
  animation: ppVipShimmer 6s ease-in-out infinite;
  pointer-events: none;
  clip-path: inset(0 round var(--radius-lg));
  -webkit-clip-path: inset(0 round var(--radius-lg));
}
@keyframes ppVipShimmer {
  0%   { left: -30%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

@media (max-width: 980px) {
  .pricing-preview-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-tier { opacity: 1; transform: none; transition: none; }
  .tier.featured.pp-tier, .pp-vip::after { animation: none !important; }
}


/* ---------- How it works ---------- */
.hiw-section { position: relative; overflow: hidden; }
.hiw-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(35% 50% at 18% 20%, rgba(37, 99, 235, 0.07), transparent 60%),
    radial-gradient(40% 50% at 82% 80%, rgba(6, 182, 212, 0.06), transparent 60%);
}
.hiw-bg-grid {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}
.hiw-section .container { position: relative; z-index: 1; }

.hiw-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  padding-top: 12px;
}

/* Connector line behind the cards */
.hiw-connector {
  position: absolute;
  top: 96px;
  left: 0; right: 0;
  width: 100%;
  height: 8px;
  z-index: 0;
  pointer-events: none;
}
.hiw-line {
  stroke-dasharray: 5 7;
  stroke-dashoffset: 800;
  opacity: 0;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1) .35s, opacity .5s ease .35s;
  animation: hiwShimmer 6s linear infinite;
}
.in-view .hiw-line { stroke-dashoffset: 0; opacity: 0.65; }
@keyframes hiwShimmer {
  to { stroke-dashoffset: -40; }
}

/* Glow traveler */
.hiw-traveler {
  position: absolute;
  top: 92px;
  left: 16%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #06b6d4 0%, rgba(37, 99, 235, 0.6) 40%, transparent 70%);
  filter: blur(1px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: hiwTravel 4.5s ease-in-out infinite 1.6s;
}
.in-view .hiw-traveler { opacity: 1; }
@keyframes hiwTravel {
  0%   { left: 16%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 84%; opacity: 0; }
}

/* Step cards */
.hiw-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.12);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: hiwFloat 7s ease-in-out infinite;
  animation-play-state: paused;
}
.in-view .hiw-card {
  opacity: 1;
  transform: translateY(0);
  animation-play-state: running;
}
.in-view .hiw-card.hiw-1 { transition: opacity .55s ease .15s, transform .55s cubic-bezier(.2,.7,.2,1) .15s, box-shadow .25s ease, border-color .25s ease; animation-delay: 0s; }
.in-view .hiw-card.hiw-2 { transition: opacity .55s ease .55s, transform .55s cubic-bezier(.2,.7,.2,1) .55s, box-shadow .25s ease, border-color .25s ease; animation-delay: 1.0s; }
.in-view .hiw-card.hiw-3 { transition: opacity .55s ease .95s, transform .55s cubic-bezier(.2,.7,.2,1) .95s, box-shadow .25s ease, border-color .25s ease; animation-delay: 2.0s; }
.hiw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 22px 44px -16px rgba(15, 23, 42, 0.20), 0 8px 18px rgba(37, 99, 235, 0.18);
}
@keyframes hiwFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}

.hiw-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.hiw-ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), #e0e7ff);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 6px;
  position: relative;
  animation: hiwIconPulse 4s ease-in-out infinite;
}
.hiw-ic::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 20px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hiw-ic svg { width: 26px; height: 26px; }
@keyframes hiwIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.10); }
}

.hiw-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.hiw-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.hiw-tip {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brand);
  letter-spacing: 0.04em;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .25s ease, max-height .25s ease, padding-top .25s ease, border-color .25s ease;
}
.hiw-card:hover .hiw-tip {
  opacity: 1;
  max-height: 60px;
}

@media (max-width: 880px) {
  .hiw-flow { grid-template-columns: 1fr; gap: 14px; }
  /* Switch to a vertical connector */
  .hiw-connector {
    top: 0; bottom: 0; left: 32px;
    width: 8px; height: auto;
    transform: rotate(90deg);
    display: none;
  }
  /* Use a CSS-only vertical line between cards */
  .hiw-flow::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 80px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg,
      rgba(6, 182, 212, 0) 0%,
      rgba(6, 182, 212, 0.5) 10%,
      rgba(37, 99, 235, 0.5) 50%,
      rgba(79, 70, 229, 0.5) 90%,
      rgba(79, 70, 229, 0) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity .6s ease .3s;
  }
  .in-view .hiw-flow::before { opacity: 0.7; }
  .hiw-traveler {
    top: 80px;
    left: 21px;
    animation: hiwTravelVert 4.5s ease-in-out infinite 1.6s;
  }
  @keyframes hiwTravelVert {
    0%   { top: 80px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: calc(100% - 80px); opacity: 0; }
  }
  .hiw-card { padding-left: 64px; }
  .hiw-card .hiw-ic {
    position: absolute;
    left: 12px; top: 22px;
    width: 44px; height: 44px;
    margin: 0;
  }
  .hiw-card .hiw-ic svg { width: 22px; height: 22px; }
  .hiw-card h3 { font-size: 18px; }
  .hiw-tip { opacity: 1; max-height: 60px; padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hiw-card, .hiw-line, .hiw-traveler, .hiw-ic, .hiw-flow::before {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hiw-line { stroke-dashoffset: 0 !important; opacity: 0.5 !important; }
  .hiw-card:hover { transform: none; }
  .hiw-card:hover .hiw-tip { opacity: 1; max-height: 60px; }
}


/* ---------- Final CTA banner — premium polish ---------- */
.cta-banner-fx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle moving glow layer */
.cta-banner-fx::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(35% 45% at 15% 30%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(30% 40% at 80% 70%, rgba(6, 182, 212, 0.22), transparent 60%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  animation: ctaGlowDrift 14s ease-in-out infinite alternate;
}
@keyframes ctaGlowDrift {
  0%   { transform: translate3d(-3%, -2%, 0); }
  100% { transform: translate3d(3%, 2%, 0); }
}

.cta-banner-fx .cta-banner-inner {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.in-view .cta-banner-fx .cta-banner-inner { opacity: 1; transform: translateY(0); }
.cta-banner-fx h2 {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease .15s, transform .6s cubic-bezier(.2,.7,.2,1) .15s;
}
.cta-banner-fx p {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease .3s, transform .6s cubic-bezier(.2,.7,.2,1) .3s;
}
.cta-banner-fx .cta-btn-primary,
.cta-banner-fx .cta-btn-ghost {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1),
              background .2s ease, box-shadow .25s ease, border-color .2s ease, gap .2s ease;
}
.cta-banner-fx .cta-btn-primary { transition-delay: .45s, .45s, 0s, 0s, 0s, 0s; }
.cta-banner-fx .cta-btn-ghost   { transition-delay: .55s, .55s, 0s, 0s, 0s, 0s; }
.in-view .cta-banner-fx h2,
.in-view .cta-banner-fx p,
.in-view .cta-banner-fx .cta-btn-primary,
.in-view .cta-banner-fx .cta-btn-ghost { opacity: 1; transform: translateY(0); }

/* Headline shimmer on "structure?" */
.cta-banner-fx .cta-shimmer {
  background: linear-gradient(90deg,
    #06b6d4 0%,
    #2563eb 35%,
    #ffffff 50%,
    #4f46e5 65%,
    #06b6d4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ctaShimmer 8s ease-in-out infinite;
}
@keyframes ctaShimmer {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: -100% 0; }
}

/* Button actions row */
.cta-banner-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Primary button: blue glow on hover */
.cta-banner-fx .cta-btn-primary {
  position: relative;
}
.cta-banner-fx .cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px -8px rgba(37, 99, 235, 0.65),
    0 0 28px rgba(37, 99, 235, 0.35);
  gap: 12px;
}
.cta-banner-fx .cta-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.cta-banner-fx .cta-btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 12px 28px -8px rgba(37, 99, 235, 0.30);
  gap: 12px;
}
.cta-banner-fx .cta-btn-primary svg,
.cta-banner-fx .cta-btn-ghost svg {
  transition: transform .25s ease;
}
.cta-banner-fx .cta-btn-primary:hover svg,
.cta-banner-fx .cta-btn-ghost:hover svg {
  transform: translateX(4px);
}

/* Glowing nodes scattered in the background */
.cta-node {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25), 0 0 18px rgba(6, 182, 212, 0.55);
  z-index: 1;
  pointer-events: none;
  animation: ctaNodeBlink 5s ease-in-out infinite;
}
.cta-node.n1 { top: 24%; left: 8%;  animation-delay: 0s; }
.cta-node.n2 { top: 70%; left: 42%; animation-delay: 1.6s; background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 0 18px rgba(37, 99, 235, 0.55); }
.cta-node.n3 { top: 30%; right: 18%; animation-delay: 2.8s; background: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25), 0 0 18px rgba(79, 70, 229, 0.55); }
@keyframes ctaNodeBlink {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* Subtle data streaks */
.cta-streak {
  position: absolute;
  left: 0; width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(6, 182, 212, 0) 0%,
    rgba(6, 182, 212, 0.5) 40%,
    rgba(37, 99, 235, 0.75) 55%,
    rgba(79, 70, 229, 0) 100%);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: ctaStreak 10s ease-in-out infinite;
}
.cta-streak.ss1 { top: 22%; animation-delay: 1.2s; }
.cta-streak.ss2 { top: 76%; animation-delay: 6.0s; animation-duration: 12s; }
@keyframes ctaStreak {
  0%   { transform: translateX(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(180%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner-fx::after,
  .cta-banner-fx .cta-shimmer,
  .cta-node, .cta-streak {
    animation: none !important;
  }
  .cta-banner-fx .cta-banner-inner,
  .cta-banner-fx h2,
  .cta-banner-fx p,
  .cta-banner-fx .cta-btn-primary,
  .cta-banner-fx .cta-btn-ghost {
    opacity: 1 !important;
    transform: none !important;
    transition: background .2s ease, box-shadow .25s ease, border-color .2s ease !important;
  }
  .cta-banner-fx .cta-btn-primary:hover,
  .cta-banner-fx .cta-btn-ghost:hover { transform: none; }
}
