:root {
  --orange: #ff8a00;
  --orange-ink: #1a1208;
  --ink: #0b0f14;
  --muted: #5d6570;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --line: #e4e7ec;
  --wa: #128c7e;
  --wrap: 78rem;
  --font: "Segoe UI", system-ui, sans-serif;
  --code: Consolas, "Courier New", monospace;
  --header: 7.4rem;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-padding-top: var(--header); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { margin: 0 0 0.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }

h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
}

.topbar {
  background: var(--ink);
  color: #f5f6f8;
  font-size: 0.84rem;
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.2rem;
}

.topbar a { color: #f5f6f8; text-decoration: none; unicode-bidi: isolate; }

.topbar a:hover { color: var(--orange); }

.languages { display: flex; gap: 0.35rem; margin-inline-start: auto; }

.languages a {
  color: #c5ccd4;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.languages a[aria-current="true"] { color: var(--orange); }

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 4.6rem;
}

.wordmark { display: inline-flex; flex: 0 0 auto; text-decoration: none; }

.wordmark img { height: 48px; width: auto; display: block; }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.menu-button {
  display: none;
  margin-inline-start: auto;
  min-height: 2.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle:focus-visible + .menu-button { outline: 2px solid var(--orange); outline-offset: 3px; }

.main-nav { display: flex; gap: 1.15rem; font-weight: 600; }

.main-nav a { text-decoration: none; }

.main-nav a:hover { color: #b85f00; }

.header-search { margin-inline-start: auto; }

.header-search input {
  width: 14rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: 0.92rem var(--font);
}

.wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.wa:hover { background: #0e7569; }

.wa-compact { min-height: 2.5rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 2.4rem;
  background: var(--ink) url("../img/circuit.svg") center / 320px repeat;
  color: #f7f8fa;
  text-align: center;
}

.hero-lights {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.glow-line {
  fill: none;
  stroke: #ff8a00;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 36 280;
  opacity: 0.42;
}

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8a00;
  box-shadow: 0 0 12px 4px rgba(255, 138, 0, 0.38);
  opacity: 0.8;
}

.hero-copy { position: relative; z-index: 1; max-width: 52rem; }

.hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.hero-note {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: #d5dbe3;
  font-size: 1.08rem;
}

.hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 44rem;
  margin: 1.8rem auto 0;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.3rem;
  padding: 0.4rem 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: 1.05rem var(--code);
}

.hero-search input::placeholder { color: #b7c0cb; }

.hero-search button,
.brand-search button {
  flex: 0 0 auto;
  min-height: 3.3rem;
  padding: 0.5rem 1.3rem;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: var(--orange-ink);
  font: 700 1rem var(--font);
  cursor: pointer;
}

.hero-search button:hover,
.brand-search button:hover { background: #ff9d2e; }

.brand-rail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.6rem;
}

.brand-rail-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.brand-rail-track {
  display: flex;
  width: max-content;
  direction: ltr;
}

.logo-rail {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0 0.75rem 0 0;
  padding: 0.35rem 0;
  list-style: none;
}

.logo-rail li { display: flex; }

.logo-rail a,
.logo-rail span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  height: 4.2rem;
  padding: 0.45rem 1.15rem;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo-rail a:hover { color: #b85f00; }

.logo-rail img {
  display: block;
  width: 8.4rem;
  height: 2.2rem;
  object-fit: contain;
}

.marquee-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.marquee-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  margin-top: 0.9rem;
  padding: 0.2rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.marquee-control:hover { border-color: var(--orange); color: var(--orange); }

.marquee-switch { position: relative; }

.when-paused { display: none; }

.marquee-toggle:checked + .marquee-control .when-running { display: none; }

.marquee-toggle:checked + .marquee-control .when-paused { display: inline; }

.marquee-toggle:focus-visible + .marquee-control {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.band { padding: 3.5rem 0; }

.band-white { background: var(--surface); }

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.section-head p { margin: 0; max-width: 28rem; color: var(--muted); }

.brand-board,
.card-grid,
.step-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.brand-board li,
.step-grid li { display: block; }

.card-grid li { display: flex; min-width: 0; }

.brand-board a {
  display: grid;
  gap: 0.8rem;
  height: 100%;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.brand-board a:hover { border-color: #f0c48a; }

.brand-mark,
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--paper);
  font-weight: 700;
  text-align: center;
}

.brand-mark img,
.brand-logo img {
  display: block;
  width: 100%;
  height: 4.2rem;
  object-fit: contain;
}

.brand-name { font-size: 1.05rem; font-weight: 700; }

.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.step-grid li {
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.band-white .step-grid li { background: var(--paper); }

.step-no {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.step-grid p,
.lede,
.supply-note,
.about p { color: var(--muted); }

.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }

.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  container-type: inline-size;
}

.card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  text-decoration: none;
}

.media-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0.4rem;
}

.card-media .product-photo,
.detail-media .product-photo {
  width: 100%;
  object-fit: contain;
}

.card-media .product-photo { height: 100%; }

.detail-media .product-photo { height: auto; max-height: 28rem; }

.media-slot.is-logo { padding: 0.9rem 0.75rem 0.75rem; }

.media-slot.is-logo img {
  width: auto;
  max-width: 72%;
  height: auto;
  max-height: 58%;
  object-fit: contain;
}

.logo-note { display: none; }

.media-slot.is-logo .card-badge { display: none; }

.media-slot.is-logo .logo-note {
  display: block;
  max-width: 14rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.card-badge,
.product-figure figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem 1rem 1rem;
}

.card-brand { margin: 0; color: var(--muted); font-size: 0.86rem; font-weight: 700; }

.card-brand a { text-decoration: none; }

.card-code {
  font-family: var(--code);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
  white-space: pre-wrap;
}

.card-body h3 { margin: 0; }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
  margin-top: auto;
  padding-top: 0.75rem;
}

.card-actions a {
  display: inline-flex;
  flex: 1 1 7.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  min-height: 2.55rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.card-detail {
  border: 1.5px solid var(--orange);
  background: #fff;
  color: var(--ink);
}

.card-detail:hover { background: #fff6eb; }

.card-wa {
  border: 1.5px solid var(--wa);
  background: var(--wa);
  color: #fff;
}

.card-wa:hover { background: #0e7569; color: #fff; }

.wa-icon { flex: 0 0 auto; }

@container (max-width: 17rem) {
  .card-actions { flex-direction: column; }

  .card-actions a { flex-basis: auto; width: 100%; }
}

.about { padding: 3rem 0; background: var(--surface); }

.about-address { color: var(--ink); }

.ask {
  padding: 3.2rem 0;
  background: var(--ink);
  color: #f5f6f8;
}

.ask-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ask p { margin: 0; color: #d5dbe3; }

.ask-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn-light,
.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 700 0.95rem var(--font);
  text-decoration: none;
  cursor: pointer;
}

.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }

.btn-quiet:hover,
.btn-light:hover { border-color: var(--orange); }

.site-footer {
  padding: 3rem 0;
  background: #070b10;
  color: #f4f6f8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 1.5rem;
}

.footer-logo img { height: 42px; }

.footer-lead,
.footer-address { color: #f4f6f8; }

.footer-label {
  margin: 0 0 0.6rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a { color: #fff; text-decoration: none; }

.site-footer a:hover { color: var(--orange); }

.site-footer p { margin: 0 0 0.4rem; }

.brand-top { background: var(--paper); }

.brand-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.brand-logo { margin-bottom: 0.8rem; }

.brand-search label { display: block; margin-bottom: 0.4rem; font-weight: 700; }

.brand-search-row { display: flex; gap: 0.45rem; }

.brand-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: 1rem var(--code);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.detail-media .media-slot {
  min-height: 22rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-media .media-slot.is-logo img {
  max-width: min(16rem, 68%);
  max-height: 7.5rem;
}

.detail-panel h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  font-size: clamp(1.4rem, 2vw, 2rem);
  overflow-wrap: anywhere;
}

.detail-panel h1 a { text-decoration: none; }

.code-tools { margin: 0 0 1rem; }

.detail-actions { display: grid; gap: 0.55rem; }

.facts { margin-top: 1.2rem; }

.facts table { width: 100%; border-collapse: collapse; }

.facts th,
.facts td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
  text-align: start;
  vertical-align: top;
}

.facts th { width: 40%; color: var(--muted); font-weight: 600; }

.text-link { font-weight: 700; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs a { text-decoration: none; }

.code {
  font-family: var(--code);
  font-weight: 700;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
  white-space: pre-wrap;
}

.product-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }

.product-list li { display: block; }

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.row-brand { color: var(--muted); font-weight: 600; }

.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1.4rem; }

.pager a,
.pager span {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.pager span[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .brand-board a,
  .step-grid li {
    animation: rise 0.45s ease both;
  }

  .glow-line { animation: glow-travel 18s linear infinite; }

  .glow-line:nth-child(2) { animation-duration: 24s; animation-delay: -6s; }

  .glow-line:nth-child(3) { animation-duration: 21s; animation-delay: -11s; }

  .glow-line:nth-child(4) { animation-duration: 27s; animation-delay: -4s; }

  .spark-1 { animation: spark-1 22s linear infinite; }

  .spark-2 { animation: spark-2 26s linear infinite; }

  .spark-3 { animation: spark-3 19s linear infinite; }

  .spark-4 { animation: spark-4 24s linear infinite; }

  .brand-rail-track { animation: brand-marquee 42s linear infinite; }

  .brand-rail:hover .brand-rail-track,
  .brand-rail:focus-within .brand-rail-track,
  .brand-rail:has(.marquee-toggle:checked) .brand-rail-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spark { display: none; }

  .glow-line { opacity: 0.16; stroke-dasharray: none; }

  .brand-rail-viewport { overflow-x: auto; }

  .logo-rail[aria-hidden="true"] { display: none; }

  .marquee-toggle,
  .marquee-control { display: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes glow-travel {
  to { stroke-dashoffset: -316; }
}

@keyframes brand-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spark-1 {
  0% { top: 9%; left: 1%; }
  42% { top: 9%; left: 24%; }
  100% { top: 24%; left: 24%; }
}

@keyframes spark-2 {
  0% { top: 6%; left: 70%; }
  55% { top: 6%; left: 94%; }
  100% { top: 22%; left: 94%; }
}

@keyframes spark-3 {
  0% { top: 20%; left: 0%; }
  100% { top: 20%; left: 18%; }
}

@keyframes spark-4 {
  0% { top: 14%; left: 99%; }
  100% { top: 32%; left: 76%; }
}

@media (max-width: 980px) {
  .menu-button { display: inline-flex; }

  .header-search { display: none; }

  .main-nav {
    display: none;
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 1.25rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .main-nav { display: flex; }

  .card-grid,
  .brand-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .brand-rail-track { animation: none; }

  .brand-rail-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent);
  }

  .logo-rail[aria-hidden="true"] { display: none; }

  .marquee-toggle,
  .marquee-control { display: none; }

  .brand-head,
  .detail-grid,
  .footer-grid,
  .ask-inner,
  .section-head { grid-template-columns: 1fr; display: grid; }

  .ask-inner,
  .section-head { display: block; }
}

@media (max-width: 640px) {
  .hero { padding: 2.4rem 0 2rem; }

  .hero-search,
  .brand-search-row { flex-direction: column; }

  .card-grid,
  .brand-board,
  .step-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .topbar-row { flex-wrap: wrap; padding: 0.35rem 0; }

  .languages { margin-inline-start: 0; }
}
