/* ==========================================================================
   AILO Corporate C02 — 에이펙스 머티리얼즈
   원형 E 미니멀 타이포 + 벤토 · Pretendard + Manrope(eyebrow·숫자) · 코발트 1색(명도 단계) + 쿨그레이
   ========================================================================== */
:root {
  --ailo-bg: #ffffff;
  --ailo-fg: #121620;
  --ailo-muted: #4d5563;
  --ailo-line: rgba(18, 22, 32, .1);
  --ailo-accent: #1f4f8f;
  --ailo-accent-ink: #ffffff;
  --ailo-header-h: 84px;
  --ailo-eyebrow-size: 14px;
  --c02-gray: #f4f5f7;
  --c02-b1: #1f4f8f;
  --c02-b2: #3b6db0;
  --c02-b3: #e6edf7;
  --c02-en: "Manrope", var(--ailo-font);
  --c02-r: 14px;
}
body { font-size: 17px; }
.ailo-eyebrow { font-family: var(--c02-en); letter-spacing: .14em; }
.ailo-title { font-size: clamp(30px, 2.2vw + 16px, 50px); }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 100; height: var(--ailo-header-h); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--ailo-line); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .12); }
.hd__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--c02-en); font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.hd__logo b { font-weight: 500; color: var(--ailo-muted); margin-left: 2px; }
.hd__logo--light { color: #fff; }
.hd__logo--light b { color: rgba(255, 255, 255, .65); }
.hd__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ailo-accent); position: relative; }
.hd__mark::after { content: ""; position: absolute; inset: 6px; border-radius: 2px; background: #fff; transform: rotate(45deg) scale(.8); }
.hd__mega { flex: 1; justify-content: center; }
@media (min-width: 992px) { .hd__mega { display: flex; } }
.hd__util { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hd__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 15px; font-weight: 700; margin-right: 4px; }
.hd__cta:hover { color: #fff; background: #183f73; }
.mnav { background: #fff; }
.mnav__in { display: flex; flex-direction: column; padding: calc(var(--ailo-header-h) + 24px) var(--ailo-gutter) 40px; }
.mnav__in a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ailo-line); font-size: 22px; font-weight: 700; }
.mnav__in a i { font-size: 16px; color: var(--ailo-accent); }
.mnav__in .mnav__cta { justify-content: center; margin-top: 28px; border: 0; border-radius: 999px; background: var(--ailo-accent); color: #fff; font-size: 17px; }

/* ---------- 버튼 ---------- */
.btn-a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 700; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn-a--solid { background: var(--ailo-fg); color: #fff; }
.btn-a--solid:hover { background: var(--ailo-accent); color: #fff; }
.btn-a--line { border-color: rgba(18, 22, 32, .25); }
.btn-a--line:hover { border-color: var(--ailo-fg); }
.btn-a--white { background: #fff; color: var(--ailo-accent); }
.btn-a--white:hover { background: var(--c02-b3); color: var(--ailo-accent); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 7vw, 112px); }
.hero__top { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: end; padding-bottom: clamp(40px, 5vw, 72px); }
.hero__title { font-size: clamp(40px, 5.6vw + 8px, 96px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.hero__title .hl { color: var(--ailo-accent); }
.hero__aside p { font-size: clamp(17px, .3vw + 15px, 19px); line-height: 1.75; color: var(--ailo-muted); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__band { position: relative; margin: 0; height: clamp(320px, 42vw, 640px); overflow: hidden; }
.hero__band img { width: 100%; height: 100%; object-fit: cover; }
.hero__band::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.hero__band figcaption { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 1; display: flex; justify-content: space-between; gap: 16px; color: #fff; font-size: 15px; font-weight: 600; }
.hero__chips { font-family: var(--c02-en); letter-spacing: .06em; opacity: .88; }

/* ---------- 섹션 ---------- */
.sec { padding: clamp(72px, 8vw, 128px) 0; }
.sec--gray { background: var(--c02-gray); }
.sec__side { margin: 0; max-width: 28em; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(190px, auto); gap: 20px; }
.b-1 { grid-column: span 6; grid-row: span 2; }
.b-2 { grid-column: span 3; } .b-3 { grid-column: span 3; }
.b-4 { grid-column: span 3; } .b-5 { grid-column: span 3; }
.b-6, .b-7 { grid-column: span 6; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: clamp(22px, 2vw, 32px); border-radius: var(--c02-r); background: var(--c02-gray); overflow: hidden; isolation: isolate; }
.tile__k { font-family: var(--c02-en); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ailo-accent); }
.tile__h { display: block; font-size: clamp(22px, .8vw + 17px, 28px); font-weight: 800; letter-spacing: -.02em; }
.tile__p { display: block; margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--ailo-muted); }
.tile--photo { color: #fff; justify-content: flex-end; min-height: 420px; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ailo-ease); }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(8, 18, 36, .78)); }
.tile--photo .tile__k { color: rgba(255, 255, 255, .85); }
.tile--photo .tile__p { color: rgba(255, 255, 255, .86); max-width: 30em; }
.tile--photo:hover { color: #fff; }
.tile--photo:hover img { transform: scale(1.05); }
.tile--plain { background: #fff; border: 1px solid var(--ailo-line); padding-bottom: 72px; }
.tile--plain:hover { border-color: var(--ailo-accent); }
.tile__arrow { position: absolute; right: 28px; bottom: 28px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c02-b3); color: var(--ailo-accent); transition: transform .25s var(--ailo-ease); }
.tile--plain:hover .tile__arrow { transform: translateX(4px); }
.tile__num { font-family: var(--c02-en); font-size: clamp(48px, 3vw + 24px, 76px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tile__num small { font-family: var(--ailo-font); font-size: .3em; font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.tile--n1 { background: var(--c02-b1); color: #fff; }
.tile--n2 { background: var(--c02-b2); color: #fff; }
.tile--n1 .tile__k, .tile--n2 .tile__k { color: rgba(255, 255, 255, .85); }
.tile--n3 { background: var(--c02-b3); }
.bars { display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; }
.bars b { height: 10px; border-radius: 5px; background: rgba(31, 79, 143, .14); position: relative; overflow: hidden; }
.bars b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--c02-b1); }
.bars em { font-style: normal; font-family: var(--c02-en); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.tile--cert { background: #fff; border: 1px solid var(--ailo-line); }
.cert { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert li { display: grid; gap: 4px; font-size: 15px; color: var(--ailo-muted); padding-top: 14px; border-top: 1px solid var(--ailo-line); }
.cert b { font-family: var(--c02-en); font-size: clamp(18px, .6vw + 14px, 22px); font-weight: 800; color: var(--ailo-fg); }
@media (max-width: 575.98px) { .cert { grid-template-columns: 1fr; } }

/* Products */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { min-height: 44px; padding: 0 20px; border: 1px solid var(--ailo-line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ailo-muted); }
.filter button.is-on { background: var(--ailo-fg); border-color: var(--ailo-fg); color: #fff; }
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.prod[hidden] { display: none; }
.prod__img { overflow: hidden; border-radius: var(--c02-r); margin-bottom: 18px; background: #e3e6ea; }
.prod__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ailo-ease); }
.prod:hover img { transform: scale(1.05); }
.prod__cat { font-size: 14px; font-weight: 700; color: var(--ailo-accent); }
.prod h3 { font-size: 21px; font-weight: 700; margin: 4px 0 6px; }
.prod p { font-size: 16px; color: var(--ailo-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ailo-fg); }
.steps li { padding: 28px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--ailo-line); }
.steps__no { display: block; font-family: var(--c02-en); font-size: clamp(36px, 2vw + 20px, 52px); font-weight: 800; color: #b3c3da; line-height: 1; margin-bottom: 20px; }
.steps li:last-child .steps__no { color: var(--ailo-accent); }
.steps h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--ailo-muted); line-height: 1.65; }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news__item { display: flex; flex-direction: column; gap: 14px; min-height: 240px; padding: 28px; border-radius: var(--c02-r); background: #fff; transition: box-shadow .25s, transform .25s; }
.news__item:hover { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .14); transform: translateY(-3px); }
.news__cat { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--c02-b3); color: var(--ailo-accent); font-size: 14px; font-weight: 700; }
.news__item h3 { flex: 1; font-size: 20px; font-weight: 700; line-height: 1.45; }
.news__item time { font-family: var(--c02-en); font-size: 14px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }

/* Partners */
.partners { padding: 40px 0; border-block: 1px solid var(--ailo-line); }
.partners .ailo-wordmark { font-family: var(--c02-en); font-size: 22px; letter-spacing: .04em; }

/* Contact */
.cta { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(36px, 5vw, 72px); border-radius: calc(var(--c02-r) + 6px); background: var(--c02-b1); color: #fff; }
.cta .ailo-eyebrow { color: rgba(255, 255, 255, .8); }
.cta__txt h2 { font-size: clamp(30px, 2vw + 18px, 48px); font-weight: 800; line-height: 1.22; letter-spacing: -.03em; margin-bottom: 16px; }
.cta__txt > p { font-size: 17px; color: rgba(255, 255, 255, .85); }
.cta__txt ul { margin-top: 28px; display: grid; gap: 10px; font-size: 18px; font-weight: 600; }
.cta__txt i { width: 24px; opacity: .75; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.cta__form label { display: grid; gap: 8px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.cta__full { grid-column: 1 / -1; }
.cta__form input:not([type=checkbox]), .cta__form select, .cta__form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 16px; font-weight: 400; }
.cta__form select option { color: #111; }
.cta__form input:focus, .cta__form select:focus, .cta__form textarea:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .16); }
.cta__form .cta__agree { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cta__agree input { width: 18px; height: 18px; accent-color: #fff; }
.cta__form .btn-a { grid-column: 1 / -1; justify-self: start; }

/* Footer */
.ft { background: #15181f; color: #b5bbc6; padding: 64px 0 48px; font-size: 15px; }
.ft__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ft__nav a:hover, .ft__nav strong { color: #fff; }
.ft__info { line-height: 1.9; }
.ft__copy { margin-top: 16px; font-size: 14px; color: #8a909c; }

/* ---------- 반응형 ---------- */
@media (max-width: 1199.98px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .b-1 { grid-column: span 6; grid-row: auto; }
  .b-2, .b-3, .b-4, .b-5 { grid-column: span 3; }
  .b-6, .b-7 { grid-column: span 6; }
}
@media (max-width: 991.98px) {
  :root { --ailo-header-h: 68px; }
  .hd .ailo-sitemap-btn, .hd__cta { display: none; }
  .hero__top { grid-template-columns: 1fr; align-items: start; }
  .prods { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .news { grid-template-columns: 1fr; }
  .news__item { min-height: 0; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .b-2, .b-3, .b-4, .b-5 { grid-column: span 6; }
  .tile--photo { min-height: 360px; }
  .hero__band figcaption { flex-direction: column; gap: 4px; }
  .prods { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--ailo-line); }
  .bars li { grid-template-columns: 76px 1fr 44px; gap: 10px; }
  .cta__form { grid-template-columns: 1fr; }
  .cta__form .btn-a { width: 100%; }
}
