:root {
  --ink: #101820;
  --muted: #61707a;
  --panel: #ffffff;
  --line: #dfe7ec;
  --teal: #1f7a8c;
  --teal-dark: #155d69;
  --cyan: #72ddf7;
  --lime: #83c95b;
  --amber: #f0b429;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 140, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(240, 180, 41, 0.12), transparent 26rem),
    linear-gradient(180deg, #f8fbfd 0%, #eef4f6 100%);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

.navbar {
  border-bottom: 1px solid rgba(16, 24, 32, 0.08) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.06);
  backdrop-filter: blur(18px);
}

.navbar-brand {
  color: var(--ink) !important;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.navbar-brand::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 0 0 5px rgba(31, 122, 140, 0.12);
  vertical-align: 1px;
}

.nav-link {
  color: #3d4a52 !important;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--teal-dark) !important;
}

.public-page-shell,
body > .container.mt-4 {
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding: 18px;
  border: 1px solid rgba(223, 231, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.btn {
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-primary {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), #236b5f);
  box-shadow: 0 12px 24px rgba(31, 122, 140, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--teal-dark);
  background: linear-gradient(135deg, var(--teal-dark), #174b49);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(16, 24, 32, 0.08);
}

.card-title {
  color: var(--ink);
  font-weight: 800;
}

.public-home {
  display: grid;
  gap: 24px;
}

.public-hero {
  position: relative;
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  overflow: hidden;
  padding: clamp(26px, 3.5vw, 44px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 16, 25, 0.92) 0%, rgba(7, 16, 25, 0.78) 44%, rgba(7, 16, 25, 0.34) 100%),
    url("../img/mototronik-ecu-bg.svg") center / cover no-repeat;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 720px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-hero .section-kicker,
.cta-band .section-kicker {
  color: var(--cyan);
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.public-hero h1,
.section-heading h2,
.cta-band h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.public-hero h1 {
  max-width: 780px;
  font-size: clamp(2.1rem, 3.65vw, 3.4rem);
  line-height: 1.02;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.15rem;
}

.hero-metrics span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.hero-diagnostic-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(100%, 350px);
  min-height: 356px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 21, 28, 0.68);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.panel-topline span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.panel-topline span:nth-child(2) {
  background: var(--amber);
}

.panel-topline span:nth-child(3) {
  background: var(--lime);
}

.scan-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(114, 221, 247, 0.16), rgba(131, 201, 91, 0.12));
}

.scan-card small,
.scan-card strong {
  display: block;
}

.scan-card small {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scan-card strong {
  color: var(--lime);
  font-size: 1.55rem;
}

.pulse-board {
  position: relative;
  height: 132px;
  margin: 17px 0;
  border: 1px solid rgba(114, 221, 247, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 28px 28px;
}

.pulse-board::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  box-shadow: 0 0 22px rgba(114, 221, 247, 0.6);
}

.pulse-board i {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(114, 221, 247, 0.58);
}

.pulse-board i:nth-child(1) {
  top: 42px;
  left: 46px;
}

.pulse-board i:nth-child(2) {
  top: 92px;
  left: 112px;
  background: var(--lime);
}

.pulse-board i:nth-child(3) {
  top: 54px;
  right: 92px;
  background: var(--amber);
}

.pulse-board i:nth-child(4) {
  right: 44px;
  bottom: 38px;
}

.panel-list {
  display: grid;
  gap: 10px;
}

.panel-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
}

.panel-list span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.trust-strip div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.product-page {
  max-width: 1180px;
}

.product-shell {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 28px;
}

.product-image-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: #fafbfc;
  padding: 20px;
}

.product-main-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
}

.product-summary {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 28px;
}

