:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --gray: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --radius-lg: 28px;
  --radius: 18px;
  --ease: cubic-bezier(.28, .11, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html[lang="ko"] body { word-break: keep-all; letter-spacing: -0.01em; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Pretendard Variable", "Pretendard", sans-serif; margin: 0; font-weight: 600; letter-spacing: -0.015em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* 버튼 */
.pill { display: inline-block; background: var(--blue); color: #fff; font-size: 17px; font-weight: 400; padding: 12px 24px; border-radius: 980px; border: 0; cursor: pointer; transition: background .2s; }
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.pill-sm { font-size: 12px; padding: 5px 13px; }
.pill-block { display: block; width: 100%; padding: 15px; }
.link-more { font-size: 17px; }
.link-more::after { content: " ›"; }

/* 상단 메뉴 (반투명) */
.nav-bar { position: sticky; top: 0; z-index: 50; height: 52px; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav-inner { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 36px; }
.logo { display: flex; margin-right: auto; }
.logo img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 36px; }
.nav a { color: var(--text); font-size: 13px; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: none; }
.nav-cta:hover { text-decoration: none; }
/* EN | KO 전환 버튼 */
.lang { display: flex; background: rgba(0,0,0,.06); border-radius: 980px; padding: 2px; margin-left: -12px; }
.lang button { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); background: none; border: 0; padding: 4px 9px; border-radius: 980px; cursor: pointer; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.menu-btn { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; width: 18px; height: 1.5px; background: var(--text); border-radius: 1px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 14px; }
.menu-btn span:last-child { top: 21px; }
.menu-open .menu-btn span:first-child { top: 17.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 17.5px; transform: rotate(-45deg); }

/* 첫 화면 */
.hero { text-align: center; padding: 96px 22px 0; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 7.4vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.grad { background: linear-gradient(90deg, #2f86c8 0%, #e5106f 45%, #f0861a 75%, #fcc21c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--text-2); max-width: 680px; margin: 22px auto 30px; letter-spacing: .005em; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

/* 플라스틱 펠릿 그림 */
.pellets { position: relative; max-width: 1100px; height: 380px; margin: 56px auto 0; }
.pellets i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s);
  translate: -50% -50%; rotate: var(--r);
  filter: drop-shadow(0 18px 16px color-mix(in srgb, var(--c, #8aa6bf) 35%, transparent));
  animation: float 7s ease-in-out infinite var(--d);
}
.pellets svg, .swatch svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes float { 50% { transform: translateY(-14px) rotate(8deg); } }

/* 공통 섹션 */
.section { padding: 120px 0; }
.section-gray { background: var(--gray); }
.headline { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.02em; }
.intro { font-size: clamp(19px, 2vw, 21px); line-height: 1.4; color: var(--text-2); max-width: 720px; margin: 18px 0 56px; }
.center .intro { margin-left: auto; margin-right: auto; }
.intro-wide { max-width: none; }   /* 회사 소개: 문장마다 한 줄로 보이도록 넓게 */

/* 회사 소개 카드 */
.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--gray); border-radius: var(--radius-lg); padding: 40px 32px 44px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: scale(1.015); box-shadow: 0 4px 30px rgba(0,0,0,.08); }
.tile-kicker { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 0 0 10px; }
.tile h3 { font-size: 32px; line-height: 1.1; font-weight: 700; margin-bottom: 16px; }
.tile p:last-child { margin: 0; color: var(--text-2); font-size: 17px; }

/* 제품 벤토 그리드 */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; min-height: 230px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: scale(1.015); box-shadow: 0 4px 30px rgba(0,0,0,.08); }
.card-lg { grid-column: span 3; min-height: 300px; }
.card-wide { grid-column: span 6; min-height: 200px; }
.card::after { /* 카드 오른쪽 아래의 은은한 색 번짐 */
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%); pointer-events: none; }
.swatch { display: block; width: 52px; margin-bottom: auto; rotate: -14deg; filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--c) 35%, transparent)); }
.swatch[data-k="drum"], .swatch[data-k="powder"] { width: 68px; rotate: 0deg; }
.swatch[data-k="bead"] { rotate: 0deg; }
.card h3 { font-size: 28px; line-height: 1.14; font-weight: 700; margin-top: 40px; }
.card-lg h3 { font-size: 40px; }
.grades { color: var(--text-2); font-size: 17px; margin: 10px 0 0; position: relative; }

/* 검은 견적 요청 섹션 */
.dark { background: #000; color: #f5f5f7; padding: 140px 0; }
.dark .intro { color: #a1a1a6; }

/* 연락처 */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.contact dl { margin: 0 0 32px; display: grid; gap: 24px; }
.contact dt { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 21px; line-height: 1.38; font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--gray); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.2); }
.map-links { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0 0; }
.map-links .link-more { font-size: 15px; }

.form { background: var(--gray); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* 입력하면 위로 올라가는 라벨 */
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 16px 8px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field span { position: absolute; left: 17px; top: 17px; font-size: 17px; color: #86868b; pointer-events: none; transition: all .2s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 32px); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.18); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 8px; font-size: 12px; }
.form .pill-block { margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 14px; min-height: 1em; text-align: center; }
.form-status.ok { color: #1a8c3a; }
.form-status.error { color: #e30000; }

/* 푸터 */
.footer { background: var(--gray); color: var(--text-2); font-size: 12px; line-height: 1.6; padding: 28px 0 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.footer-top img { height: 26px; width: auto; display: block; }
.footer-top nav { display: flex; gap: 22px; }
.footer-top a { color: var(--text-2); font-size: 12px; }
.footer p { margin: 0 0 6px; }

/* 스크롤하면 떠오르는 효과 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pellets i { animation: none; }
  html { scroll-behavior: auto; }
}

/* 태블릿 */
@media (max-width: 900px) {
  .tiles-3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card-lg { grid-column: span 1; }
  .card-wide { grid-column: span 2; }
  .contact { grid-template-columns: 1fr; }
  .pellets { height: 300px; }
}
/* 모바일 */
@media (max-width: 734px) {
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; padding: 20px 40px; background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
         opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* 블러 효과가 있으면 메뉴가 화면 전체를 덮지 못해서, 메뉴를 열 땐 끔 */
  .menu-open .nav-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-open { overflow: hidden; }
  .nav a { font-size: 28px; font-weight: 600; padding: 10px 0; opacity: 1; }
  .hero { padding-top: 64px; }
  .pellets { height: 220px; margin-top: 36px; }
  .pellets i { width: calc(var(--s) * .6); }
  .lang { margin-left: 0; }
  .menu-btn { margin-left: -12px; }
  .section { padding: 80px 0; }
  .dark { padding: 96px 0; }
  .bento { grid-template-columns: 1fr; }
  .card, .card-lg, .card-wide { grid-column: span 1; min-height: 200px; }
  .card-lg h3 { font-size: 32px; }
  .form { padding: 20px; }
  .form .row { grid-template-columns: 1fr; }
  .contact dd { font-size: 19px; }
  .footer-top nav { display: none; }
}
