/* ====== Brand tokens (matched to logo) ====== */
:root {
  --navy-900: #0A1F55;
  --navy-800: #0F2B6E;   /* logo "Automation" / "Solutions" */
  --navy-700: #1A3A86;
  --teal-600: #0E93A8;
  --teal-500: #16A3B8;   /* logo "Info" + swoosh */
  --teal-100: #E3F6F9;
  --ink: #0F1B3D;
  --body: #4A5578;
  --muted: #7A84A3;
  --line: #E4E8F2;
  --bg: #FFFFFF;
  --bg-tint: #F4F7FC;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 43, 110, .06);
  --shadow: 0 18px 50px -18px rgba(15, 43, 110, .28);
  --grad: linear-gradient(135deg, var(--navy-800) 0%, var(--teal-500) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(22, 163, 184, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(22, 163, 184, .85); }
.btn--ghost { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ====== Header ====== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--teal-500); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ====== Hero ====== */
.hero { position: relative; overflow: hidden; padding: 72px 0 110px; background: radial-gradient(1200px 500px at 85% -10%, var(--teal-100), transparent 60%), linear-gradient(180deg, #fff, var(--bg-tint)); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__swoosh { position: absolute; bottom: 0; left: 0; width: 100%; height: 75%; color: var(--teal-500); opacity: .09; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--navy-800);
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(22, 163, 184, .2); }
.accent { white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.6rem; }
.stats { display: flex; gap: 2.5rem; margin: 0; flex-wrap: wrap; }
.stats div { border-left: 3px solid var(--teal-500); padding-left: .9rem; }
.stats dt { font-size: 1.75rem; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stats dd { margin: 0; font-size: .88rem; color: var(--muted); }

/* hero mock dashboard */
.hero__visual { position: relative; }
.mock { background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transform: rotate(-1.5deg); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; background: var(--navy-800); color: #cfe0ff; font-size: .82rem; font-weight: 600; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock__bar span { margin-left: 10px; }
.mock__body { padding: 22px; }
.mock__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi { background: var(--bg-tint); border-radius: 14px; padding: 14px 16px; }
.kpi small { display: block; font-size: .75rem; color: var(--muted); }
.kpi strong { display: block; font-size: 1.35rem; color: var(--ink); }
.kpi em { font-style: normal; font-size: .78rem; font-weight: 700; }
.up { color: #12946A; }
.chart { margin: 18px 0 10px; height: 110px; }
.chart svg { width: 100%; height: 100%; }
.mock__list { list-style: none; margin: 0; padding: 0; font-size: .86rem; color: var(--ink); }
.mock__list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pill { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill--ok { background: #E1F7EE; color: #12946A; }
.pill--wait { background: var(--teal-100); color: var(--teal-600); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: .85rem;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); }
.float-card small { color: var(--muted); }
.float-card--a { left: -36px; bottom: -56px; }
.float-card--b { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* icons */
.ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.ic--lg { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.2rem; }
.ic--teal { background: var(--teal-100); color: var(--teal-600); }
.ic--navy { background: #E6ECF8; color: var(--navy-800); }

/* ====== Sections ====== */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-900) radial-gradient(900px 400px at 100% 0%, rgba(22, 163, 184, .28), transparent 60%); color: #B9C6E6; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p { font-size: 1.08rem; }
.section__head--light h2 { color: #fff; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-500); margin-bottom: .8rem; }

/* products */
.products { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product--feature { background: var(--grad); color: #DCE8FF; border: 0; position: relative; overflow: hidden; }
.product--feature::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.product--feature h3 { color: #fff; font-size: 1.7rem; }
.product--feature h3 span { display: block; font-size: 1rem; font-weight: 600; color: #BFEFF6; margin-top: .3rem; }
.product__tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .16); color: #fff; padding: 5px 12px; border-radius: 999px; margin-bottom: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .65rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E93A8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.product--feature .checks li::before { background-color: rgba(255, 255, 255, .95); }
.checks--sm li { font-size: .93rem; }
.link { position: relative; z-index: 1; color: #fff; font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service .ic { margin-bottom: 1.1rem; }
.service p { font-size: .95rem; margin: 0; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pillars { display: grid; gap: 18px; }
.pillar { position: relative; padding: 26px 28px 22px 96px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pillar:nth-child(2) { margin-left: 36px; }
.pillar__num { position: absolute; left: 26px; top: 22px; font-size: 2.2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar h3 { margin-bottom: .3em; }
.pillar p { margin: 0; font-size: .95rem; }

/* clients */
.districts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.districts span { padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #E3ECFF; font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .04); }

/* careers cta */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px 56px; border-radius: 26px; background: var(--teal-100); border: 1px solid #C8ECF1;
}
.cta h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta p { max-width: 36em; margin: 0; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list strong { display: block; color: var(--ink); }
.contact__list a { color: var(--teal-600); font-weight: 600; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.form { background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: .8rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-tint); transition: border-color .2s, background .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; }
.form input.invalid { border-color: #D64545; }
.form textarea { resize: vertical; }
.form__note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* footer */
.footer { background: var(--navy-900); color: #A9B6D6; padding-top: 64px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 1rem; }
.footer__logo img { height: 46px; width: auto; }
.footer__brand p { max-width: 26em; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer__links a { text-decoration: none; font-weight: 600; color: #DCE5FA; }
.footer__links a:hover { color: var(--teal-500); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .86rem; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ====== Responsive ====== */
@media (max-width: 1060px) {
  .products { grid-template-columns: 1fr 1fr; }
  .product--feature { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 80px; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .float-card--a { left: -8px; }
  .float-card--b { right: -6px; }
  .section { padding: 80px 0; }
  .pillar:nth-child(2) { margin-left: 0; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 14px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .brand img { height: 42px; }
  .products, .services, .form__row { grid-template-columns: 1fr; }
  .stats { gap: 1.4rem; }
  .cta { padding: 32px 24px; }
  .form { padding: 24px; }
  .product { padding: 26px; }
  .float-card { display: none; }
  .mock { transform: none; }
}
