:root {
  --brand: #082f56;
  --brand-mid: #0b3c6d;
  --brand-2: #0c6470;
  --brand-2-light: #0e7c8c;
  --accent: #1ed4b5;
  --accent-muted: rgba(30, 212, 181, 0.18);
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --dark: #040d16;
  --text: #0f172a;
  --muted: #5c6b7d;
  --surface: #e8eef5;
  --surface-2: #f3f6fa;
  --card: #ffffff;
  --border: rgba(8, 47, 86, 0.12);
  --shadow: 0 22px 56px rgba(4, 13, 22, 0.1);
  --shadow-sm: 0 10px 28px rgba(4, 13, 22, 0.07);
  --success: #0f9d6e;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  padding-top: 120px;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(30, 212, 181, 0.08), transparent 50%),
    linear-gradient(180deg, #f5f9fc 0%, #ffffff 32%, #fafcfd 100%);
}

.bg-primary {
  background: linear-gradient(120deg, var(--dark) 0%, var(--brand) 42%, var(--brand-mid) 100%) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(8, 47, 86, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-2-light) 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(8, 47, 86, 0.32);
}

.text-primary {
  color: var(--brand) !important;
}

.topbar {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--dark) 0%, var(--brand) 45%, #0a4a68 100%) !important;
  box-shadow: 0 2px 12px rgba(4, 13, 22, 0.2);
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}

.topbar:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 18px rgba(4, 13, 22, 0.28);
}

.topbar a.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, text-shadow 0.28s ease, color 0.2s ease;
}

.topbar a.topbar-link:hover {
  transform: translateY(-2px);
  color: #e0fdfa !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.topbar .topbar-loc {
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar:hover .topbar-loc {
  opacity: 1;
}

.topbar a.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, box-shadow 0.28s ease;
}

.topbar a.topbar-social:hover {
  transform: translateY(-3px) scale(1.08);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.navbar-custom {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s ease, background-color 0.3s ease;
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

header.fixed-top:hover .navbar-custom {
  box-shadow: 0 6px 22px rgba(8, 47, 86, 0.1);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.navbar-brand-logo {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-brand-logo:hover {
  transform: translateY(-1px);
}

.navbar-logo-img {
  height: 68px;
  width: auto;
  max-width: min(320px, 52vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

@media (max-width: 991.98px) {
  .navbar-logo-img {
    height: 58px;
    max-width: min(280px, 58vw);
  }
}

@media (max-width: 575.98px) {
  .navbar-logo-img {
    height: 50px;
    max-width: min(240px, 62vw);
  }
}

.navbar-brand-logo:hover .navbar-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 14px rgba(8, 47, 86, 0.2));
}

.navbar-brand-fallback .navbar-brand-text {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Inline STROFF wordmark in headings/body (home + about); scales with parent font-size */
.stroff-inline-wrap {
  display: inline-block;
  vertical-align: -0.18em;
  margin: 0 0.06em;
  line-height: 0;
  font-size: inherit;
}

.stroff-inline-word {
  display: block;
  height: 1.12em;
  width: auto;
  max-width: 6.5em;
  object-fit: contain;
  object-position: left center;
}

.premium-cta .stroff-inline-word {
  filter: brightness(1.08);
}

.nav-link {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text) !important;
  position: relative;
  transition: color 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-2-light) !important;
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.btn-whatsapp {
  background: var(--success);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 880px);
  background:
    radial-gradient(ellipse 95% 75% at 8% -5%, rgba(30, 212, 181, 0.32), transparent 58%),
    radial-gradient(ellipse 60% 50% at 96% 12%, var(--gold-soft), transparent 52%),
    radial-gradient(ellipse 50% 35% at 50% 105%, rgba(8, 47, 86, 0.07), transparent 48%),
    linear-gradient(168deg, #eef5fb 0%, #ffffff 46%, #f7fafc 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25% -15% auto;
  height: 60%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent 70%);
  pointer-events: none;
}

.section-title {
  font-weight: 700;
}

html.site-v5 .display-4,
html.site-v5 .section-title,
html.site-v5 .hero h1 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}

html.site-v5 .glass-card {
  border-radius: 24px;
  box-shadow: 0 28px 64px rgba(4, 13, 22, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.hero-visual {
  min-height: 420px;
  border-radius: 22px;
  position: relative;
  border: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at 75% 30%, rgba(34, 199, 169, 0.25), transparent 42%),
    radial-gradient(circle at 20% 70%, rgba(14, 116, 144, 0.28), transparent 38%),
    linear-gradient(140deg, #071a2b, #0b3c6d 55%, #0e7490);
}

.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 250, 0.88));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.insight-feature {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px 14px;
  min-height: 152px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(4, 13, 22, 0.04);
}

.insight-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(8, 47, 86, 0.1);
  border-color: rgba(30, 212, 181, 0.35);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 18% 14%;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  transform: rotate(-8deg);
}

.hero-visual::after {
  inset: 30% 22%;
  transform: rotate(11deg);
}

.data-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #99f6e4);
  box-shadow: 0 0 0 8px rgba(34, 199, 169, 0.15);
}

.insight-tile {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(34, 199, 169, 0.35);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(6px);
}

.trust-chip-grid {
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.trust-chip {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.trust-chip small {
  color: var(--muted);
}

.division-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}

.division-logo {
  width: 100%;
  max-height: 95px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 6px;
  margin-bottom: 14px;
}

.section-soft {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
}

.pillar-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(4, 13, 22, 0.04);
}

.product-preview-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.product-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(8, 47, 86, 0.14);
  border-color: rgba(30, 212, 181, 0.35);
}

.product-image-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.product-preview-card .product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-preview-card:hover .product-image {
  transform: scale(1.06);
}

.process-step {
  border-left: 3px solid rgba(14, 116, 144, 0.5);
  padding: 8px 0 8px 18px;
}

.premium-cta {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--brand) 38%, var(--brand-2) 72%, var(--brand-2-light) 100%);
  color: #fff;
  padding: 40px 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(8, 47, 86, 0.14);
  border-color: rgba(30, 212, 181, 0.35);
}

.product-card .product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

.product-detail-image-wrap {
  min-height: 260px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  padding: 16px;
  overflow: hidden;
}

.product-detail-image {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

footer a {
  color: #c6d6e8;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1200;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .product-card:hover,
  .product-preview-card:hover {
    transform: none !important;
  }

  .product-card:hover .product-image,
  .product-preview-card:hover .product-image {
    transform: none !important;
  }

  .topbar:hover {
    filter: none;
  }

  .topbar a.topbar-link:hover,
  .topbar a.topbar-social:hover,
  .navbar-brand-logo:hover,
  .navbar-brand-logo:hover .navbar-logo-img,
  .nav-link:hover,
  .nav-link.active {
    transform: none !important;
  }
}
