:root {
  --ink: #0b1220;
  --night: #020812;
  --blue: #082133;
  --steel: #6d7b8c;
  --line: #d8dee7;
  --soft: #f5f7fa;
  --white: #ffffff;
  --red: #ef1d2d;
  --red-dark: #c90f1e;
  --cyan: #64d7ff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(3, 12, 24, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 22px clamp(18px, 4vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(3, 10, 18, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  padding-block: 14px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand strong span {
  color: var(--red);
}

.brand small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 72px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transition: right 160ms ease;
}

.main-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-button,
.menu-toggle {
  color: var(--white);
  background: transparent;
  border: 0;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-weight: 700;
}

.language-button svg,
.proof-strip svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font-weight: 800;
  cursor: pointer;
}

.quote-button,
.primary-button {
  color: var(--white);
  background: var(--red);
}

.quote-button::after,
.primary-button::after,
.ghost-button::after,
.category-card a::after {
  content: " ->";
}

.quote-button:hover,
.primary-button:hover {
  background: var(--red-dark);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  min-height: 760px;
  padding: 134px clamp(22px, 7vw, 154px) 44px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.96), rgba(4, 15, 29, 0.79) 43%, rgba(8, 33, 51, 0.5)),
    radial-gradient(circle at 68% 45%, rgba(100, 215, 255, 0.25), transparent 30%),
    linear-gradient(135deg, #020812 0%, #082133 54%, #24455c 100%);
}

.factory-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 42% 43%, transparent 43% 100%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 255, 255, 0.05) 119px 121px),
    repeating-linear-gradient(0deg, transparent 0 82px, rgba(255, 255, 255, 0.05) 83px 84px);
}

.factory-grid span {
  position: absolute;
  bottom: 9%;
  width: 20vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 215, 255, 0.72), transparent);
  transform: skewY(-16deg);
}

.factory-grid span:nth-child(1) { left: 25%; bottom: 28%; }
.factory-grid span:nth-child(2) { left: 42%; bottom: 42%; }
.factory-grid span:nth-child(3) { left: 52%; bottom: 22%; }
.factory-grid span:nth-child(4) { left: 67%; bottom: 36%; }
.factory-grid span:nth-child(5) { left: 70%; bottom: 12%; }

.robot-arm {
  position: absolute;
  top: 16%;
  width: 290px;
  height: 230px;
  border: 22px solid rgba(207, 226, 241, 0.36);
  border-left: 0;
  border-bottom: 0;
  filter: blur(0.2px);
}

.robot-arm::before,
.robot-arm::after {
  position: absolute;
  content: "";
  background: rgba(226, 238, 248, 0.48);
}

.robot-arm::before {
  width: 138px;
  height: 22px;
  top: 52px;
  left: -70px;
  transform: rotate(25deg);
}

.robot-arm::after {
  width: 44px;
  height: 44px;
  top: 142px;
  right: -33px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(100, 215, 255, 0.42);
}

.arm-left {
  left: 47%;
  transform: rotate(-20deg);
}

.arm-right {
  right: 4%;
  transform: scaleX(-1) rotate(-10deg);
}

