/* * CASP ENGINE Official Style
 * Concept: Systemizing, Precision, Data Integrity
 */

:root {
  /* Colors */
  --bg-color: #0B0E11;
  --bg-muted: #161B22;
  --text-main: #F5F5F7;
  --text-dim: #8E8E93;
  --accent-blue: #007AFF;
  --accent-purple: #BF5AF2;
  --border-color: #30363D;
  --card-bg: #1C1C1E;
  --black: #000000;

  /* Spacing */
  --container-width: 1100px;
  --section-padding: 80px 20px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(11, 14, 17, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-mark { color: var(--accent-blue); }
.brand-sub { color: var(--text-main); margin-left: 2px; }

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--accent-blue);
}

/* Buttons */
.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.btn-ghost {
  color: var(--text-dim);
}

.btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 100px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 24px;
}

.accent {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Image Placeholders (Black Blank) */
.hero-visual {
  width: 100%;
  height: 400px; /* 정의된 사이즈 */
  background-color: var(--black);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-muted {
  background-color: var(--bg-muted);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 48px;
}

/* SQ Index & Callout Section 보완 */
.callout {
  background-color: var(--card-bg); /* 독립된 박스로 격리 */
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-purple); /* 사이먼 배런 코언의 SQ 포인트 컬러 */
  border-radius: 12px;
  padding: 48px 40px; /* 내부 여백 확장 */
  margin: 60px auto 0; /* 상단 Tiles와 확실한 거리 확보 및 중앙 배치 */
  max-width: 850px; /* 너무 길게 늘어지지 않도록 폭 제한 */
  text-align: center; /* 텍스트 중앙 정렬 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.callout-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.callout-desc {
  font-size: 1.1rem;
  line-height: 1.8; /* 줄 간격 최적화 */
  color: var(--text-main);
  word-break: keep-all; /* 단어 단위 줄바꿈으로 가독성 향상 */
  margin: 0 auto;
  max-width: 680px; /* 본문 텍스트가 너무 넓게 퍼지지 않도록 한 번 더 제한 */
}

/* Grids & Tiles */
.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 24px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  background-color: var(--card-bg);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: 0.3s;
}

.tile:hover {
  border-color: var(--accent-blue);
}

.tile h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--accent-blue);
}

.tile p {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Timeline (Journey Page) */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-date {
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 8px;
}

.timeline-card {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.timeline-tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

/* CTA Strip */
.cta-strip {
  background: linear-gradient(135deg, #1A1F2B 0%, #0B0E11 100%);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--accent-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
}

.cta-copy h3 { margin-bottom: 8px; }
.cta-copy p { color: var(--text-dim); }

/* Footer */
.site-footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .cta-strip { flex-direction: column; text-align: center; gap: 24px; }
}

/* Image Placeholders */
/* 1. 이미지 컨테이너의 보더 제거 */
.hero-visual {
    border: none !important;
    background: transparent !important;
    outline: none !important;
}

.hero-visual img {
    border: none !important;
    /* 이미지가 컨테이너보다 작을 때 뒤의 박스가 보이지 않도록 설정 */
    display: block; 
}

/* 2. 폴백(Fallback) 박스 스타일 수정 */
/* 이미지 로드 성공 시 이 클래스가 완전히 숨겨지는지 확인이 필요합니다 */
.hero-fallback .card {
    border: none !important; 
    box-shadow: none !important;
    background: none !important;
}