:root {
  --navy-900: #0f1f3d;
  --navy-800: #17305e;
  --navy-700: #21427f;
  --gray-900: #1f2937;
  --gray-700: #4b5563;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 31, 61, 0.08);
  --shadow-md: 0 20px 48px rgba(15, 31, 61, 0.14);
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1140px;
}

/* 기본 스타일 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-light {
  background-color: var(--white);
}

.section-title {
  margin-bottom: 34px;
}

.eyebrow {
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.3;
  max-width: 760px;
}

/* 헤더 및 내비게이션 */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-800), var(--navy-900));
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 0.95rem;
}

.gnb {
  display: flex;
  gap: 20px;
}

.gnb a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.gnb a:hover,
.gnb a.active {
  color: var(--navy-700);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy-900);
  transition: transform 0.25s ease;
}

/* 공통 카드와 버튼 */
.card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.78rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 10px 20px rgba(23, 48, 94, 0.28);
}

.btn-secondary {
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
}

.btn-ghost {
  color: var(--navy-700);
  background: #f8fafc;
  border: 1px solid #dbe4f0;
}

/* 히어로 섹션 */
.hero {
  padding-top: 96px;
  background:
    radial-gradient(circle at 20% 15%, rgba(33, 66, 127, 0.18), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(17, 38, 75, 0.14), transparent 42%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 34px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.22;
  color: var(--navy-900);
  max-width: 23ch;
}

.hero-desc {
  margin-top: 18px;
  color: var(--gray-700);
  max-width: 620px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  background: linear-gradient(160deg, #132a53, #1f3f7a);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.panel-head {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px;
}

.metric-card h3 {
  font-size: 1.4rem;
}

.metric-card p {
  font-size: 0.9rem;
  opacity: 0.92;
}

/* 소개/서비스/포트폴리오 그리드 */
.about-grid,
.service-grid,
.portfolio-grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid,
.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-grid {
  margin-bottom: 22px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
  border: 1px solid #d9e3f0;
  box-shadow: var(--shadow-sm);
}

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
}

.tag {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--navy-700);
  background: #e7eef9;
  font-weight: 700;
}

/* 강점 리스트 */
.strength-list {
  display: grid;
  gap: 14px;
}

.strength-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.strength-item > span {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
}

/* 문의 섹션 */
.section-contact {
  background: linear-gradient(145deg, #edf2f9 0%, #f6f8fb 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.company-grid {
  align-items: stretch;
}

.contact-info ul {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--gray-700);
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.35;
  color: var(--navy-900);
}

.quote-signoff {
  font-weight: 700;
  color: var(--navy-700);
}

.value-grid {
  margin-top: 18px;
}

.issue-grid,
.process-grid,
.ai-grid {
  display: grid;
  gap: 18px;
}

.issue-grid,
.ai-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issue-card,
.ai-grid .card {
  min-height: 100%;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fa 100%);
  border: 1px solid #d9e3f0;
  box-shadow: var(--shadow-sm);
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
}

.process-step h3,
.process-summary h3,
.issue-card h3,
.ai-grid h3 {
  margin-bottom: 10px;
}

.process-summary {
  margin-top: 18px;
}

.ai-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #e9f0fb 0%, #f4f7fc 100%);
  border: 1px solid #d7e1ef;
  color: var(--gray-700);
}

/* 푸터 */
.footer {
  background: var(--navy-900);
  color: #e5e7eb;
  padding: 24px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer a {
  color: #dbe4f0;
  font-weight: 700;
}

/* 스크롤 등장 애니메이션 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

/* 반응형 스타일 */
@media (max-width: 980px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .service-grid,
  .portfolio-grid,
  .flow-grid,
  .issue-grid,
  .ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .section {
    padding: 72px 0;
  }

  .menu-toggle {
    display: block;
  }

  .gnb {
    position: absolute;
    top: 76px;
    right: 1rem;
    width: min(280px, calc(100% - 2rem));
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 12px;
    display: none;
    flex-direction: column;
  }

  .gnb.open {
    display: flex;
  }

  .gnb a {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .gnb a:hover {
    background: #f3f6fb;
  }

  .about-grid,
  .service-grid,
  .portfolio-grid,
  .flow-grid,
  .issue-grid,
  .process-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
