/* ANTAI — 드론 AI 외벽 균열 진단 */
:root {
  --ink: #0b1220;
  --navy: #0f1b2d;
  --navy-2: #16263d;
  --line: #e3e7ee;
  --line-dark: #26364f;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --text: #1b2433;
  --muted: #5b6678;
  --muted-dark: #9aa8bd;
  --accent: #ffcc00;      /* 검출 박스 색 */
  --accent-ink: #1a1400;
  --crack: #e5484d;       /* 균열 마스크 색 */
  --ok: #2e9d5b;
  --warn: #f2a516;
  --high: #ef6c00;
  --urgent: #d93636;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.brand img { width: 30px; height: 30px; }
.brand .brand-logo { width: auto; height: 42px; }
.brand small { font-weight: 500; font-size: 12px; letter-spacing: 0; color: var(--muted-dark); margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line-dark); }
.site-footer .brand .brand-logo { height: 48px; }
@media (max-width: 640px) { .brand small { display: none; } .brand .brand-logo { height: 36px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #cfd8e6; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--navy-2); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffd83d; }
.btn-ghost { border-color: #44546d; color: #fff; }
.btn-ghost:hover { background: var(--navy-2); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-line { border-color: var(--line); color: var(--text); background: #fff; }
.nav .btn-primary { color: var(--accent-ink); padding: 9px 16px; }
.nav .btn-primary:hover { background: #ffd83d; color: var(--accent-ink); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #e6ecf5; }
.section-dark .lead, .section-dark p { color: var(--muted-dark); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #8a6d00; margin-bottom: 14px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--accent); }
.h-section { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-48 { margin-top: 48px; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .lead { font-size: 16px; }
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 80% 20%, #1b3150 0%, var(--ink) 60%);
  color: #fff; padding: 72px 0 88px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: #b7c4d6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.hero-tags li { font-size: 13px; color: #cfd8e6; border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; }
.hero-visual { position: relative; }
.page-hero { padding: 72px 0 64px; }
.page-hero .wrap { display: block; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
}

/* facade scan animation */
.scanline { animation: scan 6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(300px); } }
.drone { animation: hover 6s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, 300px); } }
.det { opacity: 0; animation: det 6s ease-in-out infinite; }
.det.d1 { animation-delay: .9s; }
.det.d2 { animation-delay: 2.1s; }
.det.d3 { animation-delay: 3.3s; }
@keyframes det { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scanline, .drone { animation: none; }
  .det { animation: none; opacity: 1; }
}

/* ---------- strip ---------- */
.metric-strip { background: var(--navy); color: #fff; padding: 28px 0; }
.metric-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.metric-strip li { text-align: center; }
.metric-strip b { display: block; font-size: 20px; color: var(--accent); }
.metric-strip span { font-size: 13px; color: var(--muted-dark); }
@media (max-width: 900px) { .metric-strip ul { grid-template-columns: repeat(3, 1fr); } }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .num { font-size: 13px; font-weight: 800; color: #8a6d00; letter-spacing: .1em; margin-bottom: 10px; display: block; }
.section-dark .card { background: var(--navy); border-color: var(--line-dark); box-shadow: none; }
.section-dark .card h3 { color: #fff; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #fff6cc; color: #6b5400; margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }
.section-dark .icon { background: #2a2a12; color: var(--accent); }

.pain { border-left: 4px solid var(--crack); }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-weight: 800; color: var(--accent-ink); background: var(--accent);
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px;
}
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1400' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* neutral badge */
.neutral {
  border-radius: 20px; padding: 48px; background: linear-gradient(135deg, var(--navy) 0%, #1d3456 100%);
  color: #fff; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
.neutral .big { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin: 0 0 8px; }
.neutral p { color: #b7c4d6; margin: 0; }
.neutral .eyebrow { color: var(--accent); }
.neutral .seal {
  width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--accent);
  display: grid; place-items: center; text-align: center; color: var(--accent); font-weight: 800; font-size: 15px; line-height: 1.3;
}
@media (max-width: 640px) { .neutral { grid-template-columns: 1fr; padding: 32px 24px; } }

/* AI performance stats */
.ai-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ai-stats div { background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px 20px; }
.ai-stats b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ai-stats span { display: block; margin-top: 8px; font-size: 14px; color: #cfd8e6; }
.ai-stats small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-dark); }
section:not(.section-dark) .ai-stats div { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
section:not(.section-dark) .ai-stats b { color: var(--navy); }
section:not(.section-dark) .ai-stats span { color: var(--text); }
section:not(.section-dark) .ai-stats small { color: var(--muted); }
@media (max-width: 900px) { .ai-stats { grid-template-columns: repeat(2, 1fr); } }

/* all-in-one package flow */
.package { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.package li { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 20px 16px; }
.package li b { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }
.package li span { font-size: 14px; color: #b7c4d6; line-height: 1.55; display: block; }
.package li em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 8px; }
@media (max-width: 900px) { .package { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .package { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* grade / priority chips */
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.low { background: #e3f4ea; color: #1d6b3d; }
.chip.mid { background: #fff2d1; color: #7a5300; }
.chip.high { background: #ffe5d1; color: #8f3d00; }
.chip.urgent { background: #ffe0e0; color: #9b1c1c; }
.chip.gray { background: #eceff3; color: #4b5565; }

/* pipeline */
.pipeline { list-style: none; padding: 0; margin: 0; position: relative; }
.pipeline li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-bottom: 36px; position: relative; }
.pipeline li::after { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: var(--line); }
.pipeline li:last-child::after { display: none; }
.pipeline .dot {
  width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.pipeline h3 { font-size: 20px; margin-bottom: 6px; }
.pipeline p { color: var(--muted); }
.pipeline .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pipeline .tags span { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--accent-ink); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #4a3d00; }

/* forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.form label .req { color: var(--urgent); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #cdd4de; border-radius: 10px; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: #c9a100; }
.form textarea { min-height: 120px; resize: vertical; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.form .agree input { width: auto; margin-top: 4px; }
.form-status { font-size: 14px; color: var(--ok); min-height: 1.4em; }

.contact-box { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.contact-item b { display: block; font-size: 18px; }
.contact-item span { color: var(--muted); font-size: 14px; }

/* footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 48px 0 32px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 20px; margin-top: 8px; font-size: 13px; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- sample report (A4 preview) ---------- */
.sheet {
  background: #fff; max-width: 860px; margin: 0 auto 32px; padding: 48px 52px;
  box-shadow: 0 20px 60px rgba(15, 27, 45, .14); border-radius: 6px; font-size: 14px;
}
.sheet h2 { font-size: 22px; border-bottom: 3px solid var(--navy); padding-bottom: 10px; }
.sheet h3 { font-size: 16px; margin-top: 28px; }
.sheet .meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 16px 0; }
.sheet .meta div { padding: 12px 14px; border-right: 1px solid var(--line); }
.sheet .meta div:last-child { border-right: 0; }
.sheet .meta span { display: block; font-size: 12px; color: var(--muted); }
.sheet .meta b { font-size: 18px; }
.sheet table { font-size: 13px; }
.sheet th, .sheet td { padding: 9px 10px; }
.sample-badge { display: inline-block; background: var(--crack); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.crack-detail { display: grid; grid-template-columns: 220px 1fr; gap: 20px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.crack-detail dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0; }
.crack-detail dt { color: var(--muted); }
.crack-detail dd { margin: 0; font-weight: 600; }
@media (max-width: 720px) {
  .sheet { padding: 28px 18px; }
  .sheet .meta { grid-template-columns: repeat(2, 1fr); }
  .sheet .meta div:nth-child(2) { border-right: 0; }
  .sheet .meta div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .crack-detail { grid-template-columns: 1fr; }
}

/* print */
@media print {
  .site-header, .site-footer, .cta-band, .no-print { display: none !important; }
  body { background: #fff; }
  section { padding: 0; }
  .sheet { box-shadow: none; max-width: none; margin: 0; padding: 0; page-break-after: always; }
}
