/* =================================================================
   큐닷(Quedot) 재구축 스타일시트
   - 색상 / 폰트 / 간격 등 디자인 값은 아래 :root 변수에서 한 번에 수정
   ================================================================= */

:root {
  /* ----- 색상 ----- */
  --bg: #000000;            /* 메인 어두운 배경 */
  --bg-soft: #06070d;       /* 살짝 밝은 어두운 배경 */
  --bg-white: #ffffff;      /* 가격 섹션 흰 배경 */
  --primary: #0046fd;       /* 브랜드 블루 (버튼) */
  --primary-hover: #0039d6;
  --text: #ffffff;
  --text-dim: #9aa1b2;      /* 어두운 배경 위 보조 텍스트 */
  --text-dark: #0d0d0d;     /* 흰 배경 위 본문 */
  --text-dark-dim: #8b8f9c; /* 흰 배경 위 보조 텍스트 */
  --card-bg: #0a0c14;       /* 카드 배경 */
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hl: rgba(63, 110, 255, 0.45);

  /* ----- 레이아웃 ----- */
  --maxw: 1200px;
  --gutter: 24px;
  --section-pad: 130px;
  --radius: 18px;

  /* ----- 폰트 ----- */
  --font-base: "Pretendard", "Figtree", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-display: "Figtree", "Pretendard", sans-serif;
  --font-num: "Inter", "Pretendard", sans-serif;
}

/* ----- 리셋 ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 76px; /* 하단 고정 CTA 바 높이만큼 여백 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ----- 버튼 ----- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; letter-spacing: -0.3px;
  padding: 12px 20px; border-radius: 10px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(0, 70, 253, 0.35); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn .arrow { font-size: 13px; }

/* ----- 공통 섹션 헤더 ----- */
.section-head { text-align: center; margin-bottom: 64px; }
.pill {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.2px;
  color: #e8ebf5;
  padding: 7px 16px; border-radius: 999px;
  background: #11131c; border: 1px solid rgba(255, 255, 255, 0.1);
}
.section-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 52px; font-weight: 600; line-height: 1.12; letter-spacing: -2px;
  color: #fff;
}
.section-desc { margin: 0 auto; max-width: 760px; font-size: 19px; line-height: 1.55; letter-spacing: -0.4px; color: var(--text-dim); }

/* =================================================================
   1. 헤더 / 내비
   ================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 34px; margin-left: auto; margin-right: 28px; }
.nav-links a {
  font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: -0.28px;
  color: #fff; opacity: .85; transition: opacity .15s ease;
}
.nav-links a:hover { opacity: 1; }
.header-cta { padding: 9px 16px; font-size: 14px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mobile-menu a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* =================================================================
   2. HERO
   ================================================================= */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; text-align: center; }
