:root{
  --bg:#ffffff;
  --surface:#f4f6f8;
  --surface2:#eef1f4;
  --text:#0b0f14;
  --muted:#5b6674;
  --border:#d9dee5;
  --brand:#0b3a6a;
  --brand2:#0f6ab5;
  --accent:#1a8cff;
  --shadow: 0 14px 28px rgba(0,0,0,.10);
  --radius:16px;
  --max:1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
          "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

/* =========================
   STICKY HEADER
   ========================= */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
}

/* =========================
   NAV / BRAND
   ========================= */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.mark{
  width:34px;
  height:34px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--brand2),var(--brand));
}

/* Brand text block */
.brand-title{
  line-height:1.25;
}

.brand strong{
  letter-spacing:.2px;
  font-size:18px;
  line-height:1.1;
}

.spinout{
  font-size:12px;
  color:var(--muted);
}

.tagline{
  color:#0b5f66; /* dark teal */
  font-size:12px;
}

/* Links */
.links{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}

.links a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
}

.links a:hover{background:var(--surface);color:var(--text)}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:var(--brand);
  color:white;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.06);
}

.btn.secondary{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}

.btn:hover{filter:brightness(1.05)}

/* =========================
   LOGO MARQUEE (JS-DRIVEN)
   IMPORTANT: NO CSS ANIMATION
   ========================= */
.logo-marquee{
  background: rgba(255,255,255,.92);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width:100%;
}

.logo-marquee-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:12px 22px;
  display:flex;
  align-items:center;
  gap:16px;
}

.logo-label{
  flex:0 0 auto;
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  background:var(--surface);
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
}

.logo-viewport{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
}

.logo-track{
  display:flex;
  width:max-content;
  will-change:transform;
  transform:translate3d(0,0,0);
}

.logo-set{
  display:flex;
  align-items:center;
  gap:28px;
  white-space:nowrap;
  flex-shrink:0;
}

.logo{
  display:inline-flex;
  align-items:center;
  padding:4px 6px;
  text-decoration:none;
}

.logo img{
  height:40px;      /* desktop ticker logo size */
  width:auto;
  max-width:340px;
  object-fit:contain;
  display:block;
}

/* =========================
   HERO
   ========================= */
.hero{
  position:relative;
  background:
    linear-gradient(90deg, rgba(11,58,106,.92), rgba(15,106,181,.82)),
    radial-gradient(900px 520px at 75% 10%, rgba(26,140,255,.55), transparent 60%);
  color:white;
}

.hero .wrap{
  padding:54px 0 34px;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:20px;
  align-items:end;
}

@media (max-width: 920px){
  .hero .wrap{grid-template-columns:1fr}
}

.breadcrumbs{color:rgba(255,255,255,.78);font-size:13px;margin-bottom:10px}

h1{
  margin:0 0 10px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.02;
}

.lede{
  margin:0;
  color:rgba(255,255,255,.84);
  font-size: clamp(16px,1.6vw,19px);
}

.hero-card{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  border-radius:var(--radius);
  padding:16px;
}

.hero-card .kpi{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:10px;
}

@media (max-width: 520px){
  .hero-card .kpi{grid-template-columns:1fr}
}

.stat{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
}

.stat .num{font-weight:800;font-size:22px}
.stat .lbl{font-size:13px;color:rgba(255,255,255,.80);margin-top:2px}

/* =========================
   SECTIONS / CARDS
   ========================= */
.section{padding:40px 0}
.section.alt{background:var(--surface)}
.section h2{margin:0 0 12px;font-size:28px}
.section .sub{margin:0 0 16px;color:var(--muted);max-width:80ch}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width: 920px){ .grid3{grid-template-columns:1fr} }

.card{
  background:white;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}

.card.padded{padding:16px}
.card h3{margin:0 0 8px;font-size:18px}
.card p{margin:0;color:var(--muted)}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  background:var(--surface);
  padding:6px 10px;
  border-radius:999px;
}

.split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 920px){ .split{grid-template-columns:1fr} }

.list{margin:10px 0 0;padding-left:18px;color:var(--muted)}

/* Horizontal product strip */
.strip{
  display:flex;
  gap:12px;
  overflow:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}

.tile{
  min-width:230px;
  scroll-snap-align:start;
  border-radius:18px;
  border:1px solid var(--border);
  background:white;
  overflow:hidden;
  box-shadow:0 12px 22px rgba(0,0,0,.06);
  text-decoration:none;
}