.product-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-title {
  font-size: clamp(2rem, 2.7vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.product-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.product-price {
  font-size: clamp(2.05rem, 3vw, 2.7rem);
  color: #1f7a8c;
  font-weight: 900;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.thumb-btn {
  display: block;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 4px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.thumb-btn.active,
.thumb-btn:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 22px rgba(31, 122, 140, 0.18);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.image-upload-zone {
  border: 2px dashed rgba(31, 122, 140, 0.35);
  border-radius: 18px;
  background: #f8fbfd;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.image-upload-zone.dragover {
  border-color: var(--teal);
  background: rgba(31, 122, 140, 0.08);
}

.image-upload-zone p,
.image-upload-zone small {
  margin: 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-item {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  overflow: hidden;
  min-height: 120px;
  background: #fff;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-index {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-meta-list .product-meta-item {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 18px;
}

.product-meta-list .product-meta-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #111827;
}

.product-meta-list .product-meta-item span {
  color: #6b7280;
}

.qty-group .input-group-text {
  min-width: 80px;
  background: #f8fafc;
  border-color: rgba(226, 232, 240, 0.95);
}

.qty-input {
  width: 120px;
}

.product-actions .btn-lg {
  min-width: 220px;
}

.product-summary-box {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 18px;
}

.product-details-panel {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 28px;
}

.product-details-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.product-details-panel p {
  color: #374151;
  line-height: 1.8;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6b7280;
}

@media (max-width: 991px) {
  .product-shell {
    padding: 20px;
  }

  .product-summary {
    padding: 22px;
  }

  .product-actions .btn-lg {
    width: 100%;
  }
}


.trust-strip span,
.trust-strip strong {
  display: block;
}

.trust-strip span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-strip strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.public-section,
.workflow-band,
.cta-band {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 26px;
}

.section-heading.compact {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.compact .section-kicker {
  justify-content: center;
}

.section-heading h2,
.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.section-heading p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 122, 140, 0.06), transparent 46%),
    #fff;
  box-shadow: 0 18px 36px rgba(16, 24, 32, 0.08);
}

.featured-service {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(31, 122, 140, 0.12), rgba(240, 180, 41, 0.08)),
    #fff;
}

.service-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--ink));
  font-size: 0.82rem;
  font-weight: 850;
}

.service-card h5 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.25;
}

.service-card p,
.service-card li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-card ul {
  margin: 14px 0;
  padding-left: 1.15rem;
}

.compact-service {
  background:
    linear-gradient(180deg, rgba(131, 201, 91, 0.09), transparent 46%),
    #fff;
}

.workflow-band {
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.96), rgba(31, 122, 140, 0.88)),
    var(--ink);
  color: #fff;
}

.workflow-band .section-kicker {
  color: var(--cyan);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-grid div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.workflow-grid strong,
.workflow-grid span {
  display: block;
}

.workflow-grid strong {
  color: var(--amber);
  font-size: 1.15rem;
}

.workflow-grid span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.testimonial-card {
  display: grid;
  max-width: 760px;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(114, 221, 247, 0.1), rgba(240, 180, 41, 0.08)),
    #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.1);
  text-align: left;
}

.testimonial-photo {
  width: 118px;
  height: 118px;
  border: 4px solid #fff;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(16, 24, 32, 0.18);
}

.testimonial-card h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.testimonial-card.no-photo {
  grid-template-columns: 1fr;
  text-align: center;
}

.testimonial-meta {
  margin: 4px 0 14px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-text {
  margin: 0;
  color: #44545e;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 16, 25, 0.92), rgba(7, 16, 25, 0.66)),
    url("../img/mototronik-ecu-bg.svg") center 70% / cover no-repeat;
}

.cta-band h2 {
  max-width: 680px;
}

.site-footer,
footer {
  color: #5d6a72;
  background: transparent;
}

.site-footer {
  padding-bottom: 76px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
  font-size: 0.95rem;
}

.footer-grid span {
  color: #9aa7ae;
}

.site-footer a,
footer a {
  font-weight: 700;
}

#whatsapp-balloon {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1f9d55, #128c4a);
  box-shadow: 0 18px 34px rgba(18, 140, 74, 0.32);
  font-weight: 800;
  text-decoration: none;
}

#whatsapp-balloon:hover {
  color: #fff;
  transform: translateY(-1px);
}

#whatsapp-balloon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 992px) {
  .public-page-shell,
  body > .container.mt-4 {
    padding: 12px;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-diagnostic-panel {
    justify-self: stretch;
    min-height: 340px;
  }

  .trust-strip,
  .service-grid,
  .workflow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-service {
    grid-column: span 1;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .public-page-shell,
  body > .container.mt-4 {
    margin-top: 12px !important;
    border-radius: 0;
    padding: 10px;
  }

  .public-home {
    gap: 16px;
  }

  .public-hero,
  .public-section,
  .workflow-band,
  .cta-band {
    border-radius: 8px;
    padding: 24px;
  }

  .public-hero h1 {
    font-size: 2.28rem;
    line-height: 1.02;
  }

  .hero-metrics,
  .trust-strip,
  .service-grid,
  .workflow-grid,
  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .testimonial-card {
    text-align: center;
  }

  .testimonial-photo {
    margin: 0 auto;
  }

  #whatsapp-balloon {
    right: 14px;
    bottom: 14px;
    padding: 11px 13px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}
