/* =========================================================
   LIVEYOON 회사 홈페이지
   모양 규칙: 버튼 = 알약형(999px), 카드/이미지 = 20px, 입력창 = 12px
   색 규칙: 강조색은 청록(--accent) 하나만 사용
   ========================================================= */

:root {
  --bg: #f5f8f8;
  --surface: #fcfdfd;
  --surface-2: #ecf2f2;
  --text: #0f1b1d;
  --muted: #4b5b5f;
  --line: #d9e3e3;
  --accent: #0d7a6f;
  --accent-strong: #0a6158;
  --accent-soft: #e1f0ee;
  --on-accent: #fbfefd;
  --danger: #b4232f;
  --shadow: 0 20px 50px -24px rgb(13 70 66 / 0.28);

  --radius-card: 20px;
  --radius-input: 12px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1315;
    --surface: #111b1e;
    --surface-2: #162326;
    --text: #e6eeee;
    --muted: #9db0b3;
    --line: #233336;
    --accent: #3cc0ad;
    --accent-strong: #5fd3c2;
    --accent-soft: #12302c;
    --on-accent: #062522;
    --danger: #ff7b84;
    --shadow: 0 20px 50px -24px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.025em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 112px 0; }
section[id] { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- 헤더 ---------- */
.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  transition: color .2s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- 히어로 ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 750;
  line-height: 1.22;
}
.hero-sub {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 회사소개 ---------- */
.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about h2, .business h2, .roadmap h2, .contact h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}
.about-text > p { margin-top: 20px; color: var(--muted); max-width: 36em; font-size: 17px; }

.values { margin: 48px 0 0; display: grid; gap: 0; }
.values > div { padding: 22px 0; border-top: 1px solid var(--line); }
.values dt {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px;
}
.values dt i { color: var(--accent); font-size: 22px; }
.values dd { margin: 6px 0 0 32px; color: var(--muted); }

.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-media img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  background: var(--surface-2);
}
.about-media img:first-child { aspect-ratio: 3 / 4; }
.about-media img:last-child { aspect-ratio: 3 / 4; margin-top: 96px; }

/* ---------- 사업분야 (벤토) ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: minmax(260px, auto) minmax(260px, auto);
  gap: 20px;
}
.tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
}
.tile h3 { font-size: 22px; font-weight: 700; }
.tile p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; }

.tile-lg { grid-column: 1 / 3; grid-row: 1 / 2; }
.tile-accent { grid-column: 3 / 4; grid-row: 1 / 2; }
.tile-tall { grid-column: 1 / 2; grid-row: 2 / 3; }
.tile-plain { grid-column: 2 / 4; grid-row: 2 / 3; }

.tile-photo { color: #f4f8f8; }
.tile-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.tile-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(8 22 22 / 0) 30%, rgb(8 22 22 / 0.82) 100%);
}
.tile-photo:hover img { transform: scale(1.04); }
.tile-body { position: relative; z-index: 1; max-width: 32em; }
.tile-body p { color: rgb(244 248 248 / 0.88); }

.tile-accent { background: var(--accent); color: var(--on-accent); }
.tile-accent p { opacity: .9; }
.tile-plain { background: var(--surface); border: 1px solid var(--line); }
.tile-plain p { color: var(--muted); max-width: 34em; }
.tile-icon { font-size: 36px; margin-bottom: auto; padding-bottom: 28px; }
.tile-plain .tile-icon { color: var(--accent); }

/* ---------- 비전 ---------- */
.vision-band {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f4f8f8;
}
.vision-band > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.vision-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(6 22 21 / 0.85) 0%, rgb(6 22 21 / 0.5) 55%, rgb(6 22 21 / 0.12) 100%);
}
.vision-copy { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 88px; }
.vision-copy h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 750; max-width: 16em; }
.vision-copy p { margin-top: 20px; max-width: 30em; font-size: 18px; color: rgb(244 248 248 / 0.88); }

.roadmap { padding-top: 112px; padding-bottom: 112px; }
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.3fr;
  gap: 0;
  position: relative;
}
.steps li {
  padding: 36px 32px 0 0;
  border-top: 2px solid var(--line);
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -7px; left: 0;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.steps li:first-child { border-top-color: var(--accent); }
.steps li:first-child::before { background: var(--accent); }
.step-when { font-size: 14px; font-weight: 600; color: var(--accent); }
.steps h3 { margin-top: 6px; font-size: 26px; font-weight: 700; }
.steps p { margin-top: 10px; color: var(--muted); max-width: 22em; }

/* ---------- 문의 ---------- */
.contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.contact-info > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); max-width: 30em; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.contact-list i {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  flex: none;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px;
  display: grid;
  gap: 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 14px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.field-check .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }

.hidden-field { position: absolute; left: -9999px; }
.form-status { font-size: 15px; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--accent); font-weight: 600; }
.form-status.is-error { color: var(--danger); }

/* ---------- 푸터 ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px 64px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.footer-info { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.sep { display: inline-block; width: 1px; height: 11px; background: var(--line); margin: 0 10px; vertical-align: middle; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- 등장 애니메이션 (움직임 줄이기 설정 존중) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-photo img { transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .hero-grid, .about-grid, .contact-grid { gap: 48px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .tile-lg { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .tile-accent, .tile-tall { grid-column: auto; grid-row: auto; }
  .tile-plain { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 18px; height: 48px; }

  .section, .roadmap { padding-top: 80px; padding-bottom: 80px; }
  .hero { padding: 40px 0 72px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media img:last-child { margin-top: 48px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 36px 32px; border-top: 0; border-left: 2px solid var(--line); }
  .steps li:first-child { border-left-color: var(--accent); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 4px; left: -7px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(25px, 7.1vw, 34px); }
  .bento { grid-template-columns: 1fr; }
  .tile { padding: 26px; min-height: 240px; }
  .tile-lg { min-height: 320px; }
  .tile-tall { min-height: 320px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .vision-band { min-height: 480px; }
  .vision-band::after { background: linear-gradient(180deg, rgb(6 22 21 / 0.2) 0%, rgb(6 22 21 / 0.8) 70%); }
  .hero-actions .btn { flex: 1 1 auto; }
  .sep { display: block; height: 0; margin: 0; }
}
