:root {
  --ink: #17202a;
  --muted: #667085;
  --line: rgba(29, 78, 82, .12);
  --paper: #fbfaf7;
  --white: #ffffff;
  --cyan: #2aa7a1;
  --green: #2f9d75;
  --amber: #d6a84f;
  --navy: #173c43;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(23, 32, 42, .12);
}

* { 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;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .eyebrow {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  inset: 16px 20px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(29, 78, 82, .1);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(23, 32, 42, .1);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
.site-nav a { padding: 10px 12px; border-radius: 6px; color: #30414a; transition: background 0.2s, color 0.2s; }
.site-nav a:hover, .site-nav a.active { background: rgba(42,167,161,.1); color: #166b66; }
.nav-cta { background: var(--ink) !important; color: white !important; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.9; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
}
.nav-toggle:hover {
  background-color: var(--cyan);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  position: absolute;
  left: 11px;
  background: white;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* Hamburger animated to X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #f7f4ed;
  padding: 132px 6vw 58px;
}
.parallax-hero { perspective: 1px; }
.hero-media {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  opacity: .98;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(251,250,247,.98) 0%, rgba(251,250,247,.9) 34%, rgba(251,250,247,.18) 82%),
    linear-gradient(0deg, rgba(251,250,247,.98), rgba(251,250,247,.1) 46%);
  will-change: transform;
}
.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: var(--ink);
  will-change: transform;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 6vw, 86px);
  line-height: .96;
  letter-spacing: -0.02em;
}
.hero-copy { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; color: #53636a; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}
.button.primary { background: linear-gradient(135deg, #197b76, var(--green)); color: white; border-color: transparent; box-shadow: 0 14px 32px rgba(47,157,117,.18); }
.button.secondary { color: #173c43; border-color: rgba(23,60,67,.18); background: rgba(255,255,255,.76); }
.hero-panel {
  position: absolute;
  right: 6vw;
  bottom: 58px;
  width: min(360px, 34vw);
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(29, 78, 82, .14);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  will-change: transform;
}
.hero-panel span { color: #6c7a7f; font-size: 12px; text-transform: uppercase; font-weight: 900; }
.hero-panel strong { font-size: 15px; line-height: 1.4; }
.delivery-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 2px;
}
.delivery-specs strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.spec-live {
  color: #237a61 !important;
}
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2f9d75;
  box-shadow: 0 0 0 0 rgba(47, 157, 117, 0.7);
  animation: pulseGlow 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 157, 117, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(47, 157, 117, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 157, 117, 0);
  }
}
.signal-strip {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 18px;
  display: flex;
  gap: 10px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.signal-strip span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(29, 78, 82, .12);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #355056;
  font-size: 12px;
  font-weight: 900;
  animation: signalGlide 12s linear infinite;
}

.section { padding: 140px 8vw; }
.section.compact { padding: 100px 8vw; }
.section-heading { max-width: 900px; margin-bottom: 58px; }
.section-heading h2, .story h2, .contact-card h2, .vertical-hero h1 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.section-heading p:last-child, .story p, .contact-card p { color: var(--muted); font-size: 18px; line-height: 1.7; }

.service-grid, .vertical-grid, .feature-grid, .module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.service-card, .vertical-card, .feature-card, .module-card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 16px 34px rgba(23, 32, 42, .06);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.service-card:hover, .vertical-card:hover, .feature-card:hover, .module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 167, 161, 0.28);
  box-shadow: 0 26px 52px rgba(23, 32, 42, .1), 0 0 0 1px rgba(42, 167, 161, 0.08);
}
.service-card h3, .vertical-card h3, .feature-card h3, .module-card h3 { margin-bottom: 10px; font-size: 22px; }
.service-card p, .vertical-card p, .feature-card p, .module-card p { color: var(--muted); line-height: 1.6; }
.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: #eef8f4;
  color: #237a61;
  font-size: 12px;
  font-weight: 900;
}
.service-card, .vertical-card, .feature-card, .module-card, .proof-grid div {
  position: relative;
  overflow: hidden;
}
.service-card::after, .vertical-card::after, .feature-card::after, .module-card::after, .proof-grid div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(42,167,161,.08) 48%, rgba(214,168,79,.13) 100%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.service-card:hover::after, .vertical-card:hover::after, .feature-card:hover::after, .module-card:hover::after, .proof-grid div:hover::after {
  opacity: 1;
}

