:root {
  --red-dark: #7a1014;
  --red: #a3161b;
  --red-light: #c41e24;
  --orange: #f0821f;
  --navy: #17233b;
  --ink: #1b1f27;
  --muted: #5a6270;
  --line: #e4e1d9;
  --paper: #fdfcf9;
  --green: #3fa348;
  --green-dark: #2c7a33;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(180deg, var(--red-light), var(--red-dark));
  padding: 14px clamp(16px, 4vw, 40px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo img {
  height: 34px;
  width: auto;
}

.verify-form {
  display: flex;
  flex: 1 1 320px;
  max-width: 460px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.verify-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.verify-form button {
  border: none;
  cursor: pointer;
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--orange);
  transition: background 0.15s ease;
}

.verify-form button:hover { background: #d8720f; }

/* ---------- Verify result ---------- */

.verify-result {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.result-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  color: #fff;
}

.result-card.matched .result-head { background: linear-gradient(180deg, var(--green), var(--green-dark)); }
.result-card.not-found .result-head { background: linear-gradient(180deg, #d9463c, var(--danger)); }

.result-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon svg { width: 22px; height: 22px; fill: #fff; }

.result-head h2 { margin: 0; font-size: 1.15rem; }
.result-head p { margin: 2px 0 0; font-size: 0.9rem; opacity: 0.92; }

.result-body { padding: 20px 24px 24px; }

.result-serial {
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  background: #f4f2ec;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  word-break: break-all;
}

.result-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 24px;
  margin: 0;
}

.result-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.result-specs dt { color: var(--muted); font-weight: 600; }
.result-specs dd { margin: 0; font-weight: 700; }

.result-note {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.close-result {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.85rem;
  cursor: pointer;
}
.close-result:hover { background: #f4f2ec; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #05070d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(1, 3, 8, 0.92) 0%,
    rgba(1, 3, 8, 0.86) 42%,
    rgba(1, 3, 8, 0.55) 62%,
    rgba(1, 3, 8, 0) 85%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 60px);
  width: 100%;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero-content .tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 480px;
  line-height: 1.6;
  font-size: 1rem;
  color: #f1f3f8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.hero-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  border: none;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease;
}
.hero-download:hover { background: #d8720f; }

.hero-download::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v10.6l3.3-3.3 1.4 1.4L12 17l-4.7-5.3 1.4-1.4 3.3 3.3V3zM5 19h14v2H5z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v10.6l3.3-3.3 1.4 1.4L12 17l-4.7-5.3 1.4-1.4 3.3 3.3V3zM5 19h14v2H5z'/></svg>") no-repeat center / contain;
}

/* ---------- Product section ---------- */

.product { padding: clamp(40px, 6vw, 70px) clamp(16px, 4vw, 40px) 60px; }

.product-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18));
}

.product-image .product-verified-badge {
  position: absolute;
  /* the panel photo is a perspective cutout: its visible top-right corner sits
     ~8.7% down and ~3% in from the image's bounding box, not at the box corner */
  top: calc(8.7% - 42px);
  right: calc(3% - 46px);
  width: clamp(92px, 24%, 124px);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.product-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}

.product-title p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-title strong { color: var(--ink); }

.experience-badge { width: 150px; }

.spec-list {
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}

.spec-list > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
  top: -4px;
  border-bottom: 1px dotted var(--line);
  flex: 1 1 auto;
  overflow: hidden;
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.warranty-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.warranty-badges img {
  height: 74px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff;
  padding: 18px clamp(16px, 4vw, 40px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.footer-item svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .product-inner { grid-template-columns: 1fr; }
  .product-image { max-width: 260px; margin: 0 auto; }
  .hero { min-height: 60vh; }
  .header-inner { justify-content: center; }
}
