/* ============================================================
   FOREXTY — Premium Enterprise Light Design System
   Global Forex CRM Platform
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-navy: #0F172A;

  /* Brand */
  --blue: #0057FF;
  --blue-2: #2563EB;
  --blue-3: #3B82F6;
  --blue-50: #EFF4FF;
  --blue-100: #DCE7FF;
  --electric: #3B82F6;
  --platinum: #B0BAC9;
  --grad-signature: linear-gradient(135deg, #0057FF, #0F172A);

  /* Text */
  --navy: #0F172A;
  --ink: #111827;
  --muted: #6B7280;
  --muted-2: #9CA3AF;

  /* Lines & states */
  --line: #E5E7EB;
  --line-soft: #F1F5F9;
  --success: #10B981;
  --success-bg: #ECFDF5;
  --danger: #EF4444;
  --amber: #F59E0B;

  /* Radii */
  --r-btn: 12px;
  --r-card: 16px;
  --r-sec: 24px;
  --r-pill: 999px;

  /* Shadows (soft, premium) */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
  --shadow-blue: 0 12px 32px rgba(0,87,255,.22);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Inter', 'SF Pro Display', sans-serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-50); padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--blue-100);
}
.gradient-text {
  background: linear-gradient(100deg, var(--blue), var(--blue-3), #60A5FA, var(--blue-2), var(--blue));
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradFlow 7s ease-in-out infinite;
}
@keyframes gradFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.12rem; margin-top: 16px; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: .98rem; font-weight: 700; padding: 14px 26px;
  border-radius: var(--r-btn); transition: all .25s var(--ease);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,87,255,.3); }