.creative-flow {
  background:
    radial-gradient(circle at 18% 20%, rgba(42,167,161,.12), transparent 28%),
    radial-gradient(circle at 88% 68%, rgba(214,168,79,.12), transparent 24%),
    #ffffff;
}
.flow-board {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(29,78,82,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,82,.05) 1px, transparent 1px),
    rgba(251,250,247,.72);
  background-size: 42px 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.flow-lines path {
  fill: none;
  stroke: #2aa7a1;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 15;
  filter: drop-shadow(0 0 6px rgba(42, 167, 161, 0.7));
  animation: dashFlow 10s linear infinite;
}
.flow-core, .flow-node {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(29, 78, 82, .14);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 48px rgba(23, 32, 42, .09);
  backdrop-filter: blur(12px);
}
.flow-core {
  left: 50%;
  top: 50%;
  width: min(290px, 70%);
  min-height: 118px;
  place-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(25,123,118,.96), rgba(47,157,117,.92));
  color: white;
}
.flow-node span, .flow-core span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.flow-node strong, .flow-core strong { font-size: 16px; line-height: 1.35; }
.node-sales { left: 7%; top: 17%; }
.node-stock { right: 7%; top: 17%; }
.node-finance { left: 7%; bottom: 17%; }
.node-mobile { right: 7%; bottom: 17%; }

