/* ===== Design tokens ===== */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1f6feb;
  --blue-dark: #1859c4;
  --blue-soft: #e8f1ff;
  --teal: #0e9f8e;
  --text: #1d2939;
  --heading: #0b2545;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f7f9fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, 0.16);
}

/* Dark mode: only when the viewer prefers it */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #e4e7ec;
    --heading: #f2f4f7;
    --muted: #98a2b3;
    --line: #2a3441;
    --bg: #0f1722;
    --white: #151f2d;
    --blue-soft: #14273f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }

.section { padding: 96px 0; }
.section-tight { padding: 0 0 96px; }
.section-alt { background: var(--white); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; color: var(--heading); line-height: 1.3; }
.section-desc { color: var(--muted); margin-top: 14px; max-width: 640px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(31, 111, 235, 0.3); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-white { background: #fff; color: #0b2545; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.btn-block { width: 100%; margin-top: 24px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header { background: rgba(21, 31, 45, 0.92); }
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 900; font-size: 20px; color: var(--heading); letter-spacing: -0.02em; }
.logo span { color: var(--blue); }
.logo em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 16px; }
.gnb { display: flex; align-items: center; gap: 4px; }
.gnb a {
  padding: 8px 13px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--text);
  transition: background .2s, color .2s;
}
.gnb a:hover { background: var(--blue-soft); }
.gnb a.active { color: var(--blue); font-weight: 700; }
.gnb .nav-cta { background: var(--navy); color: #fff; margin-left: 8px; }
.gnb .nav-cta:hover { background: var(--navy-2); }
.gnb .nav-cta.active { color: #fff; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px; padding: 8px;
}
.menu-toggle span { display: block; height: 2px; background: var(--heading); border-radius: 2px; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 111, 235, 0.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(14, 159, 142, 0.22), transparent 38%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 120px 0 96px;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { color: #8ec5ff; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.3;
  letter-spacing: -0.02em; max-width: 880px;
}
.hero h1 mark { background: none; color: #7fd8ca; }
.hero-lead { margin-top: 24px; font-size: 17px; color: rgba(255, 255, 255, 0.82); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

.hero-stats {
  list-style: none; margin-top: 64px; width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px; overflow: hidden;
}
.hero-stats li { padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats li + li { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stats strong { font-size: 38px; font-weight: 900; line-height: 1.1; }
.hero-stats small { font-size: 16px; color: rgba(255, 255, 255, 0.8); margin-top: -4px; }
.hero-stats span { font-size: 14px; color: rgba(255, 255, 255, 0.75); }

/* ===== Images ===== */
.hero-shot {
  width: 100%; max-width: 980px; margin-top: 56px; position: relative;
  border-radius: 22px; padding: 10px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.hero-shot img { width: 100%; height: auto; border-radius: 14px; display: block; }

.card-img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 12px; margin-bottom: 20px; background: var(--blue-soft);
  border: 1px solid var(--line);
}

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-lg); }
.check-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.check-list li {
  position: relative; padding: 14px 16px 14px 48px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--text);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 13px; font-weight: 900; display: grid; place-items: center;
}
.check-list b { color: var(--heading); }

.integration-shot { margin: 0; max-width: 960px; margin-inline: auto; }
.integration-shot img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }

/* ===== Pain quotes ===== */
.quote-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); position: relative;
}
.quote-card::before {
  content: "“"; position: absolute; top: 8px; left: 22px; font-size: 64px; line-height: 1;
  font-weight: 900; color: var(--blue-soft);
}
.quote { position: relative; font-size: 16px; color: var(--text); font-weight: 500; padding-top: 18px; }
.quote-who { display: block; margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ===== Cards & grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 19px; color: var(--heading); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 15px; margin-bottom: 20px;
}
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); font-size: 24px; margin-bottom: 18px;
}
.module-list { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.module-list li { font-size: 14px; padding-left: 18px; position: relative; color: var(--text); }
.module-list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}

.extra-row {
  margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--blue-soft); border-radius: var(--radius); padding: 24px;
}
.extra-row div { display: flex; flex-direction: column; gap: 4px; }
.extra-row strong { color: var(--heading); font-size: 15px; }
.extra-row span { color: var(--muted); font-size: 14px; }

/* ===== Compare table ===== */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--white);
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
th { background: var(--navy); color: #fff; font-weight: 700; }
th:first-child, td:first-child { text-align: left; font-weight: 500; color: var(--heading); }
td:first-child { background: var(--bg); }
th.highlight { background: var(--blue); }
td.highlight { background: var(--blue-soft); font-weight: 500; color: var(--text); }
tr:last-child td { border-bottom: 0; }
.s-good { color: var(--teal); font-size: 18px; }
.s-mid { color: #d98a06; font-size: 18px; }
.s-low { color: #d04a4a; font-size: 16px; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ===== Timeline (process) ===== */
.timeline { list-style: none; max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.timeline li { position: relative; display: flex; gap: 22px; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.t-no {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900;
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg);
}
.timeline h4 { color: var(--heading); font-size: 17px; margin-bottom: 4px; padding-top: 8px; }
.timeline p { color: var(--muted); font-size: 15px; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--heading);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--blue); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.info-list { list-style: none; display: grid; gap: 18px; margin-top: 32px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { margin: 0; width: 46px; height: 46px; font-size: 20px; flex-shrink: 0; }
.info-list strong { display: block; color: var(--heading); }
.info-list span { color: var(--muted); font-size: 15px; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 40px; box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--heading); }
.req { color: #d04a4a; margin-left: 2px; }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg); width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.15);
}
.field.invalid input, .field.invalid textarea { border-color: #d04a4a; }
.error-msg { font-size: 13px; color: #d04a4a; display: none; }
.field.invalid .error-msg { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e6f8f4; color: #0a7a6c; }
.form-status.error { background: #fdeaea; color: #b03030; }
.form-status.info { background: var(--blue-soft); color: var(--blue); }
.privacy { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ===== Final CTA ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--navy-2) 100%);
  border-radius: 24px; padding: 60px 52px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 28px; font-weight: 900; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin-top: 8px; }

/* ===== Floating CTA ===== */
.floating-cta {
  position: fixed; right: 20px; bottom: 24px; z-index: 40;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 10px 28px rgba(31, 111, 235, 0.45);
  transition: transform .2s;
}
.floating-cta:hover { transform: translateY(-3px); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 36px 0; font-size: 14px; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.site-footer .logo em { color: rgba(255, 255, 255, 0.6); }
.site-footer p { margin-top: 6px; }
.footer-note { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .extra-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .about-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin-inline: auto; width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .section-tight { padding-bottom: 68px; }
  .menu-toggle { display: flex; }
  .gnb {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 4px;
    box-shadow: var(--shadow); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .3s ease;
  }
  .gnb.open { transform: none; opacity: 1; pointer-events: auto; }
  .gnb .nav-cta { margin: 6px 0 0; text-align: center; }
  .hero { padding: 84px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { margin-top: 44px; }
  .hero-stats strong { font-size: 30px; }
  .grid-4 { grid-template-columns: 1fr; }
  .extra-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 26px; }
  .cta-banner .btn { width: 100%; }
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .floating-cta { right: 14px; bottom: 16px; padding: 12px 18px; font-size: 14px; }
}
