/* ─────────────────────────────────────────────
   Encall AI — company site
   Brand: lime #D7FF3C · logo orange #F26A21 · warm gray
   ───────────────────────────────────────────── */
:root {
  --bg: #0c0c0d;
  --bg-2: #121214;
  --bg-3: #19191c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededE8;
  --text-2: #b9b9b2;
  --muted: #86867f;
  --lime: #d7ff3c;
  --lime-ink: #101204;
  --lime-soft: rgba(215, 255, 60, 0.12);
  --orange: #f26a21;
  --orange-soft: rgba(242, 106, 33, 0.14);
  --gray: #8a8a85;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Manrope", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-kr: "Noto Sans KR", "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --container: 1200px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--lime-ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #e4ff73; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-outline { background: rgba(255,255,255,.02); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }

/* ───────── Announcement ───────── */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 38px; padding: 8px 16px;
  background: #13160a; border-bottom: 1px solid rgba(215,255,60,.12);
  font-size: 13px; color: var(--text-2); text-align: center;
}
.announce a { color: var(--lime); font-weight: 700; white-space: nowrap; }
/* the items share one spot and slide in turn */
.announce-track { display: grid; min-width: 0; }
.announce .announce-item {
  grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0;
  color: var(--text-2); font-weight: 500; white-space: normal;
  opacity: 0; transform: translateY(70%); pointer-events: none; visibility: hidden;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s;
}
.announce .announce-item.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.announce .announce-item.is-out { transform: translateY(-70%); }
.announce-tag { flex: none; padding: 1px 8px; border: 1px solid rgba(215,255,60,.35); border-radius: 999px; font: 600 11px var(--font-kr); color: var(--lime); }
.announce-text { min-width: 0; }
.announce-more { flex: none; color: var(--lime); font-weight: 700; white-space: nowrap; }
.announce-item:hover .announce-text { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .announce .announce-item { transition: none; } }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: var(--nav-h); padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px));
  background: rgba(12,12,13,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { display: block; height: 34px; width: auto; }
.footer .brand-logo { height: 30px; }
.brand-logo.on-light { display: none; }
html[data-theme="light"] .brand-logo.on-dark { display: none; }
html[data-theme="light"] .brand-logo.on-light { display: block; }
.nav-links { display: flex; gap: 28px; margin-left: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-menu-cta { display: none; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--lime); border-radius: 2px; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-util { display: flex; gap: 8px; margin-left: -20px; }             /* sits right after the CTA buttons */
@media (min-width: 1520px) {
  /* wide screens: free space beside the 1200px column, so the pair moves to the bar's right edge */
  .nav-util { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); margin: 0; }
}
.nav-burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: none; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .2s; }
.nav-burger span:first-child { top: 15px; } .nav-burger span:last-child { top: 23px; }
.nav.open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ───────── Hero ───────── */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h) - 38px); min-height: calc(100svh - var(--nav-h) - 38px);
  display: flex; align-items: center; overflow: hidden;
  margin: 12px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 70% 40%, #17181a 0%, #0b0b0c 70%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.7) 34%, rgba(10,10,11,0) 62%),
    linear-gradient(0deg, rgba(10,10,11,.75) 0%, rgba(10,10,11,0) 30%);
}
@media (max-width: 999px), (orientation: portrait) {
  .hero { align-items: flex-end; }
  .hero-video { object-position: center top; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,10,11,.97) 0%, rgba(10,10,11,.85) 38%, rgba(10,10,11,0) 62%); }
  .hero-inner { padding-bottom: 88px; }
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin: 0 auto; padding: 96px 40px 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--lime); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--lime); animation: ping 2s ease-out infinite; }
@keyframes ping { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.hero-title {
  margin: 0; font-family: var(--font-kr); font-weight: 800;
  font-size: clamp(36px, 5.6vw, 76px); line-height: 1.12; letter-spacing: -.035em; max-width: 14em;
}
.hero-title em { font-style: normal; color: var(--lime); }
.hero-lede { margin: 26px 0 0; font-size: clamp(16px, 1.45vw, 20px); font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.hero-sub { margin: 10px 0 0; max-width: 40em; font-size: clamp(15px, 1.2vw, 17px); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions.center { justify-content: center; }
.scroll-cue {
  position: absolute; right: 28px; bottom: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.scroll-cue span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ───────── Strip ───────── */
.strip { overflow: hidden; border-block: 1px solid var(--line); margin-top: 48px; padding: 18px 0; }
.strip-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.strip-track i { font-style: normal; color: var(--orange); font-size: 9px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
.section { padding: 128px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--lime); background: var(--lime-soft); border: 1px solid rgba(215,255,60,.25); }
.display { margin: 22px auto 0; font-family: var(--font-kr); font-weight: 800; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.18; letter-spacing: -.03em; }
.lead { margin: 22px auto 0; max-width: 40em; color: var(--text-2); font-size: clamp(15px, 1.25vw, 18px); }
.h2 { margin: 18px 0 0; font-family: var(--font-kr); font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.03em; }
.h2 em { font-style: normal; color: var(--lime); }
.body { margin: 22px 0 0; color: var(--text-2); font-size: 16.5px; max-width: 34em; }
.body.narrow { max-width: 44em; }
.sol-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.sol-tag b { display: grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--orange-soft); color: var(--orange); font-weight: 500; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── Hub diagram ───────── */
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* cards */
.sol-cards { margin-top: 56px; }
.card-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.sol-note { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 28px 0 0; color: var(--text-2); font-size: 14.5px; font-family: var(--font-kr); }
.sol-note span { width: 18px; height: 1px; background: var(--lime); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; min-height: 260px; border-radius: var(--radius-lg);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(215,255,60,.4); transform: translateY(-3px); background: #151517; }
.card-no { font-family: var(--mono); font-size: 12px; color: var(--orange); }
.card h3 { margin: 4px 0 0; font-family: var(--font-kr); font-size: 21px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card-more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--lime); }

/* ───────── Split layout ───────── */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.reverse .split-text { order: 2; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15px; }
.checks li b { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 9px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.ref-note { margin: 28px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }

/* panels */
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, #141416, #0f0f10); padding: 22px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--text-2); }
.panel-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; }

/* edge panel */
@keyframes flow { to { left: 100%; } }

/* ───────── Twin ───────── */
.sol-head { max-width: 860px; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.steps li { position: relative; padding: 26px 24px 28px; background: var(--bg-2); transition: background .3s; }
.steps li:hover { background: #17171a; }
.steps li::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, var(--lime), transparent); transform-origin: left; transform: scaleX(0); transition: transform .6s ease; }
.steps.in li::after { transform: scaleX(1); }
.steps.in li:nth-child(2)::after { transition-delay: .15s; } .steps.in li:nth-child(3)::after { transition-delay: .3s; } .steps.in li:nth-child(4)::after { transition-delay: .45s; }
.step-no { font-family: var(--mono); font-size: 12px; color: var(--orange); }
.steps h4 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -.01em; }
.steps p { margin: 0; font-size: 14.5px; color: var(--text-2); font-family: var(--font-kr); }

.twin-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-top: 16px; }

.case { position: relative; padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(215,255,60,.22); background: radial-gradient(120% 80% at 100% 0%, rgba(215,255,60,.08), transparent 55%), var(--bg-2); display: flex; flex-direction: column; }
.case-logos { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.case-enc { color: var(--text); } .case-x { color: var(--muted); font-weight: 400; } .case-veo { color: #ff4a4a; letter-spacing: .04em; }
.case .case-k { display: block; margin-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--lime); }
.case h3 { margin: 8px 0 0; font-family: var(--font-kr); font-size: 26px; letter-spacing: -.02em; }
.case p { margin: 12px 0 0; color: var(--text-2); font-size: 15px; font-family: var(--font-kr); }
.case-next { margin-top: auto; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.case-next .case-k { margin-top: 22px; color: var(--muted); }
.case-next ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-kr); font-weight: 600; }
.case-next li { display: flex; align-items: center; gap: 10px; }
.case-next li i { width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }

/* ───────── HPC ───────── */

/* ───────── Desk ───────── */
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ───────── Products ───────── */
.product { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; margin-top: 72px; }
.product.reverse { grid-template-columns: 1fr 1.35fr; }
.product.reverse .product-shot { order: 2; }
.product-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0f0f10; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.02); transition: transform .4s ease; }
.product:hover .product-shot { transform: translateY(-4px); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #18181b; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #333338; }
.shot-bar i:first-child { background: var(--orange); opacity: .8; }
.shot-bar span { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.shot-view { position: relative; aspect-ratio: 16 / 10; background:
  radial-gradient(60% 60% at 70% 30%, rgba(215,255,60,.10), transparent 60%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 28px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 28px), #0e0e10; }
.shot-view::before { content: attr(data-fallback); position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: clamp(22px, 3vw, 40px); letter-spacing: -.02em; color: rgba(255,255,255,.18); }
.shot-view img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.product-where { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--lime-soft); border: 1px solid rgba(215,255,60,.28); color: var(--lime); font-size: 13px; font-weight: 700; font-family: var(--font-kr); }
.product-where i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 2s infinite; }
.product-text h3 { margin: 18px 0 0; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.03em; }
.product-sub { margin: 4px 0 0; color: var(--muted); font-size: 18px; font-family: var(--font-kr); }
.product-text > p:not(.product-sub) { margin: 18px 0 0; color: var(--text-2); font-family: var(--font-kr); font-size: 15.5px; max-width: 30em; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.products .sol-head { max-width: 760px; }
.products .sol-head .body { margin-top: 18px; }
.product-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.product-index a { display: flex; flex-direction: column; min-height: 168px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); transition: border-color .2s, transform .2s, background .2s; }
.product-index a:hover { transform: translateY(-3px); border-color: var(--lime); background: var(--bg-3); }
.product-index a > span { color: var(--orange); font: 500 11px var(--mono); letter-spacing: .11em; }
.product-index b { margin-top: 14px; font-size: 24px; letter-spacing: -.025em; line-height: 1.2; }
.product-index small { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; color: var(--text-2); font-size: 13px; }
.product-index small span { color: var(--lime); font-size: 18px; }
.product { scroll-margin-top: calc(var(--nav-h) + 24px); padding-top: 20px; border-top: 1px solid var(--line); }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; list-style: none; }
.product-features li { padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--bg-3); font: 600 12px var(--font-kr); }
.product-caption { margin-top: 12px !important; color: var(--muted) !important; font-size: 12px !important; }
.shot-placeholder::after { content: "제품 화면 준비 중"; position: absolute; right: 18px; bottom: 16px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; color: #d8d8d0; background: rgba(0,0,0,.6); font-size: 11px; }
.shot-placeholder:has(img)::after { display: none; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text); font-size: 13px; font-weight: 700; }
.theme-toggle:hover { border-color: var(--lime); }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text); font: 700 13px var(--mono); letter-spacing: .06em; }
.lang-switch:hover { border-color: var(--lime); color: var(--lime); }
.lang-switch-mobile { display: none; margin-left: auto; }
.theme-toggle-mobile { display: none; margin-left: auto; }

