﻿:root {
  --ink: #15161a;
  --ink-2: #242833;
  --muted: #667085;
  --paper: #ffffff;
  --warm: #f7f3e8;
  --soft: #f4f6f8;
  --line: #dfe3ea;
  --blue: #3448c8;
  --yellow: #f1c84b;
  --green: #2d8a68;
  --coral: #e7684c;
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Inter", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-x: clip;
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 227, 234, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 900;
}

.brand-logo {
  width: 170px;
  height: auto;
  max-width: none;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--soft);
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: #fff;
  background: var(--ink);
}

.site-nav .nav-cta:hover {
  background: var(--blue);
}

.site-nav .nav-store {
  border: 1px solid var(--line);
}

.site-nav .nav-store:hover {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 70px) 38px 72px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 78% 12%, rgba(52, 72, 200, 0.22) 0%, rgba(16, 17, 21, 0) 46%),
    radial-gradient(90% 120% at 0% 100%, rgba(45, 138, 104, 0.16) 0%, rgba(16, 17, 21, 0) 50%),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11px;
  background: linear-gradient(90deg, var(--yellow), var(--blue), var(--green), var(--coral));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: 1.03;
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-section .eyebrow,
.case-band .eyebrow,
.contact-section .eyebrow {
  color: var(--yellow);
}

.proof-strip,
.section,
.case-inner,
.contact-inner,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  min-height: 116px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 1px solid var(--line);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.product-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.product-tabs button:hover,
.product-tabs button.active {
  color: #fff;
  background: var(--ink);
}

.category-panel {
  display: block;
}

/* JS 활성 시에만 비활성 패널을 숨긴다 (no-JS에서는 전체 콘텐츠 표시) */
.js .category-panel:not(.active),
.js .product-panel:not(.active) {
  display: none;
}

.section {
  padding: 104px 0;
}

#work {
  padding-top: 0;
}

#work .proof-strip {
  width: 100%;
  margin-bottom: 104px;
}

.section-intro {
  max-width: 820px;
  margin-bottom: 44px;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.15;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.32;
}

.section-intro p,
.system-copy p,
.case-inner p,
.contact-inner p {
  color: var(--muted);
  font-size: 1.04rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card {
  min-height: 282px;
  padding: 24px;
  background: var(--paper);
}

.work-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 54px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
}

.work-card p,
.system-map span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
  color: #fff;
  background: var(--ink-2);
}

.dark-section .section-intro p {
  color: rgba(255, 255, 255, 0.72);
}