.hero-content,
.remote-stage,
.proof-strip {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 5.4vw, 6.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.48;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.remote-stage {
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(420px, 34vw);
  min-width: 300px;
  aspect-ratio: 0.68;
  perspective: 900px;
}

.key-remote {
  position: relative;
  width: 69%;
  height: 89%;
  border-radius: 34% 34% 28% 28% / 16% 16% 18% 18%;
  background:
    linear-gradient(90deg, #03060a 0 18%, #2d3743 22%, #f0f4f8 29%, #151c24 39%, #02040a 100%);
  box-shadow: 22px 22px 50px rgba(0, 0, 0, 0.44), inset -18px 0 20px rgba(255, 255, 255, 0.16);
  transform: rotateY(-12deg) rotateX(2deg);
}

.key-remote::before {
  position: absolute;
  inset: 5% 12% 6% 15%;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: inherit;
}

.remote-face {
  position: absolute;
  inset: 10% 18% 11% 22%;
  display: grid;
  grid-template-rows: 32px repeat(4, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(180deg, #121c27, #05080d);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.signal-light {
  justify-self: center;
  width: 46px;
  height: 9px;
  border-radius: 999px;
  background: #80bfff;
  box-shadow: 0 0 12px rgba(100, 215, 255, 0.9);
}

.remote-face button {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #172231, #0b1018);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.remote-face button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.remote-face button.accent {
  color: #ff7668;
}

.remote-shadow {
  position: absolute;
  bottom: 3%;
  width: 88%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(100, 215, 255, 0.38), transparent);
  transform: rotateX(68deg);
}

.proof-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 22px;
  max-width: 960px;
  margin-top: 58px;
}

.proof-strip div {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  line-height: 1.35;
}

.proof-strip svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.section {
  padding: clamp(58px, 7vw, 96px) clamp(18px, 4vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.section-copy h2,
.contact-copy h2,
.support-band h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading h2::after {
  display: block;
  width: 86px;
  height: 4px;
  margin: 20px auto 0;
  content: "";
  background: var(--red);
}

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

.category-card,
.product-card,
.finder,
.quote-form,
.resource-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.category-card {
  display: grid;
  grid-template-columns: minmax(122px, 0.75fr) 1fr;
  align-items: center;
  min-height: 220px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(7, 19, 35, 0.05);
}

.category-card h3,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.category-card p,
.product-card p,
.section-copy p,
.support-band p,
.contact-copy p {
  color: #657184;
  line-height: 1.62;
}

.category-card a,
.product-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-weight: 900;
}

.product-visual {
  position: relative;
  min-height: 150px;
}

.product-visual span,
.mini-remote,
.mini-shell,
.mini-tool {
  position: absolute;
  background: linear-gradient(145deg, #05080d, #2a3340 44%, #05080d);
  border: 2px solid #d8dde5;
  box-shadow: 12px 18px 24px rgba(4, 12, 22, 0.18);
}

.smart-keys span {
  width: 55px;
  height: 132px;
  border-radius: 26px;
}

.smart-keys span:first-child {
  left: 17px;
  top: 6px;
  transform: rotate(-14deg);
}

.smart-keys span:last-child {
  left: 72px;
  top: 18px;
  transform: rotate(20deg);
}

.shells span {
  width: 56px;
  height: 126px;
  border-radius: 18px 18px 30px 30px;
  background: linear-gradient(145deg, #111820, #4e5967);
}

.shells span:first-child { left: 20px; top: 15px; }
.shells span:last-child { left: 82px; top: 15px; }

.tools span:first-child {
  left: 46px;
  top: 16px;
  width: 38px;
  height: 116px;
  border-radius: 16px;
  background: linear-gradient(180deg, #c9d0d8, #66717e);
}

.tools span:last-child {
  left: 16px;
  top: 96px;
  width: 116px;
  height: 28px;
  border-radius: 18px;
  background: linear-gradient(90deg, #1b2028, #c9d0d8);
}

.diagnostic span {
  left: 34px;
  top: 8px;
  width: 92px;
  height: 138px;
  border-radius: 22px;
}

.diagnostic span::before,
.mini-tool::before {
  position: absolute;
  inset: 22px 13px 18px;
  content: "";
  border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, #1ec3ff 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 10px, transparent 10px 20px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  background: var(--soft);
}

.factory-panel {
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(2, 8, 18, 0.98), rgba(13, 46, 70, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 255, 255, 0.08) 72px);
  box-shadow: var(--shadow);
}

.assembly-line {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 470px;
}

.assembly-line::before {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 24%;
  height: 18%;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 34px, rgba(255, 255, 255, 0.04) 34px 68px),
    linear-gradient(180deg, rgba(100, 215, 255, 0.2), rgba(255, 255, 255, 0.08));
  transform: skewY(-8deg);
}

.assembly-line span {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(230, 238, 246, 0.68);
  border-left: 0;
  border-bottom: 0;
  border-radius: 12px;
}

.assembly-line span:nth-child(1) { left: 10%; top: 18%; transform: rotate(-18deg); }
.assembly-line span:nth-child(2) { left: 38%; top: 11%; transform: rotate(12deg); }
.assembly-line span:nth-child(3) { left: 57%; top: 34%; transform: rotate(-26deg); }
.assembly-line span:nth-child(4) { left: 74%; top: 16%; transform: rotate(20deg); }

.section-copy {
  max-width: 690px;
}

.process-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.process-list div {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.process-list strong {
  color: var(--red);
  font-size: 1.2rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.toolbar button {
  min-height: 40px;
  padding: 0 16px;
  color: #465366;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.toolbar button.is-active {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

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

.product-card {
  position: relative;
  min-height: 398px;
  padding: 190px 22px 22px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card.is-hidden {
  display: none;
}

.mini-remote,
.mini-shell,
.mini-tool {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.mini-remote {
  width: 72px;
  height: 138px;
  border-radius: 28px;
}

.mini-remote::before,
.mini-shell::before {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 26px;
  bottom: 22px;
  content: "";
  border-radius: 18px;
  background: repeating-linear-gradient(180deg, #121923 0 25px, #293342 25px 28px);
}

.mini-remote.compact {
  width: 84px;
  height: 128px;
  border-radius: 18px 18px 34px 34px;
}

.mini-shell {
  width: 118px;
  height: 126px;
  border-radius: 28px;
  background: linear-gradient(145deg, #111820, #5b6674);
}

.mini-tool {
  width: 94px;
  height: 138px;
  border-radius: 24px;
}

.product-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 0;
}

.product-card dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-card dt {
  color: #7b8796;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.compatibility {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(2, 8, 18, 0.96), rgba(8, 33, 51, 0.92)),
    radial-gradient(circle at 87% 30%, rgba(100, 215, 255, 0.2), transparent 28%);
}

.compatibility .section-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.finder,
.quote-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 32px);
}

.finder {
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  color: #425066;
  font-size: 0.86rem;
  font-weight: 850;
}

.compatibility label {
  color: rgba(255, 255, 255, 0.86);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

textarea {
  resize: vertical;
}

.finder-result {
  grid-column: 2;
  padding: 20px;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.finder-result strong {
  color: var(--white);
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--soft);
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-list a {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
}

.resource-list strong {
  font-size: 1.05rem;
}

.resource-list span {
  color: #697488;
}

.about {
  background: var(--white);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.metrics div {
  padding: 28px 18px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metrics strong {
  display: block;
  color: var(--red);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 12px;
  color: #657184;
  font-weight: 750;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  background: linear-gradient(180deg, #f7f9fc, #ffffff);
}

.quote-form {
  box-shadow: var(--shadow);
}

.form-note {
  margin: 0;
  color: #657184;
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 32px clamp(18px, 4vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--night);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

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

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

  .finder button {
    grid-column: span 2;
  }

  .finder-result {
    grid-column: 1 / -1;
  }
}

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

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 12px;
  }

  .header-actions {
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .hero,
  .split-section,
  .compatibility,
  .support-band,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .remote-stage {
    width: min(360px, 76vw);
    margin-top: 30px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-panel {
    min-height: 340px;
  }

  .assembly-line {
    min-height: 340px;
  }

  .site-footer {
    text-align: center;
  }

  .footer-brand {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.18rem;
  }

  .brand small {
    font-size: 0.5rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions,
  .header-actions,
  .proof-strip div {
    align-items: stretch;
  }

  .primary-button,
  .ghost-button,
  .quote-button {
    width: 100%;
  }

  .proof-strip,
  .category-grid,
  .product-grid,
  .metrics,
  .finder {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 132px;
  }

  .finder button {
    grid-column: auto;
  }
}

/* Homepage visual refinement pass */
.site-header {
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand-mark {
  width: 58px;
  height: 58px;
}

.brand strong {
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
}

.main-nav {
  gap: clamp(30px, 4.8vw, 84px);
}

.quote-button {
  min-width: 176px;
  min-height: 64px;
  font-size: 1.04rem;
}

.hero {
  grid-template-columns: minmax(520px, 0.92fr) minmax(380px, 0.78fr);
  min-height: 760px;
  padding-top: 128px;
  padding-bottom: 26px;
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.98) 0%, rgba(2, 8, 18, 0.92) 33%, rgba(5, 21, 35, 0.66) 58%, rgba(8, 31, 49, 0.38) 100%),
    radial-gradient(circle at 67% 43%, rgba(150, 220, 255, 0.3), transparent 25%),
    linear-gradient(135deg, #020812 0%, #09263a 58%, #5c7f94 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(16deg, transparent 0 57%, rgba(255, 255, 255, 0.12) 57.2% 57.8%, transparent 58% 100%),
    linear-gradient(168deg, transparent 0 59%, rgba(255, 255, 255, 0.11) 59.1% 59.7%, transparent 60% 100%),
    repeating-linear-gradient(101deg, transparent 0 72px, rgba(130, 205, 240, 0.16) 73px 75px, transparent 76px 148px),
    linear-gradient(180deg, transparent 0 60%, rgba(2, 8, 18, 0.32) 82%, rgba(2, 8, 18, 0.72) 100%);
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  left: 24%;
  right: -8%;
  bottom: -15%;
  height: 43%;
  content: "";
  background:
    linear-gradient(100deg, transparent 0 17%, rgba(110, 180, 220, 0.38) 17.4% 18%, transparent 18.5% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 3px, transparent 3px 94px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 54px),
    linear-gradient(180deg, rgba(42, 78, 100, 0.28), rgba(8, 20, 33, 0.92));
  clip-path: polygon(4% 36%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.95;
  pointer-events: none;
}

.factory-grid {
  opacity: 0.48;
  background:
    radial-gradient(circle at 47% 40%, rgba(228, 240, 248, 0.2) 0 1.6%, transparent 1.9%),
    radial-gradient(circle at 78% 25%, rgba(228, 240, 248, 0.18) 0 1.2%, transparent 1.5%),
    repeating-linear-gradient(90deg, transparent 0 122px, rgba(255, 255, 255, 0.045) 123px 126px),
    repeating-linear-gradient(0deg, transparent 0 86px, rgba(255, 255, 255, 0.04) 87px 89px);
}

.factory-grid::before,
.factory-grid::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(222, 236, 246, 0.38);
  box-shadow: 0 0 34px rgba(120, 210, 255, 0.2);
}

.factory-grid::before {
  top: 16%;
  left: 50%;
  width: 360px;
  height: 18px;
  transform: rotate(25deg);
}

.factory-grid::after {
  top: 21%;
  right: 4%;
  width: 510px;
  height: 20px;
  transform: rotate(-13deg);
}

.robot-arm {
  border-color: rgba(225, 238, 247, 0.44);
  filter: blur(0.7px);
  opacity: 0.78;
}

.arm-left {
  left: 49%;
  top: 18%;
}

.arm-right {
  right: 3%;
  top: 14%;
}

.hero-content {
  align-self: center;
  padding-top: 28px;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(4rem, 5.05vw, 5.9rem);
  line-height: 1.14;
  font-weight: 850;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(1.08rem, 1.38vw, 1.42rem);
}

.hero-actions {
  margin-top: 32px;
}

.hero-actions .primary-button {
  min-width: 216px;
  min-height: 64px;
  font-size: 1.08rem;
}

.remote-stage {
  width: min(440px, 31vw);
  min-width: 330px;
  transform: translate(-8%, 2%);
}

.key-remote {
  width: 72%;
  height: 91%;
  border-radius: 34% 34% 29% 29% / 14% 14% 18% 18%;
  background:
    linear-gradient(96deg, #02040a 0 13%, #111923 15% 20%, #f2f5f8 25%, #66727d 29%, #111923 36%, #02040a 100%);
  box-shadow: 28px 28px 64px rgba(0, 0, 0, 0.5), inset -21px 0 20px rgba(255, 255, 255, 0.18), inset 12px 0 18px rgba(255, 255, 255, 0.1);
}

.key-remote::after {
  position: absolute;
  top: 4%;
  right: 8%;
  width: 9%;
  height: 36%;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.1));
  opacity: 0.78;
}

.remote-face {
  inset: 10% 18% 10% 20%;
  gap: 7px;
  padding: 12px;
  border-radius: 42px;
}

.remote-face button {
  min-height: 61px;
}

.remote-face button svg {
  width: 36px;
  height: 36px;
}

.proof-strip {
  max-width: 990px;
  margin-top: 40px;
  gap: 30px;
}

.proof-strip div {
  gap: 16px;
  font-size: 1rem;
}

.proof-strip svg {
  width: 46px;
  height: 46px;
}

.product-categories {
  padding-top: 28px;
}

.product-categories .section-heading {
  margin-bottom: 26px;
}

.product-categories .section-heading h2 {
  font-size: clamp(2rem, 2.7vw, 2.55rem);
}

.category-grid {
  gap: 28px;
}

.category-card {
  grid-template-columns: minmax(150px, 0.82fr) 1fr;
  min-height: 222px;
  padding: 20px 26px;
  border-color: #d6dbe3;
  box-shadow: 0 6px 18px rgba(7, 19, 35, 0.04);
}

.category-card h3 {
  font-size: 1.36rem;
}

.category-card p {
  margin-top: 0;
  font-size: 0.98rem;
}

.product-visual {
  min-height: 164px;
}

.product-visual::after {
  position: absolute;
  left: 12%;
  right: 11%;
  bottom: 6px;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 19, 35, 0.18), transparent);
}

.smart-keys span,
.shells span,
.diagnostic span {
  border-color: #eef1f5;
}

.smart-keys span::before,
.shells span::before {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 24px;
  bottom: 20px;
  content: "";
  border-radius: 18px;
  background: repeating-linear-gradient(180deg, #1f2936 0 26px, #edf2f7 27px 29px, #111820 29px 55px);
  opacity: 0.82;
}

.tools span:first-child {
  box-shadow: 10px 14px 22px rgba(4, 12, 22, 0.16);
}

.diagnostic span::after {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 28px;
  content: "";
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #293441 0 8px, #556272 8px 11px);
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 5.8vw, 4.9rem);
  }

  .remote-stage {
    transform: translate(0, 2%);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 42px;
  }

  .hero::after {
    left: -20%;
    right: -20%;
    bottom: 18%;
    height: 25%;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 10vw, 4.3rem);
  }

  .remote-stage {
    transform: none;
  }
}

@media (max-width: 620px) {
  .quote-button {
    min-width: 0;
    min-height: 52px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .category-card {
    padding: 22px;
  }
}
/* Multi-page website styles */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 148px clamp(18px, 6vw, 92px) 82px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.96), rgba(4, 18, 31, 0.86)),
    radial-gradient(circle at 80% 18%, rgba(100, 215, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #020812, #0d3149 68%, #536f82);
}

.page-hero::after {
  position: absolute;
  inset: auto -10% -36% 36%;
  height: 58%;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 82px),
    linear-gradient(180deg, rgba(100, 215, 255, 0.18), rgba(2, 8, 18, 0.72));
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%);
}

.page-hero > * {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.04rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 750;
}

.breadcrumb a:hover {
  color: var(--white);
}

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.filter-panel h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.filter-panel a {
  padding: 11px 0;
  color: #566174;
  border-top: 1px solid var(--line);
  font-weight: 750;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.detail-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 56%, rgba(100, 215, 255, 0.22), transparent 38%),
    linear-gradient(145deg, #06101c, #173b55);
  box-shadow: var(--shadow);
}

.detail-visual .key-remote {
  width: 220px;
  height: 430px;
}

.detail-info h2,
.about-story h2,
.solution-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.12;
}

.detail-info p,
.about-story p,
.solution-grid p {
  color: #657184;
  line-height: 1.65;
}

.spec-table {
  display: grid;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table strong {
  color: var(--ink);
}

.spec-table span {
  color: #657184;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-button.dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.standalone-tool {
  margin: 0;
}

.solution-grid,
.resource-hub,
.about-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.solution-grid article,
.resource-hub article {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.resource-hub article strong {
  font-size: 1.24rem;
}

.resource-hub article span {
  color: #657184;
  line-height: 1.55;
}

.resource-hub article a {
  color: var(--red);
  font-weight: 900;
}

.about-story {
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  align-items: center;
}

.metrics.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  background: var(--soft);
}

.certification-strip span {
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #4d596d;
  font-weight: 850;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: #4d596d;
  font-weight: 750;
}

@media (max-width: 1160px) {
  .catalog-grid,
  .solution-grid,
  .resource-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .listing-layout,
  .detail-layout,
  .about-story {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .page-hero {
    padding-top: 126px;
  }
}

@media (max-width: 620px) {
  .catalog-grid,
  .solution-grid,
  .resource-hub,
  .metrics.compact {
    grid-template-columns: 1fr;
  }

  .spec-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-visual {
    min-height: 420px;
  }

  .detail-visual .key-remote {
    width: 170px;
    height: 330px;
  }
}
/* Product asset integration */
.image-visual {
  display: grid;
  place-items: center;
}

.image-visual img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(10px 16px 14px rgba(7, 19, 35, 0.14));
}

.image-visual::after {
  bottom: 2px;
}

.product-card {
  padding-top: 214px;
}

.product-photo {
  position: absolute;
  top: 22px;
  left: 50%;
  width: min(78%, 190px);
  height: 170px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(12px 18px 18px rgba(7, 19, 35, 0.16));
}

.product-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card dl div {
  min-width: 0;
}

.detail-product-image {
  width: min(78%, 420px);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(28px 36px 28px rgba(2, 8, 18, 0.34));
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #4d596d;
  line-height: 1.55;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 620px) {
  .product-card {
    padding-top: 198px;
  }

  .product-photo {
    height: 152px;
  }
}
/* Launch polish and mobile QA refinements */
.main-nav a.is-active::after {
  right: 0;
}

.main-nav a.is-active {
  color: var(--white);
}

.product-card,
.category-card,
.resource-list a,
.solution-grid article,
.resource-hub article,
.metrics div {
  contain: layout paint;
}

.product-card h3,
.category-card h3,
.resource-hub article strong {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .site-header.is-open {
    align-items: start;
  }

  .site-header.is-open .main-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .site-header.is-open .quote-button {
    width: min(100%, 260px);
  }

  .page-hero h1 {
    font-size: clamp(2.55rem, 9vw, 4rem);
  }

  .catalog-grid .product-card,
  .product-grid .product-card {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow),
  .section-copy p,
  .contact-copy p {
    font-size: 1rem;
  }

  .proof-strip div {
    min-height: 58px;
  }

  .category-card {
    min-height: 0;
  }

  .image-visual img {
    max-width: 210px;
  }

  .product-card dl {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
    padding-bottom: 24px;
  }

  .product-photo {
    width: min(82%, 180px);
  }

  .contact-page .quote-form,
  .quote-form,
  .finder {
    padding: 18px;
  }
}
/* Mobile first-screen tightening after screenshot QA */
@media (max-width: 620px) {
  .hero {
    min-height: 880px;
    padding-top: 108px;
    padding-bottom: 42px;
    align-content: center;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.12;
    max-width: 350px;
  }

  .hero p:not(.eyebrow) {
    max-width: 315px;
    margin-top: 18px;
  }

  .hero-actions {
    max-width: 280px;
    margin-top: 24px;
  }

  .remote-stage {
    position: absolute;
    right: -70px;
    bottom: 120px;
    width: 205px;
    min-width: 0;
    margin: 0;
    opacity: 0.52;
    pointer-events: none;
  }

  .proof-strip {
    display: none;
  }

  .product-categories {
    padding-top: 36px;
  }

  .product-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 840px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .remote-stage {
    right: -64px;
    bottom: 128px;
    width: 190px;
  }
}
/* Remote-only new arrivals promotion */
.new-arrivals {
  padding-top: 38px;
  background: #ffffff;
}

.new-arrivals .section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px auto 0;
  color: #657184;
  line-height: 1.55;
}

.new-arrival-board {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.86fr);
  gap: 28px;
  align-items: stretch;
}

.arrival-feature,
.arrival-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 19, 35, 0.05);
}

.arrival-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 410px;
  padding: clamp(24px, 3.5vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 247, 250, 0.98), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 25% 68%, rgba(100, 215, 255, 0.15), transparent 34%);
}

.arrival-feature::after {
  position: absolute;
  left: -10%;
  right: 42%;
  bottom: -28px;
  height: 120px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 19, 35, 0.12), transparent);
}