.btn-secondary { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; color: var(--blue); margin-right: 9px; }
.brand-mark svg { width: 28px; height: 28px; }
.brand .bx { color: var(--electric); }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand .bx { color: var(--electric); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: .95rem; color: #374151;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--blue); background: var(--blue-50); }
.nav-link svg { width: 15px; height: 15px; transition: transform .25s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: 14px; min-width: 480px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; transition: background .2s; }
.dd-item:hover { background: var(--bg-soft); }
.dd-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.dd-ico svg { width: 19px; height: 19px; }
.dd-title { font-weight: 700; font-size: .92rem; color: var(--navy); }
.dd-desc { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 80px 0 124px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(0,87,255,.07), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(59,130,246,.06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 0; font-size: clamp(2.6rem, 4vw, 3.25rem); line-height: 1.05; }
.hero h1 .gradient-text { display: block; }
.hero-sub { font-size: 1.05rem; line-height: 1.6; margin: 24px 0 0; max-width: 520px; color: #475569; }
.hero-cta { margin-top: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 600; color: #374151; }
.hero-trust-item svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* Hero dashboard mock */
.hero-visual { position: relative; }
.dash {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.dash-dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-dot:nth-child(1){background:#FF5F57}.dash-dot:nth-child(2){background:#FEBC2E}.dash-dot:nth-child(3){background:#28C840}
.dash-url { margin-left: 10px; font-size: .76rem; color: var(--muted-2); background:#fff; border:1px solid var(--line); padding:4px 12px; border-radius:7px; }
.dash-body { padding: 18px; }
.dash-row { display: flex; gap: 14px; }
.dash-side { flex: none; width: 130px; display: flex; flex-direction: column; gap: 7px; }
.dash-navi { display: flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 8px 10px; border-radius: 9px; }
.dash-navi.active { background: var(--blue-50); color: var(--blue); }
.dash-navi i { width: 8px; height: 8px; border-radius: 3px; background: currentColor; opacity: .55; }
.dash-main { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi-label { font-size: .68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kpi-val { font-size: 1.22rem; font-weight: 800; color: var(--navy); margin-top: 3px; }
.kpi-trend { font-size: .7rem; font-weight: 700; color: var(--success); display:flex; align-items:center; gap:3px; }
.dash-chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dash-chart-title { font-size: .82rem; font-weight: 700; color: var(--navy); }
.dash-chart-tag { font-size: .68rem; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 3px 8px; border-radius: 6px; }

/* Hero video (inline autoplay loop) */
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-navy); }

/* Floating metric cards */
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; z-index: 3;
}
.float-card .fc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .fc-ico svg { width: 19px; height: 19px; }
.fc-label { font-size: .72rem; color: var(--muted); font-weight: 600; }
.fc-val { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.float-a { top: 8%; left: -34px; animation: popIn .6s var(--ease) .5s both, floaty 5s ease-in-out 1.1s infinite; }
.float-b { bottom: 12%; right: -28px; animation: popIn .6s var(--ease) .8s both, floaty 5.6s ease-in-out 1.4s infinite; }
.float-c { bottom: -22px; left: 22%; animation: popIn .6s var(--ease) 1.1s both, floaty 6.2s ease-in-out 1.7s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Hero liveliness (homepage) ---- */
.hero .dash { position: relative; animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-.4deg); } }
/* glossy shine sweeping across the dashboard */
.hero .dash::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.38) 50%, transparent 68%);
  transform: translateX(-130%); animation: heroShine 6s ease-in-out 2.2s infinite;
}
@keyframes heroShine { 0% { transform: translateX(-130%); } 55%,100% { transform: translateX(130%); } }
/* breathing background glow */
.hero::before { animation: heroGlow 9s ease-in-out infinite alternate; }
@keyframes heroGlow { 0% { opacity: .65; } 100% { opacity: 1; } }

/* Hero headline: blur-in rise on load (layers on top of .reveal) */
html.anim .hero h1.reveal { filter: blur(10px); }
html.anim .hero h1.reveal.in { filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .hero .dash { animation: none !important; }
  .hero .dash::after, .hero::before { animation: none !important; }
  .gradient-text { animation: none !important; background-position: 0 50% !important; }
  html.anim .hero h1.reveal { filter: none !important; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { padding: 44px 0; border-bottom: 1px solid var(--line); }
.trust-label { text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 28px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-logo { font-weight: 800; font-size: 1.18rem; color: #94A3B8; letter-spacing: -.02em; display:flex; align-items:center; gap:8px; transition: color .25s; }
.trust-logo:hover { color: var(--navy); }
.trust-logo svg { width: 22px; height: 22px; }
.trust-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #475569; background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 16px; border-radius: var(--r-pill); }
.trust-badge svg { width: 16px; height: 16px; color: var(--blue); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.prod-ico { width: 50px; height: 50px; border-radius: 13px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; transition: all .3s; }
.prod-card:hover .prod-ico { background: var(--blue); color: #fff; }
.prod-ico svg { width: 25px; height: 25px; }
.prod-card h3 { margin-bottom: 9px; }
.prod-card p { font-size: .95rem; line-height: 1.6; }
.prod-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .9rem; font-weight: 700; color: var(--blue); }
.prod-link svg { width: 15px; height: 15px; transition: transform .25s; }
.prod-card:hover .prod-link svg { transform: translateX(4px); }
.prod-feat { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.prod-tag { font-size: .72rem; font-weight: 600; color: #475569; background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-pill); }

/* ============================================================
   WHY (benefits)
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { text-align: left; }
.why-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.why-ico svg { width: 27px; height: 27px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-card p { font-size: .95rem; line-height: 1.65; }
.why-stat { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: -.03em; }
.why-stat span { color: var(--blue); }

/* ============================================================
   SCREENSHOTS (tabbed)
   ============================================================ */
.shots-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.shot-tab {
  font-size: .9rem; font-weight: 600; color: #475569; padding: 10px 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; transition: all .2s;
}
.shot-tab:hover { border-color: var(--blue-100); color: var(--blue); }
.shot-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-blue); }
.shot-stage {
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border: 1px solid var(--line); border-radius: var(--r-sec); padding: 28px;
  box-shadow: var(--shadow-md);
}
.shot-panel { display: none; }
.shot-panel.active { display: block; animation: fadeUp .5s var(--ease); }
.shot-img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px 18px; transition: all .25s var(--ease);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.feat-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.feat-ico svg { width: 21px; height: 21px; }
.feat-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feat-card p { font-size: .85rem; line-height: 1.55; }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integ-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.integ-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  height: 96px; display: grid; place-items: center; gap: 8px; transition: all .25s;
  font-weight: 700; color: #475569; font-size: .92rem;
}
.integ-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); color: var(--navy); }
.integ-logo .il-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-soft); color: var(--blue); }
.integ-logo .il-mark svg { width: 19px; height: 19px; }
.integ-cell { display: flex; flex-direction: column; align-items: center; gap: 9px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.testi-stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 16px; }
.testi-stars svg { width: 17px; height: 17px; }
.testi-quote { font-size: 1.02rem; line-height: 1.65; color: #1F2937; font-weight: 500; flex: 1; }
.testi-metric { display: flex; gap: 22px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.testi-metric .tm-val { font-size: 1.5rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.testi-metric .tm-label { font-size: .74rem; color: var(--muted); font-weight: 600; }
.testi-author { display: flex; align-items: center; gap: 13px; }
.testi-ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: var(--blue-50); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .92rem; flex: none; }
.testi-name { font-weight: 700; font-size: .94rem; color: var(--navy); }
.testi-role { font-size: .82rem; color: var(--muted); }

/* ============================================================
   CASE STUDIES (stats)
   ============================================================ */
.case-band { background: var(--bg-navy); border-radius: var(--r-sec); padding: 64px 48px; position: relative; overflow: hidden; }
.case-band::before { content:''; position:absolute; inset:0; background: radial-gradient(60% 80% at 90% 0%, rgba(0,87,255,.28), transparent 60%); }
.case-head { text-align: center; max-width: 640px; margin: 0 auto 48px; position: relative; }
.case-head h2 { color: #fff; }
.case-head p { color: #94A3B8; margin-top: 14px; }
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.case-stat { text-align: center; }
.case-num { font-size: 3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.case-num span { color: var(--blue-3); }
.case-desc { color: #94A3B8; font-size: .92rem; margin-top: 10px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 12px; background: #fff; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 24px; font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.faq-q .faq-plus { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; transition: transform .3s; font-size: 1.1rem; }
.faq-item.open .faq-plus { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); line-height: 1.7; font-size: .96rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--blue), var(--blue-3));
  border-radius: var(--r-sec); padding: 72px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content:''; position:absolute; inset:0; background: radial-gradient(50% 100% at 50% 0%, rgba(255,255,255,.18), transparent 70%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin: 16px auto 32px; max-width: 560px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-note { margin-top: 22px; color: rgba(255,255,255,.85); font-size: .86rem; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-navy); color: #CBD5E1; padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 28px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #94A3B8; font-size: .92rem; max-width: 280px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #CBD5E1; transition: all .2s; }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; color: #94A3B8; font-size: .9rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { color: #64748B; font-size: .85rem; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: #94A3B8; font-size: .85rem; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* Strong scroll-reveal system. Hidden state only applies when JS is active (html.anim),
   so content is always visible if JS is disabled. */
html.anim .reveal,
html.anim [data-anim] {
  opacity: 0;
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1), filter .85s ease;
  will-change: transform, opacity;
}
/* default reveal = bold rise + slight zoom */
html.anim .reveal { transform: translateY(54px) scale(.94); }
/* directional / effect variants (set via data-anim) */
html.anim [data-anim="up"]    { transform: translateY(64px); }
html.anim [data-anim="left"]  { transform: translateX(-80px); }
html.anim [data-anim="right"] { transform: translateX(80px); }
html.anim [data-anim="zoom"]  { transform: scale(.8); }
html.anim [data-anim="blur"]  { transform: translateY(36px); filter: blur(16px); }
html.anim [data-anim="rotate"]{ transform: translateY(50px) rotate(-4deg) scale(.92); transform-origin: bottom left; }

/* in-view state */
html.anim .reveal.in,
html.anim [data-anim].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* preset delays (kept for existing markup) */
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
.reveal-d4 { transition-delay: .48s; }

/* pop-in keyframe used for hero floating cards entrance */
@keyframes popIn { 0% { opacity: 0; transform: translateY(30px) scale(.85); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html.anim .reveal, html.anim [data-anim], .float-card {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .integ-wall { grid-template-columns: repeat(4, 1fr); }
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 16px 24px;
  }
  .nav-links.open .dropdown { display: none; }
  .nav-links.open .nav-link { padding: 12px; border-radius: 10px; }
  .case-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .case-band, .cta-band { padding: 48px 26px; }
}
@media (max-width: 560px) {
  .prod-grid, .why-grid, .feat-grid, .integ-wall { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .dash-side { display: none; }
}

/* ============================================================
   INNER PAGES — shared components
   ============================================================ */

/* Breadcrumb */
.breadcrumb { padding: 22px 0 0; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--muted-2); }
.breadcrumb .crumb-current { color: var(--navy); font-weight: 600; }

/* Page hero */
.page-hero { position: relative; padding: 40px 0 72px; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 85% 0%, rgba(0,87,255,.07), transparent 70%);
}
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.page-hero h1 { margin: 18px 0 0; }
.page-hero .lead { font-size: 1.18rem; line-height: 1.7; color: var(--muted); margin: 20px 0 30px; max-width: 560px; }
.page-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero-list { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.page-hero-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .96rem; color: #374151; font-weight: 500; }
.page-hero-list svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }

/* Feature split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split + .split { margin-top: 88px; }
.split-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.split-copy .eyebrow { margin-bottom: 16px; }
.split-copy p { font-size: 1.05rem; line-height: 1.7; margin-top: 14px; }
.check-list { display: flex; flex-direction: column; gap: 13px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .98rem; color: #374151; }
.check-list .ck { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin-top: 1px; }
.check-list .ck svg { width: 14px; height: 14px; }
.check-list b { color: var(--navy); font-weight: 700; }
.split-media .mock-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.split-media .mock-frame .dash-bar { border-radius: 0; }

/* Module / spec grid */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; transition: all .25s var(--ease); }
.mod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.mod-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 15px; }
.mod-ico svg { width: 22px; height: 22px; }
.mod-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mod-card p { font-size: .92rem; line-height: 1.6; }

/* Spec strip */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spec-item { text-align: center; padding: 8px; }
.spec-num { font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.spec-num span { color: var(--blue); }
.spec-label { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 32px 28px; display: flex; flex-direction: column; transition: all .3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-blue); position: relative; }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 16px; border-radius: var(--r-pill); }
.price-name { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.price-desc { font-size: .9rem; color: var(--muted); margin-top: 8px; min-height: 42px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 6px; }
.price-amount .pa-cur { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.price-amount .pa-val { font-size: 3rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.price-amount .pa-per { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-meta { font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.price-card .btn { width: 100%; margin-bottom: 24px; }
.price-feats { display: flex; flex-direction: column; gap: 12px; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: #374151; }
.price-feats .ck { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-top: 1px; }
.price-feats .ck svg { width: 13px; height: 13px; }
.price-feats .muted-feat { color: var(--muted-2); }
.price-feats .muted-feat .ck { background: var(--bg-soft); color: var(--muted-2); }

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.compare thead th { background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.compare td:first-child { color: var(--navy); font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody tr:hover { background: var(--bg-soft); }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: var(--muted-2); }
.compare .col-feat { background: var(--blue-50); color: var(--blue); font-weight: 700; }

/* Mini CTA strip */
.cta-strip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-sec); padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-strip h3 { font-size: 1.4rem; }
.cta-strip p { margin-top: 6px; }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .split + .split { margin-top: 56px; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { order: -1; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}
@media (max-width: 560px) {
  .mod-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 32px 24px; }
}

/* ============================================================
   FORMS / CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.contact-item .ci-ico { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.contact-item .ci-ico svg { width: 21px; height: 21px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: .92rem; color: var(--muted); }
.contact-item a:hover { color: var(--blue); }
.form-success { display: none; background: var(--success-bg); border: 1px solid #A7F3D0; color: #065F46; border-radius: var(--r-btn); padding: 14px 16px; font-size: .92rem; font-weight: 500; margin-bottom: 18px; }
.form-success.show { display: block; }

/* ============================================================
   LEGAL / PROSE
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--navy); }
.legal p { margin-bottom: 16px; line-height: 1.8; color: #374151; }
.legal ul { margin: 0 0 16px 0; padding-left: 4px; }
.legal ul li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #374151; line-height: 1.7; }
.legal ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.legal a { color: var(--blue); font-weight: 600; }
.legal .note { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 16px 18px; font-size: .9rem; color: var(--muted); }

/* About */
.about-mission { max-width: 820px; margin: 0 auto; text-align: center; }
.about-mission p { font-size: 1.2rem; line-height: 1.8; color: #374151; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-cats { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.blog-cat { font-size: .85rem; font-weight: 600; color: #475569; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; transition: all .2s; }
.blog-cat:hover, .blog-cat.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-featured { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sec); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 48px; }
.blog-featured .bf-media { background: var(--grad-signature); min-height: 320px; display: grid; place-items: center; padding: 28px; }
.blog-featured .bf-body { padding: 36px 40px 36px 8px; }
.blog-featured h2 { font-size: 1.9rem; margin: 14px 0 14px; }
.blog-featured p { font-size: 1.02rem; line-height: 1.7; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: all .3s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.post-thumb { height: 168px; background: var(--bg-soft); display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); }
.post-thumb svg { width: 64px; height: 64px; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.post-card h3 { font-size: 1.12rem; margin: 10px 0 10px; line-height: 1.35; }
.post-card p { font-size: .92rem; line-height: 1.6; flex: 1; }
.post-meta { display: flex; gap: 14px; margin-top: 16px; font-size: .8rem; color: var(--muted-2); font-weight: 500; }
.post-readlink { margin-top: 14px; font-size: .9rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin: 16px 0 0; }
.article-meta .post-cat { color: var(--blue); }
.article h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 14px 0 0; }
.article-hero-img { height: 280px; background: var(--grad-signature); border-radius: var(--r-card); margin: 32px 0; display: grid; place-items: center; }
.article-body h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.article-body h3 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--navy); }
.article-body p { margin-bottom: 18px; line-height: 1.85; color: #374151; font-size: 1.02rem; }
.article-body ul { margin: 0 0 18px; padding: 0; }
.article-body ul li { position: relative; padding-left: 28px; margin-bottom: 11px; color: #374151; line-height: 1.7; }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.article-body a { color: var(--blue); font-weight: 600; }
.article-body strong { color: var(--navy); }
.article-cta { background: var(--grad-signature); border-radius: var(--r-card); padding: 32px; text-align: center; margin: 40px 0; }
.article-cta h3 { color: #fff; font-size: 1.4rem; }
.article-cta p { color: rgba(255,255,255,.9); margin: 8px 0 18px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 1024px) {
  .blog-grid, .related { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .bf-media { min-height: 200px; }
  .blog-featured .bf-body { padding: 28px; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .blog-grid, .related { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* ===================== NEW ANIMATED HERO ===================== */
.hero .container { max-width: 1620px; }
.hero-grid { grid-template-columns: 1fr 2fr; gap: 40px; }
.hero-copy { position: relative; z-index: 3; }
.hx-stage { position: relative; z-index: 0; }

/* orbital system */
.hx-orbit { position: absolute; left: 50%; top: 50%; width: 152%; height: auto; transform: translate(-50%,-50%); z-index: 0; pointer-events: none; }
.hx-ring { transform-box: view-box; transform-origin: 560px 470px; animation: hxspin linear infinite; will-change: transform; }
.hx-r1 { animation-duration: 35s; }
.hx-r2 { animation-duration: 50s; }
.hx-r3 { animation-duration: 60s; }
.hx-r4 { animation-duration: 70s; animation-direction: reverse; }
@keyframes hxspin { to { transform: rotate(360deg); } }
@keyframes hxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* dashboard panel */
.hx-dash { position: relative; z-index: 2; width: 80%; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hx-top { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.hx-d { width: 11px; height: 11px; border-radius: 50%; } .hx-d.r{background:#FF5F57}.hx-d.y{background:#FEBC2E}.hx-d.g{background:#28C840}
.hx-url { margin-left: 10px; font-size: .68rem; color: #9ca3af; background:#fff; border:1px solid var(--line); padding:3px 10px; border-radius:6px; }
.hx-body { display: flex; }
.hx-side { width: 138px; flex: none; background: var(--bg-navy); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.hx-brand { color: #fff; font-weight: 800; font-size: .82rem; padding: 2px 6px 8px; }
.hx-nav { color: #94a3b8; font-size: .72rem; font-weight: 600; padding: 7px 9px; border-radius: 8px; }
.hx-nav.active { background: var(--blue); color: #fff; }
.hx-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.hx-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.hx-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.hx-kpi.hi { background: var(--blue); border-color: var(--blue); }
.hx-kl { display:block; font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.hx-kpi.hi .hx-kl, .hx-kpi.hi .hx-kt { color: #cfe0ff; }
.hx-kv { display:block; font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-top: 2px; }
.hx-kpi.hi .hx-kv { color: #fff; }
.hx-kt { display:block; font-size: .6rem; font-weight: 700; color: var(--muted); } .hx-kt.up { color: var(--success); }
.hx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hx-box { border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.hx-bh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hx-bh b { font-size: .76rem; color: var(--navy); }
.hx-pill { font-size: .58rem; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 2px 6px; border-radius: 5px; }
.hx-line { width: 100%; height: auto; display: block; }
.hx-kyc { display: flex; align-items: center; gap: 14px; }
.hx-leg { list-style: none; margin: 0; padding: 0; font-size: .64rem; color: #64748b; display: flex; flex-direction: column; gap: 4px; }
.hx-leg li { display: flex; align-items: center; gap: 6px; } .hx-leg i { width: 8px; height: 8px; border-radius: 2px; } .hx-leg b { color: var(--navy); margin-left: 2px; }
.hx-bars { display: flex; align-items: flex-end; gap: 6px; height: 66px; }
.hx-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--blue), var(--blue-3)); }
.hx-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hx-feed li { display: flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 600; color: var(--navy); } .hx-feed i { width: 6px; height: 6px; border-radius: 50%; flex: none; } .hx-feed b { margin-left: auto; font-weight: 500; color: #9ca3af; }

/* floating cards */
.hx-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(15,23,42,.12); animation: hxFloat 10s ease-in-out infinite; }
.hx-ci { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; } .hx-ci svg { width: 20px; height: 20px; }
.hx-cl { display: block; font-size: .67rem; font-weight: 600; color: var(--muted); } .hx-cv { display: block; font-size: 1rem; font-weight: 800; color: var(--navy); }
.hx-cs { align-self: flex-start; font-size: .6rem; font-weight: 700; color: var(--success); }
.hx-conv { top: -20px; left: 6%; }
.hx-kycc { bottom: -20px; left: 3%; animation-duration: 11s; }
.hx-dep { top: 6%; right: 96px; animation-duration: 10s; }
.hx-act { top: 44%; right: 80px; animation-duration: 12s; }
.hx-rev { bottom: 8%; right: 96px; animation-duration: 11s; }

/* glass icon tiles */
.hx-tile { position: absolute; z-index: 4; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 28px rgba(15,23,42,.12); animation: hxFloat 9s ease-in-out infinite; } .hx-tile svg { width: 24px; height: 24px; }
.hx-shield { top: 2%; left: -28px; }
.hx-people { bottom: -32px; left: 42%; animation-duration: 11s; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hx-orbit, .hx-card, .hx-tile { display: none; }
  .hx-dash { width: 100%; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) { .hx-side { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hx-ring, .hx-card, .hx-tile { animation: none !important; }
}

/* Book Demo nav arrow (matches demo) */
.btn-arr { width: 22px; height: 13px; margin-left: 7px; transition: transform .25s var(--ease); }
.btn .btn-arr { width: 22px; height: 13px; }
.btn-primary:hover .btn-arr { transform: translateX(4px); }

/* Header parity with demo: clean links (no carets) + slimmer Book Demo button */
.nav-link svg { display: none; }
.nav-cta .btn-primary { padding: 10px 22px; font-size: .85rem; }
.nav-cta .btn-primary .btn-arr { width: 18px; height: 11px; margin-left: 6px; }
.nav-cta .btn-ghost { display: none; }

/* ===== Dashboard entrance animations (match localhost:3000) ===== */
@media (prefers-reduced-motion: no-preference) {
  /* revenue line draws itself */
  .hx-line path:last-of-type {
    stroke-dasharray: 430; stroke-dashoffset: 430;
    animation: hxDraw 1.5s cubic-bezier(.6,.2,.2,1) .55s forwards;
  }
  .hx-line path:first-of-type { opacity: 0; animation: hxFadeIn 1s ease .95s forwards; }
  /* deposit bars rise */
  .hx-bars i { transform: scaleY(0); transform-origin: bottom; animation: hxBar .7s cubic-bezier(.16,1,.3,1) forwards; }
  .hx-bars i:nth-child(1){animation-delay:.5s}
  .hx-bars i:nth-child(2){animation-delay:.57s}
  .hx-bars i:nth-child(3){animation-delay:.64s}
  .hx-bars i:nth-child(4){animation-delay:.71s}
  .hx-bars i:nth-child(5){animation-delay:.78s}
  .hx-bars i:nth-child(6){animation-delay:.85s}
  .hx-bars i:nth-child(7){animation-delay:.92s}
  .hx-bars i:nth-child(8){animation-delay:.99s}
  /* KYC donut fills to 82% */
  .hx-kyc circle:last-of-type {
    stroke-dasharray: 164; stroke-dashoffset: 164;
    animation: hxDonut 1.3s ease-out .55s forwards;
  }
}
@keyframes hxDraw { to { stroke-dashoffset: 0; } }
@keyframes hxFadeIn { to { opacity: 1; } }
@keyframes hxBar { to { transform: scaleY(1); } }
@keyframes hxDonut { to { stroke-dashoffset: 30; } }

/* ===== Services grid (Beyond the CRM) ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.svc-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.svc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.svc-ico svg { width: 23px; height: 23px; }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.svc-card p { font-size: .92rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
