:root {
  --bg: #07111f;
  --bg-soft: #0e2035;
  --panel: #ffffff;
  --text: #122033;
  --muted: #5b6b7c;
  --line: #d9e3ec;
  --accent: #21b3ff;
  --accent-2: #32e4a6;
  --danger: #e94d4d;
  --shadow: 0 20px 60px rgba(7,17,31,.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f5f8fb;
  line-height: 1.6;
}

a { color: #087bb9; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(7,17,31,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; max-width: min(100%, 360px); object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(33,179,255,.16)); }

.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  color: #c8d8e6;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 4px;
}
.site-nav a.active, .site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { border-bottom: 2px solid var(--accent-2); }

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

.hero, .page-hero {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 80px);
  background:
    radial-gradient(circle at 85% 18%, rgba(33,179,255,.28), transparent 34%),
    radial-gradient(circle at 14% 75%, rgba(50,228,166,.18), transparent 38%),
    linear-gradient(135deg, #07111f 0%, #102945 100%);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.hero h1, .page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-hero {
  text-align: center;
}
.page-hero p {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.lead, .page-hero p {
  font-size: clamp(18px, 2vw, 22px);
  color: #d4e4f2;
}

.eyebrow, .tag {
  margin: 0 0 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 13px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06101c; }
.button.secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }

.hero-card, .feature-box, .contact-card, .quote-form {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.hero-card {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.hero-card p, .hero-card li { color: #d9e8f5; }

.section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 80px);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}
.section-heading h2, .split h2, .cta h2, .project-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

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

.card, .product-card, .process-grid article, .project-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 38px rgba(7,17,31,.06);
}

.card { padding: 28px; }
.card h3 { margin-top: 0; font-size: 24px; }

.product-list { display: grid; gap: 24px; }
.product-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
  gap: 32px;
  align-items: start;
  padding: clamp(24px, 4vw, 38px);
}
.product-card h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 40px); }
.product-card.coming-soon { border-color: rgba(33,179,255,.45); background: linear-gradient(135deg, #fff 0%, #eef9ff 100%); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: 34px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
  font-weight: 900;
}

.cta {
  margin: 0 clamp(18px, 5vw, 80px) clamp(48px, 7vw, 92px);
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, #0b1a2d, #123a5d);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
}
.cta p { color: #d4e4f2; max-width: 760px; margin: 0 auto 24px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.process-grid article { padding: 26px; }
.process-grid span { color: var(--accent); font-weight: 900; font-size: 28px; }
.process-grid h3 { margin: 10px 0; }

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 30px;
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 28px;
}
.project-feature.reverse { grid-template-columns: minmax(320px, 1.2fr) minmax(0, .8fr); }
.project-feature.reverse .project-copy { order: 2; }
.project-copy { align-self: start; position: sticky; top: 96px; }
.project-gallery {
  display: grid;
  gap: 16px;
}
.tall-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.small-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-gallery figure {
  margin: 0;
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.project-gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #eef4f9;
}
.project-gallery figure:nth-child(4) img { aspect-ratio: 9 / 16; }
.project-gallery figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}
.quote-form { display: grid; gap: 16px; }
.quote-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
.hp-field { display: none !important; }
.form-status { margin: 0; font-weight: 800; }

