/* ============================================================
   BlueTag — 회사 소개 + 모듈 판매 + AI 챗봇
   Design tokens
   ============================================================ */
:root {
  /* Brand */
  --navy-900: #07142b;
  --navy-800: #0b1f3f;
  --navy: #0a1b38;
  --navy-700: #102a52;
  --blue: #1f5ff0;
  --blue-600: #1a51d6;
  --blue-700: #163fae;
  --blue-300: #6f9bff;
  --sky: #eaf1ff;
  --sky-line: #d3e1ff;

  /* Neutrals */
  --ink: #0d1726;
  --ink-soft: #2b3648;
  --muted: #5b6678;
  --muted-2: #8590a3;
  --line: #e7ebf2;
  --line-2: #eef1f7;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #f0f5ff;

  /* Accent for price tags */
  --tag: #0a1b38;
  --ok: #11936b;

  /* Type */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Geometry */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13,23,38,.06), 0 1px 3px rgba(13,23,38,.04);
  --shadow: 0 4px 16px rgba(13,23,38,.06), 0 1px 3px rgba(13,23,38,.04);
  --shadow-lg: 0 24px 60px -20px rgba(13,32,82,.30), 0 8px 24px -12px rgba(13,23,38,.12);
  --shadow-blue: 0 18px 40px -16px rgba(31,95,240,.45);

  --maxw: 1200px;
  --gut: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

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

/* Eyebrow / tag label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 18px;
  background: var(--blue);
  -webkit-mask: var(--tag-svg) center / contain no-repeat;
  mask: var(--tag-svg) center / contain no-repeat;
  --tag-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.5 2H20a2 2 0 0 1 2 2v8.5a2 2 0 0 1-.6 1.4l-7 7a2 2 0 0 1-2.8 0l-7-7a2 2 0 0 1 0-2.8l7-7A2 2 0 0 1 11.5 2Z"/><circle cx="17" cy="7" r="1.7" fill="white"/></svg>');
  flex: none;
}
.eyebrow--light { color: var(--blue-300); }
.eyebrow--light::before { background: var(--blue-300); }

/* Section scaffolding */
section { position: relative; }
.section { padding: clamp(72px, 9vw, 132px) 0; }
.section-head { max-width: 720px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 18px 0 0;
}
.section-head .lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.65;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--sky-line); background: var(--bg-tint); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ============================================================ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(13,23,38,.02); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue);
  display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-blue);
}
.brand-mark svg { width: 19px; height: 19px; color: #fff; }
.brand-letter {
  font-weight: 800; font-size: 20px; color: #fff; line-height: 1;
  letter-spacing: -0.02em; font-family: var(--sans);
}
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.brand-name b { color: var(--blue); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; transition: all .15s; letter-spacing: .02em;
}
.lang-toggle button.active { background: var(--navy); color: #fff; }

.hamburger { display: none; background: none; border: 0; padding: 8px; }
.hamburger svg { width: 24px; height: 24px; color: var(--ink); }

/* ============================================================ Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 clamp(72px, 9vw, 128px);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--bg-tint) 0%, transparent 55%),
    radial-gradient(900px 500px at -5% 10%, #f3f7ff 0%, transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  letter-spacing: -0.035em;
  margin-top: 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--blue) 10%, var(--navy-700) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  margin-top: 24px; font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted); max-width: 540px; line-height: 1.65;
}
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; gap: 28px; flex-wrap: wrap;
}
.hero-meta .item { }
.hero-meta .k { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; }
.hero-meta .v { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 3px; }

/* Hero visual — stacked product/tag cards */
.hero-visual { position: relative; min-height: 440px; }
.hv-window {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 60%, #0c2150 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.hv-window::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(31,95,240,.40), transparent 60%),
    radial-gradient(400px 240px at 10% 100%, rgba(111,155,255,.22), transparent 60%);
}
.hv-topbar {
  position: relative; height: 44px; display: flex; align-items: center; gap: 7px;
  padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.hv-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.hv-url {
  margin-left: 12px; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06); padding: 4px 12px; border-radius: 6px;
}
.hv-body { position: relative; padding: 22px; display: grid; gap: 14px; }
.hv-card {
  background: rgba(255,255,255,.97); border-radius: 12px; padding: 15px 16px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.4);
  animation: floaty 6s ease-in-out infinite;
}
.hv-card:nth-child(2){ animation-delay: .8s; transform: translateX(18px); }
.hv-card:nth-child(3){ animation-delay: 1.6s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }
.hv-card .ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.hv-card .ic svg { width: 20px; height: 20px; }
.hv-card .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.hv-card .d { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.hv-card .price {
  margin-left: auto; font-weight: 700; font-size: 14px; color: var(--blue-600);
  font-family: var(--mono);
}
.hv-badge {
  position: absolute; right: -14px; bottom: 26px; z-index: 3;
  background: #fff; border-radius: 14px; padding: 13px 16px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line);
}
.hv-badge .ring { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-tint); display: grid; place-items: center; color: var(--blue); }
.hv-badge .ring svg { width: 18px; height: 18px; }
.hv-badge .t { font-size: 13px; font-weight: 700; }
.hv-badge .s { font-size: 11px; color: var(--muted); }

@media (prefers-reduced-motion: reduce){ .hv-card { animation: none; } }

/* ============================================================ Trust strip */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 30px var(--gut); display: flex; gap: 14px; align-items: flex-start; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); flex: none; box-shadow: var(--shadow-sm); }
.trust-item .ic svg { width: 21px; height: 21px; }
.trust-item h4 { font-size: 16px; }
.trust-item p { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* ============================================================ About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, #0e2655 100%);
  aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; padding: 32px;
}
.about-figure::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 400px at 70% 20%, rgba(31,95,240,.4), transparent 60%);
}
.about-bigtag {
  position: relative; z-index: 1; font-family: var(--mono); color: rgba(255,255,255,.92);
  text-align: center;
}
.about-bigtag .lt { font-size: clamp(56px, 9vw, 104px); font-weight: 600; letter-spacing: -.04em; line-height: .95; }
.about-bigtag .cap { margin-top: 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); }
.about-body h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.about-body .lead { margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.about-points { margin-top: 28px; display: grid; gap: 16px; }
.about-points .pt { display: flex; gap: 14px; align-items: flex-start; }
.about-points .pt .num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue); padding-top: 3px; flex: none; }
.about-points .pt h4 { font-size: 17px; }
.about-points .pt p { font-size: 15px; color: var(--muted); margin-top: 2px; }

