:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text-primary: #1b2430;
  --text-secondary: #475569;
  --brand: #0051ad;
  --brand-strong: #003e85;
  --border: #dce4ec;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] {
  --bg: #111827;
  --surface: #1f2937;
  --surface-alt: #273447;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --brand: #60a5fa;
  --brand-strong: #93c5fd;
  --border: #334155;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
}

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

.site-header .navbar { background: var(--surface) !important; }

.site-header .navbar-toggler {
  border-color: rgba(27, 36, 48, 0.25);
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 81, 173, 0.2);
}

:root[data-theme="dark"] .site-header .navbar-toggler {
  border-color: #475569;
  background: rgba(15, 23, 42, 0.35);
}

:root[data-theme="dark"] .site-header .navbar-toggler-icon {
  filter: invert(1) brightness(1.8);
}

.site-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}

.brand-badge {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-weight: 800;
}

.nav-link { color: var(--text-secondary) !important; font-weight: 600; }
.nav-link.active { color: var(--brand) !important; }

.social-quick-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-left: 1.1rem;
  flex-shrink: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  line-height: 1;
  background: var(--surface-alt);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.social-svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
}

main { min-height: calc(100vh - 190px); }

.hero-section {
  padding: 5rem 0;
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-alt) 100%);
}

.hero-copy h1 {
  color: var(--text-primary);
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--text-secondary);
}

.hero-highlights {
  display: grid;
  gap: 0.45rem;
}

.hero-highlights li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.trust-panel-section {
  margin-top: -0.5rem;
}

.trust-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 1.05rem 1.1rem;
  height: 100%;
  box-shadow: var(--shadow);
}

.trust-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.04rem;
  font-weight: 800;
}

.trust-panel p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.94rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 800;
}

.products-hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08), transparent 52%), radial-gradient(circle at 80% 10%, rgba(14, 116, 144, 0.08), transparent 45%), var(--surface);
}

.products-hero h1 {
  font-size: clamp(1.9rem, 2vw + 1rem, 3.1rem);
  line-height: 1.28;
  margin-bottom: 1rem;
}

.trnsys-showcase {
  margin-top: 1.75rem;
}

.trnsys-shell {
  color: #f3f7ff;
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 83, 160, 0.28), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(14, 55, 115, 0.22), transparent 36%),
    #171b23;
  border: 1px solid #2a3240;
  border-radius: 1.2rem;
  padding: 1.9rem;
  box-shadow: 0 26px 50px rgba(8, 12, 20, 0.34);
}

.trnsys-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw + 1rem, 3.1rem);
}