.note {
  background: #eef8ff;
  border-left: 4px solid var(--accent);
  color: #2d5068;
  padding: 12px 14px;
  border-radius: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(18px, 5vw, 80px);
  background: #07111f;
  color: #d6e4f1;
}
.site-footer p { margin: 6px 0 0; color: #9eb4c8; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #fff; }

@media (max-width: 980px) {
  .hero, .split, .product-card, .project-feature, .project-feature.reverse, .contact-grid {
    grid-template-columns: 1fr;
  }
  .card-grid.three, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-feature.reverse .project-copy { order: 0; }
  .project-copy { position: static; }
  .tall-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; margin-top: 8px; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }
  .site-header.nav-open { flex-wrap: wrap; }
  .site-header.nav-open .site-nav { display: flex; }
  .brand img { width: 150px; height: 48px; }
  .card-grid.three, .process-grid, .tall-gallery, .small-gallery { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .hero h1, .page-hero h1 { font-size: 38px; }
}
@media (max-width: 700px) {
  .brand img { height: 42px; width: auto; max-width: min(100%, 250px); }
}


.hardware-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 5vw, 80px);
  background: linear-gradient(135deg, #06111c 0%, #0d2238 100%);
  color: #fff;
}
.hardware-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/showcase/custom-pcb-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .15;
  transform: scale(1.05);
}
.hardware-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(33,179,255,.24), transparent 28%),
    radial-gradient(circle at 85% 78%, rgba(50,228,166,.18), transparent 30%),
    linear-gradient(180deg, rgba(7,17,31,.55), rgba(7,17,31,.76));
}
.hardware-showcase > * {
  position: relative;
  z-index: 1;
}
.hardware-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: clamp(22px, 4vw, 50px);
  align-items: start;
  margin-bottom: 32px;
}
.hardware-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}
.hardware-intro p,
.hardware-highlights p,
.hardware-note {
  color: #d4e4f2;
}
.hardware-highlights {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.hardware-highlights h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}
.hardware-showcase .check-list li,
.hardware-showcase .check-list li::before {
  color: #e7f4ff;
}
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.hardware-grid figure {
  margin: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
}
.hardware-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.hardware-grid figcaption {
  padding: 14px 16px 18px;
  color: #f0f8ff;
  font-weight: 700;
  font-size: 14px;
}
.hardware-gallery-section {
  padding-top: 0;
}
.hardware-gallery-section .section-title {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 26px;
}
.hardware-gallery-light {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hardware-gallery-light figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hardware-gallery-light img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.hardware-gallery-light figcaption {
  padding: 14px 16px 18px;
  font-weight: 700;
  color: var(--text);
}
@media (max-width: 980px) {
  .hardware-intro,
  .hardware-grid,
  .hardware-gallery-light {
    grid-template-columns: 1fr;
  }
}


/* V9.1 refinement: smaller PCB showcase images and softer background */
.hardware-showcase {
  padding: clamp(56px, 7vw, 92px) clamp(18px, 5vw, 80px);
}
.hardware-showcase::before {
  opacity: .08;
}
.hardware-grid,
.hardware-gallery-light {
  grid-template-columns: repeat(auto-fit, minmax(210px, 270px));
  justify-content: center;
  gap: 16px;
}
.hardware-grid figure,
.hardware-gallery-light figure {
  max-width: 270px;
  margin: 0 auto;
}
.hardware-grid img,
.hardware-gallery-light img {
  max-height: 190px;
}
.hardware-grid figcaption,
.hardware-gallery-light figcaption {
  font-size: 13px;
  padding: 12px 14px 14px;
}
@media (max-width: 980px) {
  .hardware-grid,
  .hardware-gallery-light {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .hardware-grid figure,
  .hardware-gallery-light figure {
    max-width: 240px;
  }
}


/* V9.2 refinement: use a single subtle PCB image as background section */
.hardware-showcase {
  min-height: 0;
}
.hardware-showcase::before {
  background-image: url('../images/showcase/custom-pcb-installed-box.jpg');
  background-position: center center;
  opacity: .055;
}
.hardware-showcase::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(33,179,255,.12), transparent 30%),
    linear-gradient(180deg, rgba(7,17,31,.82), rgba(7,17,31,.88));
}
.hardware-intro {
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
  margin-bottom: 18px;
}
.hardware-intro h2 {
  max-width: 12ch;
}
.hardware-note {
  max-width: 58ch;
}
.hardware-mini-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hardware-mini-points span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #eef8ff;
  font-size: 13px;
  font-weight: 700;
}
/* Hide the old large foreground image grid on the homepage */
.hardware-showcase .hardware-grid {
  display: none !important;
}
.hardware-gallery-light {
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
}
@media (max-width: 980px) {
  .hardware-intro {
    grid-template-columns: 1fr;
  }
}

/* V9.3 refinement: make the single PCB background visible but still controlled */
.hardware-showcase::before {
  opacity: .24;
  background-image: url('../images/showcase/custom-pcb-installed-box.jpg');
  background-size: cover;
  background-position: center right;
  filter: saturate(1.05) contrast(1.05);
}
.hardware-showcase::after {
  background:
    radial-gradient(circle at 82% 52%, rgba(33,179,255,.10), transparent 36%),
    linear-gradient(90deg, rgba(7,17,31,.94) 0%, rgba(7,17,31,.82) 42%, rgba(7,17,31,.58) 100%);
}
.hardware-intro {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.hardware-highlights {
  background: rgba(7,17,31,.42);
  border-color: rgba(255,255,255,.18);
}
.hardware-mini-points {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 760px) {
  .hardware-showcase::before {
    opacity: .16;
    background-position: center;
  }
  .hardware-showcase::after {
    background: linear-gradient(180deg, rgba(7,17,31,.90), rgba(7,17,31,.76));
  }
}

/* V9.4: real PCB background image layer, visible and reliable */
.hardware-showcase {
  isolation: isolate;
}
.hardware-showcase::before {
  opacity: 0 !important;
}
.hardware-bg-real {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hardware-bg-real img {
  position: absolute;
  top: 0;
  right: 0;
  width: min(62vw, 860px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .42;
  filter: saturate(1.08) contrast(1.05);
}
.hardware-showcase::after {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.90) 44%, rgba(7,17,31,.54) 100%),
    radial-gradient(circle at 80% 50%, rgba(33,179,255,.12), transparent 38%) !important;
}
.hardware-showcase > :not(.hardware-bg-real) {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .hardware-bg-real img {
    width: 100%;
    opacity: .22;
  }
  .hardware-showcase::after {
    background: linear-gradient(180deg, rgba(7,17,31,.92), rgba(7,17,31,.78)) !important;
  }
}

/* V9.5: stronger visible PCB background treatment */
.hardware-showcase {
  background: #07111f !important;
}
.hardware-bg-real {
  opacity: 1 !important;
}
.hardware-bg-real img {
  right: 0 !important;
  top: 0 !important;
  width: min(70vw, 980px) !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: .82 !important;
  filter: saturate(1.12) contrast(1.08) brightness(.92) !important;
}
.hardware-showcase::after {
  background:
    linear-gradient(90deg,
      rgba(7,17,31,.98) 0%,
      rgba(7,17,31,.92) 34%,
      rgba(7,17,31,.62) 56%,
      rgba(7,17,31,.18) 100%
    ) !important;
}
.hardware-intro {
  max-width: 1180px;
}
.hardware-intro > div:first-child {
  background: rgba(7,17,31,.42);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 30px);
  backdrop-filter: blur(4px);
}
.hardware-highlights {
  background: rgba(7,17,31,.50) !important;
  border-color: rgba(255,255,255,.20) !important;
}
@media (max-width: 760px) {
  .hardware-bg-real img {
    width: 100% !important;
    opacity: .36 !important;
  }
  .hardware-showcase::after {
    background: linear-gradient(180deg, rgba(7,17,31,.86), rgba(7,17,31,.72)) !important;
  }
}
