/* ==========================================================================
   YUAA AI — Design Tokens
   Display: Space Grotesk / Body: Inter
   Palette: ink #0A0A14, violet #6D28D9, indigo #4338CA, cyan #22D3EE,
            lavender-50 #F6F4FE, line #E6E1FB, muted #635F79
   ========================================================================== */

:root {
  --ink: #0a0a14;
  --ink-soft: #131226;
  --violet: #6d28d9;
  --violet-2: #8b5cf6;
  --indigo: #4338ca;
  --cyan: #22d3ee;
  --bg: #f6f4fe;
  --bg-alt: #fbfaff;
  --line: #e6e1fb;
  --text: #161327;
  --muted: #65607d;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px -12px rgba(76, 29, 149, 0.18);
  --shadow-card: 0 4px 18px -6px rgba(30, 20, 70, 0.12);
  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --grad-radial: radial-gradient(circle at 30% 20%,
      rgba(139, 92, 246, 0.35),
      transparent 60%);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

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

.container-xl {
  max-width: 1240px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   TOP BAR + NAV
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: #ede9fe;
  font-size: 0.8rem;
  padding: 9px 0;
  letter-spacing: 0.01em;
}

.topbar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

.topbar i {
  color: var(--cyan);
}

.site-header {
  background: rgba(246, 244, 254, 0.85);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
}

.navbar {
  padding: 14px 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-ai {
  color: var(--violet);
}

.navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: 0.2s;
}

.navbar-nav .nav-link:hover {
  color: var(--violet) !important;
  background: rgba(109, 40, 217, 0.07);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 8px;
}

.dropdown-item {
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 8px 12px;
}

.dropdown-item:hover {
  background: var(--bg);
  color: var(--violet);
}

.btn-login {
  border: 1.5px solid var(--text);
  border-radius: 50px;
  padding: 7px 20px !important;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text) !important;
  transition: 0.2s;
}

.btn-login:hover {
  background: var(--text);
  color: #fff !important;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 0px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 50% -10%,
      rgba(139, 92, 246, 0.18),
      transparent 60%),
    linear-gradient(180deg, #f6f4fe 0%, #f1edfd 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  background: #8b5cf6;
  top: -120px;
  left: -120px;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: #22d3ee;
  bottom: -140px;
  right: -100px;
  opacity: 0.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--violet);
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.eyebrow-dark {
  color: var(--violet);
  background: #fff;
}

.eyebrow-light {
  color: #c4b5fd;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
}

.text-grad {
  background: linear-gradient(90deg, #6d28d9 0%, #4338ca 55%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary-grad {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px -8px rgba(109, 40, 217, 0.55);
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
}

.btn-primary-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(109, 40, 217, 0.65);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--line);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s;
}

.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.25s;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- AI Hub (signature element) ---------- */
.ai-hub {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  margin: 0 auto 30px;
  z-index: 1;
}

.hub-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.link-lines path {
  fill: none;
  stroke: rgba(109, 40, 217, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  animation: dashflow 3.2s linear infinite;
}

@keyframes dashflow {
  to {
    stroke-dashoffset: -100;
  }
}

.hub-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow:
    0 0 0 8px rgba(139, 92, 246, 0.14),
    0 0 0 18px rgba(139, 92, 246, 0.08),
    0 20px 45px -10px rgba(109, 40, 217, 0.55);
  animation: corepulse 2.6s ease-in-out infinite;
  z-index: 3;
}

@keyframes corepulse {

  0%,
  100% {
    box-shadow:
      0 0 0 8px rgba(139, 92, 246, 0.14),
      0 0 0 18px rgba(139, 92, 246, 0.08),
      0 20px 45px -10px rgba(109, 40, 217, 0.55);
  }

  50% {
    box-shadow:
      0 0 0 12px rgba(139, 92, 246, 0.2),
      0 0 0 26px rgba(139, 92, 246, 0.1),
      0 20px 55px -8px rgba(109, 40, 217, 0.6);
  }
}

.hub-node {
  position: absolute;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px;
  box-shadow: var(--shadow-card);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  animation: floaty 4s ease-in-out infinite;
  z-index: 2;
}

