/* 글로벌 스타일 및 폰트 셋업 */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   THEME VARIABLES (글로벌 핏 일체화)
   ========================================================================== */
:root {
  --stk-bg: #030712;
  --stk-text-main: #f3f4f6;
  --stk-text-sub: #9ca3af;
  --stk-text-muted: #6b7280;

  --stk-card-bg: rgba(15, 23, 42, 0.65);
  --stk-card-border: rgba(255, 255, 255, 0.08);
  --stk-card-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  --stk-flow-num-bg: rgba(99, 102, 241, 0.15);
  --stk-flow-num-text: #818cf8;

  --stk-tag-bg: rgba(6, 182, 212, 0.08);
  --stk-tag-border: rgba(6, 182, 212, 0.2);
  --stk-tag-text: #22d3ee;
  --stk-btn-brand: linear-gradient(135deg, #4f46e5, #06b6d4);
  --stk-radial-1: rgba(99, 102, 241, 0.15);
  --stk-radial-2: rgba(6, 182, 212, 0.12);
}

[data-theme="light"] {
  --stk-bg: #f1f5f9;
  --stk-text-main: #0f172a;
  --stk-text-sub: #475569;
  --stk-text-muted: #94a3b8;

  --stk-card-bg: #ffffff;
  --stk-card-border: rgba(15, 23, 42, 0.08);
  --stk-card-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --stk-flow-num-bg: rgba(79, 70, 229, 0.08);
  --stk-flow-num-text: #4f46e5;

  --stk-tag-bg: #ffffff;
  --stk-tag-border: rgba(6, 182, 212, 0.3);
  --stk-tag-text: #06b6d4;
  --stk-radial-1: rgba(99, 102, 241, 0.05);
  --stk-radial-2: rgba(6, 182, 212, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', system-ui, sans-serif;
  background-color: var(--stk-bg) !important;
  color: var(--stk-text-main);
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 10% 15%, var(--stk-radial-1) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, var(--stk-radial-2) 0%, transparent 45%);
  background-attachment: fixed;
  transition: background-color 0.3s, color 0.3s;
}

/* ==========================================================================
   LAYOUT GUARD (사이드바 연동 및 수직 수평 정중앙 정렬)
   ========================================================================== */
.home_content {
  position: absolute;
  min-height: 100vh;
  width: calc(100% - 78px);
  left: 78px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  /* 💡 하단에 휑한 빈 공간이 남지 않도록 수직(세로) 정중앙 락킹 */
  justify-content: center;
  /* 가로축 정중앙 배치 */
  background-color: var(--stk-bg) !important;
  overflow-y: auto;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar.active~.home_content {
  width: calc(100% - 250px);
  left: 250px;
}

.wrap {
  width: min(780px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 헤더 디자인 */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.page-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--stk-text-main);
}

.lead {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--stk-text-sub);
  margin-bottom: 12px;
}

/* ==========================================================================
   START SECTION (인포그래픽 스타일 글래스 카드 패널)
   ========================================================================== */
.start-section {
  background: var(--stk-card-bg);
  border: 1px solid var(--stk-card-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--stk-card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.start-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--stk-text-main);
  max-width: 580px;
}

/* 내부 가이드 목록 정밀 정대칭 레이아웃 가공 */
.start-flow {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stk-card-border);
  padding: 14px 20px;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.2s;
}

.flow-item:hover {
  transform: translateX(4px);
}

.flow-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--stk-flow-num-bg);
  color: var(--stk-flow-num-text);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-item p {
  font-size: 0.92rem;
  color: var(--stk-text-sub);
  line-height: 1.4;
}

.flow-item strong {
  color: var(--stk-text-main);
}

/* 전송 및 진단 버튼 */
.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 12px;
  background: var(--stk-btn-brand);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s, filter 0.2s;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.start-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.start-hint {
  font-size: 0.82rem;
  color: var(--stk-text-muted);
}

/* ==========================================================================
   EXAMPLES TAGS CLOUD
   ========================================================================== */
.examples {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.examples p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stk-text-muted);
  letter-spacing: 0.02em;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.stack-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--stk-tag-bg);
  border: 1px solid var(--stk-tag-border);
  color: var(--stk-tag-text);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stack-tags span:hover {
  background: var(--stk-btn-brand);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .home_content {
    padding: 40px 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .start-section {
    padding: 28px 20px;
  }
}