:root {
  --ink: #222831;
  --muted: #67717d;
  --line: #d8dde3;
  --panel: #f5f7fa;
  --blue: #0b5ea8;
  --blue-deep: #063b6e;
  --red: #d72638;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(22, 34, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.topbar {
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
  color: #53606d;
  font-size: 13px;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar .wrap,
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .wrap {
  min-height: 34px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #56606b;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: 700;
}

.lang-switch button.active {
  background: var(--blue);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  min-height: 78px;
  gap: 22px;
}

.site-header .lang-switch {
  flex: 0 0 auto;
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-title {
  display: block;
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  padding: 28px 16px 27px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  color: #25313d;
  font-size: 15px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--blue);
  border-color: var(--line);
  background: #f9fbfd;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 42px;
  height: 38px;
  cursor: pointer;
  flex: 0 0 auto;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  content: "";
}

.hero {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(4, 20, 38, 0.86), rgba(5, 52, 89, 0.62), rgba(255, 255, 255, 0.05)),
    var(--hero-image) center/cover no-repeat;
  color: var(--white);
  display: grid;
  align-items: center;
}

.hero.compact {
  min-height: 320px;
}

.hero.legal-hero {
  background:
    linear-gradient(90deg, rgba(4, 20, 38, 0.94), rgba(6, 59, 110, 0.86)),
    #063b6e;
}

.hero-copy {
  width: min(700px, 100%);
  padding: 70px 0;
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.hero .eyebrow {
  color: #ff5060;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
}

h2 {
  font-size: clamp(28px, 3vw, 38px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  max-width: 660px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.btn.secondary {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--panel);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.five {
  grid-template-columns: repeat(5, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

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

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 24px;
  min-height: 100%;
}

.product-card {
  border-top: 4px solid var(--blue);
}

.product-card h3,
.card h3 {
  margin-bottom: 10px;
  color: var(--blue-deep);
}

.product-card p,
.card p,
.split p,
.rich-list li {
  color: var(--muted);
}

.product-code {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.band {
  background: var(--blue-deep);
  color: var(--white);
  padding: 42px 0;
}

.band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.band p {
  color: rgba(255, 255, 255, 0.78);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #eef3f8;
  color: var(--blue-deep);
  font-size: 14px;
}

.rich-list {
  padding-left: 18px;
  margin: 14px 0 0;
}

.rich-list li {
  margin: 8px 0;
}

.category {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.category:first-child {
  border-top: 0;
  padding-top: 0;
}

.category-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
}

.category-aside {
  border-left: 4px solid var(--blue);
  padding-left: 18px;
}

.category-aside p {
  margin-top: 12px;
  color: var(--muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.spec {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--white);
}

.spec strong {
  display: block;
  color: var(--blue-deep);
}

.spec span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.tech-table th,
.tech-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tech-table th {
  width: 34%;
  color: var(--blue-deep);
  background: #eef3f8;
}

.datasheet-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.datasheet-strip div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.datasheet-strip strong {
  display: block;
  color: var(--blue-deep);
}

.datasheet-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
}

.contact-box {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--white);
}

.contact-box dl {
  margin: 0;
}

.contact-box dt {
  margin-top: 18px;
  color: var(--blue-deep);
  font-weight: 900;
}

.contact-box dt:first-child {
  margin-top: 0;
}

.contact-box dd {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.legal-nav {
  position: sticky;
  top: 102px;
  border: 1px solid var(--line);
  background: var(--white);
}

.legal-nav a {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 14px;
}

.legal-nav a:last-child {
  border-bottom: 0;
}

.legal-content {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 34px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 25px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 22px;
  font-size: 19px;
}

.legal-content p {
  margin-top: 12px;
  color: var(--muted);
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-content li {
  margin: 8px 0;
  color: var(--muted);
}

.legal-meta {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  color: var(--blue-deep);
  font-weight: 900;
  font-size: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
  background: var(--white);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  background: #20262d;
  color: #ccd3da;
}

.footer-top {
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  color: #aeb8c2;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 13px;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.not-found {
  min-height: 70vh;
  display: grid;
  align-items: center;
  text-align: center;
}

.not-found h1 {
  color: var(--blue-deep);
}

@media (max-width: 980px) {
  .site-header .wrap {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 69px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 17px 20px;
    border-top: 1px solid var(--line);
  }

  .grid.five,
  .grid.four,
  .grid.three,
  .split,
  .category-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .topbar .wrap {
    gap: 8px;
    align-items: stretch;
    flex-direction: column;
    padding: 8px 0;
  }

  .topbar {
    font-size: 12px;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch button {
    min-height: 36px;
    flex: 1;
  }

  .site-header {
    top: 0;
  }

  .site-header .wrap {
    min-height: 64px;
    gap: 12px;
  }

  .site-header .lang-switch {
    width: auto;
    margin-left: auto;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 118px);
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .main-nav {
    top: 65px;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    box-shadow: 0 14px 28px rgba(22, 34, 48, 0.12);
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 19px;
  }

  .hero,
  .hero.compact {
    min-height: auto;
    background-position: center;
  }

  .hero-copy {
    padding: 50px 0;
  }

  .lead {
    font-size: 17px;
  }

  .actions {
    gap: 10px;
    margin-top: 22px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
  }

  .grid.five,
  .grid.four,
  .grid.three,
  .split,
  .category-layout,
  .contact-grid,
  .footer-grid,
  .stats,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .datasheet-strip {
    grid-template-columns: 1fr 1fr;
  }

  .band .wrap,
  .footer-bottom .wrap {
    display: block;
  }

  .band .btn {
    margin-top: 18px;
  }

  .section {
    padding: 46px 0;
  }

  .card,
  .spec,
  .contact-box {
    padding: 18px;
  }

  .legal-content {
    padding: 20px;
  }

  .legal-content h2 {
    font-size: 23px;
  }

  .category {
    padding: 30px 0;
  }

  .category-aside {
    padding-left: 14px;
  }

  .split {
    gap: 26px;
  }

  .split img {
    aspect-ratio: 16 / 11;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table th,
  .table td {
    padding: 12px;
  }

  .tech-table {
    display: block;
    overflow-x: auto;
  }

  .tech-table th {
    min-width: 150px;
  }

  .datasheet-strip {
    grid-template-columns: 1fr;
  }

  .footer-top {
    padding: 34px 0;
  }

  .footer-bottom span {
    display: block;
    margin-top: 6px;
  }
}

@media (max-width: 380px) {
  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    display: none;
  }

  h1 {
    font-size: 29px;
  }
}
