/* KR GYK — Design tokens & shared styles
   새 브랜드(한국 machine tool) 국제화 사이트 / international site */

:root {
  /* color */
  --paper: #ffffff;
  --mist: #f4f6f9;
  --mist-2: #eaeef3;
  --navy: #0b2440;
  --navy-soft: #14385c;
  --ink: #0e1722;
  --steel: #5a6b7c;
  --steel-2: #8a99a8;
  --line: #dfe5ec;
  --line-2: #c9d3de;
  --accent: #ff6a13;
  --accent-dark: #d24e05;
  --accent-wash: #fff2e8;

  /* type */
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui,
    -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;

  /* rhythm */
  --shell: 1240px;
  --gutter: 32px;
  --sec: 96px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
}

html[lang="ko"] body { line-height: 1.78; word-break: keep-all; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

[id] { scroll-margin-top: 96px; }

.series + .series { margin-top: 88px; }

.frame { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; }

.section { padding: var(--sec) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #fff; }

/* ---------- section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.4vw, 46px);
}
.sec-head .sec-lead {
  color: var(--steel);
  font-size: 16px;
  padding-bottom: 6px;
}
.section--navy .sec-lead { color: #aebfd2; }

/* ---------- topbar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: #c6d4e2;
  font-size: 13px;
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  height: 40px;
}
.topbar .tel {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  color: #fff;
}
.topbar .tel b { color: var(--accent); font-weight: 700; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  padding: 3px;
}
.lang button {
  border: 0;
  background: transparent;
  color: #9fb2c6;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 1px;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
  border-radius: 2px;
}
.brand .name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.brand .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--steel-2);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  color: #22303f;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }

.header .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 2px;
  white-space: nowrap;
}
.header .cta:hover { background: var(--accent-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--fill { background: var(--accent); color: #fff; }
.btn--fill:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--dark { border-color: var(--line-2); color: var(--navy); }
.btn--dark:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn .arw { font-family: var(--mono); font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  width: 620px; height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.hero .shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 92px;
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(38px, 4.6vw, 66px);
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .hero-lead {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 17px;
  color: #b6c6d7;
}
.hero .hero-btns { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stats div {
  padding: 24px 20px 0 0;
}
.hero-stats div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hero-stats .num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-stats .num span { color: var(--accent); }
.hero-stats .lab {
  margin-top: 6px;
  font-size: 13px;
  color: #93a7bc;
}

/* machine illustration plate */
.plate {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  padding: 28px;
}
.plate .plate-cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #7f95ab;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.plate svg { width: 100%; height: auto; }

/* ---------- product grid ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.prod {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.prod:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(11, 36, 64, 0.5);
}
.prod .thumb {
  aspect-ratio: 4 / 3;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 18px;
}
.prod .thumb svg { width: 100%; height: 100%; }
.prod .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod .idx {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.prod h3 { font-size: 19px; letter-spacing: -0.025em; }
.prod .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.prod .tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  border: 1px solid var(--line-2);
  padding: 2px 7px;
  border-radius: 2px;
}
.prod .desc { font-size: 14px; color: var(--steel); line-height: 1.7; }
.prod .more {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.prod .more .arw { font-family: var(--mono); transition: transform 0.2s ease; }
.prod:hover .more .arw { transform: translateX(5px); }

/* ---------- strengths ---------- */
.pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pt { background: #fff; padding: 38px 34px 42px; }
.pt .num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.pt h3 { margin-top: 16px; font-size: 22px; }
.pt ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.pt li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--steel); line-height: 1.72; }
.pt li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -1px;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}
.section--navy .pts { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.section--navy .pt { background: var(--navy); }
.section--navy .pt li { color: #aebfd2; }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split .copy p + p { margin-top: 18px; }
.split .copy .lead { font-size: 17px; color: var(--steel); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 34px; }
.facts div { background: #fff; padding: 22px 24px; }
.facts .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--steel-2); text-transform: uppercase; }
.facts .v { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--navy); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border: 1px solid var(--line); background: var(--mist); }
.gallery .frame { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; }
.gallery svg { width: 100%; height: auto; }
.gallery figcaption {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-item {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--navy);
  padding-top: 22px;
}
.news-item .date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel-2); }
.news-item h3 { margin-top: 12px; font-size: 18px; line-height: 1.45; }
.news-item p { margin-top: 12px; font-size: 14px; color: var(--steel); }
.news-item .more { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.section--navy .news-item { border-top-color: rgba(255,255,255,0.35); }
.section--navy .news-item p { color: #aebfd2; }
.section--navy .news-item .date { color: #7f95ab; }

/* ---------- cta band ---------- */
.band { background: var(--navy); color: #fff; }
.band .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
  flex-wrap: wrap;
}
.band h2 { font-size: clamp(26px, 2.8vw, 38px); }
.band p { margin-top: 12px; color: #aebfd2; font-size: 15px; }

/* ---------- footer ---------- */
.footer { background: #08192e; color: #9fb2c6; font-size: 14px; }
.footer .shell { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--mono); font-weight: 700; }
.footer .f-brand .name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer .f-brand p { margin-top: 16px; max-width: 34ch; line-height: 1.75; }
.footer ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.footer ul a:hover { color: #fff; }
.footer .contact-list li { display: flex; gap: 10px; }
.footer .contact-list .k { color: #6d8299; min-width: 62px; font-family: var(--mono); font-size: 12px; }
.footer .bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6d8299;
}

/* ---------- subpage hero ---------- */
.subhead {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
  padding: 56px 0;
}
.subhead .crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel-2); text-transform: uppercase; }
.subhead h1 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 46px); }
.subhead p { margin-top: 16px; max-width: 62ch; color: var(--steel); }

/* ---------- filter bar ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button {
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  border-radius: 2px;
  transition: all 0.18s ease;
}
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14.5px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 15px 16px; text-align: left; }
.spec-table thead th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: 0.04em; }
.spec-table td:first-child { color: var(--steel); width: 30%; }
.spec-table td:not(:first-child) { font-family: var(--mono); color: var(--navy); font-weight: 600; }
.spec-table tbody tr:hover { background: var(--mist); }

/* ---------- timeline ---------- */
.timeline { margin-top: 20px; border-top: 1px solid var(--line); }
.timeline .row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .yr { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.timeline .tx h4 { font-size: 18px; }
.timeline .tx p { margin-top: 8px; color: var(--steel); font-size: 15px; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 18px; font-size: 13px; color: var(--steel); }
.form-ok {
  display: none;
  margin-top: 20px;
  border: 1px solid var(--accent);
  background: var(--accent-wash);
  color: var(--accent-dark);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.info-card { border: 1px solid var(--line); padding: 30px 28px; }
.info-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.info-card h3 { margin-top: 14px; font-size: 19px; }
.info-card p { margin-top: 10px; font-size: 14.5px; color: var(--steel); }
.info-card .big { margin-top: 16px; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
}
@media (max-width: 860px) {
  :root { --sec: 64px; --gutter: 20px; }
  .nav { display: none; }
  .header .shell { height: 66px; }
  .hero .shell { grid-template-columns: minmax(0, 1fr); padding-top: 60px; padding-bottom: 60px; }
  .hero .plate { display: none; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .hero-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pts, .news, .info-cards { grid-template-columns: minmax(0, 1fr); }
  .timeline .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
