:root {
  color-scheme: dark;
  --navy: #30364f;
  --blue-gray: #b1c0c7;
  --sand: #e2daba;
  --cream: #f1f1dd;
  --bg: #30364f;
  --bg-soft: #3a405b;
  --text: #f1f1dd;
  --muted: #b1c0c7;
  --line: rgba(241, 241, 221, .18);
  --glass: rgba(177, 192, 199, .12);
  --accent: #e2daba;
  --shadow: 0 24px 70px rgba(16, 20, 34, .42);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f1dd;
  --bg-soft: #ffffff;
  --text: #30364f;
  --muted: #607078;
  --line: rgba(48, 54, 79, .16);
  --glass: rgba(255, 255, 255, .74);
  --accent: #30364f;
  --shadow: 0 24px 70px rgba(48, 54, 79, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(241,241,221,.06) 1px, transparent 1px),
    linear-gradient(rgba(241,241,221,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at top, black, transparent 72%);
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity .7s ease, visibility .7s ease;
}
.loader img { width: min(280px, 70vw); filter: invert(1) grayscale(1) contrast(1.4); }
[data-theme="light"] .loader img { filter: none; }
.loader span {
  width: 180px;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}
.loader span::after {
  content: "";
  display: block;
  width: 48%;
  height: 100%;
  background: var(--accent);
  animation: loadbar 1s infinite ease-in-out;
}
.loader.done { opacity: 0; visibility: hidden; }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.brand img { width: 142px; filter: invert(1) grayscale(1) contrast(1.2); }
[data-theme="light"] .brand img { filter: none; }
nav { display: flex; gap: clamp(12px, 3vw, 30px); font-size: 14px; color: var(--muted); }
nav a:hover { color: var(--text); }

.theme-toggle {
  width: 48px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--glass);
  position: relative;
  cursor: pointer;
}
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .3s ease;
}
[data-theme="light"] .theme-toggle::after { transform: translateX(20px); }

.hero {
  min-height: 96vh;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 150px max(22px, calc((100vw - 1120px) / 2)) 68px;
  position: relative;
  overflow: hidden;
}
.hero-video, .mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .18;
  z-index: -3;
}
.hero-video {
  overflow: hidden;
  background: url("assets/video-poster.svg") center / cover no-repeat;
}
.hero-video span {
  position: absolute;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(255,255,255,.25);
  transform: rotate(18deg);
  animation: videoDrift 12s linear infinite;
}
.hero-video span:nth-child(1) { left: -8vw; top: 14vh; }
.hero-video span:nth-child(2) { right: -12vw; top: -12vh; animation-duration: 16s; animation-direction: reverse; }
.hero-video span:nth-child(3) { left: 34vw; bottom: -30vw; animation-duration: 20s; }
.mesh {
  z-index: -1;
  opacity: .95;
  background:
    radial-gradient(circle at 22% 28%, rgba(226,218,186,.22), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(177,192,199,.16), transparent 28%),
    linear-gradient(120deg, transparent 0 44%, rgba(241,241,221,.09) 44% 45%, transparent 45% 100%);
  animation: meshmove 9s ease-in-out infinite alternate;
}
.hero-content,
.hero-panel {
  position: relative;
  z-index: 3;
}
.hero-content { max-width: 840px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .88;
  letter-spacing: 0;
}
h2 { font-size: clamp(34px, 5vw, 70px); line-height: .95; letter-spacing: 0; }
h3 { font-size: 23px; line-height: 1.1; }
.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}
.hero-copy {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.service-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
  margin-top: 26px;
}
.service-marquee span,
.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.ghost { background: var(--glass); color: var(--text); }

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.hero-panel div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.hero-panel strong { display: block; font-size: 42px; line-height: 1; }
.hero-panel span { color: var(--muted); font-size: 13px; }
.integration-strip {
  padding: 28px max(22px, calc((100vw - 1120px) / 2)) 0;
  position: relative;
  z-index: 5;
}
.integration-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg-soft) 68%, transparent);
  box-shadow: 0 26px 70px rgba(16, 20, 34, .22);
}
.integration-shell .eyebrow {
  width: 150px;
  margin: 0;
}
.integration-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.integration-logo {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.integration-logo:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: rgba(241, 241, 221, .08);
}
.integration-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.04);
  border-radius: 50%;
}