.hub-node i {
  color: var(--violet);
  font-size: 0.95rem;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.n1 {
  top: 2%;
  left: 40%;
  transform: translateX(-50%);
}

.n2 {
  top: 16%;
  right: 6%;
}

.n3 {
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
}

.n4 {
  bottom: 16%;
  right: 6%;
}

.n5 {
  bottom: 2%;
  left: 40%;
  transform: translateX(-50%);
}

.n6 {
  bottom: 16%;
  left: 6%;
}

.n7 {
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
}

.n8 {
  top: 16%;
  left: 6%;
}

.n2,
.n4,
.n6,
.n8 {
  animation-delay: 0.6s;
}

.n3,
.n7 {
  animation-delay: 1.2s;
}

.flow-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.flow-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 8px 14px;
  box-shadow: var(--shadow-card);
}

.flow-strip i.fa-solid:not(.flow-arrow) {
  color: var(--violet);
}

.flow-arrow {
  color: #c4b5fd;
  font-size: 0.7rem;
}

/* ---------- Left dashboard float card ---------- */
.float-card {
  animation: floaty2 6s ease-in-out infinite;
}

@keyframes floaty2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}

.panel-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 7px 8px;
  border-radius: 8px;
}

.panel-nav li i {
  width: 14px;
  color: #b5aedd;
}

.panel-nav li.active {
  background: rgba(109, 40, 217, 0.08);
  color: var(--violet);
  font-weight: 600;
}

.panel-nav li.active i {
  color: var(--violet);
}