.trnsys-hero-tagline {
  color: #f1f4fb;
  font-size: clamp(1rem, 1.2vw + 0.7rem, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.trnsys-hero-copy {
  color: #bdc8dc;
  line-height: 1.74;
  margin-bottom: 1.4rem;
}

.trnsys-btn-outline {
  border: 1px solid #4f5a70;
  background: transparent;
  color: #edf2ff;
}

.trnsys-btn-outline:hover {
  border-color: #7a88a8;
  background: #242d3e;
  color: #ffffff;
}

.trnsys-hero-media {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #303a4e;
  background: #121722;
}

.trnsys-hero-media img {
  width: 100%;
  min-height: 290px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trnsys-core {
  margin-top: 2.3rem;
}

.trnsys-section-title {
  color: #f2f6ff;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.45rem;
}

.trnsys-solution-card {
  background: #1a202b;
  border: 1px solid #2b3446;
  border-radius: 0.85rem;
  padding: 1.35rem 1.25rem;
  height: 100%;
  text-align: center;
}

.trnsys-solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  border: 1px solid #315182;
  background: rgba(22, 110, 255, 0.16);
  color: #2e8cff;
  margin-bottom: 1rem;
  font-size: 1.22rem;
  font-weight: 700;
}

.trnsys-solution-card h4 {
  color: #f8fbff;
}

.trnsys-solution-card p {
  color: #b7c2da;
  margin: 0;
  line-height: 1.62;
}

.trnsys-why {
  margin-top: 2rem;
}

.trnsys-why-box {
  background: linear-gradient(145deg, #242a35, #1d232f);
  border: 1px solid #2e3748;
  border-radius: 1rem;
  padding: 1.4rem;
}

.trnsys-why-title {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.trnsys-reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trnsys-reason-item {
  position: relative;
  margin-bottom: 1.15rem;
  padding-left: 2rem;
}

.trnsys-reason-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #37598f;
  background: rgba(33, 116, 255, 0.18);
  color: #40a2ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.trnsys-reason-item h5 {
  margin: 0 0 0.28rem;
  color: #f4f8ff;
  font-weight: 700;
}

.trnsys-reason-item p {
  margin: 0;
  color: #bcc7dc;
  line-height: 1.58;
}

.trnsys-extension-card {
  height: 100%;
  background: #161d29;
  border: 1px solid #2f384b;
  border-radius: 0.9rem;
  padding: 1.25rem;
}

.trnsys-extension-card h3 {
  color: #ffffff;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.trnsys-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.trnsys-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #3b465a;
  background: #212939;
  color: #dbe6fb;
  font-size: 0.82rem;
  font-weight: 600;
}

.trnsys-extension-copy {
  margin: 0;
  color: #bbc8df;
  text-align: center;
  line-height: 1.58;
}

.section-title-wrap {
  margin-bottom: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-body {
  display: flex;
  flex-direction: column;
}

.product-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.product-card-subtitle {
  min-height: 3.1rem;
  line-height: 1.45;
}

.product-card-description {
  min-height: 6.2rem;
}

@media (max-width: 540px) {
  .product-card-subtitle {
    min-height: 2.95rem;
  }

  .product-card-description {
    min-height: 5.3rem;
  }
}

.product-card-actions {
  margin-top: auto;
}

.product-detail-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.72rem 1.28rem;
  line-height: 1.3;
  border-radius: 0.7rem;
}

.product-hero-btn-group .product-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.75rem;
  min-height: 2.85rem;
  padding: 0.72rem 1.28rem;
  font-size: 1rem;
  line-height: 1.25;
  border-radius: 0.72rem;
}

.product-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.product-points {
  margin: 0;
}

.product-points li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-points li::before {
  content: "•";
  color: var(--brand);
  position: absolute;
  left: 0;
  top: 0;
}

.product-metrics {
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.metric-value {
  margin: 0;
  font-weight: 800;
  color: var(--text-primary);
}

.product-detail-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-alt) 100%);
}

.product-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.detail-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  height: 100%;
}

.detail-feature-card h4 {
  color: var(--text-primary);
}

.detail-feature-card ul {
  margin: 0;
}

.detail-feature-card li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.detail-feature-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
}

.tess-lib-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.table-wrap {
  overflow-x: auto;
}

.product-spec-table {
  background: var(--surface);
  border-color: var(--border);
  margin-bottom: 0;
}

.product-spec-table th {
  width: 34%;
  background: var(--surface-alt);
  color: var(--text-primary);
  font-weight: 700;
}

.product-spec-table th,
.product-spec-table td {
  border-color: var(--border) !important;
  color: var(--text-secondary);
  vertical-align: middle;
  padding: 0.95rem 0.95rem;
}

.product-spec-table tbody tr:nth-child(odd) {
  background: rgba(59, 130, 246, 0.03);
}

:root[data-theme="dark"] .product-spec-table tbody tr:nth-child(odd) {
  background: rgba(147, 197, 253, 0.05);
}

.products-flow {
  padding: 2rem 0 1.25rem;
}

.products-step-row {
  position: relative;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  height: 100%;
  box-shadow: var(--shadow);
}

.step-badge {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  background: var(--surface-alt);
  color: var(--brand);
  font-weight: 700;
}

.step-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.benefit-inline-text {
  flex: 1;
  min-width: 0;
}

.benefit-inline-icon {
  display: inline-flex;
  width: 1.25rem;
  flex: 0 0 1.25rem;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 540px) {
  .benefit-inline {
    align-items: flex-start;
    gap: 0.45rem;
  }
  .benefit-inline-icon {
    width: 1.1rem;
    flex-basis: 1.1rem;
    margin-top: 0.08rem;
    line-height: 1.4;
  }
}

@media (min-width: 992px) {
  .products-step-row .step-card {
    position: relative;
    margin-right: -1px;
  }
  .products-step-row .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.85rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--border);
  }
}

.feature-card, .info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.feature-card:hover, .info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.15);
}

.home-trnsys-image-frame {
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface-alt);
}

.home-trnsys-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  display: block;
}

.home-trnsys-pair {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--surface-alt);
  color: var(--brand);
  margin-bottom: 1rem;
}