.risk-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.risk-board span {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.operation-system {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.system-copy {
  max-width: 540px;
}

.system-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.system-map article {
  min-height: 178px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.system-map article:nth-child(1) {
  border-top: 5px solid var(--yellow);
}

.system-map article:nth-child(2) {
  border-top: 5px solid var(--blue);
}

.system-map article:nth-child(3) {
  border-top: 5px solid var(--green);
}

.system-map article:nth-child(4) {
  border-top: 5px solid var(--coral);
}

.system-map b {
  font-size: 1.18rem;
}

.dark-section .system-copy p,
.dark-section .system-map span {
  color: rgba(255, 255, 255, 0.72);
}

.dark-section .system-map article {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.case-band {
  padding: 92px 0;
  color: #fff;
  background: var(--blue);
}

.case-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 58px;
  align-items: center;
}

.case-inner p {
  color: rgba(255, 255, 255, 0.82);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
}

.case-stats div {
  min-height: 150px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.15);
}

.case-stats dt {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.case-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.product-section {
  width: min(1180px, calc(100% - 40px));
}

.product-browser {
  display: grid;
  gap: 18px;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.product-tabs button {
  flex: 1 1 150px;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
}

.product-panel {
  border: 0;
}

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

.product-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  aspect-ratio: 1 / 1;
}

.product-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  transition: transform 320ms ease;
}

.product-grid figure:hover img {
  transform: scale(1.05);
}

.partners-section {
  width: min(1180px, calc(100% - 40px));
}

.reference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.reference-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.reference-grid img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #fff;
}

.contact-section {
  padding: 98px 0;
  color: #fff;
  background: var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 58px;
  align-items: end;
}

.contact-inner p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-inner address {
  display: grid;
  gap: 12px;
  font-style: normal;
  font-size: 1.28rem;
  font-weight: 900;
}

.contact-inner address a,
.contact-inner address span {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-inner address a:hover {
  color: var(--yellow);
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-info {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer-info a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* JS가 활성화된 경우에만 숨겨진 상태에서 시작 (no-JS 시 항상 보임) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 모션 최소화 선호 시 애니메이션 없이 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .work-grid,
  .proof-strip,
  .risk-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .operation-system,
  .case-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .product-tabs button {
    flex: 1 1 120px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 18px;
    gap: 12px;
    width: 100vw;
    max-width: 100vw;
  }

  .brand {
    min-width: 0;
    padding-right: 54px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 44px;
    margin-left: auto;
    position: fixed;
    top: 11px;
    right: 14px;
    z-index: 3;
    transform: none;
    border: 1px solid rgba(223, 227, 234, 0.9);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(21, 22, 26, 0.08);
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 18px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(21, 22, 26, 0.14);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 46px;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin: 8px 0 0;
  }

  .hero {
    min-height: 78svh;
    padding: calc(var(--header-height) + 44px) 18px 48px;
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(52, 72, 200, 0.18) 0%, rgba(16, 17, 21, 0) 44%),
      radial-gradient(100% 110% at 0% 100%, rgba(45, 138, 104, 0.12) 0%, rgba(16, 17, 21, 0) 50%),
      var(--ink);
  }

  .hero-content,
  .proof-strip,
  .section,
  .case-inner,
  .contact-inner,
  .site-footer,
  .product-section,
  .partners-section {
    width: min(100% - 36px, 1180px);
    max-width: calc(100vw - 36px);
  }

  .hero-content h1 {
    max-width: 12.5em;
    font-size: 2.05rem;
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 1rem;
    max-width: min(100%, 32ch);
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .section-intro p,
  .work-card p,
  .system-copy p,
  .case-inner p,
  .contact-inner p {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .proof-strip,
  .work-grid,
  .risk-board,
  .operation-system,
  .system-map,
  .product-browser,
  .case-stats {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: auto;
    border-right: 1px solid var(--line);
  }

  .section,
  .dark-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  #work {
    padding-top: 0;
  }

  #work .proof-strip {
    margin-bottom: 76px;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .operation-system {
    gap: 28px;
    margin-top: 34px;
    padding-top: 34px;
  }

  .work-card {
    min-height: auto;
  }

  .work-card span {
    margin-bottom: 34px;
  }

  .brand-logo {
    width: clamp(132px, 40vw, 152px);
  }

  .product-section {
    padding-top: 66px;
  }

  .product-browser {
    gap: 14px;
  }

  .product-tabs {
    margin: 0 -18px;
    padding: 0 18px 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .product-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .product-grid figure {
    aspect-ratio: 1 / 0.92;
    border-color: rgba(223, 227, 234, 0.92);
    background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
    box-shadow: 0 8px 22px rgba(21, 22, 26, 0.08);
  }

  .product-grid img {
    padding: 8px;
    transition: none;
  }

  .product-tabs button {
    flex: 0 0 auto;
    font-size: 0.82rem;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #fff;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .contact-section,
  .case-band {
    padding: 76px 0;
  }

  .footer-top {
    display: grid;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.94rem;
  }

  .hero .eyebrow {
    font-size: 0.72rem;
  }

  .section,
  .dark-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  #work {
    padding-top: 0;
  }

  #work .proof-strip {
    margin-bottom: 60px;
  }

  .product-grid {
    gap: 8px;
  }

  .product-grid img {
    padding: 6px;
  }

  .product-tabs button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}