.section {
  padding: 92px max(22px, calc((100vw - 1120px) / 2));
}
.section-heading { max-width: 800px; margin-bottom: 34px; }
.muted { color: var(--muted); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.glass-card, .lead-form {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.glass-card { min-height: 260px; padding: 28px; transition: transform .35s ease; }
.glass-card:hover { transform: translateY(-8px); }
.glass-card span { color: var(--muted); font-weight: 900; }
.glass-card p, .feature-list, .contact-details p { color: var(--muted); line-height: 1.7; }

.proof-grid,
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.proof-grid span,
.industry-grid span {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  color: var(--text);
  font-weight: 850;
  box-shadow: 0 16px 42px rgba(16, 20, 34, .12);
}

.feature-suite {
  background:
    radial-gradient(circle at 18% 10%, rgba(226, 218, 186, .22), transparent 28%),
    var(--bg);
}
.feature-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-tile {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
  transition: transform .35s ease, background .35s ease;
}
.feature-tile:hover {
  transform: translateY(-8px);
  background: color-mix(in srgb, var(--glass) 72%, var(--accent) 28%);
}
.feature-tile span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.feature-tile p { color: var(--muted); line-height: 1.65; }

.module-section {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 72%, transparent), transparent),
    var(--bg);
}
.module-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 16px;
  align-items: stretch;
}
.module-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.module-card.compact {
  display: flex;
  flex-direction: column;
}
.feature-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.feature-checks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.5;
}
.feature-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent);
}
.authority-list,
.version-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.authority-list span,
.version-list span {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  color: var(--text);
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 64px;
  align-items: center;
}
.visual-orbit {
  min-height: 470px;
  position: relative;
  display: grid;
  place-items: center;
}
.ring {
  width: min(420px, 82vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: rotate 16s linear infinite;
  box-shadow: inset 0 0 40px rgba(255,255,255,.08);
}
.core, .node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  font-weight: 900;
}
.core { width: 148px; height: 148px; border-radius: 50%; }
.node { width: 78px; height: 78px; border-radius: 50%; color: var(--muted); }
.n1 { top: 48px; left: 16%; }
.n2 { right: 8%; top: 42%; }
.n3 { bottom: 44px; left: 36%; }
.feature-list { display: grid; gap: 14px; padding-left: 20px; font-size: 18px; }
.check-list { list-style: none; padding-left: 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 12px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.choice-grid article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: 0 18px 44px rgba(16, 20, 34, .14);
  transition: transform .32s ease;
}
.choice-grid article:hover { transform: translateY(-6px); }
.choice-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}
.choice-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

.services { background: color-mix(in srgb, var(--bg-soft) 72%, transparent); }
.process-section {
  background: color-mix(in srgb, var(--bg-soft) 62%, transparent);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.process-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
}
.process-card span {
  display: inline-flex;
  margin-bottom: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.process-card p { color: var(--muted); line-height: 1.65; }
.industries-section {
  background:
    radial-gradient(circle at 86% 14%, rgba(226, 218, 186, .18), transparent 26%),
    var(--bg);
}
.why-section {
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}
.enterprise-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.enterprise-grid article {
  min-height: 210px;
}
.stats-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 48%),
    var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
}
.stat-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: .9;
  color: var(--text);
}
.stat-card span {
  color: var(--muted);
  line-height: 1.5;
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--text);
  font: inherit;
}

.contact {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 36px;
}
.final-cta {
  background:
    radial-gradient(circle at 18% 20%, rgba(226, 218, 186, .24), transparent 28%),
    color-mix(in srgb, var(--bg-soft) 70%, var(--bg) 30%);
}
.lead-form { display: grid; gap: 12px; padding: 26px; }
.form-status { min-height: 24px; color: var(--muted); margin: 0; }

.chatbot-button, .whatsapp {
  position: fixed;
  z-index: 25;
  right: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.chatbot-button {
  bottom: 92px;
  width: 58px;
  height: 58px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 900;
  cursor: pointer;
}
.whatsapp {
  bottom: 22px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background: #111;
  color: #fff;
  font-weight: 900;
}
.whatsapp::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s infinite;
}
.chatbot {
  position: fixed;
  right: 18px;
  bottom: 160px;
  z-index: 30;
  width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: .28s ease;
  overflow: hidden;
}
.chatbot.open { transform: translateY(0); opacity: 1; visibility: visible; }
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-head button { border: 0; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.chat-log { max-height: 250px; overflow: auto; padding: 14px; color: var(--muted); line-height: 1.5; }
.chatbot form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chatbot form button { border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--accent); color: var(--bg); font-weight: 800; }

.site-footer {
  display: grid;
  gap: 12px;
  padding: 46px 22px 110px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, #000 14%);
}
.site-footer h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 48px);
}

.cursor-dot,
.cursor-ring,
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
}
.cursor-dot {
  width: 9px;
  height: 9px;
  background: var(--cream);
  box-shadow: 0 0 18px rgba(226, 218, 186, .9);
}
.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(241, 241, 221, .72);
  background: rgba(241, 241, 221, .05);
  backdrop-filter: blur(3px);
  transition: width .18s ease, height .18s ease, border-color .18s ease, background .18s ease;
  mix-blend-mode: difference;
}
.cursor-aura {
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(226, 218, 186, .18), rgba(177, 192, 199, .08) 42%, transparent 68%);
  filter: blur(4px);
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring,
body.cursor-ready .cursor-aura {
  opacity: 1;
}
body.cursor-hover .cursor-ring {
  width: 72px;
  height: 72px;
  border-color: var(--cream);
  background: rgba(226, 218, 186, .12);
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(220%); } }
@keyframes meshmove { from { transform: scale(1); } to { transform: scale(1.08) translateY(-18px); } }
@keyframes videoDrift { to { transform: rotate(378deg) translate3d(16px, -10px, 0); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .28; } }
@keyframes floatBadge { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

@media (max-width: 820px) {
  .site-header { top: 10px; }
  nav { display: none; }
  .hero, .split, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-panel { grid-template-columns: repeat(3, 1fr); }
  .hero-panel div { padding: 12px; }
  .hero-panel strong { font-size: 28px; }
  .integration-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .integration-shell .eyebrow {
    width: auto;
  }
  .integration-list {
    justify-content: center;
    flex-wrap: wrap;
  }
  .service-grid, .feature-suite-grid, .choice-grid, .module-grid, .process-grid, .industry-grid, .proof-grid, .stats-grid, .enterprise-grid { grid-template-columns: 1fr; }
  .feature-checks { grid-template-columns: 1fr; }
  .service-marquee span, .pill-list span { font-size: 12px; }
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  input,
  select,
  textarea {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring,
  .cursor-aura {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
