@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* --- 속편한 & 신뢰감(Light/Clean) 감성 변수 --- */
:root {
  --bg-base: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-light-alt: #f1f5f9;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --secondary: #059669;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-primary: #1e40af;

  --danger: #ef4444;
  --warning: #f59e0b;

  --border-color: rgba(15, 23, 42, 0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: -0.02em;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* --- Utilities --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}
.bg-light-alt {
  background-color: var(--bg-light-alt);
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-muted {
  color: var(--text-muted);
}
.text-primary {
  color: var(--text-primary);
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-lg {
  font-size: 1.1rem;
}
.text-sm {
  font-size: 0.9rem;
}
.display-block {
  display: inline-block;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mt-4 {
  margin-top: 5rem;
}
.mt-5 {
  margin-top: 7rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 4rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Typography --- */
.text-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.headline {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  word-break: keep-all;
}
.headline-sm {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.pre-headline {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

/* --- Components & Cards --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
}

.primary-border {
  border: 1px solid var(--primary);
}
.primary-glow {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.05) inset;
}
.brand-bg {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  border-color: rgba(5, 150, 105, 0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}
.btn-sm {
  padding: 10px 24px;
  font-size: 0.95rem;
}
.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}
.btn-xl {
  padding: 20px 48px;
  font-size: 1.2rem;
  width: 100%;
  max-width: 400px;
}

/* --- Header --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text {
  color: var(--text-main);
}
.logo-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 4px;
  display: inline-block;
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- Icons & Lists (이모지 대체) --- */
.arrow-icon {
  color: var(--primary);
  font-weight: 800;
  margin: 0 4px;
}
.sub-cta-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 0.3s;
}
.sub-cta-link:hover {
  opacity: 0.8;
}

.bullet-list li,
.check-list li,
.pin-list li,
.target-list li,
.alert-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  list-style: none;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.1rem;
}
.pin-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
}
.target-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--primary);
  border-radius: 50%;
}
.target-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

/* 경고형 리스트 (🚨 대체) */
.alert-list li {
  padding-left: 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.alert-list li:last-child {
  border-bottom: none;
}
.alert-list li::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 순서형 리스트 (1️⃣ 대체) */
.step-list {
  list-style: none;
}
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.step-list strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}
.step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 2px;
}

/* --- Badges & Boxes (이모지 대체) --- */
.badge-trust {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--text-main);
  margin-right: 4px;
}
.badge-highlight {
  display: inline-block;
  background: rgba(5, 150, 105, 0.1);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.badge-case {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
.badge-reward {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 6px;
}

.info-badge {
  background: rgba(37, 99, 235, 0.05);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--text-main);
}
.reward-box {
  background: rgba(37, 99, 235, 0.02);
  border: 1px solid rgba(37, 99, 235, 0.1);
  padding: 20px;
  font-size: 0.95rem;
}
.warning-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.warning-box strong {
  color: var(--warning);
}

/* --- Custom UI Elements --- */
.highlight-box {
  background: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}
.card-icon {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}

/* 윈도우 스타일 모니터 */
.mock-ui {
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}
.windows-header {
  background: #e2e8f0;
  color: #475569;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid #cbd5e1;
}
.win-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.win-title::before {
  content: '>_';
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
}
.win-controls {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  cursor: default;
}
.mock-body {
  padding: 30px 20px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* 텔레그램 목업 */
.mock-telegram {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.telegram-header {
  background: #eff6ff;
  padding: 16px 20px;
  font-weight: bold;
  color: var(--primary);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}
.telegram-body {
  padding: 20px;
  background: #ffffff;
}
.msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-family: monospace;
}
.msg.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}
.msg.error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}
.msg.success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.log-text {
  margin-bottom: 10px;
  opacity: 0;
  animation: typeLog 0.5s forwards;
}
.log-text.error {
  color: #f87171;
  animation-delay: 0.5s;
}
.log-text.info {
  color: #facc15;
  animation-delay: 1.5s;
}
.log-text.success {
  color: #4ade80;
  animation-delay: 2.5s;
}
@keyframes typeLog {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 가로형 스텝 프로세스 (브릿지 섹션) */
.flex-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}
.step-item {
  text-align: center;
  flex: 1;
}
.step-item h4 {
  margin-top: 12px;
  margin-bottom: 4px;
}
.step-circle {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.step-line {
  height: 2px;
  background: rgba(37, 99, 235, 0.2);
  flex: 1;
  margin: 0 15px;
  transform: translateY(-15px);
}

/* Pricing */
.price-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.price-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-main);
}
.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--text-main);
}
.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.price-card ul {
  text-align: left;
  margin-top: auto;
}
.price-card li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}
.price-card li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.standard-card {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
  position: relative;
  z-index: 2;
  background: #ffffff;
}
.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  padding: 20px 30px;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.accordion-header.active::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
}

.accordion-content p {
  padding-top: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* Animation Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .headline {
    font-size: 2.2rem;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .standard-card {
    transform: scale(1);
  }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }
  #hero {
    padding-top: 120px;
    text-align: center;
  }
  .highlight-box {
    border-left: none;
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-md);
    text-align: left;
  }
  .flex-steps {
    flex-direction: column;
    gap: 20px;
  }
  .step-line {
    display: none;
  }
}

/* =========================================
    Apply Form Styles (apply.html 전용)
========================================= */
.form-container {
  max-width: 650px;
  margin: 0 auto;
  padding: 50px;
  background: #ffffff;
}
.form-group-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.form-group {
  margin-bottom: 25px;
  text-align: left;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
}
.required {
  color: var(--danger);
}

.apply-form input[type='text'],
.apply-form input[type='tel'],
.apply-form input[type='email'],
.apply-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: #f8fafc;
  color: var(--text-main);
  transition: all 0.3s ease;
}
.apply-form input:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}
.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: #94a3b8;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.radio-group label {
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.radio-group input[type='radio'] {
  accent-color: var(--primary);
  transform: scale(1.2);
}

.payment-notice {
  background: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  padding: 25px;
  border-radius: var(--radius-md);
  text-align: left;
}
.payment-notice h4 {
  color: var(--danger);
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.payment-notice ul {
  padding-left: 20px;
  color: var(--text-muted);
}
.payment-notice li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.payment-notice strong {
  color: var(--text-main);
}

.apply-header {
  position: static !important;
  background: transparent !important;
  border-bottom: none !important;
  padding-top: 20px;
}
.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  font-weight: 500;
}
.back-link:hover {
  color: var(--text-main);
}

.success-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: left;
}
.success-box.primary {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.03);
}
.success-box h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-main);
}
.success-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================
    상하 배치 가로형 카드 스타일 추가 (Section 4)
========================================= */

/* 4단 그리드 (프로세스용) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 각 프로세스 스텝 스타일 */
.process-step {
  text-align: left;
  padding: 10px;
}

/* 결과 아이템 (작은 카드 형태) */
.result-item {
  background: rgba(255, 255, 255, 0.6);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(5, 150, 105, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* 큼직한 체크 아이콘 */
.check-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
}

/* 모바일 반응형 대응 (화면이 좁아지면 자동으로 세로로 풀림) */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .process-step {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
  }
  .process-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .process-step .step-num {
    margin: 0 auto 12px auto;
  }
}
