/* AI-ELEX brand site — shared styles */
:root {
  --ink: #16202a;
  --sub: #56616b;
  --mute: #8a939b;
  --line: #e2e6e9;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --brand: #0c7a55;
  --brand-dark: #085a3f;
  --brand-soft: #e7f3ed;
  --warn: #c8641e;
  --warn-soft: #fcf1e8;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Noto Sans KR", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: 0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
/* 일본어는 keep-all 제외 — 띄어쓰기가 없어 문장 전체가 한 덩어리가 되면서
   좁은 화면에서 줄바꿈이 안 되고 가로로 넘침 */
html[lang="ja"] body { word-break: normal; line-break: strict; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- review bar ---------- */
.review-bar {
  background: var(--ink); color: #cfd6db;
  font-size: 12px; text-align: center; padding: 6px 16px;
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; height: 72px; gap: 40px; }
.logo { font-family: var(--font-en); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--sub); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; font-family: var(--font-en); font-size: 12px; margin-right: 8px; }
.lang a { padding: 4px 8px; color: var(--mute); border-radius: 4px; }
.lang a.on { color: var(--ink); background: var(--bg-soft); font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 6px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s; cursor: pointer; white-space: nowrap;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { background: var(--brand-soft); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.arrow::after { content: "→"; font-family: var(--font-en); }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--brand); text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--brand); }
.h2 { font-size: 34px; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 17px; color: var(--sub); margin-top: 20px; max-width: 640px; }
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 50px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 18px; color: var(--sub); margin: 28px 0 40px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative; background: var(--bg-soft); border-radius: 16px;
  aspect-ratio: 1 / 0.92; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-visual img { width: 62%; filter: drop-shadow(0 24px 32px rgba(22,32,42,.22)); }
.hero-visual .tag {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font-size: 13px; box-shadow: 0 6px 18px rgba(22,32,42,.06);
}
.hero-visual .tag b { display: block; font-size: 12px; color: var(--mute); font-weight: 500; }
.hero-visual .tag.t1 { left: 24px; top: 28px; }
.hero-visual .tag.t2 { right: 24px; bottom: 32px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; }