.arrival-feature img {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  justify-self: center;
  filter: drop-shadow(20px 26px 22px rgba(7, 19, 35, 0.16));
}

.arrival-feature h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
}

.arrival-feature p:not(.eyebrow) {
  color: #5d687c;
  line-height: 1.62;
}

.arrival-feature dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 26px;
}

.arrival-feature dt {
  color: #7b8796;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arrival-feature dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.arrival-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 8px 12px;
  color: var(--white);
  background: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arrival-list {
  display: grid;
  gap: 18px;
}

.arrival-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 124px;
  padding: 18px 22px;
}

.arrival-list img {
  width: 140px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(10px 16px 14px rgba(7, 19, 35, 0.12));
}

.arrival-list strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
}

.arrival-list span {
  display: block;
  margin-top: 7px;
  color: #657184;
  line-height: 1.45;
}

.arrival-list a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.arrival-list a::after {
  content: " ->";
}

@media (max-width: 1160px) {
  .new-arrival-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .arrival-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .arrival-feature dl {
    grid-template-columns: 1fr;
  }

  .arrival-list article {
    grid-template-columns: 118px 1fr;
    padding: 16px;
  }

  .arrival-list img {
    width: 110px;
  }
}

@media (max-width: 460px) {
  .arrival-list article {
    grid-template-columns: 1fr;
  }

  .arrival-list img {
    justify-self: center;
    width: 150px;
  }
}
/* Compact mobile new-arrival cards */
@media (max-width: 620px) {
  .new-arrivals .section-heading {
    margin-bottom: 22px;
  }

  .new-arrivals .section-heading h2 {
    font-size: 2rem;
  }

  .arrival-feature {
    gap: 12px;
    padding: 18px;
  }

  .arrival-feature img {
    width: min(76%, 210px);
  }

  .arrival-feature h3 {
    font-size: 1.75rem;
  }

  .arrival-feature p:not(.eyebrow) {
    margin: 10px 0 0;
  }

  .arrival-feature dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 18px;
  }

  .arrival-feature .primary-button {
    min-height: 48px;
  }

  .arrival-list {
    gap: 12px;
  }

  .arrival-list article {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    min-height: 118px;
    padding: 14px;
  }

  .arrival-list img {
    width: 92px;
    height: 88px;
  }

  .arrival-list strong {
    font-size: 1rem;
  }

  .arrival-list span {
    margin-top: 5px;
    font-size: 0.92rem;
  }
}

