:root {
  --ink: #141719;
  --muted: #6b747c;
  --line: #e2e7eb;
  --soft: #f5f7f8;
  --blue: #226b8f;
  --green: #22785f;
  --amber: #bd7a2a;
  --paper: #ffffff;
  --shadow: 0 18px 48px rgba(25, 38, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(226, 231, 235, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 62px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 14px;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.top-nav a:hover {
  color: var(--ink);
}

.quote-button,
.filter-chip,
.primary-action,
.secondary-action,
.icon-button,
.add-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
}

.quote-button span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 54px));
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 70px) clamp(54px, 7vw, 92px);
  background: #f8fafb;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.58) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(245, 248, 249, 0.88)),
    url("assets/backgrounds/factory-hero-bg.png") center / cover no-repeat;
  filter: blur(7px);
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 70px);
  right: clamp(18px, 5vw, 70px);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.catalog-head h2,
.rfq-copy h2,
.quote-head h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(46px, 7.5vw, 92px);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  padding: 0 18px;
  min-height: 46px;
  border-radius: 7px;
  font-weight: 900;
}

.primary-action {
  color: #fff;
  background: var(--blue);
}

.secondary-action {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.whatsapp-action {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 900;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 34px 0 0;
}

.hero-facts div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(120px, 0.82fr) minmax(220px, 1.36fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  align-items: stretch;
  overflow: hidden;
  contain: layout paint;
}

.hero-product {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(14px, 2vw, 26px);
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid rgba(226, 231, 235, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(22, 36, 48, 0.11);
  backdrop-filter: blur(4px);
  filter: drop-shadow(0 24px 30px rgba(34, 45, 53, 0.16));
  pointer-events: none;
}

.hero-product-main {
  grid-column: 2;
  grid-row: 1 / 4;
  z-index: 3;
}

.hero-product-white {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
}

.hero-product-battery {
  grid-column: 1;
  grid-row: 2;
  z-index: 4;
}

.hero-product-bird {
  display: block;
  grid-column: 1;
  grid-row: 3;
  z-index: 2;
}

.hero-product-ptz {
  display: none;
}

.launch-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.launch-strip article {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 22px clamp(18px, 4vw, 46px);
  background: #fff;
}

.launch-strip img {
  width: 112px;
  height: 104px;
  object-fit: contain;
}

.launch-strip strong {
  display: block;
  font-size: 18px;
}

.launch-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section-shell,
.catalog-section,
.rfq-section {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.section-heading h2,
.catalog-head h2,
.rfq-copy h2 {
  font-size: clamp(30px, 4.5vw, 54px);
}

.section-heading p:not(.eyebrow),
.catalog-head p,
.rfq-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.price-note {
  margin-top: 12px !important;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: rgba(34, 120, 95, 0.08);
  color: var(--ink) !important;
  font-size: 14px;
}

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

.tier-board div {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tier-board span {
  display: inline-grid;
  min-width: 56px;
  min-height: 34px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.tier-board strong {
  display: block;
  margin-top: 28px;
  font-size: 20px;
}

.tier-board p {
  margin: 8px 0 0;
  color: var(--muted);
}

.catalog-section {
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1200px) / 2));
  background: var(--soft);
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 26px;
  align-items: end;
  margin-bottom: 24px;
}

.catalog-head > div:first-child {
  max-width: 780px;
}

.catalog-count {
  min-width: 160px;
  display: grid;
  justify-items: end;
  gap: 2px;
  padding-bottom: 4px;
}

.catalog-count strong {
  font-size: 46px;
  line-height: 1;
}

.catalog-count span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-transform: none;
}

.filter-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 0 15px;
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}

.filter-chip.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

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

.product-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-media {
  display: grid;
  place-items: center;
  padding: 18px;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f1f5f5);
}

.product-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  padding: 16px;
  background: #fff;
}

.product-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body h3 {
  min-height: 48px;
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.product-description {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-meta span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.price-table div {
  display: grid;
  gap: 2px;
  padding: 8px 6px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.price-table div:last-child {
  border-right: 0;
}

.price-table span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.price-table strong {
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 8px;
}

.add-button {
  color: #fff;
  background: var(--blue);
}

.qty-input {
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}

.oem-section {
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1200px) / 2));
}

.oem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.oem-grid article {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.oem-grid h3 {
  margin: 0 0 8px;
}

.oem-grid p {
  margin: 0;
  color: var(--muted);
}

.rfq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-section {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
  padding: clamp(56px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.contact-copy p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-lines a,
.contact-lines span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

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

.qr-grid article {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 7px;
  background: var(--soft);
}

.qr-grid strong {
  font-size: 18px;
}

.qr-grid span {
  color: var(--muted);
  font-size: 14px;
}

.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rfq-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.rfq-form input,
.rfq-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
}

.rfq-form textarea {
  resize: vertical;
}

.full-field,
.form-actions {
  grid-column: 1 / -1;
}

.quote-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(20, 23, 25, 0.34);
}

.quote-drawer.is-open {
  display: flex;
}

.quote-panel {
  width: min(460px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quote-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.quote-head h2 {
  font-size: 28px;
}

.icon-button {
  width: 42px;
  padding: 0;
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.quote-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
}

.quote-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 7px;
  background: var(--soft);
}

.quote-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.quote-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.remove-item {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.quote-empty {
  display: none;
  color: var(--muted);
}

.quote-empty.is-visible {
  display: block;
}

.full-width {
  width: 100%;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  gap: 8px;
}

.floating-contact a {
  display: grid;
  place-items: center;
  min-width: 118px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  color: #fff;
  background: rgba(20, 23, 25, 0.88);
  box-shadow: 0 12px 30px rgba(20, 23, 25, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.floating-contact a:first-child {
  background: var(--green);
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-product {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .launch-strip,
  .intro-grid,
  .catalog-tools,
  .rfq-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .tier-board,
  .oem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-head {
    grid-template-columns: 1fr;
  }

  .catalog-count {
    justify-items: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-copy {
    display: none;
  }

  .quote-button {
    min-width: 104px;
  }

  .hero {
    padding: 36px 14px 48px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .form-actions {
    display: grid;
  }

  .hero-facts,
  .launch-strip,
  .tier-board,
  .product-grid,
  .oem-grid,
  .rfq-form,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .floating-contact {
    left: 14px;
    right: 14px;
    bottom: 12px;
    grid-template-columns: repeat(4, 1fr);
  }

  .floating-contact a {
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

  .hero-visual {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 340px) repeat(3, minmax(170px, 220px));
    gap: 12px;
  }

  .hero-product-main {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-product-white {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-product-battery {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-product-bird {
    grid-column: 1;
    grid-row: 4;
  }

  .launch-strip article {
    grid-template-columns: 96px 1fr;
  }

  .product-card {
    grid-template-rows: 220px auto;
  }

  .quote-item {
    grid-template-columns: 58px 1fr auto;
  }

  .quote-item img {
    width: 58px;
    height: 58px;
  }
}