.trust {
  margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust li { padding: 28px 24px; border-left: 1px solid var(--line); }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust strong { display: block; font-family: var(--font-en); font-size: 26px; font-weight: 700; line-height: 1.3; }
.trust strong small { font-size: 15px; font-weight: 600; margin-left: 2px; }
.trust span { font-size: 14px; color: var(--sub); }

/* ---------- flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px 28px;
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px;
  border-top: 1.5px solid var(--mute); border-right: 1.5px solid var(--mute);
  transform: translateY(-50%) rotate(45deg); z-index: 2;
}
.flow .num { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--mute); }
.flow h3 { font-size: 19px; margin: 8px 0 10px; }
.flow p { font-size: 14px; color: var(--sub); line-height: 1.7; }
.flow .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 18px; }
.flow .ico svg { width: 22px; height: 22px; stroke: var(--ink); }
.flow li.key { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow li.key p, .flow li.key .num { color: rgba(255,255,255,.8); }
.flow li.key .ico { background: rgba(255,255,255,.15); }
.flow li.key .ico svg { stroke: #fff; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.features li { padding: 40px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.features .ico { width: 40px; height: 40px; margin-bottom: 24px; }
.features .ico svg { width: 36px; height: 36px; stroke: var(--brand); }
.features h3 { font-size: 18px; margin-bottom: 10px; }
.features p { font-size: 14.5px; color: var(--sub); }

/* ---------- guide showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.checks { margin-top: 36px; display: grid; gap: 20px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 3px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c7a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks b { display: block; font-size: 16px; }
.checks span { font-size: 14.5px; color: var(--sub); }

.mock { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 48px rgba(22,32,42,.08); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.mock-top i { width: 9px; height: 9px; border-radius: 50%; background: #dde2e5; }
.mock-top em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--mute); font-family: var(--font-en); }
.mock-body { padding: 22px; display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.kpi small { display: block; font-size: 11.5px; color: var(--mute); }
.kpi b { font-family: var(--font-en); font-size: 20px; }
.kpi b small { display: inline; font-size: 12px; color: var(--sub); font-weight: 500; }
.chart { border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px 10px; }
.chart-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; border-bottom: 1px dashed var(--line); position: relative; }
.bars span { flex: 1; background: #cfe5da; border-radius: 3px 3px 0 0; }
.bars span.hi { background: var(--warn); }
.bars::after { content: "피크 기준"; position: absolute; left: 0; right: 0; top: 18px; border-top: 1px dashed var(--warn); font-size: 10px; color: var(--warn); text-align: right; line-height: 1.6; }
.alert { border: 1px solid #f0d3bd; background: var(--warn-soft); border-radius: 8px; padding: 14px 16px; }
.alert-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.alert-head .badge { font-size: 11px; background: var(--warn); color: #fff; border-radius: 4px; padding: 1px 7px; font-weight: 600; }
.alert-head time { margin-left: auto; font-size: 11.5px; color: var(--mute); font-weight: 400; font-family: var(--font-en); }
.alert ol { margin-top: 10px; padding-left: 0; counter-reset: s; display: grid; gap: 6px; }
.alert ol li { font-size: 13px; color: var(--ink); display: flex; gap: 8px; counter-increment: s; }
.alert ol li::before { content: counter(s); flex: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid #f0d3bd; font-size: 11px; display: grid; place-items: center; font-family: var(--font-en); margin-top: 1px; }

/* ---------- solutions ---------- */
.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sol { border: 1px solid var(--line); border-radius: 14px; padding: 44px 40px; display: flex; flex-direction: column; background: #fff; transition: border-color .2s, box-shadow .2s; }
.sol:hover { border-color: var(--brand); box-shadow: 0 12px 32px rgba(12,122,85,.08); }
.sol .for { font-size: 13px; color: var(--brand); font-weight: 600; }
.sol h3 { font-family: var(--font-en); font-size: 26px; margin: 4px 0 6px; }
.sol .config { font-size: 14px; color: var(--sub); padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.sol .config b { color: var(--ink); }
.sol ul { display: grid; gap: 10px; margin-bottom: 28px; }
.sol li { font-size: 15px; padding-left: 16px; position: relative; }
.sol li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 1.5px; background: var(--brand); }
.sol .fit { font-size: 13px; color: var(--mute); margin-bottom: 28px; }
.sol .more { margin-top: auto; font-size: 15px; font-weight: 600; display: inline-flex; gap: 8px; color: var(--brand); }

/* ---------- lineup ---------- */
.lineup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.model { background: #fff; border-radius: 14px; display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); }
.model .pic { background: linear-gradient(180deg, #eef2f1, #e2e8e6); display: grid; place-items: center; padding: 32px; }
.model .pic img { max-height: 230px; width: auto; filter: drop-shadow(0 14px 20px rgba(22,32,42,.2)); }
.model .txt { padding: 36px 32px; }
.model h3 { font-family: var(--font-en); font-size: 22px; }
.model .role { font-size: 14px; color: var(--brand); font-weight: 600; margin: 2px 0 14px; }
.model p { font-size: 14px; color: var(--sub); margin-bottom: 20px; }
.model dl { display: grid; grid-template-columns: 72px 1fr; gap: 8px 12px; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 16px; }
.model dt { color: var(--mute); }
.combo { margin-top: 24px; text-align: center; font-size: 15px; color: var(--sub); }
.combo b { color: var(--ink); }

/* ---------- case ---------- */
.case { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case-head { padding: 28px 40px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.case-head .label { font-size: 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 2px 8px; }
.case-head h3 { font-size: 18px; font-weight: 600; }
.case-nums { display: grid; grid-template-columns: repeat(3, 1fr); }
.case-nums li { padding: 44px 40px; border-left: 1px solid var(--line); }
.case-nums li:first-child { border-left: 0; }
.case-nums small { font-size: 14px; color: var(--sub); }
.case-nums b { display: block; font-size: 40px; font-weight: 700; line-height: 1.3; margin-top: 6px; color: var(--brand); letter-spacing: -0.01em; }
.case-nums b small { font-size: 18px; color: var(--ink); margin-left: 4px; font-weight: 600; }
.note { font-size: 12.5px; color: var(--mute); margin-top: 16px; }

/* ---------- install ---------- */
.merits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 72px; }
.merits li { border-top: 2px solid var(--ink); padding-top: 24px; }
.merits .n { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--brand); }
.merits h3 { font-size: 19px; margin: 6px 0 10px; }
.merits p { font-size: 14.5px; color: var(--sub); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.steps li { padding: 28px 22px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps .n { font-family: var(--font-en); font-size: 12px; color: var(--mute); font-weight: 600; letter-spacing: .08em; }
.steps h4 { font-size: 16px; margin: 4px 0 6px; }
.steps p { font-size: 13px; color: var(--sub); line-height: 1.65; }
.steps-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 16px; font-weight: 600; position: relative; display: flex; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-en); color: var(--brand); font-weight: 700; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 22px; font-weight: 300; color: var(--mute); font-family: var(--font-en); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px 28px; font-size: 15px; color: var(--sub); }

/* ---------- cta ---------- */
.cta { background: var(--brand); color: #fff; padding: 88px 0; }
.cta .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta h2 { font-size: 30px; line-height: 1.5; }
.cta p { color: rgba(255,255,255,.8); margin-top: 12px; font-size: 15.5px; }
.cta-actions { display: grid; gap: 12px; justify-items: end; }
.cta-actions .btn { width: 280px; }
.cta-tel { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ---------- footer ---------- */
.footer { background: #0f171e; color: #98a3ab; padding: 64px 0 40px; font-size: 13.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #25303a; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer h5 { color: #fff; font-size: 13.5px; margin-bottom: 14px; font-weight: 600; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.footer .cert { display: flex; gap: 8px; margin-top: 18px; }
.footer .cert span { border: 1px solid #34404b; border-radius: 4px; padding: 2px 10px; font-family: var(--font-en); font-size: 12px; color: #c3cbd1; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav, .header-right .btn-line { display: none; }
  .menu-btn { display: block; }
  .header .wrap { gap: 16px; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-grid, .showcase, .faq-grid, .cta .wrap { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:nth-child(2)::after { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .lineup, .solutions { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li:nth-child(4) { border-left: 0; }
  .steps li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cta-actions { justify-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .h2 { font-size: 25px; }
  .lead { font-size: 15.5px; }
  .lang { display: none; }
  .header-right .btn-primary { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li { padding: 20px 16px; }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow, .features, .merits, .case-nums { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .features li { padding: 32px 24px; }
  .model { grid-template-columns: 1fr; }
  .model .pic img { max-height: 180px; }
  .sol { padding: 32px 24px; }
  .case-head, .case-nums li { padding: 24px; }
  .case-nums li { border-left: 0; border-top: 1px solid var(--line); }
  .case-nums li:first-child { border-top: 0; }
  .case-nums b { font-size: 32px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: span 2; }
  .cta h2 { font-size: 24px; }
  .cta-actions .btn { width: 100%; }
  .cta-actions { justify-items: stretch; }
  .footer-top { grid-template-columns: 1fr; }
}
