/* ============ MAECHULUTION — components & sections ============ */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 92px;
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-1);
  height: 72px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .12rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand .ko { font-size: 2.55rem; line-height: 1; }
.brand .en {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--muted);
  text-transform: uppercase;
}
.site-header.is-stuck .brand .ko { font-size: 2.1rem; }
.site-header.is-stuck .brand .en { font-size: .8rem; }
.brand .dot { color: var(--blue); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: .4em;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--blue-700); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn { padding: .7em 1.3em; font-size: .92rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display:block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 92px;
  overflow: hidden;
}
.hero::before {
  /* faint sky glow upper-right */
  content: "";
  position: absolute;
  top: -28%; right: -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 50% 50%, var(--blue-tint) 0%, rgba(255,255,255,0) 62%);
  z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 {
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub {
  font-size: clamp(1.05rem, .9rem + .7vw, 1.45rem);
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 46rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem;
  margin-top: .4rem; color: var(--muted); font-size: .92rem; font-weight: 500;
}
.hero-meta .pip { display:inline-flex; align-items:center; gap:.5rem; }
.hero-meta .pip::before { content:""; width:7px;height:7px;border-radius:50%; background: var(--blue); }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 2rem;
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .line { width: 1px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content:""; position:absolute; inset:0; background: var(--blue);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0%{transform:translateY(-100%)} 55%,100%{transform:translateY(100%)} }
@media (prefers-reduced-motion: reduce){ .scroll-cue .line::after{ animation:none } }

/* ---------- Intro (section 2) ---------- */
.intro { background: var(--bg); }
.intro-eng {
  font-size: var(--step-h-eng);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.intro-eng em { font-style: normal; color: var(--blue); }
.intro-body {
  margin-top: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}
.intro-body .lead {
  font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  text-wrap: pretty;
}
.intro-body .desc { color: var(--muted); text-wrap: pretty; }
@media (max-width: 760px){ .intro-body { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Differentiators (section 3) ---------- */
.diff { background: var(--bg-soft); }
.sec-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 {
  font-size: var(--step-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 1rem;
  text-wrap: balance;
}
.sec-head p { margin-top: 1rem; color: var(--muted); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.diff-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.diff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.diff-card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue-700);
}
.diff-card .ic svg { width: 26px; height: 26px; }
.diff-card .no { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.diff-card h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
@media (max-width: 980px){ .diff-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .diff-grid { grid-template-columns: 1fr; } }

/* ---------- Numbers (section 4) ---------- */
.numbers { background: var(--bg); }
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.num-item { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.num-val {
  font-size: var(--step-num);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline;
}
.num-val .suffix { color: var(--ink); font-size: .42em; margin-left: .12em; }
.num-label { margin-top: .9rem; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 760px){ .num-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Services (section 5) ---------- */
.services { background: var(--bg-soft); }
.svc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1rem,2vw,1.6rem); }
.svc-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc-card::after {
  content:""; position:absolute; left:0; top:0; height:100%; width:4px;
  background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.svc-card:hover::after { transform: scaleY(1); }
.svc-top { display:flex; align-items:flex-start; justify-content: space-between; gap: 1rem; }
.svc-ic { width: 48px; height: 48px; color: var(--blue-700); }
.svc-ic svg { width: 100%; height: 100%; }
.svc-no { font-size: .85rem; font-weight: 700; color: var(--line-strong); letter-spacing:.1em; }
.svc-card h3 { font-size: 1.4rem; font-weight: 700; letter-spacing:-0.025em; margin-top: 1.6rem; line-height:1.3; }
.svc-card p { margin-top: .7rem; color: var(--muted); }
.svc-more {
  margin-top: 1.6rem; display:inline-flex; align-items:center; gap:.5rem;
  font-weight:600; font-size:.95rem; color: var(--blue-700);
}
.svc-more svg { width: 1.05em; height:1.05em; transition: transform .3s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(5px); }
@media (max-width: 720px){ .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Process (section 6) ---------- */
.process { background: var(--bg); }
.proc-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.proc-step {
  position: relative;
  padding: clamp(1.4rem,2.5vw,2rem) clamp(1rem,2vw,1.8rem);
}
.proc-step:not(:last-child)::after {
  content:""; position:absolute; right:0; top: 2.2rem; bottom: 2.2rem; width:1px; background: var(--line);
}
.proc-step .step-no {
  display:inline-grid; place-items:center;
  width: 46px; height:46px; border-radius:50%;
  border: 1.5px solid var(--blue); color: var(--blue-700);
  font-weight:800; font-size:1.05rem; margin-bottom: 1.4rem;
  font-variant-numeric: tabular-nums;
}
.proc-step .tag { font-size:.74rem; font-weight:700; letter-spacing:.14em; color: var(--muted); text-transform: uppercase; }
.proc-step h3 { font-size: 1.22rem; font-weight:700; letter-spacing:-0.02em; margin-top:.5rem; line-height:1.3; }
.proc-step p { margin-top:.6rem; color: var(--muted); font-size:.96rem; }
@media (max-width: 860px){
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-step:nth-child(2)::after{ display:none; }
}
@media (max-width: 480px){
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step::after{ display:none !important; }
  .proc-step { border-top: 1px solid var(--line); }
}

/* ---------- Core systems (section 7) ---------- */
.systems { background: var(--ink); color: #fff; }
.systems .kicker { color: var(--blue); }
.systems .sec-head h2 { color:#fff; }
.systems .sec-head p { color: rgba(255,255,255,.6); }
.sys-list { display:grid; grid-template-columns: repeat(2,1fr); gap: clamp(.8rem,2vw,1.4rem); }
.sys-item {
  display:flex; gap: 1.3rem; align-items:flex-start;
  padding: clamp(1.4rem,2.4vw,2rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.sys-item:hover { background: rgba(0,183,255,.08); border-color: rgba(0,183,255,.45); transform: translateY(-4px); }
.sys-item .sys-no {
  font-size: .95rem; font-weight:800; color: var(--blue);
  font-variant-numeric: tabular-nums; padding-top: .15rem;
}
.sys-item h3 { font-size: 1.16rem; font-weight: 650; letter-spacing:-0.02em; line-height:1.4; }
.sys-item p { margin-top:.4rem; color: rgba(255,255,255,.55); font-size:.92rem; }
@media (max-width:720px){ .sys-list { grid-template-columns:1fr; } }

/* ---------- Fields / chips (section 8) ---------- */
.fields { background: var(--bg); }
.field-block + .field-block { margin-top: clamp(2rem,4vw,3rem); }
.field-block .fb-label {
  display:flex; align-items:center; gap:1rem;
  font-size:.84rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--muted);
  margin-bottom: 1.3rem;
}
.field-block .fb-label::after { content:""; flex:1; height:1px; background: var(--line); }
.chips { display:flex; flex-wrap:wrap; gap:.7rem; }
.chip {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.7em 1.25em; border-radius:999px;
  border:1.5px solid var(--line-strong);
  font-weight:600; font-size:1rem; color: var(--ink-soft);
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue-700); background: var(--blue-tint); transform: translateY(-2px); }
.chip .dot { width:6px;height:6px;border-radius:50%; background: var(--blue); }

/* ---- platform chips with brand logos ---- */
.chip--logo { gap: .55em; padding: .6em 1.15em; }
.chip--logo:hover { color: var(--ink); background: var(--bg); }
.plogo-ic { width: 22px; height: 22px; flex: none; display: block; }
.plogo-ic--wide { width: 31px; }
.plogo-wm { font-weight: 800; font-size: .98rem; letter-spacing: -0.02em; }
.plogo-sub { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }
.plogo-x { color: var(--line-strong); font-weight: 700; margin: 0 -.05em; }

/* ---- client logo wall (업종) ---- */
.logo-wall {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .8rem;
}
.logo-cell {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 7;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.logo-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.logo-cell img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .35s, opacity .35s;
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }
/* staggered fade-up once the block reveals */
.field-block.is-in .logo-cell {
  animation: logoIn .55s var(--ease) backwards;
  animation-delay: calc(var(--li, 0) * 38ms + 180ms);
}
@keyframes logoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.no-motion .field-block.is-in .logo-cell { animation: none; }
@media (prefers-reduced-motion: reduce) { .field-block.is-in .logo-cell { animation: none; } }

@media (max-width: 760px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 460px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Launch CTA (section 9) ---------- */
.launch { padding-block: clamp(4rem,8vw,7rem); }
.launch .panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 34px);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  color:#fff;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.6rem, 6vw, 6rem);
  text-align:center;
  box-shadow: var(--shadow-blue);
}
.launch .panel::before, .launch .panel::after {
  content:""; position:absolute; border-radius:50%; pointer-events:none;
  background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
}
.launch .panel::before { width: 460px; height:460px; top:-180px; left:-120px; }
.launch .panel::after  { width: 520px; height:520px; bottom:-240px; right:-140px; }
.launch .badge {
  display:inline-flex; align-items:center; gap:.55rem;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  border:1px solid rgba(255,255,255,.3);
  padding:.55em 1.1em; border-radius:999px;
  font-size:.84rem; font-weight:700; letter-spacing:.04em;
  position: relative; z-index:1;
}
.launch .badge .live { width:8px;height:8px;border-radius:50%; background:#fff; box-shadow:0 0 0 0 rgba(255,255,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.6)} 70%{box-shadow:0 0 0 12px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }
.launch h2 {
  position:relative; z-index:1;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 4.2rem);
  font-weight:800; letter-spacing:-0.035em; line-height:1.08;
  margin-top: 1.6rem; text-wrap: balance;
}
.launch h2 .hl { color:#fff; -webkit-text-stroke: 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-underline-offset: 8px; text-decoration-thickness: 3px; }
.launch p.sub { position:relative; z-index:1; margin: 1.3rem auto 0; max-width: 44ch; font-size: clamp(1.02rem,.95rem+.5vw,1.3rem); color: rgba(255,255,255,.9); font-weight:500; }
.launch .cta { position:relative; z-index:1; margin-top: 2.4rem; display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); padding-block: clamp(3.5rem,6vw,5rem); border-top: 1px solid var(--line); }
.foot-grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.foot-brand .brand { font-size:1.1rem; }
.foot-brand .brand .ko { font-size: 1.5rem; }
.foot-brand p { margin-top:1rem; color: var(--muted); max-width: 30ch; font-size:.95rem; }
.foot-col h4 { font-size:.8rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); margin-bottom:1.1rem; }
.foot-col ul { display:grid; gap:.7rem; }
.foot-col a, .foot-col li { color: var(--ink-soft); font-size:.98rem; }
.foot-col a:hover { color: var(--blue-700); }
.foot-contact dt { font-size:.78rem; color: var(--muted); letter-spacing:.04em; }
.foot-contact dd { margin: .15rem 0 .9rem; font-weight:600; color: var(--ink); }
.foot-contact dd a:hover { color: var(--blue-700); }
.foot-bottom {
  margin-top: clamp(2.5rem,5vw,3.5rem); padding-top:1.6rem; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center;
  color: var(--muted); font-size:.86rem;
}
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- mobile nav ---------- */
@media (max-width: 880px){
  .nav-links, .nav .btn { display:none; }
  .nav-toggle { display:block; }
  .nav-links.open {
    display:flex; flex-direction:column; gap:0;
    position:fixed; inset:72px 0 auto 0; background:#fff;
    padding: 1rem var(--gutter) 1.6rem; box-shadow: var(--shadow-2);
  }
  .nav-links.open a { padding: 1rem 0; border-bottom:1px solid var(--line); }
  .nav-links.open a::after { display:none; }
}

/* ---------- 홈 문의게시판 (리스트) ---------- */
.home-qna { padding-block: clamp(3.4rem, 6vw, 5.2rem); background: var(--bg-soft); }
.hq-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.hq-head .kicker { margin-bottom: .2rem; }
.hq-head h2 { font-size: var(--step-h1); font-weight: 800; letter-spacing: -0.03em; margin-top: .6rem; }
.hq-sub { color: var(--muted); margin-top: .55rem; text-wrap: pretty; }
.hq-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hq-actions .btn { padding: .72em 1.3em; font-size: .95rem; }

.hq-table {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.hq-row {
  display: grid; grid-template-columns: 70px 1fr 110px 110px 96px;
  align-items: center; gap: .5rem; padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.hq-row:last-child { border-bottom: 0; }
.hq-row--head { background: var(--bg-soft); font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.hq-c { min-width: 0; }
.hq-c--no { color: var(--muted); font-variant-numeric: tabular-nums; }
.hq-c--date { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.hq-c--author { color: var(--ink-soft); font-size: .92rem; }
.hq-item { cursor: pointer; transition: background .2s var(--ease); }
.hq-item:hover { background: var(--blue-tint); }
.hq-item .hq-c--title { display: flex; align-items: center; gap: .45em; font-weight: 600; color: var(--ink); }
.hq-title-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-item .lock { width: 1em; height: 1em; flex: 0 0 auto; color: #C99A12; }
.hq-cat { color: var(--muted); font-weight: 500; font-size: .86rem; flex: 0 0 auto; }
.hq-badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .72em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.hq-badge--pending { background: #EEF1F4; color: #6B727B; }
.hq-badge--answered { background: #E3F6EC; color: #1E9E5A; }
.hq-empty { padding: 2.6rem 1rem; text-align: center; color: var(--muted); }

@media (max-width: 720px){
  .hq-row { grid-template-columns: 44px 1fr 84px; }
  .hq-c--author, .hq-c--date, .hq-cat { display: none; }
  .hq-row--head .hq-c--author, .hq-row--head .hq-c--date { display: none; }
  .hq-item .hq-c--status { justify-self: end; }
}
