/* ==========================================================================
   XALIS Technology — marketing site
   Palette pulled directly from the brand logo:
     navy  #0A1B33   blue #1E88E5   cyan #00B8D9   green #00C853   mist #F5F7FA
   ========================================================================== */

:root {
  --navy: #0A1B33;
  --navy-soft: #10234A;
  --blue: #1E88E5;
  --cyan: #00B8D9;
  --green: #00C853;
  --mist: #F5F7FA;
  --white: #FFFFFF;
  --ink: #0F1A2B;
  --ink-soft: #4B5A72;
  --ink-faint: #8A96A8;
  --line: #E4E9F1;
  --grad: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  --grad-diag: linear-gradient(135deg, var(--blue), var(--cyan) 55%, var(--green));
  --shadow-sm: 0 2px 10px rgba(10, 27, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 27, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 27, 51, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-head: 'Sora', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); margin: 0; color: var(--navy); line-height: 1.15; }
p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--grad); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn--ghost { color: var(--navy); }
.btn--ghost:hover { color: var(--blue); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__word { font-family: var(--ff-head); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--navy); }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.94rem;
  color: var(--ink); padding: 10px 14px; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link:hover { color: var(--blue); background: var(--mist); }
.nav__chev { transition: transform 0.2s ease; color: var(--ink-faint); }
.nav__item:hover .nav__chev { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 220px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
/* See script.js - forces dropdowns shut for the duration of a scroll so
   a sticky nav item left under a stationary cursor doesn't drag its
   dropdown down over the content scrolling underneath it. */
body.is-scrolling .nav__dropdown { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
.nav__dropdown a {
  padding: 9px 12px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__dropdown a:hover { background: var(--mist); color: var(--navy); }
.nav__dropdown-all { color: var(--blue) !important; font-weight: 700 !important; }
.nav__dropdown a.soon { pointer-events: none; opacity: 0.6; }
.nav__dropdown a.soon span { font-size: 0.68rem; background: var(--mist); padding: 2px 7px; border-radius: 999px; color: var(--ink-faint); font-weight: 700; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.2s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none; flex-direction: column; padding: 10px 24px 20px;
  border-top: 1px solid var(--line); background: var(--white);
}
.nav__mobile a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav__mobile-actions { display: flex; gap: 10px; margin-top: 14px; }
.nav__mobile-actions .btn--ghost { border: 1.5px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); padding: 120px 0 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(30,136,229,0.35), transparent 60%),
    radial-gradient(50% 45% at 85% 20%, rgba(0,200,83,0.22), transparent 60%),
    radial-gradient(40% 40% at 50% 100%, rgba(0,184,217,0.18), transparent 60%);
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,200,83,0.25); }
.hero__title {
  color: var(--white); font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800;
  max-width: 900px; letter-spacing: -0.01em;
}
.hero__sub { color: rgba(255,255,255,0.72); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 680px; margin: 24px auto 0; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero__micro { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 18px; }
.hero__trust { color: rgba(255,255,255,0.45); font-size: 0.86rem; margin-top: 46px; }

/* Hero dashboard mock */
.hero__mock { margin-top: 50px; width: 100%; max-width: 920px; }
.mock {
  background: #0D1420; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-lg); text-align: left;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; }
.mock__url { margin-left: 14px; color: rgba(255,255,255,0.35); font-size: 0.78rem; font-family: monospace; }
.mock__body { display: flex; min-height: 260px; }
.mock__side { width: 170px; background: rgba(255,255,255,0.02); border-right: 1px solid rgba(255,255,255,0.06); padding: 18px 10px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.mock__side-item { color: rgba(255,255,255,0.55); font-size: 0.86rem; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.mock__side-item--active { background: var(--grad); color: var(--white); }
.mock__main { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mock__stat { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; }
.mock__stat span { color: rgba(255,255,255,0.5); font-size: 0.84rem; }
.mock__stat strong { color: var(--white); font-size: 1rem; font-family: var(--ff-head); }
.mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: auto; }
.mock__chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--cyan), var(--blue)); opacity: 0.85; }

/* ---------- Sections shared ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--mist); }
.section--dark { background: var(--navy); }
.section--dark p, .section--dark h2 { color: var(--white); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 16px; }
.section__head p { font-size: 1.05rem; }
.section__head--dark p { color: rgba(255,255,255,0.65); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: #E8F2FD; padding: 6px 14px; border-radius: 999px;
}
.eyebrow--dark { background: rgba(255,255,255,0.08); color: var(--cyan); }
.section__closing { text-align: center; margin-top: 44px; color: var(--ink-soft); font-size: 0.98rem; }
.section__closing a { color: var(--blue); font-weight: 700; }
.section__closing--dark { color: rgba(255,255,255,0.6); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--7 { grid-template-columns: repeat(7, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; }

/* Product cards */
.product {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product__glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: 0.18; filter: blur(6px); }
.product h3 { font-size: 1.25rem; position: relative; }
.product__tag { font-size: 0.86rem; margin: 8px 0 18px; position: relative; }
.product__features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; position: relative; }
.product__features li { font-size: 0.78rem; font-weight: 600; background: var(--mist); color: var(--ink-soft); padding: 5px 11px; border-radius: 999px; }
.product__link { font-weight: 700; color: var(--blue); font-size: 0.92rem; position: relative; }
.product__link--soon { color: var(--ink-faint); }

.roadmap { text-align: center; margin-top: 54px; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--line); }
.roadmap span { color: var(--ink-faint); font-size: 0.88rem; font-weight: 600; }
.roadmap strong { color: var(--navy); }
.roadmap p { margin-top: 10px; font-size: 0.88rem; }

