/* ========================================
   SARO - 메인 스타일시트
   색상: 딥 퍼플 + 금색 + 별자리
   분위기: 신비롭고 고급스러운 느낌
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:wght@500;600&display=swap');

/* 변수 - 색채 심리학 기반 (눈 피로↓ 안정감↑) */
:root {
  --deep-purple: #151820;
  --purple: #1e2230;
  --light-purple: #8a94b8;
  --gold: #d4a843;
  --gold-dim: #a68930;
  --white: #ece8e1;
  --white-pure: #f5f2ed;
  --gray: #a09890;
  --bg-gradient: linear-gradient(180deg, #0b0d22 0%, #151436 22%, #241a3c 45%, #3a2240 68%, #2a1a36 85%, #140e22 100%);
  --card-bg: rgba(30, 34, 48, 0.6);
  --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  /* 메탈릭 골드 그라디언트 */
  --gold-metallic: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

/* 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 배경 신성 기하학 + 심볼 컨테이너 */
.ancient-symbols {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ancient-symbol {
  position: absolute;
  user-select: none;
}

/* SVG 기하학 도형 — 은은한 골드 글로우 */
.ancient-symbol.geo-svg {
  opacity: 0.35;
  filter: drop-shadow(0 0 8px rgba(230, 190, 70, 0.3)) drop-shadow(0 0 18px rgba(255, 215, 80, 0.12));
  animation: geoFloat 25s ease-in-out infinite;
}

.ancient-symbol.geo-svg:nth-child(odd) {
  animation-direction: alternate-reverse;
}

.ancient-symbol.geo-svg:nth-child(3n) {
  opacity: 0.4;
  filter: drop-shadow(0 0 10px rgba(230, 190, 70, 0.35)) drop-shadow(0 0 22px rgba(255, 215, 80, 0.15));
}

.ancient-symbol.geo-svg:nth-child(5n) {
  opacity: 0.3;
  filter: drop-shadow(0 0 6px rgba(230, 190, 70, 0.25)) drop-shadow(0 0 14px rgba(255, 215, 80, 0.1));
}

/* 텍스트 심볼 — 은은한 골드 글로우 */
.ancient-symbol.text-sym {
  color: rgba(230, 195, 80, 0.15);
  font-size: 1.1rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(230, 190, 70, 0.3), 0 0 18px rgba(255, 215, 80, 0.12);
  animation: symbolFloat 20s ease-in-out infinite;
  background: none !important;
}

.ancient-symbol.text-sym:nth-child(odd) {
  animation-direction: alternate;
}

.ancient-symbol.text-sym:nth-child(4n) {
  color: rgba(240, 205, 90, 0.2);
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(240, 200, 70, 0.35), 0 0 22px rgba(255, 220, 80, 0.15);
}

.ancient-symbol.text-sym:nth-child(7n) {
  color: rgba(230, 195, 80, 0.12);
  font-size: 0.9rem;
}

@keyframes geoFloat {
  0% { opacity: 0.3; transform: translateY(0); }
  25% { opacity: 0.5; }
  50% { opacity: 0.35; transform: translateY(-15px); }
  75% { opacity: 0.55; }
  100% { opacity: 0.3; transform: translateY(0); }
}

@keyframes symbolFloat {
  0% { opacity: 0.4; transform: translateY(0) scale(1); }
  50% { opacity: 0.6; transform: translateY(-10px) scale(1.03); }
  100% { opacity: 0.4; transform: translateY(0) scale(1); }
}

/* 파티클 캔버스 */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 네비게이션 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, rgba(175, 205, 235, 0.06) 0%, rgba(200, 225, 245, 0.08) 50%, rgba(170, 200, 230, 0.06) 100%);
  backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  z-index: 100;
  border-bottom: 1px solid rgba(210, 230, 250, 0.28);
  box-shadow: 0 4px 22px rgba(20, 30, 60, 0.22), 0 1px 0 rgba(230, 240, 255, 0.22) inset;
}


.nav-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: #ece8e1;
  text-decoration: none;
  letter-spacing: 5px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-shadow: 0 0 14px rgba(255, 225, 150, 0.28), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-logo::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><defs><mask id='cm'><rect width='32' height='32' fill='black'/><circle cx='14' cy='16' r='11' fill='white'/><circle cx='18' cy='13' r='10' fill='black'/></mask></defs><circle cx='14' cy='16' r='11' fill='%23f0d98a' mask='url(%23cm)'/><path d='M25 6 L26 9.5 L29.5 9.5 L26.7 11.7 L27.7 15 L25 12.9 L22.3 15 L23.3 11.7 L20.5 9.5 L24 9.5 Z' fill='%23fcf6ba'/></svg>") no-repeat center / contain;
  filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.45));
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: rgba(230, 238, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
  text-shadow: 0 0 12px rgba(140, 170, 220, 0.3);
}