.dark-band { background: #edf6f4; color: var(--ink); }
.dark-band .section-heading h2 { color: var(--ink); }
.vertical-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vertical-card { background: white; color: var(--ink); border-color: rgba(29, 78, 82, .12); }
.vertical-card span { color: var(--amber); font-weight: 900; }
.vertical-card p { color: var(--muted); }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; background: white; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.proof-grid div {
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius);
  background: #f4f7f5;
  border: 1px solid var(--line);
}
.proof-grid strong { display: block; font-size: 42px; color: #237a61; }
.proof-grid span { color: var(--muted); font-weight: 700; }

.contact-section { background: linear-gradient(135deg, #f7f4ed, #e8f4f1 58%, #fbfaf7); }
.contact-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(29, 78, 82, .12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.contact-card p { color: var(--muted); }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; font-weight: 800; color: #30414a; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1px solid rgba(29, 78, 82, .15);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  transition: border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(42, 167, 161, 0.16), 0 4px 12px rgba(23, 32, 42, 0.04);
}
.contact-form option { color: var(--ink); }

.footer {
  display: grid;
  grid-template-columns: .8fr .55fr 1fr;
  gap: 48px;
  padding: 80px 8vw;
  background: #17202a;
  color: rgba(255,255,255,.78);
}
.footer img { width: 68px; margin-bottom: 12px; }
.footer h3 { color: white; margin-bottom: 10px; }
.footer a { color: white; }

.vertical-hero {
  --vertical-bg: url("erp-clean-workspace.png");
  padding: 142px 6vw 54px;
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 34px;
  align-items: end;
  color: white;
  background:
    linear-gradient(120deg, rgba(23,32,42,.92), rgba(23,60,67,.78), rgba(247,244,237,.18)),
    var(--vertical-bg) center/cover;
}
.vertical-hero p { color: rgba(255,255,255,.78); font-size: 19px; line-height: 1.65; }
.vertical-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vertical-stats div {
  padding: 18px;
  min-height: 130px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.vertical-stats strong { display: block; font-size: 30px; color: #8fe2bf; margin-bottom: 8px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.module-card { min-height: 160px; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; counter-reset: step; }
.process li {
  list-style: none;
  padding: 20px;
  min-height: 150px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  counter-increment: step;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: #237a61;
  font-weight: 900;
}

.trade-page {
  background: #fbfaf7;
}
.trade-page main {
  position: relative;
  z-index: 1;
}
.trading-layered-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 16%, rgba(42,167,161,.13), transparent 30%),
    radial-gradient(circle at 83% 74%, rgba(214,168,79,.16), transparent 28%),
    linear-gradient(135deg, #fbfaf7, #eef7f4 56%, #fffaf0);
}
.trading-camera {
  position: absolute;
  inset: -8%;
  transition: transform 1100ms cubic-bezier(.19, 1, .22, 1);
  transform: translate3d(0, 0, 0) scale(1);
}
.trade-layer {
  position: absolute;
  width: min(720px, 58vw);
  border-radius: 14px;
  opacity: .42;
  filter: saturate(.9) contrast(.96);
  box-shadow: 0 32px 90px rgba(23, 32, 42, .16);
  transition: opacity 800ms ease, filter 800ms ease, transform 1100ms cubic-bezier(.19, 1, .22, 1);
}
.trade-layer-core {
  top: 12%;
  right: 8%;
  transform: rotate(-2deg) scale(.94);
}
.trade-layer-improve {
  top: 32%;
  right: 24%;
  transform: rotate(2deg) scale(.86);
}
.trade-layer-flow {
  top: 53%;
  right: 7%;
  transform: rotate(-1deg) scale(.9);
}
.trade-layer-consult {
  top: 67%;
  right: 31%;
  transform: rotate(1.5deg) scale(.78);
}
.trade-page .vertical-hero {
  background:
    linear-gradient(90deg, rgba(251,250,247,.98), rgba(251,250,247,.75) 42%, rgba(251,250,247,.18));
  color: var(--ink);
}
.trade-page .vertical-hero p {
  color: #53636a;
}
.trade-page .vertical-stats div {
  border-color: rgba(29, 78, 82, .14);
  background: rgba(255,255,255,.76);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(23, 32, 42, .08);
}
.trade-page .vertical-stats strong {
  color: #237a61;
}
.trade-page .section:not(.contact-section) {
  position: relative;
  background: rgba(251,250,247,.72);
  backdrop-filter: blur(7px);
}
.trade-page .dark-band {
  background: rgba(237,246,244,.8);
}
.trade-page[data-trade-focus="core"] .trading-camera {
  transform: translate3d(-10%, -4%, 0) scale(1.18);
}
.trade-page[data-trade-focus="improve"] .trading-camera {
  transform: translate3d(6%, -18%, 0) scale(1.22);
}
.trade-page[data-trade-focus="flow"] .trading-camera {
  transform: translate3d(-5%, -33%, 0) scale(1.2);
}
.trade-page[data-trade-focus="consult"] .trading-camera {
  transform: translate3d(4%, -43%, 0) scale(1.24);
}
.trade-page[data-trade-focus="core"] .trade-layer-core,
.trade-page[data-trade-focus="improve"] .trade-layer-improve,
.trade-page[data-trade-focus="flow"] .trade-layer-flow,
.trade-page[data-trade-focus="consult"] .trade-layer-consult {
  opacity: .9;
  filter: saturate(1.05) contrast(1);
}
.trade-page[data-trade-focus="core"] .trade-layer:not(.trade-layer-core),
.trade-page[data-trade-focus="improve"] .trade-layer:not(.trade-layer-improve),
.trade-page[data-trade-focus="flow"] .trade-layer:not(.trade-layer-flow),
.trade-page[data-trade-focus="consult"] .trade-layer:not(.trade-layer-consult) {
  opacity: .22;
  filter: saturate(.65) contrast(.92) blur(.2px);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes dashFlow {
  to { stroke-dashoffset: -240; }
}

@keyframes signalGlide {
  from { transform: translateX(0); }
  to { transform: translateX(-120px); }
}

@media (max-width: 1050px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(29, 78, 82, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    gap: 6px;

    /* Smooth scale/fade dropdown transition */
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    pointer-events: none;
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-nav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }
  .nav-toggle { display: block; }
  .section { padding: 92px 6vw; }
  .service-grid, .vertical-grid, .feature-grid, .module-grid, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero-panel { position: relative; right: auto; bottom: auto; width: min(520px, 100%); margin-top: 28px; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(251,250,247,.99) 0%, rgba(251,250,247,.96) 50%, rgba(251,250,247,.8) 100%),
      linear-gradient(0deg, rgba(251,250,247,.99), rgba(251,250,247,.5) 50%);
  }
  .vertical-hero, .split, .contact-card, .footer { grid-template-columns: 1fr; }
  .flow-board {
    position: relative;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 28px;
    background-size: 28px 28px;
  }
  .flow-board::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(to bottom, transparent, transparent 4px, rgba(42,167,161,.42) 4px, rgba(42,167,161,.42) 10px);
    transform: translateX(-50%);
    z-index: 0;
  }
  .flow-lines {
    display: none;
  }
  .flow-core, .flow-node {
    position: relative;
    z-index: 1;
    transform: none !important;
    width: 100%;
    max-width: 380px;
    text-align: center;
  }
  .flow-core {
    background: linear-gradient(135deg, #197b76, var(--green));
    margin: 8px 0;
  }
  .trade-layer {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header { inset: 10px 10px auto; }
  .brand span { display: none; }
  .hero { min-height: 92vh; padding: 116px 20px 36px; }
  .hero-overlay {
    background: rgba(251,250,247,.94);
  }
  .section { padding: 64px 20px; }
  .vertical-hero { padding-left: 20px; padding-right: 20px; }
  .service-grid, .vertical-grid, .feature-grid, .module-grid, .process, .proof-grid, .vertical-stats, .footer { grid-template-columns: 1fr; gap: 20px; }
  .contact-card { padding: 32px 20px; gap: 24px; }
  .footer { padding: 48px 20px; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .signal-strip { display: none; }
  .trading-layered-bg {
    opacity: .55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    transform: none !important;
  }
  .flow-lines path, .signal-strip span {
    animation: none;
  }
  .trading-camera,
  .trade-layer {
    transform: none !important;
    transition: none !important;
  }
}