html[data-theme="light"] { color-scheme: light; --bg: #f5f5ef; --bg-2: #fff; --bg-3: #eeeee8; --line: rgba(22,25,16,.11); --line-2: rgba(22,25,16,.2); --text: #20231c; --text-2: #4d5148; --muted: #686d62; --lime: #8da900; --lime-ink: #111500; --lime-soft: rgba(141,169,0,.12); --orange: #c84f0c; --orange-soft: rgba(200,79,12,.1); --gray: #64685e; }
html[data-theme="light"] .btn-lime, html[data-theme="light"] .chat-fab { background: #d7ff3c; color: #101204; }
html[data-theme="light"] .announce { background: #ecf2d8; border-color: #d9e5b7; }
html[data-theme="light"] .announce-tag { border-color: rgba(141,169,0,.45); }
html[data-theme="light"] .nav { background: rgba(250,250,245,.94); }
html[data-theme="light"] .nav.open .nav-links { background: var(--bg); }
html[data-theme="light"] .hero { color: #ededE8; }
html[data-theme="light"] .hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
html[data-theme="light"] .hero .btn-lime { background: #d7ff3c; color: #101204; }
html[data-theme="light"] .card, html[data-theme="light"] .panel, html[data-theme="light"] .case { box-shadow: 0 14px 36px rgba(25,32,12,.06); }
html[data-theme="light"] .product-shot { box-shadow: 0 22px 60px -30px rgba(0,0,0,.35); }
html[data-theme="light"] .product-where { border-color: rgba(141,169,0,.35); }

/* ───────── CTA ───────── */
.cta { padding: 140px 0; margin: 0 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); background:
  radial-gradient(60% 80% at 50% 120%, rgba(215,255,60,.16), transparent 60%),
  radial-gradient(40% 50% at 10% 0%, rgba(242,106,33,.10), transparent 60%), var(--bg-2); }

/* ───────── Footer ───────── */
.footer { padding: 72px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-inner p { margin: 12px 0 0; font-size: 14px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: grid; gap: 10px; align-content: start; font-size: 14px; color: var(--text-2); }
.footer-cols a:hover { color: var(--lime); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--lime); }

/* ───────── Chat widget ───────── */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid rgba(215,255,60,.5); background: var(--lime); color: var(--lime-ink);
  font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(215,255,60,.45);
  transition: transform .2s, opacity .2s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 20px; height: 20px; fill: var(--lime-ink); }
.chat-fab.hide { opacity: 0; pointer-events: none; transform: scale(.9); }
/* the panel follows the site theme through its own tokens (dark by default, white in the light theme) */
.chat {
  --c-bg: #141416; --c-text: #ededE8; --c-muted: #8f8f88; --c-soft: #222225; --c-line: rgba(255,255,255,.1);
  --c-input: rgba(255,255,255,.28); --c-btn: #2a2a2e; --c-btn-ink: #8f8f88; --c-ready: #d7ff3c; --c-ready-ink: #101204;
  --c-link-hover: #d7ff3c; --c-scroll: rgba(255,255,255,.16); --c-scroll-hover: rgba(255,255,255,.3);
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 420px; max-width: calc(100vw - 32px); height: min(880px, calc(100svh - 40px));
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-line);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.65);
  font-family: var(--font-kr);
  transform-origin: bottom right; animation: chatIn .25s cubic-bezier(.2,.8,.2,1);
}
html[data-theme="light"] .chat {
  --c-bg: #fff; --c-text: #18181b; --c-muted: #8a8a90; --c-soft: #f1f1f2; --c-line: rgba(0,0,0,.08);
  --c-input: #18181b; --c-btn: #ececee; --c-btn-ink: #8a8a90; --c-ready: #18181b; --c-ready-ink: #d7ff3c;
  --c-link-hover: #5b7a00; --c-scroll: rgba(0,0,0,.16); --c-scroll-hover: rgba(0,0,0,.32);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.35);
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 18px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.chat-id { display: flex; align-items: center; gap: 10px; }
.chat-id b { font: 800 16px var(--font); letter-spacing: -.01em; }
.chat-id small { font-size: 14px; color: var(--c-muted); }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0c0c0d; box-shadow: inset 0 0 0 1px var(--c-line); }
.chat-avatar img { width: 22px; height: auto; }
.chat-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent; color: var(--c-text); }
.chat-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chat-close:hover { background: var(--c-soft); }

