/* ==========================================================================
   TrackZen Software — Shared Stylesheet
   Design system: dark navy brand palette, Inter + Plus Jakarta Sans type,
   utility sections, responsive from 360px up.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #071a33;
  --navy-900: #0b2545;
  --navy-800: #123057;
  --navy-700: #1a3d6d;
  --blue-600: #2f6fed;
  --blue-500: #4c86ff;
  --teal-400: #22d3c5;
  --teal-300: #6fe6da;
  --amber-500: #f5a623;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f6f9fc;
  --mist: #eef2f8;
  --line: #e3e9f2;
  --ink-900: #101c30;
  --ink-700: #29354a;
  --ink-500: #5b6b84;
  --ink-400: #7c8aa0;

  /* Type */
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing */
  --container: 1220px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 28px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-heading); color: var(--navy-900); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
svg { display: block; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }

/* ---- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,0.86); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--mist { background: var(--off-white); }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(47, 111, 237, 0.08);
  padding: 7px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }
.section--navy .eyebrow { color: var(--teal-300); background: rgba(34, 211, 197, 0.12); }
h2.h-lg { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-500); line-height: 1.6; }
.section--navy .section-head p { color: rgba(255,255,255,0.72); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600; font-size: 15.5px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 10px 24px rgba(47,111,237,0.32); }
.btn-primary:hover { background: #2560d6; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,111,237,0.4); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }
.section--navy .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.28); }
.section--navy .btn-ghost:hover { border-color: var(--teal-300); color: var(--teal-300); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 21px; color: var(--navy-900); }
.brand .brand-mark { width: 38px; height: 38px; flex: none; }
.brand .brand-word b { color: var(--blue-600); }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--ink-700);
  padding: 10px 16px; border-radius: var(--radius-pill); transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--blue-600); background: rgba(47,111,237,0.08); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy-900); position: relative; }
.nav-toggle { flex-direction: column; gap: 4px; }

.mobile-nav {
  display: none; position: fixed; inset: 84px 0 0 0; background: var(--white); z-index: 99;
  padding: 24px; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--navy-900); padding: 16px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 24px; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(34,211,197,0.16), transparent 60%),
              linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 80px 0 110px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; font-family: var(--font-heading);
  color: rgba(255,255,255,0.86); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 14px; border-radius: var(--radius-pill);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--teal-300); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); color: var(--white); }
.hero h1 span { color: var(--teal-300); }
.hero p.lead { margin-top: 22px; font-size: 19px; color: rgba(255,255,255,0.78); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.32); }
.hero .btn-ghost:hover { border-color: var(--teal-300); color: var(--teal-300); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35)); }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 1; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(700px 400px at 20% 20%, black, transparent 75%);
}

/* ---- Stat / trust strip ---------------------------------------------------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; padding: 26px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; color: var(--navy-800); }
.trust-item svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; }

/* ---- Cards ------------------------------------------------------------------ */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47,111,237,0.25); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(47,111,237,0.12), rgba(34,211,197,0.14)); margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--blue-600); }
.card h3 { font-size: 19.5px; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: 15.5px; }
.card .tag { display: inline-block; font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-400); background: rgba(34,211,197,0.12); padding: 5px 11px; border-radius: var(--radius-pill); margin-bottom: 14px; }

/* Solutions grid uses smaller icon cards */
.solution-card { display: flex; gap: 16px; padding: 26px; }
.solution-card .card-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 0; flex: none; }
.solution-card .card-icon svg { width: 22px; height: 22px; }
.solution-card h3 { font-size: 17px; margin-bottom: 6px; }
.solution-card p { font-size: 14.5px; }

/* Product app cards (IDEAL/OASIS/FOCUS/IDEA) */
.app-card { position: relative; overflow: hidden; }
.app-card .app-glyph { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-heading); font-weight: 800; font-size: 20px; margin-bottom: 22px; }
.app-card .app-full { display: block; font-size: 13px; font-weight: 600; color: var(--ink-400); margin-bottom: 4px; }
.app-card h3 { font-size: 22px; margin-bottom: 12px; }
.app-card .for-who { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-heading); font-size: 12.5px; font-weight: 700; color: var(--navy-800); background: var(--mist); padding: 6px 12px; border-radius: var(--radius-pill); margin-top: 16px; }
.app-card ul { margin-top: 18px; display: grid; gap: 10px; }
.app-card ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-500); }
.app-card ul li svg { width: 18px; height: 18px; color: var(--teal-400); flex: none; margin-top: 2px; }

