/* ============ Tokens ============ */
:root {
  --blue: #1B4F9C;
  --blue-dark: #123A75;
  --blue-light: #E9F0FC;
  --orange: #EA580C;
  --orange-dark: #C2410C;
  --orange-light: #FDECE2;
  --ink: #10182B;
  --ink-soft: #475269;
  --muted: #64748B;
  --line: #E4E9F2;
  --bg: #FFFFFF;
  --bg-alt: #F6F9FD;
  --surface: #FFFFFF;
  --surface-2: #F6F9FD;
  --header-bg: rgba(255, 255, 255, .9);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 24, 43, 0.07);
  --shadow-lg: 0 24px 60px rgba(16, 24, 43, 0.14);
  --container: 1160px;
  color-scheme: light;
}

/* Dark mode — follows the OS preference by default, overridden by the
   header toggle (which stamps data-theme and remembers the choice). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue-light: #1C2B45;
    --orange-light: #3A2416;
    --ink: #EEF2F9;
    --ink-soft: #C2CBDC;
    --muted: #93A0BC;
    --line: #2A3550;
    --bg: #0B1226;
    --bg-alt: #101A32;
    --surface: #131F3B;
    --surface-2: #101A32;
    --header-bg: rgba(11, 18, 38, .82);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue-light: #1C2B45;
  --orange-light: #3A2416;
  --ink: #EEF2F9;
  --ink-soft: #C2CBDC;
  --muted: #93A0BC;
  --line: #2A3550;
  --bg: #0B1226;
  --bg-alt: #101A32;
  --surface: #131F3B;
  --surface-2: #101A32;
  --header-bg: rgba(11, 18, 38, .82);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 58px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(234,88,12,.3); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo-img { display: block; object-fit: contain; }
.brand-word { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .2px; }
.brand-di { color: var(--blue); }
.brand-tech { color: var(--orange); }
.brand-word-footer .brand-di { color: #fff; }
.brand-word-footer .brand-tech { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.mobile-nav-cta { display: none; }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(234,88,12,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  color: var(--blue);
  background: var(--blue-light);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: 44px; letter-spacing: -.5px; margin-bottom: 22px; }
.lede { font-size: 17.5px; max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-ctas .btn-ghost { color: var(--ink); border-color: var(--line); }
.hero-ctas .btn-ghost:hover { background: var(--bg-alt); }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: 'Poppins', sans-serif; font-size: 28px; color: var(--blue); }
.hero-stats span { font-size: 13.5px; color: var(--muted); }

.hero-visual { position: relative; height: 420px; }
.hero-card {
  position: absolute;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-blue { background: var(--blue); }
.dot-orange { background: var(--orange); }
.hero-card-1 { top: 2%; left: 2%; animation-delay: 0s; }
.hero-card-2 { top: 18%; right: 0; animation-delay: .5s; }
.hero-card-3 { top: 38%; left: 6%; animation-delay: 1.2s; }
.hero-card-4 { top: 52%; right: 4%; animation-delay: .3s; }
.hero-card-5 { top: 70%; left: 0; animation-delay: .9s; }
.hero-card-6 { top: 86%; right: 14%; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Hero visual: animated orbit diagram ---- */
.orbit-panel {
  position: relative;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0C2A57 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.orbit-svg { position: absolute; width: 88%; height: 88%; max-width: 380px; }
.orbit-ring { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.2; }
.orbit-core { fill: var(--orange); filter: drop-shadow(0 0 16px rgba(234,88,12,.75)); }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Two rings of small labelled tags, each orbiting the centre at a fixed
   radius (--r) and starting angle (--a). The ring wrapper spins; each
   pill's own animation spins the exact same duration in reverse, so the
   two rotations cancel and the label text stays upright while its
   position still travels around the circle. */
.orbit-tags { position: absolute; inset: 0; }
.orbit-tags-inner { animation: orbit-spin 55s linear infinite; }
.orbit-tags-inner .orbit-tag-pill { animation: orbit-spin 55s linear infinite reverse; }
.orbit-tags-outer { animation: orbit-spin 75s linear infinite reverse; }
.orbit-tags-outer .orbit-tag-pill { animation: orbit-spin 75s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .orbit-tags-inner, .orbit-tags-outer,
  .orbit-tags-inner .orbit-tag-pill, .orbit-tags-outer .orbit-tag-pill { animation: none; }
}
.orbit-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1));
}
.orbit-tag-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
  color: #DCE7F9;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.orbit-tag-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.orbit-tag-dot-blue { background: #6FA3E0; }