@media (max-width: 460px) {
  .arrival-list article {
    grid-template-columns: 96px 1fr;
  }

  .arrival-list img {
    justify-self: center;
    width: 92px;
  }
}
/* Product admin */
.admin-body {
  min-height: 100vh;
  background: #f4f6f9;
}

.admin-shell {
  padding: 22px;
}

.admin-topbar,
.admin-layout,
.admin-editor,
.admin-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  color: var(--ink);
}

.admin-topbar .brand-mark,
.admin-topbar .brand small {
  color: var(--ink);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-actions.lower {
  padding-top: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
}

.admin-sidebar {
  border-width: 0 1px 0 0;
  border-radius: 0;
  padding: 22px;
  background: #fbfcfe;
}

.admin-panel-title h1,
.admin-panel-title h2 {
  margin: 0;
  line-height: 1.12;
}

.admin-panel-title p {
  color: #657184;
  line-height: 1.55;
}

.admin-product-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-product-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.admin-product-item.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(239, 29, 45, 0.12);
}

.admin-product-item span,
.admin-product-item small {
  color: #657184;
}

.admin-editor {
  border: 0;
  padding: 26px;
}

.admin-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.admin-checks,
.admin-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.admin-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.admin-checks input {
  width: auto;
  min-height: 0;
}