/* Platform product blocks (Hifzi, MapWiz, etc.) */
.platform-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.platform-block:last-child { border-bottom: none; }
.platform-block.reverse .platform-art { order: 2; }
.platform-art { background: linear-gradient(160deg, var(--mist), var(--white)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.platform-art svg { width: 100%; height: auto; }
.platform-copy .card-icon { margin-bottom: 18px; }
.platform-copy h3 { font-size: 28px; margin-bottom: 16px; }
.platform-copy p { color: var(--ink-500); font-size: 16px; }
.platform-copy .btn { margin-top: 22px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.feature-pill { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--navy-800); background: var(--mist); border: 1px solid var(--line); padding: 7px 13px; border-radius: var(--radius-pill); }

/* ---- Values / benefits ------------------------------------------------------ */
.value-card { text-align: left; }
.benefit-list { display: grid; gap: 16px; margin-top: 26px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--ink-700); }
.benefit-list .check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(34,211,197,0.14); display: flex; align-items: center; justify-content: center; }
.benefit-list .check svg { width: 14px; height: 14px; color: #0f9c8f; }
.benefit-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.benefit-panel h3 { font-size: 21px; }
.benefit-panel .tag { margin-bottom: 6px; }

/* ---- CTA banner --------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg); padding: 64px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 90% 10%, rgba(34,211,197,0.28), transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.32); }
.cta-banner .btn-ghost:hover { border-color: var(--teal-300); color: var(--teal-300); }
.cta-banner h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); max-width: 520px; }
.cta-banner p { color: rgba(255,255,255,0.76); margin-top: 10px; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- FAQ / accordion (light use) ----------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-heading); font-weight: 700; font-size: 16.5px; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--blue-600); transition: transform .2s var(--ease); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; color: var(--ink-500); font-size: 15.5px; max-width: 760px; }

/* ---- Footer --------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.68); padding: 76px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 15px; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-contact { margin-top: 20px; display: grid; gap: 10px; }
.footer-contact a { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,0.78); }
.footer-contact svg { width: 17px; height: 17px; color: var(--teal-300); flex: none; }
.footer-col h4 { color: var(--white); font-size: 14.5px; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.66); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--teal-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,0.5); }

/* ---- Breadcrumb / page hero (products page) -------------------------------------- */
.page-hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.4vw, 48px); max-width: 760px; }
.page-hero p.lead { color: rgba(255,255,255,0.76); font-size: 18px; margin-top: 18px; max-width: 620px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255,255,255,0.55); margin-bottom: 22px; }
.crumbs a { color: rgba(255,255,255,0.8); }
.suite-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.suite-nav a { font-family: var(--font-heading); font-weight: 700; font-size: 13.5px; color: var(--white); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 9px 16px; border-radius: var(--radius-pill); }
.suite-nav a:hover { background: rgba(34,211,197,0.18); border-color: rgba(34,211,197,0.4); }

/* ---- Reveal animation -------------------------------------------------------------
   Content is fully visible by default so it never depends on JavaScript running
   (search crawlers, slow connections, scripting disabled). Only when main.js
   confirms it can run the reveal effect does it flag <html class="js-anim">
   and animate elements in as they scroll into view. */
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-top .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
  .platform-block, .platform-block.reverse { grid-template-columns: 1fr; }
  .platform-block.reverse .platform-art { order: 0; }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-desktop, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .site-header .container { height: 72px; }
  .mobile-nav { inset: 72px 0 0 0; }
  body { font-size: 16px; }
  .solution-card { flex-direction: column; }
}
@media (min-width: 761px) {
  .header-actions .btn-primary { display: inline-flex; }
}