.thumb{
  height:130px;
  overflow:hidden;
  background:#eef1f4;
}

.thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#eef1f4;
}

/* Ensure no weird image stretching */
.tile .thumb img{
  min-width:0 !important;
  min-height:0 !important;
}

.tile .meta{padding:12px}
.tile .meta strong{display:block}
.tile .meta span{display:block;margin-top:4px;color:var(--muted);font-size:13px}

.banner{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  background:linear-gradient(90deg, rgba(11,58,106,.08), rgba(15,106,181,.08));
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
}

.banner strong{font-size:18px}

/* =========================
   FOOTER
   ========================= */
footer{
  background:#0b0f14;
  color:#cbd5e1;
  padding:30px 0 36px;
  margin-top:10px;
}

footer a{color:#cbd5e1;text-decoration:none}
footer a:hover{text-decoration:underline}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:14px;
}

@media (max-width: 920px){
  .footer-grid{grid-template-columns:1fr}
}

.small{font-size:13px;color:#9fb0c4}
hr.sep{border:0;border-top:1px solid rgba(255,255,255,.12);margin:18px 0}

/* =========================
   MOBILE OVERRIDES
   - Reduce header height
   - Tagline stays on one line
   - Links stay on one line (scrollable)
   - Reduce gap between title and tagline
   ========================= */
@media (max-width: 700px){

  /* Slightly tighter global padding */
  .container{ padding:0 14px; }

  /* Stack brand above links so brand has full width */
  .nav{
    flex-direction:column;
    align-items:flex-start;
    padding:8px 0;
    gap:8px;
  }

  /* Make the brand block tighter */
  .brand{ gap:10px; }

  .mark{
    width:26px;
    height:26px;
    border-radius:8px;
    align-self:flex-start;
  }

  .brand-title{ line-height:1.15; }

  /* Reduce the visual gap created by <br/> */
  .brand-title br{
    display:block;
    content:"";
    margin:2px 0;
  }

  .brand strong{
    font-size:16px;
    line-height:1.05;
  }

  /* Keep tagline on one line */
  .tagline{
    display:block;
    white-space:nowrap;
    font-size:10.5px; /* adjust to 10px if needed on very small devices */
    line-height:1.1;
    margin-top:2px;
  }

  /* OPTIONAL: if you want more vertical space saved, hide the spinout line */
  /* .spinout{ display:none; } */

  /* Links: force single row + horizontal scroll */
  .links{
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    white-space:nowrap;
    gap:8px;
    padding-bottom:4px;
  }
  .links::-webkit-scrollbar{ height:0; }

  .links a{
    padding:6px 8px;
    border-radius:10px;
    font-size:14px;
  }

  .btn{
    padding:8px 10px;
    font-size:14px;
  }

  /* Ticker: stack label above track on mobile */
  .logo-marquee-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:8px 14px;
  }
  .logo-viewport{ width:100%; }

  /* Smaller ticker logos on mobile to reduce header height */
  .logo img{
    height:28px;
    max-width:220px;
  }
}
/* Prevent nested .container from doubling padding */
.container .container{
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100%;
}
/* 1) Prevent nested container padding differences */
.container .container{
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100%;
}

/* 2) Force consistent marquee alignment */
.logo-marquee{ width:100%; }
.logo-marquee-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 22px;
}

/* 3) Normalize mobile spacing */
@media (max-width:700px){
  .hero .wrap{ padding: 34px 0 22px; }
  .section{ padding: 28px 0; }
}

