/* innoAZ homepage — Swiss typographic style */
:root {
  --bg: #F4F4F0;
  --ink: #111111;
  --sub: #44443F;
  --accent: #C73410;
  --on-ink: #F4F4F0;
  --on-ink-sub: #D9D9D2;
  --pad: 56px;
  --latin: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  height: 80px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand b { font-family: var(--latin); font-size: 22px; letter-spacing: 0.01em; }
.brand span { font-size: 15px; font-weight: 500; }
.nav { display: flex; gap: 40px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 10px 0; }
.top-right { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; align-items: center; gap: 8px; font-family: var(--latin); font-size: 14px; }
.lang a { text-decoration: none; font-weight: 500; padding: 10px 2px; }
.lang a[aria-current] { font-weight: 700; text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  background: var(--ink); color: var(--on-ink);
  border: 0; text-decoration: none;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn.big { height: 56px; padding: 0 40px; font-size: 17px; }

/* ---------- hero ---------- */
.hero {
  padding: 72px var(--pad) 64px;
  display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-end;
}
.hero h1 {
  flex: 999 1 600px;
  font-size: clamp(46px, 10.2vw, 148px);
  line-height: 1.06; font-weight: 900; letter-spacing: -0.045em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-side { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 24px; padding-bottom: 16px; }
.eyebrow { font-family: var(--latin); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.btn-line {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px;
  border: 2px solid var(--ink); text-decoration: none; font-size: 16px; font-weight: 700;
}
.btn-line:hover { background: var(--ink); color: var(--on-ink); }

/* ---------- rotating index ---------- */
.idx {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-top: 2px solid var(--ink);
}
.idx a {
  min-height: 264px; padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--ink);
  transition: background 0.35s, color 0.35s;
}
.idx a:first-child { padding-left: var(--pad); }
.idx a:last-child { padding-right: var(--pad); border-right: 0; }
.idx-top { display: flex; justify-content: space-between; align-items: baseline; }
.idx-no { font-family: var(--latin); font-size: 56px; font-weight: 700; line-height: 1; }
.badge { font-size: 13px; font-weight: 700; padding: 4px 10px; background: var(--ink); color: var(--on-ink); transition: background 0.35s, color 0.35s; }
.idx-name { font-size: 22px; font-weight: 700; line-height: 1.4; }
.idx a:first-child .idx-name { font-size: 26px; }
.idx-desc { font-size: 15px; line-height: 1.6; color: var(--sub); margin-top: 8px; transition: color 0.35s; }
.idx a.on { background: var(--ink); color: var(--on-ink); }
.idx a.on .idx-desc { color: var(--on-ink-sub); }
.idx a.on .badge { background: var(--on-ink); color: var(--ink); }

/* ---------- public apps ---------- */
.apps { border-top: 2px solid var(--ink); }
.apps[hidden] { display: none; }
.apps-head {
  padding: 28px var(--pad) 20px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
}
.apps-head h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.apps-head p { font-size: 15px; color: var(--sub); }
.app-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 72px; gap: 24px 56px; align-items: center;
  padding: 36px var(--pad);
  border-top: 1px solid var(--ink);
  text-decoration: none; color: var(--ink);
  transition: background 0.25s, color 0.25s;
}
.app-name {
  font-family: var(--latin), 'Noto Sans KR', sans-serif;
  font-size: clamp(44px, 7.4vw, 108px); line-height: 1; font-weight: 700; letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.app-mid { display: flex; flex-direction: column; gap: 10px; }
.app-desc { font-size: 17px; line-height: 1.6; }
.app-meta { font-family: var(--latin), 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.app-go { width: 72px; height: 72px; justify-self: end; transition: transform 0.25s; }
a.app-row:hover, a.app-row:focus-visible { background: var(--accent); color: #FFFFFF; }
a.app-row:hover .app-go, a.app-row:focus-visible .app-go { transform: translate(6px, -6px); }
.app-row.soon .app-name { color: #6B6B64; }

/* ---------- sections ---------- */
.sec {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 56px;
  padding: 104px var(--pad);
  border-top: 2px solid var(--ink);
}
.sec-head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.sec-no { font-family: var(--latin); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.15; font-weight: 900; letter-spacing: -0.035em; }
.sec-body { display: flex; flex-direction: column; gap: 40px; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.6; font-weight: 500; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--ink);
}
.rows .n { font-family: var(--latin); font-weight: 700; font-size: 15px; padding-top: 3px; }
.rows h3 { font-size: 19px; font-weight: 700; }
.rows p { font-size: 16px; color: var(--sub); margin-top: 4px; }

.note { font-size: 15px; color: var(--sub); }

.sec.dark { background: var(--ink); color: var(--on-ink); }
.sec.dark .rows { border-top-color: var(--on-ink); }
.sec.dark .rows li { border-bottom-color: #55554F; }
.sec.dark .rows p, .sec.dark .note { color: var(--on-ink-sub); }
.sec.dark a:hover { color: #FF9A7A; }

/* company table */
.info { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 16px; }
.info th, .info td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.info th { width: 170px; font-weight: 700; padding-right: 16px; }

/* ---------- contact form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 4px;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 17px;
}
.field textarea { height: 160px; padding: 14px; border: 2px solid var(--ink); resize: vertical; }
.form-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.consent { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 44px; }
.consent input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
.form-msg { grid-column: 1 / -1; font-size: 15px; font-weight: 700; min-height: 26px; }
.form-msg.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail { font-family: var(--latin); font-size: 18px; }

/* ---------- footer ---------- */
.foot {
  padding: 28px var(--pad) 36px;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 2px solid var(--ink);
  font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--sub);
}
.foot p:last-child { margin-top: 8px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  :root { --pad: 32px; }
  .nav { display: none; }
  .idx { grid-template-columns: 1fr 1fr; }
  .idx a { min-height: 200px; border-bottom: 1px solid var(--ink); }
  .idx a:nth-child(2n) { border-right: 0; padding-right: var(--pad); }
  .idx a:nth-child(2n+1) { padding-left: var(--pad); }
  .idx a:nth-last-child(-n+2) { border-bottom: 0; }
  .sec { grid-template-columns: minmax(0, 1fr); padding: 72px var(--pad); }
  .app-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 16px 24px; padding: 28px var(--pad); }
  .app-mid { grid-column: 1 / -1; grid-row: 2; }
  .app-go { width: 48px; height: 48px; }
}
@media (max-width: 600px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .top { height: 64px; gap: 12px; }
  html { scroll-padding-top: 64px; }
  .brand span { display: none; }
  .top-right { gap: 12px; }
  .btn { padding: 0 16px; }
  .hero { padding: 48px var(--pad) 40px; }
  .hero-side { max-width: none; }
  .idx { grid-template-columns: 1fr; }
  .idx a, .idx a:nth-child(n) { min-height: 0; padding: 22px var(--pad); border-right: 0; border-bottom: 1px solid var(--ink); gap: 16px; }
  .idx a:last-child { border-bottom: 0; }
  .idx-no { font-size: 40px; }
  .sec { padding: 56px var(--pad); gap: 32px; }
  .rows li { grid-template-columns: 40px minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .info th { width: 110px; }
  .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .idx a, .badge, .idx-desc, .app-row, .app-go { transition: none; }
}
