/* ── 기본 리셋 & 변수 ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563eb;
  --blue-light: #eff6ff;
  --blue-dark:  #1d4ed8;
  --dark:       #0f172a;
  --gray-900:   #1e293b;
  --gray-700:   #334155;
  --gray-500:   #64748b;
  --gray-300:   #cbd5e1;
  --gray-100:   #f1f5f9;
  --white:      #ffffff;
  --green:      #16a34a;
  --green-light:#f0fdf4;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 레이아웃 ─────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 헤더 / 내비 ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  color: var(--dark);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.site-nav a {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s;
}
.site-nav a:hover { background: var(--gray-100); text-decoration: none; }

/* ── 히어로 섹션 ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%);
  color: white;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59,130,246,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99,102,241,.12) 0%, transparent 60%);
}

.hero-content { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 span { color: #60a5fa; }

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.08); text-decoration: none; }

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 버전 배지 */
.version-tag {
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ── 특징 카드 섹션 ───────────────────────────────────────────────── */
.features {
  padding: 88px 0;
  background: var(--gray-100);
}

.section-label {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: .4px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.5px;
  margin-bottom: 12px;
  line-height: 1.3em;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.icon-blue   { background: #eff6ff; }
.icon-green  { background: #f0fdf4; }
.icon-purple { background: #faf5ff; }
.icon-orange { background: #fff7ed; }
.icon-red    { background: #fff1f2; }
.icon-teal   { background: #f0fdfa; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── 작동 방식 섹션 ───────────────────────────────────────────────── */
.how-it-works {
  padding: 88px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, #818cf8 100%);
  opacity: .25;
}

.step {
  text-align: center;
  padding: 24px 20px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}

.step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ── Google Drive 섹션 ────────────────────────────────────────────── */
.gdrive-section {
  padding: 88px 0;
  background: var(--dark);
  color: white;
}

.gdrive-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.gdrive-text .section-label {
  background: rgba(96,165,250,.15);
  color: #60a5fa;
}

.gdrive-text .section-title { color: white; }
.gdrive-text .section-sub   { color: rgba(255,255,255,.6); }

.gdrive-features { list-style: none; margin-top: 24px; }
.gdrive-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.gdrive-features li:last-child { border-bottom: none; }

.check-icon {
  width: 22px;
  height: 22px;
  background: rgba(22,163,74,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
  color: #4ade80;
}

.gdrive-visual {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 32px;
}

.flow-steps { display: flex; flex-direction: column; gap: 4px; }

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.flow-step.active {
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.4);
  color: white;
}

.flow-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-500);
  flex-shrink: 0;
}
.flow-step.active .flow-dot { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }

.flow-arrow {
  text-align: center;
  color: rgba(255,255,255,.2);
  font-size: 18px;
  padding: 2px 0;
}

/* ── 설치 섹션 ────────────────────────────────────────────────────── */
.install-section {
  padding: 88px 0;
  background: var(--gray-100);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.install-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.install-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}

.install-steps { list-style: none; counter-reset: steps; }
.install-steps li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}
.install-steps li:last-child { border-bottom: none; }

.install-steps li::before {
  content: counter(steps);
  min-width: 26px;
  height: 26px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.code-block {
  background: var(--gray-900);
  color: #a5f3fc;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  margin-top: 8px;
  overflow-x: auto;
}

/* ── CTA 섹션 ─────────────────────────────────────────────────────── */
.cta-section {
  padding: 88px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 100%);
  color: white;
}

.cta-section .section-title { color: white; font-size: clamp(28px, 4vw, 42px); }
.cta-section p { color: rgba(255,255,255,.8); font-size: 18px; margin: 16px auto 40px; max-width: 500px; }

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: 14px; }
.footer-links a:hover { color: white; text-decoration: none; }

.footer-copy { font-size: 13px; }

/* ── 개인정보처리방침 페이지 ──────────────────────────────────────── */
.policy-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
  color: white;
  padding: 72px 0 56px;
  text-align: center;
}

.policy-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.policy-hero p  { color: rgba(255,255,255,.6); font-size: 15px; }

.policy-body {
  padding: 64px 0;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.policy-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-300);
}

.policy-body h2:first-child { border-top: none; padding-top: 0; }

.policy-body p, .policy-body li {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 12px;
}

.policy-body ul { padding-left: 20px; }
.policy-body ul li { margin-bottom: 6px; }

.policy-box {
  background: var(--green-light);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.policy-box p {
  color: #166534;
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}

.policy-updated {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-300);
}

/* ── 반응형 ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gdrive-inner   { grid-template-columns: 1fr; gap: 40px; }
  .install-grid   { grid-template-columns: 1fr; }
  .steps::before  { display: none; }
  .footer-inner   { flex-direction: column; text-align: center; }
  .hero           { padding: 72px 0 60px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn        { width: 100%; max-width: 280px; justify-content: center; }
}