.nav-link:hover {
  color: #fcf6ba;
  text-shadow: 0 0 14px rgba(255, 215, 80, 0.5);
}

.nav-link.active {
  color: #fcf6ba;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 215, 80, 0.4);
}

.nav-link::after {
  background: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(230, 238, 255, 0.9);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 히어로 섹션 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-content {
  max-width: 600px;
}

.section-title,
.section-desc {
  text-align: center;
}

.hero-title {
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-size: 4.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 14px;
  padding-left: 14px;
}

.glow {
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.2));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255, 215, 0, 0.8),
      0 0 30px rgba(255, 215, 0, 0.4),
      0 0 60px rgba(255, 215, 0, 0.2);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 215, 0, 1),
      0 0 50px rgba(255, 215, 0, 0.6),
      0 0 100px rgba(255, 215, 0, 0.3);
  }
}

.hero-slogan {
  font-size: 1.3rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.4rem;
  margin-bottom: 1.4rem;
}

.hero-sub-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0.4rem;
}

/* 저장된 프로필 배너 */
.saro-profile-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, rgba(191, 149, 63, 0.12), rgba(252, 246, 186, 0.08));
  border: 1px solid rgba(252, 246, 186, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}
.saro-profile-banner .spb-icon { font-size: 1.1rem; }
.saro-profile-banner .spb-text { flex: 1; }
.saro-profile-banner .spb-text strong { color: var(--gold); font-weight: 600; }
.saro-profile-banner .spb-clear {
  background: transparent;
  border: 1px solid rgba(168, 156, 200, 0.35);
  color: var(--gray);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}
.saro-profile-banner .spb-clear:hover {
  border-color: var(--gold);
  color: var(--gold);
}
@media (max-width: 600px) {
  .saro-profile-banner { flex-wrap: wrap; }
  .saro-profile-banner .spb-text { flex-basis: 100%; order: 2; }
  .saro-profile-banner .spb-clear { order: 3; }
}

.hero-blog-link {
  margin-top: 2.4rem;
  text-align: center;
  font-size: 0.92rem;
}
.hero-blog-link a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 2px;
  transition: all 0.3s;
}
.hero-blog-link a:hover {
  border-bottom-color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 히어로 신뢰 배지 */
.hero-trust-badges {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1rem;
  max-width: 640px;
}
.hero-trust-badges li {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(191, 149, 63, 0.1);
  border: 1px solid rgba(252, 246, 186, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .hero-trust-badges { gap: 0.5rem; }
  .hero-trust-badges li { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
}

/* FAQ 섹션 */
.faq-section {
  max-width: 780px;
  margin: 3rem auto 2rem;
  padding: 0 1.2rem;
}
.faq-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.faq-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(252, 246, 186, 0.15);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.25s, background 0.25s;
}
.faq-item[open] {
  background: rgba(191, 149, 63, 0.06);
  border-color: rgba(252, 246, 186, 0.3);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold, #fcf6ba);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold, #fcf6ba);
  transition: transform 0.25s;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.93rem;
  line-height: 1.7;
}
.faq-item .faq-body p { margin: 0 0 0.6rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }
.faq-item .faq-body ul { margin: 0.4rem 0 0.6rem 1.2rem; padding: 0; }
.faq-item .faq-body li { margin-bottom: 0.3rem; }
.faq-item .faq-body strong { color: var(--gold, #fcf6ba); }
.faq-item .faq-body em { color: rgba(255, 255, 255, 0.95); font-style: normal; border-bottom: 1px dotted rgba(252, 246, 186, 0.4); }
@media (max-width: 600px) {
  .faq-title { font-size: 1.4rem; }
  .faq-item { padding: 0.9rem 1rem; }
  .faq-item summary { font-size: 0.95rem; }
}

/* 버튼 */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--deep-purple);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid rgba(168, 156, 200, 0.3);
  padding: 0.7rem 1.8rem;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--light-purple);
  background: rgba(205, 170, 80, 0.06);
}

.btn-small {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-small:hover {
  background: rgba(255, 215, 0, 0.25);
}

/* 서비스 섹션 */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(205, 170, 80, 0.15);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* 기하학 SVG 아이콘 시스템 */
.saro-icon {
  display: inline-block;
  vertical-align: middle;
}

.saro-icon svg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(212, 168, 67, 0.3));
  transition: filter 0.3s, transform 0.3s;
}