/* Why cards */
.grid--why { grid-template-columns: repeat(4, 1fr); }
.why { padding: 8px; }
.why__num { font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why h3 { font-size: 1.08rem; margin: 12px 0 10px; }
.why p { font-size: 0.94rem; }

/* Diagram */
.diagram { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.diagram__row { display: flex; align-items: center; gap: 18px; width: 100%; justify-content: center; }
.diagram__row--bottom { flex-wrap: wrap; }
.diagram__node {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--white);
  padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; text-align: center;
}
.diagram__node--core { background: var(--grad); border: none; padding: 18px 30px; font-size: 1.05rem; box-shadow: 0 0 40px rgba(0,184,217,0.35); }
.diagram__node--top { background: rgba(255,255,255,0.06); }
.callout {
  text-align: center; max-width: 620px; margin: 44px auto 0; color: rgba(255,255,255,0.75) !important;
  font-size: 1rem; line-height: 1.7;
}
.callout strong { color: var(--white); }

/* BI */
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bi__text h2 { margin: 14px 0 16px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.bi__text p { font-size: 1.02rem; margin-bottom: 22px; }
.bi__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 20px; }
.bi__list li { font-size: 0.92rem; font-weight: 600; color: var(--navy); padding-left: 20px; position: relative; }
.bi__list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.bi__micro { font-weight: 700; color: var(--navy) !important; font-size: 0.95rem; }
.bi__mock {
  background: var(--navy); border-radius: var(--radius); padding: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; box-shadow: var(--shadow-lg);
}
.bi__card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bi__label { color: rgba(255,255,255,0.55); font-size: 0.78rem; font-weight: 600; }
.bi__card strong { color: var(--white); font-family: var(--ff-head); font-size: 1.25rem; }
.bi__delta { font-size: 0.78rem; font-weight: 700; }
.bi__delta--up { color: var(--green); }
.bi__delta--down { color: #FF8A65; }
.bi__graph { grid-column: 1 / -1; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-sm); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: var(--white); font-family: var(--ff-head); font-weight: 800; font-size: 0.9rem; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; }

/* Industries */
.industries { grid-template-columns: repeat(7, 1fr); }
.industry {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 22px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.industry__icon { font-size: 1.7rem; margin-bottom: 4px; }
.industry strong { font-size: 0.86rem; color: var(--navy); }
.industry span { font-size: 0.76rem; color: var(--ink-faint); }

/* Demo cards */
.demo-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.demo-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
.demo-card--soon { opacity: 0.6; }
.demo-card__tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--green); color: var(--navy); padding: 4px 10px; border-radius: 999px; }
.demo-card__tag--soon { background: rgba(255,255,255,0.15); color: var(--white); }
.demo-card h3 { color: var(--white); font-size: 1.2rem; }
.demo-card__cta { color: var(--cyan); font-weight: 700; font-size: 0.92rem; }
.demo-card--soon .demo-card__cta { color: rgba(255,255,255,0.5); }

/* About / values */
.about__mission { margin-top: 18px; font-size: 1.02rem; color: var(--navy) !important; }
.values { margin-top: 54px; }
.value { text-align: center; }
.value__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--mist); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 14px; }
.value h3 { font-size: 1rem; margin-bottom: 6px; }
.value p { font-size: 0.88rem; }

/* CTA */
.cta { background: var(--grad-diag); padding: 90px 0; text-align: center; }
.cta__inner h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 640px; margin: 0 auto; }
.cta__inner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 18px auto 30px; font-size: 1.02rem; }
.cta .btn--primary { background: var(--navy); }
.cta__micro { color: rgba(255,255,255,0.7); font-size: 0.86rem; margin-top: 18px; }

/* Footer */
.footer { background: var(--navy); padding: 70px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav__logo--footer .nav__word { color: var(--white); }
.footer__brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 14px; max-width: 220px; }
.footer__col h4 { color: rgba(255,255,255,0.4); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer__col a { display: block; color: rgba(255,255,255,0.65); font-size: 0.9rem; padding: 6px 0; transition: color 0.15s ease; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; flex-wrap: wrap; gap: 10px; }
.footer__bottom span { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.footer__legal a { color: rgba(255,255,255,0.4); }
.footer__legal a:hover { color: var(--white); }

/* ---------- Scroll animations ---------- */
.fade-up { opacity: 0; transform: translateY(22px); animation: fadeUp 0.7s ease forwards; }
.fade-up[data-delay="1"] { animation-delay: 0.05s; }
.fade-up[data-delay="2"] { animation-delay: 0.15s; }
.fade-up[data-delay="3"] { animation-delay: 0.25s; }
.fade-up[data-delay="4"] { animation-delay: 0.35s; }
.fade-up[data-delay="5"] { animation-delay: 0.45s; }
.fade-up[data-delay="6"] { animation-delay: 0.55s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.grid .reveal:nth-child(7) { transition-delay: 0.48s; }

/* ---------- Responsive ---------- */
.lg-only { display: inline; }

@media (max-width: 1080px) {
  .grid--4, .steps, .grid--why { grid-template-columns: repeat(2, 1fr); }
  .grid--7 { grid-template-columns: repeat(4, 1fr); }
  .bi { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__menu, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .lg-only { display: none; }
  .mock__body { flex-direction: column; }
  .mock__side { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .grid--4, .grid--3, .grid--7, .steps, .grid--why { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 100px 0 60px; }
  .diagram__row { flex-direction: column; }
}

@media (max-width: 420px) {
  .grid--4, .grid--3, .grid--7, .steps, .grid--why { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