/* min-height: 0 lets the message list shrink inside the flex column, so it scrolls instead of growing */
.chat-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; }
.chat-body > * { flex: none; }
/* a thin rounded scrollbar in the panel's own colours (no arrow buttons) */
.chat-body::-webkit-scrollbar { width: 12px; }
.chat-body::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.chat-body::-webkit-scrollbar-thumb { background: var(--c-scroll); background-clip: padding-box; border: 4px solid transparent; border-radius: 999px; }
.chat-body::-webkit-scrollbar-thumb:hover { background-color: var(--c-scroll-hover); }
.chat-body::-webkit-scrollbar-button { display: none; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  .chat-body { scrollbar-width: thin; scrollbar-color: var(--c-scroll) transparent; }
}
.msg { font-size: 15px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg p + p { margin-top: 10px; }
.msg b { font-weight: 800; }
.msg a { color: var(--c-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.msg a:hover { color: var(--c-link-hover); }
.msg.bot { align-self: stretch; }
.msg ul, .msg ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.msg-card { display: grid; margin-top: 14px; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.msg .msg-card a { display: grid; grid-template-columns: 30px auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--c-line); text-decoration: none; font-weight: 500; color: var(--c-text); transition: background .15s; }
.msg .msg-card a:first-child { border-top: 0; }
.msg .msg-card a:hover { background: var(--c-soft); color: var(--c-text); }
.msg-card svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--c-soft); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.msg-card .lb { font-size: 13px; color: var(--c-muted); white-space: nowrap; }
.msg-card .vl { justify-self: end; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; text-align: right; }
.msg.me { align-self: flex-end; max-width: 82%; padding: 14px 18px; border-radius: 12px; background: var(--c-soft); white-space: pre-wrap; }
.msg.thinking { display: inline-flex; align-items: center; gap: 10px; font-style: italic; font-weight: 600; font-size: 14px; color: var(--c-muted); }
.msg.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); animation: blink 1.2s infinite; }