.dashboard-link {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.dashboard-link p {
  margin: 0;
  color: rgba(255,255,255,.84);
  flex: 1;
}

.dashboard-image img {
  width: 140px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.dashboard-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dashboard-intro p {
  margin: 10px 0 14px;
  color: rgba(255,255,255,.84);
}

.dashboard-image img {
  display: block;
  width: 80px;
  height: auto;
}

.dashboard-text {
  margin: 24px 0 16px;
  color: rgba(255,255,255,.84);
  text-align: center;
}

.dashboard-screens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.dashboard-screens img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.btn-product {
  background: #001b44;       /* dark navy box */
  color: #ffffff;            /* bright text */
  border: 1px solid #00a884;
}

.btn-product:visited,
.btn-product:hover,
.btn-product:focus {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-product {
  background: rgba(0, 150, 120, 0.12);
  color: #007f68;
  border: 1px solid rgba(0, 150, 120, 0.35);
  box-shadow: 0 6px 18px rgba(0, 150, 120, 0.12);
}

.btn-product:hover {
  background: #009678;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 150, 120, 0.25);
}

.btn-primary {
  background: #001b44;
  color: #ffffff;
  border: 1px solid #001b44;
}

.btn-kicker {
  background: #001b44;
  color: #ffffff;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Force PiezoCat button text to stay bright */
.links a.btn.btn-product,
.links a.btn.btn-product:visited,
.links a.btn.btn-product:hover,
.links a.btn.btn-product:focus {
  background: #001b44;
  color: #ffffff !important;
  border: 1px solid #00a884;
}

/* Keep the NEW label bright too */
.links a.btn.btn-product .btn-kicker {
  background: #00a884;
  color: #ffffff !important;
}

/* Final override for PiezoCat nav button */
nav .links a.btn.btn-product,
nav .links a.btn.btn-product:link,
nav .links a.btn.btn-product:visited,
nav .links a.btn.btn-product:hover,
nav .links a.btn.btn-product:focus,
nav .links a.btn.btn-product:active {
  background: #001b44 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid #00a884 !important;
}

/* Forces the text itself to stay white in stubborn browser cases */
nav .links a.btn.btn-product {
  -webkit-text-fill-color: #ffffff !important;
}

/* NEW label */
nav .links a.btn.btn-product .btn-kicker {
  background: #00a884 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
}

nav .links a.btn.btn-product .btn-text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
}


.piezocat-button,
.piezocat-button:link,
.piezocat-button:visited,
.piezocat-button:hover,
.piezocat-button:focus,
.piezocat-button:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;

  background: #f1f4f7 !important;   /* light grey button */
  color: #001b44 !important;        /* dark readable text */
  -webkit-text-fill-color: #001b44 !important;

  font-weight: 900 !important;
  font-size: 15px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;

  border: 2px solid #00a884 !important;
  text-decoration: none !important;
  min-height: 42px !important;
  position: relative !important;
  z-index: 10 !important;

  box-shadow: 0 4px 12px rgba(0, 27, 68, 0.12) !important;
}

.piezocat-button:hover {
  background: #e3e9ef !important;   /* slightly darker grey on hover */
  color: #001b44 !important;
  -webkit-text-fill-color: #001b44 !important;
}

.piezocat-text {
  color: #001b44 !important;
  -webkit-text-fill-color: #001b44 !important;
  font-weight: 900 !important;
}

.piezocat-new {
  background: #00a884 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 11px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
}

.products-hero {
  color: #ffffff;
}

.products-hero .container {
  padding-top: 54px;
  padding-bottom: 40px;
}

.product-headings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.product-intro {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 22px;
}

.product-intro h1 {
  margin: 0 0 12px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.product-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.product-highlights .hero-card {
  height: 100%;
}

.product-highlights .kpi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

/* Mobile layout */
@media (max-width: 850px) {
  .product-headings,
  .product-highlights {
    grid-template-columns: 1fr;
  }
}


/* Two product columns in hero */
.products-hero .product-headings,
.products-hero .product-highlights {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.products-hero .product-intro,
.products-hero .hero-card {
  width: 100% !important;
  min-width: 0 !important;
}

/* Highlights card layout */
.products-hero .hero-card .kpi {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

/* Only stack on smaller screens */
@media (max-width: 760px) {
  .products-hero .product-headings,
  .products-hero .product-highlights {
    grid-template-columns: 1fr !important;
  }
}

.product-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-buttons {
  justify-content: center;
}

#system .grid3 .card {
  text-align: left !important;
}

#system .grid3 .card h3,
#system .grid3 .card h3 a {
  text-align: left !important;
}

#system .grid3 .card h3 a {
  display: inline !important;
  justify-content: flex-start !important;
}

/* News section alignment fix */
#system,
#system .container,
#system .grid3,
#system .card,
#system .card h3,
#system .card h3 a,
#system .card p,
#system .tag {
  text-align: left !important;
}

#system .card {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

#system .card h3 {
  width: 100% !important;
  margin-left: 0 !important;
  align-self: stretch !important;
}

#system .card h3 a {
  display: block !important;
  width: 100% !important;
  margin-left: 0 !important;
  text-align: left !important;
}

#system .card h3,
#system .card h3 a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #0b0f14 !important;
  -webkit-text-fill-color: #0b0f14 !important;
  text-align: left !important;
}

#system .card {
  text-align: left !important;
}

.profile-image {
  display: block;
  width: 180px;
  height: 180px;
  max-width: 70vw;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}