.btn.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.badge {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

.text-primary-custom { color: var(--brand) !important; }

.table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(59, 130, 246, 0.04);
}

.mobile-home {
  display: none;
}

.site-footer {
  margin-top: 5rem;
  background: #0b1220;
  color: #e2e8f0;
}

.site-footer a { color: #cbd5e1; }
.footer-title { color: #fff; font-weight: 700; }

.page-frame {
  margin-top: 2.75rem;
  margin-bottom: 2.75rem;
}

.location-map-wrap {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--surface-alt);
}

.location-map-wrap .root_daum_roughmap {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}

.location-map-wrap .root_daum_roughmap .wrap_map {
  width: 100% !important;
}

/* Hide Kakao map bottom controller block (logo + directions/roadview area). */
#daumRoughmapContainer1577017371805 .wrap_controllers {
  display: none !important;
}

/* Hide only KakaoMap directions control ("길찾기") in this embedded map. */
#daumRoughmapContainer1577017371805 .wrap_btn_roadview .ico_street,
#daumRoughmapContainer1577017371805 .wrap_btn_roadview a[href*="eName="],
#daumRoughmapContainer1577017371805 .wrap_btn_roadview .txt_bar.hide_text {
  display: none !important;
}

.location-info-panel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.05rem 1.1rem;
}

.location-company {
  color: var(--text-primary);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.location-company-en {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.location-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.55;
}

.location-label {
  min-width: 4.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.location-value {
  color: var(--text-primary);
}

.location-transport-guide {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.location-transport-guide h6 {
  color: var(--text-primary);
  font-size: 1rem;
}

.location-transport-guide p {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.callout {
  background: linear-gradient(120deg, #eff6ff, #eef2ff);
  border: 1px solid #bfdbfe;
  border-radius: 1.2rem;
  padding: 1.75rem;
}

:root[data-theme="dark"] .callout {
  background: linear-gradient(120deg, #1e3a8a, #312e81);
  border-color: rgba(147, 197, 253, 0.35);
}

.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .45rem .75rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: .85rem;
}

@media (min-width: 993px) and (max-width: 1199px) {
  .hero-section .hero-copy {
    flex: 0 0 44%;
    max-width: 44%;
  }
  .hero-section .home-hero-media {
    flex: 0 0 56%;
    max-width: 56%;
  }
  .hero-section .hero-copy h1 {
    font-size: clamp(1.7rem, 1.6vw + 0.9rem, 2.25rem);
  }
  .hero-section .hero-copy .lead {
    font-size: 1.03rem;
  }
  .hero-section .hero-highlights li {
    font-size: 0.94rem;
  }
}

@media (max-width: 992px) {
  .social-quick-links {
    margin-left: 0;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border);
  }
  .hero-img { display: none !important; }
  .hero-section { padding: 3.25rem 0 2.75rem; }
  .site-footer { margin-top: 3rem; }
}

@media (max-width: 768px) {
  .trust-panel {
    padding: 0.95rem 1rem;
  }
  .section-title { font-size: 1.7rem; }
  .page-frame { margin-top: 1.5rem; margin-bottom: 1.5rem; }
  .feature-card, .info-card { padding: 1.1rem; }
  .home-trnsys-image-frame {
    width: 100%;
  }
  .home-trnsys-image {
    height: auto;
    max-height: none;
  }
  .product-detail-hero { padding: 2.4rem 0 1.4rem; }
  .product-side-card,
  .detail-feature-card { padding: 1rem; }
  .trnsys-shell { padding: 1.2rem; }
  .trnsys-hero-media img { min-height: 215px; }
  .trnsys-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-home { display: block; }
  .location-map-wrap .root_daum_roughmap .wrap_map {
    height: 320px !important;
  }
  .location-meta-list li {
    font-size: 0.95rem;
  }
}

@media (max-width: 540px) {
  .hero-section { padding: 2.5rem 0 2rem; }
  .hero-copy h1 { font-size: 1.9rem; }
  .section-title { margin-bottom: 1rem; }
  .site-logo { height: 30px; }
  .btn { width: 100%; }
  .product-hero-btn-group .product-hero-btn { width: 100%; min-width: 0; }
  .trnsys-btn-group .btn { width: auto; }
  .trnsys-extension-card h3 { font-size: 1.25rem; }
  .trnsys-reason-item { padding-left: 1.75rem; }
  .mobile-home .hero-copy p { margin-bottom: 1rem; }
}