.chat-dock { flex: none; padding: 10px 18px 12px; background: var(--c-bg); border-top: 1px solid var(--c-line); }
/* shortcuts: icon buttons (the label is kept for screen readers); a tooltip names them on hover / keyboard focus */
.chat-quick { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chat-quick:empty { display: none; }
.chat-quick a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; border-radius: 8px;
  background: #d7ff3c; color: #101204; font: 600 13.5px var(--font-kr); transition: background .2s; }
.chat-quick a:hover { background: #c6ef24; }
.chat-quick svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-quick a:not(.dl) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the IR PDF download sits apart from the section shortcuts and keeps its short label: it is a file, not a jump */
.chat-quick a.dl { width: auto; padding: 0 12px; margin-left: auto; background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1.5px var(--c-input); }
.chat-quick a.dl:hover { background: var(--c-soft); }
/* narrow phones: a little less air so the five icons and the download share one row */
@media (max-width: 420px) {
  .chat-quick { gap: 4px; }
  .chat-quick a { width: 38px; }
  .chat-quick a.dl { width: auto; padding: 0 9px; }
}
@media (hover: hover) and (pointer: fine) {
  /* a speech bubble above its button; chat.js sets --tip-left so the bubble stays inside the panel,
     while the tail always points at the button */
  .chat-quick a { position: relative; }
  .chat-quick a::after {
    content: attr(data-tip); position: absolute; left: var(--tip-left, 0px); bottom: calc(100% + 9px); z-index: 2; width: max-content;
    padding: 6px 10px; border-radius: 6px; background: var(--c-text); color: var(--c-bg);
    font: 600 12px/1.4 var(--font-kr); white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  }
  .chat-quick a::before {
    content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); z-index: 2; margin-left: -6px;
    border: 6px solid transparent; border-bottom: 0; border-top-color: var(--c-text); pointer-events: none;
    opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  }
  .chat-quick a:hover::after, .chat-quick a:focus-visible::after,
  .chat-quick a:hover::before, .chat-quick a:focus-visible::before { opacity: 1; transform: none; }
}
.tip-measure { position: absolute; visibility: hidden; padding: 6px 10px; font: 600 12px/1.4 var(--font-kr); white-space: nowrap; }
.chat-form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--c-input); border-radius: 8px; background: var(--c-bg); transition: border-color .2s; }
.chat-form:focus-within { border-color: var(--c-ready); }
.chat-form input { flex: 1; min-width: 0; height: 44px; border: none; outline: none; background: transparent; font: 15px var(--font-kr); color: var(--c-text); }
.chat-form input::placeholder { color: var(--c-muted); }
.chat-form button { flex: none; width: 34px; height: 34px; border-radius: 6px; border: none; background: var(--c-btn); color: var(--c-btn-ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.chat-form button.ready { background: var(--c-ready); color: var(--c-ready-ink); }
.chat-form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--c-muted); text-align: center; }
.chat-note p { margin: 0; }
.chat-note a { color: inherit; text-decoration: underline; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-text { order: 0; }
  .twin-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .product.reverse { grid-template-columns: 1fr; }
  .product.reverse .product-shot { order: 0; }
}
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav-links, .nav-cta, .nav-util { display: none; }
  .lang-switch-mobile { display: inline-flex; }
  .theme-toggle-mobile { display: inline-flex; margin-left: 0; }
  .nav-burger { display: block; }
  /* backdrop-filter would make the fixed menu size itself to the bar, so it is dropped while open */
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: fixed; top: var(--menu-top, var(--nav-h)); left: 0; right: 0; bottom: 0; margin: 0;
    padding: 8px 20px max(24px, env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; font-size: 20px; font-weight: 700;
  }
  .nav.open .nav-links a { padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav.open .nav-links a.active::after { display: none; }
  .nav.open .nav-links a.active { color: var(--lime); }
  .nav.open .nav-links .nav-menu-cta { display: block; margin-top: auto; padding: 16px; border: 0; border-radius: 14px; background: #d7ff3c; color: #101204; text-align: center; font-size: 17px; }
  .cards-3 { grid-template-columns: 1fr; }
  .product-index { grid-template-columns: 1fr; }
  .product-index a { min-height: 116px; }
  .card { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 96px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .announce { font-size: 12px; justify-content: flex-start; text-align: left; }
  .announce-track { flex: 1; }
  .announce .announce-item { justify-content: flex-start; gap: 8px; }
  .announce-more { margin-left: auto; }
  .announce-tag { padding: 0 7px; font-size: 10.5px; }
  .announce-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .announce-more { font-size: 15px; }
  .hero { margin: 8px; min-height: 680px; }
  .hero .hero-inner { padding: 280px 20px 72px; }
  .scroll-cue { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { gap: 40px; }
  .cta { padding: 96px 0; margin: 0 8px; }
  /* phones: the chat takes the whole screen */
  .chat { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .chat-dock { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat-fab span { display: none; } .chat-fab { padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
html.menu-open, html.menu-open body { overflow: hidden; }
html.menu-open .chat-fab { display: none; }
@media (max-width: 640px) { html.chat-open, html.chat-open body { overflow: hidden; } }
/* phones: logo, language, theme and menu buttons share one row */
@media (max-width: 640px) {
  .nav { gap: 8px; }
  .brand-logo { height: 28px; }
  .lang-switch-mobile, .theme-toggle-mobile { height: 38px; min-width: 38px; padding: 0 10px; }
  .nav-burger { flex: none; }
}