.panel-metric {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  margin-bottom: 12px;
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.metric-delta {
  font-size: 0.72rem;
  font-weight: 700;
}

.metric-delta.up {
  color: var(--ok);
}

.metric-spark {
  width: 100%;
  height: 34px;
  margin-top: 6px;
}

.metric-spark polyline {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-split {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-split div {
  flex: 1;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.panel-split b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-top: 2px;
}

.panel-footer {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.text-ok {
  color: var(--ok);
}

/* ---------- Phone mock ---------- */
.phone-shell {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 9/18.5;
  background: linear-gradient(160deg, #1c1b2e, #0a0a14);
  border-radius: 42px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 30px 60px -18px rgba(76, 29, 149, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: floaty2 7s ease-in-out infinite;
}

.phone-shell-sm {
  max-width: 210px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: #0a0a14;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 0%, #1e1b3a 0%, #0b0a1c 70%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 14px 20px;
}

.listening-label {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 36px;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.voice-wave {
  width: 100%;
  height: 70px;
  margin-top: 36px;
}

.voice-wave .bars rect {
  fill: var(--cyan);
  opacity: 0.9;
  animation: wavebar 1.2s ease-in-out infinite;
}

.voice-wave .bars rect:nth-child(odd) {
  animation-delay: 0.15s;
}

.voice-wave .bars rect:nth-child(3n) {
  animation-delay: 0.3s;
}

.voice-wave .bars rect:nth-child(4n) {
  animation-delay: 0.45s;
}

@keyframes wavebar {

  0%,
  100% {
    transform: scaleY(0.5);
  }

  50% {
    transform: scaleY(1);
  }
}

.voice-wave .bars {
  transform-box: fill-box;
  transform-origin: center;
}

.voice-wave-sm {
  height: 52px;
  margin-top: 20px;
}

.phone-toasts {
  width: 100%;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e9e7fb;
  font-size: 0.66rem;
  font-weight: 500;
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  animation: toastin 0.5s ease both;
}

.toast-chip i {
  color: var(--cyan);
  font-size: 0.7rem;
}

.toast-chip:nth-child(1) {
  animation-delay: 0.2s;
}

.toast-chip:nth-child(2) {
  animation-delay: 0.5s;
}

.toast-chip:nth-child(3) {
  animation-delay: 0.8s;
}

.toast-chip:nth-child(4) {
  animation-delay: 1.1s;
}

@keyframes toastin {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-mic {
  position: absolute;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.18);
  animation: corepulse 2.4s ease-in-out infinite;
}

.phone-mic-sm {
  width: 38px;
  height: 38px;
  font-size: 0.85rem;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #edebfb;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 12px 12px 12px 3px;
  margin-bottom: 6px;
  position: absolute;
  top: 34px;
  max-width: 82%;
}

/* ==========================================================================
   ONE ASSISTANT SECTION
   ========================================================================== */
.section-tools {
  padding: 100px 0;
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 26px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: 0.2s;
}

.chip i {
  color: var(--violet);
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--violet-2);
}

.chip-more {
  color: var(--violet);
  border-style: dashed;
}

.assistant-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-avatar-figure {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  z-index: 1;
}

.avatar-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a78bfa, #4338ca 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  box-shadow: 0 30px 60px -15px rgba(76, 29, 149, 0.55);
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(109, 40, 217, 0.25);
}

.avatar-ring.r1 {
  inset: -22px;
  animation: ringspin 14s linear infinite;
}

.avatar-ring.r2 {
  inset: -44px;
  border-style: dashed;
  animation: ringspin 22s linear infinite reverse;
}

@keyframes ringspin {
  to {
    transform: rotate(360deg);
  }
}

.event-stack {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: var(--shadow-card);
  min-width: 210px;
  animation: floaty 5s ease-in-out infinite;
}

.event-card:nth-child(2) {
  animation-delay: 0.5s;
}

.event-card:nth-child(3) {
  animation-delay: 1s;
}

.event-card:nth-child(4) {
  animation-delay: 1.5s;
}

.event-card i {
  color: var(--violet);
  font-size: 1.05rem;
  width: 18px;
}

.event-card b {
  display: block;
  font-size: 0.82rem;
}

.event-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ==========================================================================
   ACCOUNTING SECTION
   ========================================================================== */
.section-accounting {
  padding: 100px 0;
  background: var(--bg);
}

.glass-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.ar-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ar-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 80px;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
}

.ar-step i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: #b5aedd;
  font-size: 0.9rem;
}

.ar-step.done i {
  background: rgba(109, 40, 217, 0.1);
  color: var(--violet);
}

.ar-step.active i {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.18);
}

.ar-step.active {
  color: var(--violet);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.invoice-info b {
  display: block;
  font-size: 0.9rem;
}

.invoice-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.invoice-amount {
  text-align: right;
}

.invoice-amount b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.badge-paid {
  background: rgba(22, 163, 74, 0.12);
  color: var(--ok);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.settled-note {
  color: var(--ok);
  font-weight: 600;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mini-panel {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  height: 100%;
}

.mini-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.mini-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.mini-line:last-child {
  border-bottom: none;
}

.mini-line em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-line em.pending {
  color: var(--warn);
}

.mini-line em.ok {
  color: var(--ok);
}

.alert-panel .mini-label {
  color: var(--danger);
}

.cashflow-spark {
  width: 100%;
  height: 44px;
  margin: 4px 0 6px;
}

.cashflow-spark polyline {
  fill: none;
  stroke: var(--violet-2);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   RECRUITMENT SECTION
   ========================================================================== */
.section-recruit {
  padding: 100px 0;
  background: var(--bg-alt);
}

.stepline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.stepline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 8px 16px 8px 8px;
}

.stepline-item span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.stepline-item.active {
  color: var(--violet);
  border-color: #d9cffb;
}

.stepline-item.active span {
  background: var(--grad-primary);
  color: #fff;
}

.cand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.cand-row.highlight {
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid #e4d9fc;
}

.cand-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.cand-row div {
  flex: 1;
  min-width: 0;
}

.cand-row b {
  display: block;
  font-size: 0.82rem;
}

.cand-row span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cand-row .score {
  font-weight: 700;
  color: var(--ok);
  font-size: 0.82rem;
}

.more-link {
  color: var(--violet);
  font-weight: 600;
  margin-top: 6px;
}

.cand-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 3px solid var(--bg);
}

.cand-meta div {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.cand-meta span {
  color: var(--muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.skill-tags span {
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--violet);
}

.video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-live {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-live i {
  color: #ef4444;
  font-size: 0.5rem;
}

.play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  color: #fff;
  font-size: 2.4rem;
  opacity: 0.9;
  width: fit-content;
  height: fit-content;
}

.bar-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.bar-metric span {
  width: 70px;
  flex-shrink: 0;
}

.bar-metric .bar {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.bar-metric .bar i {
  display: block;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 4px;
}

.bar-metric b {
  width: 30px;
  text-align: right;
  color: var(--text);
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--bg);
}

.rank-row:last-child {
  border-bottom: none;
}

.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-num.r1 {
  background: var(--grad-primary);
  color: #fff;
}

.rank-row img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.rank-row b {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
}

.rank-score {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--violet);
}

/* ==========================================================================
   VOICE TO DASHBOARD
   ========================================================================== */
.section-voice {
  position: relative;
  padding: 100px 0;
  background: var(--ink);
  overflow: hidden;
}

.voice-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 15% 30%,
      rgba(139, 92, 246, 0.25),
      transparent 60%),
    radial-gradient(600px 400px at 85% 70%,
      rgba(34, 211, 238, 0.15),
      transparent 60%);
}

.section-voice .container-xl {
  position: relative;
  z-index: 1;
}

.text-muted-light {
  color: #9c97be;
}

.voice-command {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 20px 24px;
  display: inline-block;
}

.voice-command i {
  color: var(--cyan);
  font-size: 1rem;
  margin-right: 10px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  height: 100%;
  transition: 0.25s;
}

.kpi-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.kpi-card span {
  display: block;
  font-size: 0.72rem;
  color: #9c97be;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.kpi-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
}

.kpi-card small {
  color: #b5aedd;
  font-size: 0.72rem;
}

.kpi-card small.up {
  color: #5eead4;
}

.kpi-highlight {
  background: linear-gradient(135deg,
      rgba(109, 40, 217, 0.35),
      rgba(34, 211, 238, 0.18));
  border-color: rgba(139, 92, 246, 0.5);
}

/* ==========================================================================
   FEATURE GRID
   ========================================================================== */
.section-features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.feature-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: 0.25s;
}

.feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: #d9cffb;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.icon-a {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.icon-b {
  background: linear-gradient(135deg, #6366f1, #4338ca);
}

.icon-c {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
}

.icon-d {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.icon-e {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
}

.icon-f {
  background: linear-gradient(135deg, #34d399, #059669);
}

.icon-g {
  background: linear-gradient(135deg, #f472b6, #db2777);
}

.icon-h {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.icon-i {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.feature-tile h5 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-tile p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ==========================================================================
   INTEGRATIONS ORBIT
   ========================================================================== */
.section-integrations {
  padding: 100px 0;
  background: var(--bg);
}

.integration-orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

.integration-orbit::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1.5px dashed var(--line);
  border-radius: 50%;
}

.integration-orbit::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1.5px dashed var(--line);
  border-radius: 50%;
}

.integration-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 25px 50px -12px rgba(109, 40, 217, 0.5);
  z-index: 2;
  animation: corepulse 2.8s ease-in-out infinite;
}

.int-node {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 9px 15px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
  z-index: 1;
}

.int-node i {
  color: var(--violet);
}

.p1 {
  top: 0%;
  left: 18%;
}

.p2 {
  top: 2%;
  right: 12%;
}

.p3 {
  top: 30%;
  left: -4%;
}

.p4 {
  top: 32%;
  right: -6%;
}

.p5 {
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
}

.p6 {
  top: 50%;
  right: 0%;
  transform: translateY(-50%);
}

.p7 {
  bottom: 30%;
  left: -4%;
}

.p8 {
  bottom: 28%;
  right: -6%;
}

.p9 {
  bottom: 0%;
  left: 20%;
}

.p10 {
  bottom: 2%;
  right: 8%;
}

.int-node:nth-child(odd) {
  animation-delay: 0.4s;
}

.int-node:nth-child(3n) {
  animation-delay: 0.9s;
}

/* ==========================================================================
   TRUST / SINGAPORE
   ========================================================================== */
.section-trust {
  position: relative;
  padding: 110px 0 70px;
  background: var(--ink);
  overflow: hidden;
}

.skyline {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(900px 500px at 80% 100%,
      rgba(109, 40, 217, 0.35),
      transparent 60%),
    radial-gradient(700px 400px at 10% 100%,
      rgba(34, 211, 238, 0.15),
      transparent 60%);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  color: #edebfb;
  transition: 0.2s;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.09);
}

.trust-badge i {
  color: var(--cyan);
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: block;
}

.trust-badge span {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
  margin: 70px 0 50px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-block {
  text-align: center;
  color: #fff;
}

.stat-block b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, #c4b5fd, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-block span {
  font-size: 0.85rem;
  color: #9c97be;
}

.client-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #7a749e;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.section-testimonials {
  padding: 100px 0;
  background: var(--bg-alt);
}

.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: 0.25s;
}

.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.stars {
  color: #f59e0b;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.quote-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-author b {
  display: block;
  font-size: 0.86rem;
}

.quote-author span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ==========================================================================
   FAQ + CTA
   ========================================================================== */
.section-faq {
  padding: 100px 0;
  background: var(--bg);
}

.accordion-item {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  padding: 16px 20px;
}

.accordion-button:not(.collapsed) {
  color: var(--violet);
  background: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--line);
}