.saro-icon:hover svg,
.cross-card:hover .saro-icon svg,
.service-card:hover .saro-icon svg {
  filter: drop-shadow(0 0 10px rgba(230, 190, 70, 0.6));
  transform: scale(1.08);
}

/* 서비스 카드용 큰 아이콘 */
.service-icon .saro-icon svg {
  width: 56px;
  height: 56px;
}

/* 크로스링크 카드용 아이콘 */
.cross-card .saro-icon svg {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-size: 1.2rem;
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* 푸터 */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(205, 170, 80, 0.12);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--gray);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  color: rgba(168, 156, 200, 0.5);
  font-size: 0.75rem;
}

/* 광고 슬롯 */
.ad-slot {
  max-width: 728px;
  margin: 2rem auto;
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: 90px;
}

.ad-slot-wide {
  max-width: 970px;
  min-height: 90px;
}

.ad-slot-rect {
  max-width: 336px;
  min-height: 280px;
}

.ad-slot-inline {
  max-width: 100%;
  min-height: 100px;
  margin: 1.5rem 0;
}

/* AdSense 승인 전 플레이스홀더 (승인 후 제거) */
.ad-placeholder {
  background: rgba(33, 26, 58, 0.3);
  border: 1px dashed rgba(138, 124, 184, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(138, 124, 184, 0.25);
  font-size: 0.7rem;
  min-height: inherit;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .ad-slot { min-height: 50px; }
  .ad-slot-rect { max-width: 300px; min-height: 250px; }
}

/* 하단 고정 광고 배너 (모든 페이지 공통) */
.ad-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(0deg, rgba(175, 205, 235, 0.06) 0%, rgba(200, 225, 245, 0.08) 50%, rgba(170, 200, 230, 0.06) 100%);
  border-top: 1px solid rgba(210, 230, 250, 0.28);
  box-shadow: 0 -4px 22px rgba(20, 30, 60, 0.22), 0 -1px 0 rgba(230, 240, 255, 0.22) inset;
  padding: 6px 0;
  text-align: center;
  backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
}

.ad-sticky-bottom .ad-sticky-inner {
  max-width: 728px;
  margin: 0 auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-sticky-bottom .ad-placeholder {
  min-height: 50px;
  width: 100%;
  border-radius: 4px;
}

.ad-sticky-close {
  position: absolute;
  top: -10px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(138, 124, 184, 0.3);
  background: rgba(21, 24, 32, 0.95);
  color: rgba(138, 124, 184, 0.5);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.ad-sticky-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* 하단 고정 광고가 있으므로 푸터에 여백 추가 */
.footer {
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .ad-sticky-bottom .ad-sticky-inner {
    max-width: 320px;
    min-height: 50px;
  }

  .footer {
    padding-bottom: 80px;
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 252, 245, 0.98);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(205, 170, 80, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    color: #2a1a36;
    text-shadow: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-slogan {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-sub-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
}
