/* KSYSTEMON company site — shared styles (KO + EN) */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --mute: #5c5c5c;
  --line: #d9d9d9;
  --wash: #f0f0f0;
  --on: #1747ff;        /* the one accent: the "power on" blue. Change here to retheme. */
  --on-soft: #9db1ff;   /* accent on black backgrounds */
  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  text-rendering: optimizeLegibility;
}
body.lang-en { word-break: normal; line-height: 1.65; }

main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > section { flex: 0 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--on); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--on-soft); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 400; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.lang { display: flex; align-items: center; gap: 6px; padding-left: 28px; border-left: 1px solid var(--line); font-size: 14px; }
.lang a { color: var(--mute); }
.lang [aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.lang-sep { color: var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; text-align: center;
  flex: 1 0 auto; min-height: clamp(600px, calc(100svh - var(--header-h)), 900px);
  display: flex; align-items: center; justify-content: center;
  padding: 88px var(--gutter);
}
/* a soft "power-on" glow behind the mark */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 52% 62% at 50% 50%, rgba(23, 71, 255, 0.42), rgba(23, 71, 255, 0) 72%);
}
.hero-mark {
  position: absolute; left: 50%; top: 50%;
  height: 124%; width: auto; max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.12; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker { font-weight: 300; font-size: clamp(1.1rem, 2.3vw, 1.65rem); letter-spacing: -0.01em; }
.hero-title {
  margin-top: 16px;
  font-family: 'Anton', 'IBM Plex Sans KR', Impact, sans-serif; font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 8.5rem); line-height: 1.02; letter-spacing: 0.02em;
}
.hero-desc { margin: 28px auto 0; max-width: 42em; font-weight: 300; font-size: clamp(0.92rem, 1.25vw, 1.08rem); line-height: 1.85; color: #d4d4d4; }
.hero-desc span { display: block; }
.hero-actions { margin-top: 40px; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: #fff;
  padding: 14px 30px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--on); border-color: var(--on); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--on); color: #fff; border-color: var(--on); }
.hero :focus-visible { outline-color: var(--on-soft); }

.nb { white-space: nowrap; }

/* ---------- inner pages ---------- */
.page { padding: 96px 0 128px; }
.page-title { font-weight: 300; font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 56px; }
.page-body { max-width: 780px; }
.page-body--wide { max-width: none; }
.page-body--wide .facts { max-width: 780px; }

/* services: image left, text right */
.svc-list { display: flex; flex-direction: column; gap: 72px; }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.svc-img { width: 100%; height: auto; aspect-ratio: 825 / 345; border-radius: 24px; }
.svc-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; letter-spacing: -0.02em; }
.svc-en { font-weight: 300; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--mute); }
.svc-rule { display: block; width: 36px; height: 2px; background: var(--ink); margin: 16px 0 22px; }
.svc-text p { color: var(--mute); max-width: 30em; }
.svc-points { margin-top: 20px; display: grid; gap: 8px; }
.svc-points li { position: relative; padding-left: 18px; }
.svc-points li::before { content: '-'; position: absolute; left: 0; top: 0; color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: 120px 0; border-top: 1px solid var(--ink); }
.hero + .section { border-top: 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.section-title { font-weight: 600; font-size: 1.35rem; line-height: 1.4; letter-spacing: -0.01em; }

.lead { font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.55; letter-spacing: -0.02em; max-width: 26em; }
.lead--lines { max-width: none; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.7; }
.lead--lines .ln { display: block; }
@media (min-width: 961px) { .lead--lines .ln { white-space: nowrap; } }
.lang-en .lead { line-height: 1.45; max-width: 28em; }
.about-text { margin-top: 28px; max-width: 860px; }
.svc .lead, .svc .lead--lines { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.5; max-width: none; }
.svc .lead--lines .ln { white-space: normal; }
.svc-text p.lead { color: var(--ink); }
.svc .about-text p { text-wrap: pretty; }
.about-text .ln { display: block; }
.svc .about-text p { max-width: none; }
.facts--row { margin-top: 72px; }
.about-text p { color: var(--mute); }
.about-text p + p { margin-top: 18px; }
.facts { margin-top: 56px; display: grid; grid-template-columns: 8.5em 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); font-size: 15px; }
.facts dd { font-weight: 400; }

.service { padding: 34px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-title { font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -0.025em; }
.service-text { margin-top: 12px; color: var(--mute); max-width: 34em; }

.brand-names { display: flex; flex-wrap: wrap; gap: 0.15em 0.7em; font-weight: 300; font-size: clamp(2.2rem, 6.2vw, 5rem); line-height: 1.15; letter-spacing: -0.03em; }
.brand-note { margin-top: 28px; font-size: 14px; color: var(--mute); }

/* ---------- contact + footer (black) ---------- */
.dark { background: var(--ink); color: #fff; }
.contact-text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--mute); }
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 300; letter-spacing: -0.01em; }
.contact-list a { text-decoration: none; }
.contact-intro { margin: -8px 0 48px; }
.svc-text p.contact-link { color: var(--ink); max-width: none; font-weight: 300; font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }
.contact-link a { text-decoration: none; }
.contact-link a:hover { text-decoration: underline; }
.contact-list a:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid #333; padding: 40px 0 56px; }
.footer-logo img { height: 28px; width: auto; }
.footer-info { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 14px; color: #bdbdbd; }
.footer-info dt { display: inline; color: #8a8a8a; margin-right: 8px; }
.footer-info dd { display: inline; }
.footer-info div { display: block; }
.footer-info .pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; }
.footer-info .pair dd + dt { margin-left: 32px; }
.footer-info a { text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.copy { margin-top: 28px; font-size: 13px; color: #8a8a8a; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .svc { grid-template-columns: 1fr; gap: 24px; }
  .svc-list { gap: 56px; }
  .section-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 88px 0; }
  .page { padding: 72px 0 96px; }
}
@media (max-width: 720px) {
  .nb { white-space: normal; }
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 16px; }
  .site-header-inner { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; padding-bottom: 6px; min-height: 0; }
  .brand img { height: 28px; }
  .lang { margin-left: auto; padding-left: 0; border-left: 0; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 22px; overflow-x: auto; padding: 8px 0 4px; }
  .site-nav a { white-space: nowrap; }
  html { scroll-padding-top: 110px; }
  .hero { padding: 64px var(--gutter); }
  .page { padding: 48px 0 72px; }
  .page-title { margin-bottom: 36px; }
  .hero-mark { height: 105%; }
  .facts { grid-template-columns: 6.5em 1fr; }
  .footer-info { flex-direction: column; gap: 6px; }
  .footer-info .pair { display: grid; grid-template-columns: max-content 1fr; gap: 6px 8px; }
  .footer-info .pair dt { margin-right: 0; }
  .footer-info .pair dd + dt { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