/* ============================================================ Features */
.features { background: var(--bg-soft); }
.feature-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky-line); }
.feature-card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--blue); margin-bottom: 18px;
}
.feature-card .ic svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 14.5px; color: var(--muted); margin-top: 9px; line-height: 1.6; }

/* ============================================================ Modules */
.module-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.module-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: all .15s;
}
.chip:hover { border-color: var(--sky-line); color: var(--ink); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.module-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sky-line); }
.module-cover {
  position: relative; height: 158px; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, #11295a 100%);
  display: grid; place-items: center;
}
.module-cover .glyph { color: rgba(255,255,255,.94); }
.module-cover .glyph svg { width: 52px; height: 52px; }
.module-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.module-cover.has-cover .glyph { display: none; }
.module-cover.has-cover::after { background: linear-gradient(180deg, rgba(5,4,10,.5) 0%, rgba(5,4,10,.08) 42%, rgba(5,4,10,.42) 100%); }
.module-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px 200px at 75% 10%, rgba(31,95,240,.5), transparent 60%);
}
.module-cover .cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.price-tag {
  position: absolute; top: 14px; right: 0; z-index: 2;
  background: #fff; color: var(--ink);
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  padding: 8px 14px 8px 20px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 7px;
}
.price-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--navy); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--navy);
}
.price-tag .was { color: var(--muted-2); text-decoration: line-through; font-weight: 500; font-size: 12px; }
.module-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.module-body h3 { font-size: 19px; }
.module-body .desc { font-size: 14.5px; color: var(--muted); margin-top: 9px; line-height: 1.6; }
.module-sample { margin-top: 12px; font-size: 12.5px; color: var(--blue-600); background: var(--bg-tint); border: 1px dashed var(--sky-line); border-radius: 8px; padding: 8px 11px; line-height: 1.45; }
.module-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.module-tags span {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap;
  background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px;
}
.module-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: stretch; gap: 10px; }
.module-foot .demo-btn { flex: 1; }
.inquiry-icon { flex: none; width: 48px; border: 1px solid var(--sky-line); background: var(--bg-tint); color: var(--blue); border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.inquiry-icon:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.inquiry-icon:active { transform: scale(.95); }
.inquiry-icon svg { width: 20px; height: 20px; }
.module-foot .btn { flex: 1; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--ink-soft);
  flex: none; transition: all .15s;
}
.icon-btn:hover { border-color: var(--sky-line); color: var(--blue); background: var(--bg-tint); }
.icon-btn svg { width: 19px; height: 19px; }

