:root {
  --ink: #111827;
  --muted: #5c6675;
  --line: #dce4ec;
  --blue: #005fcc;
  --blue-dark: #003d86;
  --green: #168f75;
  --band: #f4f8fb;
  --panel: #ffffff;
  --shadow: 0 22px 55px rgba(13, 36, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.brand strong,
.brand small {
  display: block;
}

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

.primary-nav {
  display: flex;
  gap: 26px;
  font-size: 16px;
  font-weight: 800;
}

.primary-nav a {
  padding: 10px 0;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 34px;
  padding: 74px 5vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(22, 143, 117, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(0, 95, 204, 0.1), transparent 45%),
    #f8fbff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(90deg, rgba(0, 95, 204, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(0, 95, 204, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
}

.hero-copy,
.pcb-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
}

.hero p {
  max-width: 680px;
  color: #394555;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
}

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

.button.secondary {
  color: var(--blue-dark);
  border: 1px solid #b8d2ee;
  background: #fff;
}

.pcb-visual {
  display: grid;
  min-height: 420px;
  place-items: center;
}

.board {
  position: relative;
  width: min(92vw, 520px);
  aspect-ratio: 1.3;
  overflow: hidden;
  border: 14px solid #0b6d5e;
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 3px, transparent 4px) 0 0 / 46px 46px,
    linear-gradient(135deg, #0d9b78, #075f72);
  box-shadow: 0 28px 65px rgba(0, 58, 125, 0.23);
}

.board::before,
.board::after,
.trace {
  content: "";
  position: absolute;
  background: #9ce9df;
}

.board::before {
  width: 72%;
  height: 7px;
  left: 14%;
  top: 24%;
}

.board::after {
  width: 7px;
  height: 54%;
  left: 68%;
  top: 24%;
}

.chip {
  position: absolute;
  border: 3px solid #c4fff5;
  border-radius: 7px;
  background: #163240;
  box-shadow: inset 0 0 0 8px #233f4e;
}

.chip-main {
  width: 150px;
  height: 120px;
  left: 16%;
  top: 34%;
}

.chip-small {
  width: 100px;
  height: 78px;
  right: 13%;
  top: 18%;
}

.trace-a {
  width: 7px;
  height: 42%;
  left: 30%;
  top: 12%;
}

.trace-b {
  width: 38%;
  height: 7px;
  right: 12%;
  bottom: 22%;
}

.trace-c {
  width: 7px;
  height: 32%;
  right: 28%;
  bottom: 22%;
}

.pad {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 4px solid #c4fff5;
  border-radius: 50%;
  background: #0d9b78;
}

.pad-a { left: 28%; top: 10%; }
.pad-b { right: 10%; top: 22%; }
.pad-c { left: 58%; bottom: 18%; }
.pad-d { right: 28%; bottom: 48%; }

.section {
  padding: 76px 5vw;
}

.band {
  background: var(--band);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.14;
}

.section-head p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.page-hero {
  padding: 92px 5vw 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 20%, rgba(22, 143, 117, 0.12), transparent 26%),
    linear-gradient(120deg, rgba(0, 95, 204, 0.08), transparent 45%),
    #f8fbff;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.16;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.summary-section {
  padding-top: 44px;
}

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

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

.summary-grid article,
.text-panel {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(13, 36, 66, 0.06);
}

.summary-grid span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.summary-grid h2,
.text-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.summary-grid p,
.text-panel p {
  margin: 0;
  color: var(--muted);
}

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

.intro-grid article,
.product-card,
.contact-box > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(13, 36, 66, 0.06);
}

.intro-grid article {
  min-height: 170px;
  padding: 26px;
}

.intro-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.intro-grid p,
.product-card p {
  margin: 0;
  color: var(--muted);
}

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

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

.strength-list span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.strength-list p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.page-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.specialty-layout {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.specialty-layout > div {
  grid-column: span 2;
}

.specialty-layout > div:nth-child(4) {
  grid-column: 2 / span 2;
}

.specialty-layout > div:nth-child(5) {
  grid-column: 4 / span 2;
}

.page-list h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.page-list p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

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

.product-card {
  overflow: hidden;
}

.image-slot {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  color: #31506d;
  background:
    linear-gradient(135deg, rgba(0, 95, 204, 0.08), rgba(22, 143, 117, 0.08)),
    #eef6ff;
}

.image-slot span {
  position: absolute;
  display: grid;
  width: calc(100% - 36px);
  min-height: 80px;
  place-items: center;
  border: 1px dashed #9ab7d6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.product-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-image[src=""],
.product-image:not([src]) {
  display: none;
}

.product-image:not([src]) + span,
.product-image[src=""] + span {
  display: grid;
}

.product-image + span {
  z-index: 0;
}

.product-photo {
  position: relative;
  min-height: 230px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px) 0 0 / 42px 42px,
    linear-gradient(135deg, #0d9b78, #073f64);
}

.product-photo::before,
.product-photo::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.product-photo::before {
  width: 34%;
  height: 30%;
  left: 16%;
  top: 34%;
  border: 3px solid #c4fff5;
  background: #173747;
}

.product-photo::after {
  width: 44%;
  height: 6px;
  right: 12%;
  bottom: 28%;
  background: #9ce9df;
}

.photo-b { background-color: #0f766e; }
.photo-c { background-color: #0b5f84; }
.photo-d { background-color: #136f63; }
.photo-e { background-color: #144d7a; }
.photo-f { background-color: #0f6c8f; }

.product-card h2,
.product-card h3 {
  margin: 20px 20px 4px;
  font-size: 22px;
  line-height: 1.3;
}

.product-card p {
  margin: 0 20px 22px;
}

.contact-section {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 61, 134, 0.96), rgba(10, 102, 109, 0.94));
}

.contact-section .eyebrow,
.contact-section .section-head p {
  color: #d7f0ff;
}

.contact-box > div {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.contact-box span,
.contact-box strong {
  display: block;
}

.contact-box span {
  color: #c9ebff;
  font-size: 15px;
  font-weight: 800;
}

.contact-box strong {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 5vw;
  color: #d7e1ea;
  background: #101820;
}

.site-footer p {
  margin: 6px 0 0;
  color: #9aa9b7;
}

.site-footer .footer-contact {
  color: #ffffff;
  font-weight: 800;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 16px 5vw 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .primary-nav.is-open {
    display: grid;
    gap: 8px;
  }

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

  .summary-grid,
  .content-grid,
  .strength-list,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .specialty-layout > div,
  .specialty-layout > div:nth-child(4),
  .specialty-layout > div:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .brand small {
    display: none;
  }

  .hero {
    padding: 48px 22px;
  }

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

  .hero p {
    font-size: 17px;
  }

  .pcb-visual {
    min-height: 260px;
  }

  .board {
    border-width: 10px;
  }

  .section {
    padding: 62px 22px;
  }

  .intro-grid,
  .summary-grid,
  .content-grid,
  .strength-list,
  .product-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }
}

.product-card h2 {
  margin-bottom: 16px;
}