.admin-upload label {
  min-width: min(100%, 360px);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  color: var(--white);
  border: 0;
  background: #7f1d1d;
  font-weight: 850;
  cursor: pointer;
}

.form-note.is-error {
  color: #b91c1c;
}

.admin-preview {
  margin-top: 24px;
  max-width: 360px;
}

.admin-preview-card {
  min-height: 0;
}

@media (max-width: 980px) {
  .admin-layout,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-width: 0 0 1px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
.detail-gallery {
  display: grid;
  gap: 14px;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
}

.detail-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 4px;
}

.quick-specs span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
}

.quick-specs strong {
  color: #7b8796;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.detail-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.detail-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.detail-panel.wide {
  grid-column: span 3;
}

.split-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.related-models .product-card {
  min-height: 0;
}

.admin-inquiries {
  margin-top: 18px;
  padding: 26px;
}

.admin-inquiries-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.inquiry-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.inquiry-item,
.inquiry-empty {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.inquiry-item > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
}

.inquiry-item strong,
.inquiry-item b {
  color: var(--ink);
}

.inquiry-item span,
.inquiry-item small,
.inquiry-empty {
  color: #657184;
}

.inquiry-item p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .detail-extra,
  .related-models,
  .quick-specs,
  .split-list {
    grid-template-columns: 1fr;
  }

  .detail-panel.wide {
    grid-column: auto;
  }

  .admin-inquiries-head {
    flex-direction: column;
  }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 20px;
  width: min(100%, 460px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-card .brand {
  color: var(--ink);
}

.login-card .brand small {
  color: #657184;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.12;
}

/* Brand/domain update: keep the long site name inside mobile headers. */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header .brand {
    min-width: 0;
    max-width: calc(100vw - 88px);
  }

  .site-header .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
  }

  .site-header .brand strong,
  .site-header .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .menu-toggle {
    flex: 0 0 auto;
    justify-self: end;
  }
}