.module-note {
  margin-top: 34px; text-align: center; font-size: 14.5px; color: var(--muted);
}
.module-note b { color: var(--ink); }

/* ============================================================ Process */
.process { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.process::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 90% -10%, rgba(31,95,240,.28), transparent 55%);
}
.process .wrap { position: relative; }
.process h2 { color: #fff; }
.process .section-head .lead { color: rgba(255,255,255,.62); }
.steps { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding-right: 28px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; right: 14px; left: 66px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.25), rgba(255,255,255,.04));
}
.step .n {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 18px;
  color: var(--blue-300); margin-bottom: 22px;
}
.step h4 { color: #fff; font-size: 19px; }
.step p { color: rgba(255,255,255,.6); font-size: 14.5px; margin-top: 10px; line-height: 1.6; padding-right: 18px; }

/* ============================================================ CTA band */
.cta-band { padding: clamp(60px, 7vw, 100px) 0; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-700) 70%, var(--navy) 130%);
  border-radius: var(--radius-lg); padding: clamp(40px, 5vw, 64px);
  color: #fff; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-box::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
}
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); position: relative; }
.cta-box p { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 17px; position: relative; max-width: 460px; }
.cta-actions { position: relative; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ============================================================ Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info .lead { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.info-list { margin-top: 32px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-row { display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: #fff; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .k { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; }
.info-row .v { font-size: 16px; font-weight: 600; margin-top: 2px; }
.info-row a.v:hover { color: var(--blue); }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px); box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 22px; }
.contact-card .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(31,95,240,.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card .btn { width: 100%; margin-top: 22px; }
.contact-card .fineprint { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; text-align: center; }

/* ============================================================ Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.66); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14.5px; line-height: 1.7; max-width: 360px; }
.footer-col h5 { color: #fff; font-size: 13px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 14.5px; padding: 6px 0; color: rgba(255,255,255,.66); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-legal { padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal .biz { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); }

/* ============================================================ Chatbot */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.12);
  padding: 13px 19px 13px 15px; border-radius: 999px;
  box-shadow: var(--shadow-lg); transition: transform .18s, box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.02); }
.chat-fab .pulse { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.chat-fab .pulse svg { width: 17px; height: 17px; color: #fff; }
.chat-fab .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(31,95,240,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(31,95,240,0); } 100% { box-shadow: 0 0 0 0 rgba(31,95,240,0); } }
.chat-fab .lbl { font-size: 14.5px; font-weight: 600; }
.chat-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

.chat-panel {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px));
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-header {
  background: linear-gradient(150deg, var(--navy) 0%, #102a52 130%);
  color: #fff; padding: 17px 18px; display: flex; align-items: center; gap: 12px;
}
.chat-header .avatar { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(150deg, var(--blue), var(--navy-700)); display: grid; place-items: center; flex: none; }
.chat-header .avatar svg { width: 21px; height: 21px; color: #fff; }
.chat-header .who { line-height: 1.3; }
.chat-header .who .nm { font-weight: 700; font-size: 15.5px; }
.chat-header .who .st { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.chat-header .who .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc91; box-shadow: 0 0 0 3px rgba(61,220,145,.25); }
.chat-close { margin-left: auto; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; transition: background .15s; }
.chat-close:hover { background: rgba(255,255,255,.2); }
.chat-close svg { width: 18px; height: 18px; }

.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; }
.chat-body::-webkit-scrollbar { width: 7px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.msg { max-width: 84%; font-size: 14.5px; line-height: 1.55; padding: 11px 14px; border-radius: 15px; }
.msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); white-space: pre-wrap; }
.msg.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.bot a { color: var(--blue); text-decoration: underline; }

