/* 큐브로이드 디펜스 — 사이트 공통 스타일 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --navy: #0b1622;
  --navy-2: #102033;
  --navy-3: #16293f;
  --ink: #0f1a26;
  --text: #2a3846;
  --muted: #5d6b79;
  --line: #dde3e8;
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --paper: #eaf0f4;
  --blue: #1f86c6;
  --blue-d: #176ea5;
  --sky: #3aa6f0;
  --on-dark: #e3eef8;
  --on-dark-2: #9fb6ca;
  --amber: #9a6512;
  --amber-bg: #fbf0dc;
  --gray-bg: #e9edf0;
  --radius: 14px;
  --maxw: 1160px;
  --top-h: 64px;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { color: var(--on-dark); border-color: rgba(185, 213, 236, .35); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-line { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-line:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* 상단 메뉴 */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  background: rgba(11, 22, 34, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 213, 236, .12);
}
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 96px; height: auto; }
.brand-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--sky);
  padding-left: 12px; border-left: 1px solid rgba(185, 213, 236, .35); line-height: 1.6;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--on-dark-2); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 0; color: var(--on-dark); width: 44px; height: 44px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }

/* 첫 화면 */
.hero {
  background:
    radial-gradient(900px 480px at 78% 30%, rgba(31, 134, 198, .18), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0d1b2a 100%);
  color: var(--on-dark-2);
}
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--sky); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1.25; }
.hero h1 .ln { display: block; white-space: nowrap; }
.hero h1 .hl { color: #cfe6f8; }
.hero-lede { margin-top: 22px; font-size: 18px; line-height: 1.75; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-fig { margin: 0; }
.hero-fig img { width: 100%; }
.hero-fig figcaption { margin-top: 10px; font-size: 13px; color: #6f8aa3; text-align: right; }

.principles { background: var(--navy-2); border-top: 1px solid rgba(185, 213, 236, .1); }
.prin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.prin-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 20px; }
.prin-grid li + li { border-left: 1px solid rgba(185, 213, 236, .1); }
.prin-grid .ic { color: var(--sky); width: 26px; height: 26px; margin-top: 2px; }
.prin-grid strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.prin-grid span { display: block; font-size: 14px; line-height: 1.6; }

/* 공통 구역 */
.sec { padding: 104px 0; scroll-margin-top: var(--top-h); }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--blue); margin-bottom: 10px; }
.sec h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.lead { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* 현장 과제 */
.needs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.need { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 26px; }
.need-no { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.need-q { margin-top: 8px; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.need-a { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; gap: 10px; color: var(--text); }
.need-a .ic { color: var(--blue); margin-top: 2px; }

/* 라인업 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button {
  font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); border-color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-fig {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(28, 53, 80, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 53, 80, .06) 1px, transparent 1px);
  background-size: 16px 16px;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3; overflow: hidden; padding: 12px;
}
.card-fig img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.line-tag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--blue); }
.stage { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.stage-proto { background: #e1f0fa; color: var(--blue-d); }
.stage-design { background: var(--amber-bg); color: var(--amber); }
.stage-plan { background: var(--gray-bg); color: var(--muted); }
.card h3 { font-size: 22px; font-weight: 800; }
.card-sub { margin-top: 2px; font-weight: 600; color: var(--ink); }
.card-desc { margin-top: 12px; font-size: 15px; color: var(--muted); }
.specs { margin: 18px 0 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; color: var(--ink); }

/* 훈련 패키지 */
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pkg { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff; }
.pkg-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #e1f0fa; color: var(--blue-d); align-items: center; justify-content: center; margin-bottom: 18px; }
.pkg-ic .ic { width: 26px; height: 26px; }
.pkg h3 { font-size: 19px; font-weight: 800; }
.pkg h3 .stage { margin-left: 4px; font-size: 11px; letter-spacing: 0; }
.pkg p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* 도입 단계 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -21px; width: 22px; height: 2px; background: var(--blue);
}
.step-no { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.step h3 { margin-top: 8px; font-size: 22px; font-weight: 800; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips li { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.pilot {
  margin-top: 28px; background: var(--navy); color: var(--on-dark-2); border-radius: var(--radius);
  padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.pilot h3 { color: #fff; font-size: 22px; font-weight: 800; }
.pilot p { margin-top: 8px; max-width: 40em; }
.pilot .btn { flex: none; }

/* 회사 소개 */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; }
.whys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why { padding: 4px 0; }
.why .ic { color: var(--blue); width: 28px; height: 28px; }
.why h3 { margin-top: 12px; font-size: 19px; font-weight: 800; }
.why p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.roadmap { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.roadmap h3 { font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.tl li { position: relative; padding: 0 0 20px 24px; display: grid; gap: 2px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.tl-when { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--blue-d); }
.tl-what { color: var(--ink); font-size: 15px; }
.note { font-size: 13px; color: var(--muted); }

/* 문의 */
.sec-dark { background: var(--navy); color: var(--on-dark-2); }
.sec-dark h2 { color: #fff; }
.sec-dark .kicker { color: var(--sky); }
.sec-dark .lead { color: var(--on-dark-2); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { margin-top: 32px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--on-dark); }
.contact-list .ic { color: var(--sky); margin-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; }
.field label b { color: #c0392b; font-weight: 700; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  border: 1px solid #cfd7de; border-radius: 10px; padding: 11px 14px; background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 134, 198, .18); }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.checks label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text);
  border: 1px solid #cfd7de; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px;
}
.checks label:has(input:checked) { border-color: var(--blue); background: #e1f0fa; color: var(--blue-d); }
.checks input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-err { color: #c0392b; font-size: 14px; font-weight: 600; }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.form-note.ok { color: var(--blue-d); font-weight: 600; }

/* 바닥글 */
.foot { background: #070f18; color: #7d93a8; padding: 40px 0 48px; font-size: 14px; }
.foot-in { display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 88px; opacity: .9; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: #a9bdd0; }

/* 반응형 */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pkgs { grid-template-columns: repeat(2, 1fr); }
  .prin-grid { grid-template-columns: repeat(2, 1fr); }
  .prin-grid li:nth-child(3) { border-left: 0; }
  .prin-grid li:nth-child(n+3) { border-top: 1px solid rgba(185, 213, 236, .1); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: var(--top-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--navy); border-bottom: 1px solid rgba(185, 213, 236, .12);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid rgba(185, 213, 236, .08); border-radius: 0; font-size: 16px; }
  .nav .btn { margin: 14px 0 0; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { top: auto; bottom: -21px; right: auto; left: 40px; width: 2px; height: 22px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .pilot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 32px; }
  .lead, .hero-lede { font-size: 16px; }
  .hero h1 { font-size: 27px; }
  .hero h1 .ln { white-space: normal; }
  .cards, .pkgs, .needs, .whys { grid-template-columns: 1fr; }
  .prin-grid { grid-template-columns: 1fr; }
  .prin-grid li { padding: 18px 4px; }
  .prin-grid li + li { border-left: 0; border-top: 1px solid rgba(185, 213, 236, .1); }
  .need { padding: 22px 20px; }
  .need-q { font-size: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .pilot { padding: 26px 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .top, .tabs, .form { display: none !important; }
  .card[hidden] { display: flex !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