.hero-glow {
  position: absolute; top: 240px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 70, 253, 0.55) 0%, rgba(0, 40, 180, 0.18) 38%, rgba(0, 0, 0, 0) 70%);
  filter: blur(8px); z-index: 0;
}
.stars {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 30% 12%, rgba(255,255,255,.45), transparent);
  background-size: 600px 600px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 70px; font-weight: 600; line-height: 1.1; letter-spacing: -2.4px;
  color: #fff;
}
.hero-sub { margin: 0 0 56px; font-size: 16px; font-weight: 500; letter-spacing: -0.3px; color: #c7cbd8; }

/* 브랜드 로고 마퀴 */
.marquee-wrap { display: flex; flex-direction: column; gap: 30px; margin: 10px 0 66px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track.marquee-reverse { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { flex: 0 0 auto; display: flex; align-items: center; }
.marquee-track img { height: 26px; width: auto; opacity: .82; filter: grayscale(100%) brightness(1.5); transition: opacity .2s ease; }
.marquee-track span:hover img { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-cta .btn { min-width: 150px; justify-content: center; }

/* =================================================================
   3. WHO WE ARE + STEPS
   ================================================================= */
.who { padding: var(--section-pad) 0; }
.step {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px;
  padding: 56px 0;
}
.step-text .step-badge {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.4px;
  color: #cdd6ff; padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #122046, #0a1124); border: 1px solid rgba(63, 110, 255, 0.4);
}
.step-text h3 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.32; letter-spacing: -0.8px; color: #fff; }
.step-img img {
  width: 100%; border-radius: 20px;
}

/* =================================================================
   4. 가격 정책 (흰 배경)
   ================================================================= */
.pricing { background: var(--bg-white); color: var(--text-dark); padding: 110px 0; text-align: center; }
.pricing-title { margin: 0 0 14px; font-family: var(--font-num); font-size: 32px; font-weight: 900; letter-spacing: -1px; color: #0d0d0d; }
.pricing-sub { margin: 0 0 70px; font-size: 19px; letter-spacing: -0.4px; color: var(--text-dark-dim); }
.pricing-grid { display: flex; justify-content: center; gap: 160px; flex-wrap: wrap; }
.price-num { font-family: var(--font-num); font-size: 64px; font-weight: 800; letter-spacing: -2.5px; line-height: 1; color: #0d0d0d; }
.price-label { margin-top: 16px; font-size: 22px; color: var(--text-dark-dim); letter-spacing: -0.4px; }

/* =================================================================
   5. WHY QUEDOT (비교 카드)
   ================================================================= */
.why { padding: var(--section-pad) 0; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 940px; margin: 0 auto; }
.compare-card {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 34px 36px;
}
.compare-card-hl { border-color: var(--card-border-hl); background: #080b16; }
.compare-glow {
  position: absolute; top: -60px; right: -40px; width: 320px; height: 220px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 70, 253, 0.55), rgba(0, 0, 0, 0) 70%);
  filter: blur(6px);
}
.compare-name { position: relative; margin: 0 0 24px; font-size: 20px; font-weight: 600; letter-spacing: -0.4px; color: #e7eaf2; }
.compare-name-hl { font-family: var(--font-display); font-weight: 700; color: #fff; }
.compare-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.compare-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; letter-spacing: -0.3px; color: #c8cdda; }
.ic-x { color: #6b7180; font-weight: 700; }
.ic-check { color: #3f6eff; font-weight: 700; }
.compare-bad li { color: #8a90a0; }

/* =================================================================
   6. REVIEW
   ================================================================= */
.review { padding: var(--section-pad) 0; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.review-card {
  background: linear-gradient(160deg, #0a0d18 0%, #090b14 60%);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 34px 34px 30px; display: flex; flex-direction: column;
}
.review-stat { margin: 0 0 18px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.5px; color: #fff; }
.review-stat .hl { color: #4d7bff; }
.review-quote { margin: 0 0 28px; flex: 1; font-size: 16px; line-height: 1.65; letter-spacing: -0.3px; color: #aeb4c4; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-author strong { display: block; font-size: 14px; font-weight: 600; color: #e7eaf2; letter-spacing: -0.3px; }
.review-author span { display: block; font-size: 13px; color: #888fa0; margin-top: 2px; }

/* =================================================================
   7. PERFORMANCE
   ================================================================= */
.performance { padding: var(--section-pad) 0; }
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perf-card {
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(180deg, #0a0d18, #080a12);
  border: 1px solid var(--card-border); border-radius: 16px;
  padding: 26px 22px;
}
.perf-ic { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.perf-card p { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.5px; color: #eef0f6; white-space: nowrap; }

/* 신뢰 로고 띠 (정부 기관 선정 · 국내 TOP AC 투자 유치) — 원본 로고를 흰색 카드에 (선명·안 깨짐) */
.cred-band {
  margin-top: 26px; padding: 30px 28px;
  border: 1px solid var(--card-border); border-radius: 16px;
  background: linear-gradient(180deg, #0a0d18, #080a12);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.cred-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8890a4; }
.cred-logos { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cred-chip {
  display: flex; align-items: center; justify-content: center;
  height: 80px; padding: 12px 30px;
  background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.28);
}
.cred-chip-dark { background: #11314e; }
.cred-chip img { max-height: 40px; width: auto; max-width: 230px; object-fit: contain; display: block; }
/* TIPS는 콤팩트 로고라 광학적 균형을 위해 더 크게 */
.cred-chip-tips img { max-height: 56px; }

/* =================================================================
   8. FAQ
   ================================================================= */
.faq { padding: var(--section-pad) 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: linear-gradient(120deg, #0a0d18, #0a0e1c 55%, #0c1428);
  border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; text-align: left;
  padding: 24px 28px; font-size: 18px; font-weight: 600; letter-spacing: -0.4px; color: #eef0f6;
}
.faq-arrow { font-size: 20px; color: #8890a4; transition: transform .28s ease; flex: 0 0 auto; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a p { margin: 0; padding: 0 28px 26px; font-size: 16px; line-height: 1.7; letter-spacing: -0.3px; color: #a7adbe; }

/* =================================================================
   9. 하단 CTA
   ================================================================= */
.cta-final { padding: 40px 0 120px; }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  background: #06080f; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 26px;
  padding: 104px 30px;
}
.cta-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 540px 300px at 50% 38%, rgba(0, 70, 253, 0.55), rgba(0,0,0,0) 70%),
    radial-gradient(ellipse 300px 200px at 88% 80%, rgba(96, 80, 255, 0.4), rgba(0,0,0,0) 70%);
  filter: blur(4px);
}
/* 배경 그래프 위 텍스트 가독성 확보용 중앙 스크림 (그래프 z0 < 스크림 z1 < 텍스트 z2) */
.cta-box::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 72% 62% at 50% 50%, rgba(3,5,12,0.74), rgba(3,5,12,0) 76%);
}
.cta-box h2 { position: relative; z-index: 2; margin: 0 0 18px; font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1.22; letter-spacing: -1.4px; color: #fff; }
.cta-box p { position: relative; z-index: 2; margin: 0 0 32px; font-size: 17px; letter-spacing: -0.4px; color: #c2c7d6; }
.cta-box .btn { position: relative; z-index: 2; }

/* =================================================================
   10. 푸터
   ================================================================= */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 56px 0 70px; background: var(--bg); }
.footer-logo { display: inline-block; margin-bottom: 22px; }
.footer-logo img { height: 34px; opacity: .92; }
.footer-info p { margin: 4px 0; font-size: 13px; line-height: 1.7; letter-spacing: -0.2px; color: #6c7280; }

/* =================================================================
   하단 고정 CTA 바 (스크롤 시 항상 따라오는 sticky 버튼)
   ================================================================= */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .32s ease, opacity .32s ease;
}
.cta-bar-inner { display: flex; justify-content: center; }
.cta-bar .btn { min-width: 220px; justify-content: center; } /* 버튼 현재 크기 유지(약간의 최소폭) */
/* 맨 아래 최종 CTA 구간에 들어오면 같은 버튼 중복을 피해 자동으로 숨김 */
.cta-bar.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

@media (max-width: 680px) {
  .cta-bar { padding: 10px 0; }
  .cta-bar-inner { padding: 0 16px; }
  .cta-bar .btn { width: 100%; min-width: 0; padding: 14px 20px; } /* 모바일은 탭하기 좋게 전체 폭 */
}

/* =================================================================
   스크롤 등장 애니메이션 (js 가 .in 클래스 부여)
   ================================================================= */
[data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-anim].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   반응형
   ================================================================= */
@media (max-width: 980px) {
  :root { --section-pad: 90px; }
  .section-title { font-size: 38px; letter-spacing: -1.4px; }
  .hero-title { font-size: 48px; letter-spacing: -1.6px; }
  .step { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; text-align: center; }
  .step-text h3 { font-size: 26px; }
  .step-img { max-width: 460px; margin: 0 auto; }
  .compare-grid, .review-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { gap: 90px; }
  .cta-box h2 { font-size: 32px; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; --section-pad: 72px; }
  .nav-links, .header-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.show { display: flex; }
  .hero { padding: 130px 0 80px; }
  .hero-title { font-size: 34px; letter-spacing: -1px; }
  .hero-sub { margin-bottom: 40px; }
  .section-title { font-size: 30px; letter-spacing: -1px; }
  .section-desc { font-size: 16px; }
  .section-head { margin-bottom: 44px; }
  .pricing-grid { gap: 56px; }
  .price-num { font-size: 52px; }
  .perf-grid { grid-template-columns: 1fr; }
  .perf-card p { font-size: 17px; }
  .cred-band { padding: 24px 16px; gap: 16px; }
  .cred-logos { grid-template-columns: 1fr; gap: 12px; }
  .cred-chip { height: 64px; padding: 10px 20px; }
  .cred-chip img { max-height: 34px; max-width: 150px; }
  .cred-chip-tips img { max-height: 48px; }
  .faq-q { font-size: 16px; padding: 20px 20px; }
  .cta-box { padding: 56px 22px; }
  .cta-box h2 { font-size: 26px; }
  .marquee-track img { height: 22px; }
}
