:root {
  --bg: #edf4ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: rgba(240, 247, 255, 0.88);
  --text: #0f172a;
  --muted: #4b5b71;
  --line: rgba(180, 198, 224, 0.7);
  --accent: #0f4c81;
  --accent-2: #22c55e;
  --accent-3: #06b6d4;
  --accent-4: #f59e0b;
  --pos: #0b7285;
  --bar: #d97706;
  --erp: #16a34a;
  --docs: #6d5efc;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 22%),
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.15), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #ecf5ff 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(186, 205, 230, 0.8);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.72)),
    rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.brand-copy strong,
.eyebrow,
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.top-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-cta {
  padding: 12px 18px;
  background: linear-gradient(135deg, #0f172a, #0f4c81);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.18);
}

.btn {
  padding: 13px 20px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 16px 32px rgba(15, 76, 129, 0.16);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.top-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.hero,
.section,
.footer {
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 42px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 22%),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.22), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,250,255,0.94));
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(14,165,233,0.2), rgba(14,165,233,0));
  filter: blur(10px);
}

.hero::after {
  width: 220px;
  height: 220px;
  right: 120px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(34,197,94,0.18), rgba(34,197,94,0));
  filter: blur(6px);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.hero p,
.section-head p,
.custom-copy p,
.contact-strip p,
.product-body p,
.arch-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions,
.custom-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  position: relative;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(180, 198, 224, 0.7);
  background:
    linear-gradient(180deg, rgba(7, 16, 32, 0.88), rgba(13, 29, 56, 0.76)),
    rgba(15, 23, 42, 0.85);
  overflow: hidden;
  min-height: 100%;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.hero-stat,
.hero-note,
.product-card,
.arch-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(247,251,255,0.95));
  backdrop-filter: blur(14px);
}

.hero-stat,
.hero-note {
  padding: 22px;
  position: relative;
  z-index: 1;
  border-color: rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: #e2e8f0;
}

.hero-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  margin-bottom: 6px;
  color: #fff;
}

.hero-stat span,
.hero-note p {
  color: #cbd5e1;
}

.section {
  padding: 34px;
  margin-bottom: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,251,255,0.94));
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.custom-copy h2,
.contact-strip h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(242,248,255,0.96));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card.featured {
  min-height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  border-color: rgba(14, 165, 233, 0.24);
}

.product-tone {
  height: 10px;
}

.tone-pos {
  background: linear-gradient(90deg, #0b7285, #37b0c9);
}

.tone-bar {
  background: linear-gradient(90deg, #8b5e34, #e6a756);
}

.tone-erp { background: linear-gradient(135deg, #10b981, #059669); }

.tone-docs {
  background: linear-gradient(90deg, #6b4fd3, #a58cff);
}

.product-body {
  padding: 28px 28px 22px;
  flex: 1 1 auto;
}

.product-type {
  display: inline-block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-body h3 {
  margin: 0 0 10px;
  font-size: 1.85rem;
  line-height: 1.05;
}

.product-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 28px 28px;
  border-top: 1px solid rgba(180, 198, 224, 0.55);
}

.product-footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28);
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.arch-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,250,255,0.92));
}

.arch-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.custom-strip,
.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.95), rgba(15, 23, 42, 0.95));
  color: #fff;
  border-color: rgba(255,255,255,0.08);
}

.custom-strip p,
.contact-strip p,
.custom-strip .eyebrow,
.contact-strip .eyebrow {
  color: rgba(226, 232, 240, 0.88);
}

.custom-strip h2,
.contact-strip h2 {
  color: #fff;
}

.footer {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.9);
}

.footer p,
.footer small {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 1040px) {
  .hero,
  .custom-strip,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 320px;
  }

  .product-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 18px, 1320px);
    padding-top: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .hero,
  .section {
    padding: 24px;
  }

  .product-body {
    padding: 22px 22px 18px;
  }

  .product-footer {
    padding: 16px 22px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .product-footer,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .custom-actions,
  .contact-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .custom-actions .btn,
  .contact-actions .btn,
  .top-cta {
    width: 100%;
  }

  .product-link {
    width: 100%;
  }
}

/* Download button */
.product-download-bar { padding: 0 28px 20px; }
.product-download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b7285 0%, #0ea5e9 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(11,114,133,0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid rgba(255,255,255,0.18);
}
.product-download-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(11,114,133,0.50); }
.bar-download-btn {
  background: linear-gradient(135deg, #f4b400 0%, #d97706 100%);
  box-shadow: 0 10px 32px rgba(217,119,6,0.34);
}
.bar-download-btn:hover { box-shadow: 0 18px 44px rgba(217,119,6,0.44); }
.dl-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.dl-text { display: flex; flex-direction: column; gap: 3px; }
.dl-text strong { display: block; font-size: 1rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
.dl-text small { font-size: 0.78rem; opacity: 0.82; font-weight: 500; }
@media (max-width: 780px) {
  .product-download-bar { padding: 0 22px 18px; }
  .product-download-btn { flex-direction: column; text-align: center; gap: 10px; }
}

.product-download-btn.retail-download-btn { background: #10b981; border-color: #059669; color: #fff; }
.product-download-btn.retail-download-btn:hover { background: #059669; transform: translateY(-2px); }
.product-download-btn.retail-download-btn .dl-icon { color: #fff; }
.product-download-btn.retail-download-btn .dl-text strong { color: #fff; }
.product-download-btn.retail-download-btn .dl-text small { color: rgba(255,255,255,0.8); }