@media (max-width: 420px) {
  .site-header .brand {
    gap: 8px;
  }

  .site-header .brand strong {
    font-size: 0.96rem;
  }

  .site-header .brand small {
    font-size: 0.48rem;
  }
}

/* Admin dashboard upgrade */
.admin-dashboard-shell {
  max-width: 1720px;
  margin: 0 auto;
}

.admin-console {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-menu,
.admin-content,
.admin-view,
.admin-mini-panel,
.admin-stat-card,
.brand-card,
.settings-card,
.homepage-product-row,
.admin-save-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.admin-menu {
  align-self: start;
  position: sticky;
  top: 18px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.admin-panel-title.compact h1 {
  font-size: 1.55rem;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  width: 100%;
  border: 1px solid transparent;
  background: #f7f9fc;
  color: var(--ink);
  min-height: 46px;
  padding: 0 14px;
  text-align: left;
  font: 800 0.96rem/1 var(--font);
  cursor: pointer;
}

.admin-nav button:hover,
.admin-nav button.is-active {
  border-color: rgba(239, 29, 45, 0.28);
  background: rgba(239, 29, 45, 0.08);
  color: var(--red);
}

.admin-save-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f8fafc;
}

.admin-save-card strong {
  color: var(--ink);
}

.admin-save-card span {
  color: #657184;
  line-height: 1.45;
  font-size: 0.9rem;
}

.admin-content {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.admin-view {
  display: none;
  border: 0;
  border-radius: 0;
  padding: 26px;
}

.admin-view.is-active {
  display: block;
}

.admin-view-head,
.admin-inquiries-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

.admin-stat-card {
  padding: 20px;
}

.admin-stat-card span,
.settings-card span,
.brand-card span,
.homepage-product-row span {
  color: #657184;
  font-size: 0.9rem;
}

.admin-stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.admin-mini-panel {
  padding: 20px;
}

.admin-mini-panel h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

.admin-compact-row {
  width: 100%;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
}

.admin-compact-row + .admin-compact-row {
  margin-top: 8px;
}

.admin-compact-row:hover {
  border-color: rgba(239, 29, 45, 0.35);
}

.admin-compact-row strong {
  color: var(--ink);
}

.admin-compact-row span,
.admin-empty-text {
  color: #657184;
  margin: 0;
}

.admin-product-manager {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.admin-product-manager .admin-sidebar {
  border-width: 0 1px 0 0;
}

.admin-inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-inline-form input {
  min-width: min(320px, 50vw);
}

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

.brand-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.brand-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.3rem;
}

.brand-metrics,
.brand-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-metrics span,
.brand-product-tags button {
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 8px 10px;
  color: #475569;
  font-weight: 800;
  font-size: 0.82rem;
}

.brand-product-tags button {
  cursor: pointer;
}

.brand-product-tags button:hover {
  border-color: rgba(239, 29, 45, 0.3);
  color: var(--red);
}

.brand-rename-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.homepage-manager {
  display: grid;
  gap: 12px;
}

.homepage-product-row {
  display: grid;
  grid-template-columns: 76px minmax(220px, 1fr) auto auto minmax(120px, 180px) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.homepage-product-row img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: #f8fafc;
}

.homepage-product-row strong {
  display: block;
  color: var(--ink);
}

.homepage-product-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.homepage-product-row input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

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

.settings-card {
  padding: 18px;
}

.settings-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.admin-global-status {
  margin: 18px 26px 26px;
}

@media (max-width: 1180px) {
  .admin-console,
  .admin-dashboard-grid,
  .brand-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    position: static;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .homepage-product-row {
    grid-template-columns: 70px minmax(0, 1fr) minmax(120px, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-shell {
    padding: 12px;
  }

  .admin-view {
    padding: 18px;
  }

  .admin-view-head,
  .admin-inquiries-head,
  .admin-inline-form,
  .brand-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-nav,
  .admin-stat-grid,
  .homepage-product-row {
    grid-template-columns: 1fr;
  }

  .homepage-product-row img {
    width: 100%;
    max-width: 120px;
  }

  .brand-rename-row {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp floating contact */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: #20c45a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(4, 120, 58, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #18ad4d;
  box-shadow: 0 22px 44px rgba(4, 120, 58, 0.34);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.whatsapp-icon svg {
  width: 38px;
  height: 38px;
}

.whatsapp-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.whatsapp-copy strong {
  font-size: 0.98rem;
  font-weight: 900;
  color: #fff;
}

.whatsapp-copy small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

@media (max-width: 720px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 58px;
    min-height: 58px;
    padding: 10px;
    justify-content: center;
  }

  .whatsapp-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* Admin login overflow fix */
.login-card {
  overflow: hidden;
}

.login-card .brand {
  min-width: 0;
  max-width: 100%;
}

.login-card .brand > span:last-child {
  min-width: 0;
  max-width: calc(100% - 70px);
  overflow: hidden;
}

.login-card .brand strong,
.login-card .brand small,
.login-card .form-note {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.login-card .brand strong,
.login-card .brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 14px;
    align-items: start;
  }

  .login-card {
    padding: 22px;
    gap: 16px;
  }

  .login-card .brand {
    gap: 9px;
  }

  .login-card .brand-mark {
    width: 42px;
    height: 42px;
  }

  .login-card .brand > span:last-child {
    max-width: calc(100% - 52px);
  }

  .login-card .brand strong {
    font-size: 1.05rem;
  }

  .login-card h1 {
    font-size: 1.55rem;
  }
}