.chat-typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 15px; border-bottom-left-radius: 5px; padding: 13px 16px; display: flex; gap: 5px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: blink 1.3s infinite both; }
.chat-typing span:nth-child(2){ animation-delay: .2s; } .chat-typing span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{ opacity:.25; transform: translateY(0) } 40%{ opacity:1; transform: translateY(-3px) } }

.chat-quick { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 18px 12px; background: var(--bg-soft); }
.chat-quick button {
  font-size: 12.5px; color: var(--blue-600); background: var(--bg-tint);
  border: 1px solid var(--sky-line); padding: 7px 12px; border-radius: 999px; transition: all .15s;
}
.chat-quick button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.chat-input { padding: 12px; border-top: 1px solid var(--line); background: #fff; display: flex; gap: 9px; align-items: flex-end; }
.chat-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font-family: inherit; font-size: 14.5px; max-height: 110px; background: var(--bg-soft);
  transition: border-color .15s, box-shadow .15s; line-height: 1.4;
}
.chat-input textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(31,95,240,.12); }
.chat-send { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); border: 0; color: #fff; display: grid; place-items: center; flex: none; transition: background .15s, transform .1s; }
.chat-send:hover { background: var(--blue-600); }
.chat-send:active { transform: scale(.94); }
.chat-send:disabled { background: var(--muted-2); cursor: not-allowed; }
.chat-send svg { width: 19px; height: 19px; }
.chat-disclaimer { font-size: 10.5px; color: var(--muted-2); text-align: center; padding: 0 18px 10px; background: #fff; }

/* ---------------- AI 맞춤 견적 (chat) ---------------- */
.chat-quick .quote-cta {
  font-weight: 700; color: #fff; background: var(--blue);
  border: 1px solid var(--blue); box-shadow: var(--shadow-blue);
}
.chat-quick .quote-cta:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

.msg.quote-bubble, .msg.quote-form { max-width: 100%; width: 100%; align-self: stretch; white-space: normal; }
.quote-bubble { padding: 16px; }
.quote-bubble .q-title { font-weight: 800; font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.quote-bubble .q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.quote-bubble .q-grid > div { background: var(--bg-tint); border: 1px solid var(--sky-line); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; }
.quote-bubble .q-grid span { font-size: 11px; color: var(--muted); }
.quote-bubble .q-grid b { font-size: 13.5px; color: var(--ink); }
.quote-bubble .q-estimate { grid-column: 1 / -1; background: linear-gradient(140deg, var(--blue), var(--blue-700)) !important; border: 0 !important; }
.quote-bubble .q-estimate span { color: rgba(255,255,255,.8); }
.quote-bubble .q-estimate b { color: #fff; font-size: 17px; font-weight: 800; }
.quote-bubble .q-sub { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; margin: 14px 0 6px; }
.quote-bubble .q-break { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.quote-bubble .q-break li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.quote-bubble .q-break li span { color: var(--muted); }
.quote-bubble .q-break li b { color: var(--ink); font-weight: 600; text-align: right; }
.quote-bubble .q-pts { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.quote-bubble .q-pts li { font-size: 13px; color: var(--ink-soft); }
.quote-bubble .q-disc { margin-top: 14px; font-size: 11px; color: var(--muted-2); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 10px; }

.quote-form { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.quote-form .qf-title { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.quote-form input { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: inherit; font-size: 14px; background: var(--bg-soft); transition: border-color .15s, box-shadow .15s; }
.quote-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(31,95,240,.12); }
.quote-form .qf-submit { margin-top: 3px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 14px; transition: background .15s; }
.quote-form .qf-submit:hover { background: var(--blue-600); }
.quote-form .qf-submit:disabled { background: var(--muted-2); cursor: not-allowed; }

/* ============================================================ Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================ Tweak variants */
body.heads-mono h1,
body.heads-mono h2,
body.heads-mono .brand-name,
body.heads-mono .step h4,
body.heads-mono .feature-card h3,
body.heads-mono .module-body h3 { font-family: var(--mono); letter-spacing: -0.04em; }
body.heads-mono h1 { letter-spacing: -0.05em; }
body.hero-plain .hero { background: var(--bg-soft); }

/* ============================================================ Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { aspect-ratio: 16/10; max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .step:not(:last-child)::after { display: none; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav.mobile-open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gut); margin: 0;
  }
  .nav.mobile-open a { padding: 12px 14px; font-size: 16px; }
  .hamburger { display: inline-flex; }
  .header-actions .btn-dark { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .chat-fab .lbl { display: none; }
  .chat-panel { right: 12px; bottom: 12px; }
}

/* ============================================================ AI consult (embedded) */
.ai-consult {
  background:
    radial-gradient(900px 520px at 100% 0%, var(--bg-tint), transparent 55%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ai-pitch h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 16px; }
.ai-pitch .lead { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.ai-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ai-points li { display: flex; gap: 14px; align-items: flex-start; }
.ai-ic { width: 42px; height: 42px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--blue); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.ai-ic svg { width: 21px; height: 21px; }
.ai-points b { display: block; font-size: 16px; color: var(--ink); }
.ai-points span { font-size: 14.5px; color: var(--muted); }

.ai-chat {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; height: 564px;
}
.ai-chat .chat-body { min-height: 0; }

/* ============================================================ Custom dev card */
.custom-dev {
  position: relative; overflow: hidden; margin-top: 36px;
  background: linear-gradient(135deg, var(--navy) 0%, #0e2655 100%);
  border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cd-glow { position: absolute; right: -60px; top: -90px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(31,95,240,.45), transparent 65%); pointer-events: none; }
.cd-text { position: relative; max-width: 620px; }
.cd-text h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-top: 12px; }
.cd-text p { color: rgba(255,255,255,.72); margin-top: 12px; font-size: 16px; line-height: 1.6; }
.cd-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================ Purchase modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8,17,33,.55); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); position: relative;
  transform: translateY(14px) scale(.98); transition: transform .22s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.modal-close svg { width: 18px; height: 18px; }
.modal-cover { position: relative; height: 140px; background: linear-gradient(150deg, var(--navy) 0%, #11295a 100%); display: grid; place-items: center; overflow: hidden; }
.modal-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(360px 200px at 75% 10%, rgba(31,95,240,.5), transparent 60%); }
.modal-cat { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--mono); font-size: 11.5px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); padding: 5px 11px; border-radius: 999px; }
.modal-glyph { position: relative; color: rgba(255,255,255,.95); }
.modal-glyph svg { width: 48px; height: 48px; }
.modal-body { padding: 24px; }
.modal-body h3 { font-size: 22px; }
.modal-desc { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.modal-tags span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; }
.modal-price-row { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-tint); border: 1px solid var(--sky-line); }
.modal-price { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--blue-600); }
.modal-was { font-family: var(--mono); font-size: 14px; color: var(--muted-2); text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.modal-incl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.modal-form { margin-top: 20px; }
.modal-form .btn { width: 100%; margin-top: 8px; }
.modal-form .fineprint { font-size: 12px; color: var(--muted-2); text-align: center; margin-top: 12px; }

/* ============================================================ About AI image slot */
.about-figure { padding: 0; background: var(--bg-tint); }
.about-figure::after { display: none; }
.about-slot { display: block; width: 100%; height: 100%; }

@media (max-width: 980px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-chat { height: 520px; }
  .custom-dev { flex-direction: column; align-items: flex-start; }
}