.accordion-button::after {
  filter: hue-rotate(220deg) saturate(3);
}

.accordion-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 20px 18px;
}

.cta-panel {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 50% 0%,
      rgba(139, 92, 246, 0.35),
      transparent 60%);
}

.cta-orb {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  box-shadow:
    0 0 0 8px rgba(139, 92, 246, 0.15),
    0 0 0 16px rgba(139, 92, 246, 0.08);
  animation: corepulse 2.6s ease-in-out infinite;
}

.cta-panel h3 {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.cta-panel p {
  position: relative;
  z-index: 1;
  color: #9c97be;
  margin-bottom: 26px;
  font-size: 0.92rem;
}

.cta-panel .cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink-soft);
  color: #b5aedd;
  padding: 70px 0 26px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 0.85rem;
  color: #8b85ad;
  margin-bottom: 18px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5aedd;
  transition: 0.2s;
}

.footer-social a:hover {
  background: var(--violet);
  color: #fff;
}

.site-footer h6 {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer ul a {
  color: #8b85ad;
  font-size: 0.84rem;
  transition: 0.2s;
}

.site-footer ul a:hover {
  color: var(--cyan);
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 40px 0 20px;
}

.site-footer small {
  color: #6f6990;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .hero {
    padding: 56px 0 30px;
  }

  .ai-hub {
    max-width: 340px;
  }

  .hub-node {
    width: 70px;
    font-size: 0.6rem;
    padding: 8px 4px;
  }

  .stats-row {
    gap: 36px;
  }

  .assistant-stage {
    min-height: 340px;
  }

  .event-stack {
    position: static;
    margin-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .event-card {
    min-width: 170px;
  }

  .ai-avatar-figure {
    position: static;
    transform: none;
    margin: 0 auto;
  }

  .assistant-stage {
    flex-direction: column;
    gap: 24px;
    min-height: auto;
  }

  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .topbar {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .ai-hub {
    max-width: 300px;
    margin-bottom: 20px;
  }

  .hub-node {
    width: 62px;
    font-size: 0.55rem;
    padding: 6px 3px;
  }

  .hub-node i {
    font-size: 0.8rem;
  }

  .hub-core {
    width: 88px;
    height: 88px;
    font-size: 1.1rem;
  }

  .flow-strip {
    font-size: 0.68rem;
    gap: 6px;
  }

  .flow-strip span {
    padding: 6px 10px;
  }

  .section-tools,
  .section-accounting,
  .section-recruit,
  .section-voice,
  .section-features,
  .section-integrations,
  .section-trust,
  .section-testimonials,
  .section-faq {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .stats-row {
    gap: 26px;
  }

  .stat-block b {
    font-size: 1.9rem;
  }

  .integration-orbit {
    max-width: 100%;
  }

  .int-node {
    font-size: 0.66rem;
    padding: 6px 10px;
  }

  .cta-panel {
    padding: 36px 22px;
  }

  .stepline {
    gap: 6px;
  }

  .stepline-item {
    font-size: 0.68rem;
    padding: 6px 12px 6px 6px;
  }
}

@media (max-width: 575px) {
  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-logos {
    gap: 22px;
    font-size: 0.82rem;
  }

  .integration-orbit {
    transform: scale(0.82);
    margin-top: -40px;
    margin-bottom: -40px;
  }
}

.footer-address,
.footer-contact {
  font-size: 0.85rem;
  color: #8b85ad;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-contact a {
  color: #b5aedd;
  transition: 0.2s;
}

.footer-contact a:hover {
  color: var(--cyan);
}

.site-footer small a {
  color: #8b85ad;
  transition: 0.2s;
}

.site-footer small a:hover {
  color: var(--cyan);
}

#bookDemoModal .modal-title {
  font-family: var(--font-display);
  color: var(--text);
}

#bookDemoModal .modal-header {
  padding: 18px 22px 8px;
}

#bookDemoModal .btn-close {
  box-shadow: none;
}

#bookDemoModal .btn-close:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}