.orbit-tag-dot-orange { background: var(--orange); }

.orbit-card {
  position: absolute;
  background: rgba(18,58,117,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
}
.orbit-card-label { font-size: 11.5px; color: #B9CCEA; text-transform: uppercase; letter-spacing: .04em; }
.orbit-card-value { font-size: 14px; font-weight: 700; }
.orbit-card-1 { top: 8%; right: 4%; animation-delay: .2s; }
.orbit-card-2 { bottom: 10%; right: 4%; background: rgba(234,88,12,.85); border-color: rgba(255,255,255,.25); animation-delay: 1s; }
.orbit-card-2 .orbit-card-label { color: #FDECE2; }

/* ============ Trust strip ============ */
.trust-strip { background: var(--blue-dark); padding: 18px 0; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 20px 36px; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 9px; color: #DCE7F9; font-size: 13.5px; font-weight: 600; }
.trust-item svg { color: var(--orange); }

/* ============ Sections (generic) ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag-light { color: #FFD9B8; }
.section-head h2 { font-size: 32px; }
.section-sub { font-size: 16px; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about-copy .section-tag { margin-bottom: 12px; }
.about-copy h2 { font-size: 32px; }
.about-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-panel-row { display: flex; gap: 16px; align-items: flex-start; }
.about-icon { font-size: 22px; line-height: 1; }
.about-panel-row b { display: block; margin-bottom: 4px; font-family: 'Poppins', sans-serif; font-size: 14.5px; }
.about-panel-row p { margin: 0; font-size: 14.5px; }

/* ============ Services ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 10px; }
.service-link { font-weight: 700; font-size: 13.5px; color: var(--orange); }
.service-link:hover { color: var(--orange-dark); }

/* ============ Products ============ */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 24px;
  padding: 56px;
  color: #fff;
  margin-bottom: 40px;
}
.product-badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.product-feature h3 { color: #fff; font-size: 26px; }
.product-feature p { color: #DCE7F9; }
.product-feature .btn-primary { background: #fff; color: var(--blue-dark); }
.product-feature .btn-primary:hover { background: #F0F4FA; box-shadow: none; }

/* ---- Admin dashboard mock (faithful mini-recreation of the real DITECH MSMS dashboard,
   deliberately styled richer than the actual product — this is marketing artwork) ---- */
.dash-mock {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 340px;
}
.dash-mock-sidebar {
  background: linear-gradient(200deg, #0F2A57 0%, #123A75 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}
.dash-mock-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); margin-bottom: 6px; box-shadow: 0 0 0 4px rgba(234,88,12,.22), 0 0 14px rgba(234,88,12,.55); }
.dash-nav-item {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #7C93C2;
  transition: background .2s ease, color .2s ease;
}
.dash-nav-item.active { background: linear-gradient(135deg, var(--orange) 0%, #F97316 100%); color: #fff; box-shadow: 0 4px 14px rgba(234,88,12,.4); }
.dash-mock-main { padding: 18px 22px 22px; }
.dash-mock-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dash-mock-topbar span:first-child { flex: 1; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.dash-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; color: #16A34A;
  background: rgba(34,197,94,.14);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
}
.dash-live-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: dash-live-pulse 1.8s ease-out infinite;
}
@keyframes dash-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.dash-mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blue) 0%, #4C7AC2 100%); display: inline-block; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.dash-kpi {
  position: relative;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
}
.dash-kpi-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.dash-kpi-icon-blue { background: var(--blue-light); color: var(--blue); }
.dash-kpi-icon-orange { background: var(--orange-light); color: var(--orange-dark); }
.dash-kpi span { font-size: 10.5px; color: var(--muted); }
.dash-kpi b { font-family: 'Poppins', sans-serif; font-size: 16px; color: var(--blue); }
.dash-trend {
  position: absolute;
  top: 10px; right: 10px;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
}
.dash-trend.up { background: rgba(34,197,94,.15); color: #16A34A; }
.dash-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.dash-chart-card { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; }
.dash-chart-label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; }
.dash-bars { display: flex; align-items: flex-end; gap: 7px; height: 84px; }
.dash-bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--blue) 0%, #4C7AC2 100%);
  border-radius: 4px 4px 0 0;
}
.dash-bars i.peak {
  background: linear-gradient(180deg, var(--orange) 0%, #F97316 100%);
  box-shadow: 0 0 12px rgba(234,88,12,.5);
}
.dash-chart-card-donut { display: flex; flex-direction: column; align-items: center; }
.dash-donut {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--orange) var(--pct), var(--blue-light) 0);
  display: flex; align-items: center; justify-content: center;
  margin-top: 6px;
  box-shadow: 0 0 16px rgba(234,88,12,.25);
}
.dash-donut span {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.dash-activity { display: flex; flex-direction: column; gap: 8px; }
.dash-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.dash-activity-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dash-activity-dot-green { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.dash-activity-dot-blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,156,.18); }
.dash-activity-row em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 11px; color: var(--ink); white-space: nowrap; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.product-card h3 { font-size: 18px; }
.product-list { font-size: 14px; color: var(--ink-soft); margin: 0; }
.product-list li { margin-bottom: 8px; }

/* ---- Live platforms ---- */
.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.live-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.live-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.live-banner {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: 26px 26px;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0, rgba(255,255,255,.09) 2px, transparent 2px, transparent 13px);
}
.live-card-auctions .live-banner { background-color: #0F7A5C; }
.live-card-food .live-banner { background-color: #B4432E; }
.live-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
}
.live-badge-accent { background: #FDECC8; color: #92610B; }
.live-body { padding: 24px 26px; }
.live-body h3 { font-size: 18px; margin-bottom: 8px; }
.live-body p { font-size: 14.5px; margin-bottom: 10px; }

/* ---- Marketplace categories ---- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.category-card h3 { font-size: 15.5px; margin-bottom: 2px; }
.category-card p { font-size: 13px; margin: 0; color: var(--muted); }

/* ============ Partners ============ */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.partner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.partner-logo {
  width: 100%;
  height: 84px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.partner-logo img { max-height: 84px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.partner-card h3 { font-size: 17px; margin-bottom: 2px; }
.partner-role { color: var(--orange); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.partner-card p:last-child { font-size: 14px; margin-bottom: 0; }

/* ============ Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 16px;
  border: 2px solid var(--line);
}
.team-card h3 { font-size: 15.5px; margin-bottom: 2px; }
.team-role { font-size: 13px; color: var(--muted); margin: 0; }

/* ============ Our Story ============ */
.story-timeline { max-width: 720px; margin: 0 auto; }
.story-step { display: grid; grid-template-columns: 44px 1fr; gap: 24px; position: relative; padding-bottom: 40px; }
.story-step::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}
.story-step-final::before { display: none; }
.story-marker {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.story-step:nth-child(even) .story-marker { background: var(--orange); }
.story-step-final .story-marker { background: linear-gradient(135deg, var(--orange) 0%, #F97316 100%); }
.story-content { padding-top: 6px; }
.story-content h3 { font-size: 17px; margin-bottom: 6px; }
.story-content p { font-size: 14.5px; color: var(--muted); margin: 0; }
.story-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  box-shadow: var(--shadow-lg);
}
.story-photo-caption { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* ============ Gallery ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
}
.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-item-video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(11, 23, 48, .72);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.gallery-item-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(11,23,48,.82) 0%, transparent 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 20px 10px 8px;
  text-align: left;
}
.gallery-modal {
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  max-width: 780px;
  width: 92vw;
  max-height: 88vh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.gallery-modal::backdrop { background: rgba(11, 23, 48, .72); backdrop-filter: blur(2px); }
.gallery-modal-media { display: flex; align-items: center; justify-content: center; }
.gallery-modal-media img, .gallery-modal-media video { max-width: 100%; max-height: 72vh; border-radius: 8px; display: block; }
.gallery-modal-caption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; margin-bottom: 0; }

/* ============ Careers ============ */
.jobs-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.jobs-loading, .jobs-empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.job-card-main { flex: 1; min-width: 240px; }
.job-card-title {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  margin-bottom: 6px;
}
.job-card-title:hover { color: var(--blue); }
.job-card-summary { font-size: 14px; color: var(--muted); margin-bottom: 12px; max-width: 60ch; }
.job-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
}
.job-tag-type { background: var(--orange-light); color: var(--orange-dark); }
.job-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.job-card-closes { font-size: 12.5px; color: var(--muted); }

.careers-cta-card {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0C2A57 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.careers-cta-tag { color: var(--orange); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.careers-cta-card h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.careers-cta-card p { color: #C9D8F0; font-size: 14.5px; margin-bottom: 22px; }

/* ---- Job detail modal ---- */
.job-modal {
  border: none;
  border-radius: var(--radius);
  padding: 36px;
  max-width: 560px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.job-modal::backdrop { background: rgba(11, 23, 48, .6); backdrop-filter: blur(2px); }
.job-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.job-modal-close:hover { color: var(--ink); }
.job-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.job-modal h3 { font-size: 22px; margin-bottom: 8px; }
.job-modal-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.job-modal-body { font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-line; margin-bottom: 26px; }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--orange);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 20px; margin: -6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.faq-item p a { font-weight: 600; }

/* ============ Contact ============ */
.section-contact { background: linear-gradient(180deg, var(--blue-dark) 0%, #0C2A57 100%); color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.contact-info h2 { color: #fff; font-size: 32px; }
.contact-info > p { color: #C9D8F0; }
.contact-detail { display: flex; gap: 16px; margin-top: 26px; align-items: flex-start; }
.contact-detail-icon { font-size: 20px; }
.contact-detail b { display: block; color: #fff; font-family: 'Poppins', sans-serif; font-size: 14.5px; margin-bottom: 3px; }
.contact-detail p { color: #C9D8F0; margin: 0; font-size: 14.5px; }
.contact-detail a { color: #fff; text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 20px; margin-bottom: 20px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-group .form-row { margin-bottom: 0; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.field-hint { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.form-row-group { margin-bottom: 18px; }

.form-message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-message.success { background: #E7F8EE; color: #15803D; }
.form-message.error { background: #FDECEC; color: #B91C1C; }

/* ============ Top alert (client-side network/API notice) ============ */
.top-alert {
  background: #FEF3C7;
  color: #92400E;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
}

/* ============ Partner marquee — fixed slim bar pinned to the bottom of the
   viewport; keeps sliding no matter where the page is scrolled ============ */
.marquee-section {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(16, 24, 43, .08);
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
}
.marquee-label {
  flex-shrink: 0;
  margin: 0;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track:hover .marquee-content { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  flex-shrink: 0;
}
.marquee-logo img { height: 32px; width: auto; max-width: 96px; object-fit: contain; border-radius: 5px; }
.marquee-placeholder {
  min-width: 96px;
  height: 32px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 0 14px;
}

/* ============ Footer ============ */
.site-footer { background: #0B1730; color: #A9B7CF; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { color: #7C8CAA; margin-top: 14px; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-links a { display: block; color: #A9B7CF; font-size: 14px; margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-links p { color: #A9B7CF; font-size: 14px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: 13px; color: #7C8CAA; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 240px; margin-top: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid, .products-grid, .partners-grid, .live-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .product-feature { grid-template-columns: 1fr; padding: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .mobile-nav-cta { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    min-height: 67vh;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 36px;
    gap: 24px;
    box-shadow: var(--shadow);
  }
  .main-nav.open a { font-size: 19px; }
  .main-nav.open .mobile-nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: auto;
  }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 32px; }
  .lede { font-size: 16px; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .hero-visual { display: none; }
  .section { padding: 64px 0; }
  .section-head h2, .about-copy h2, .contact-info h2 { font-size: 26px; }
  .services-grid, .products-grid, .partners-grid, .live-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-group { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .product-feature { padding: 28px; border-radius: 18px; }
  .trust-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .marquee-label { display: none; }
  .marquee-inner { padding: 8px 16px; }
  .marquee-content { gap: 28px; }
  .marquee-logo, .marquee-logo img, .marquee-placeholder { height: 26px; }
  .marquee-placeholder { min-width: 80px; font-size: 10px; padding: 0 10px; }
  body { padding-bottom: 48px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
}
