/* ==========================================================================
   vcf2what — style.css
   디자인 토큰: 컬러/타이포/레이아웃을 한 곳에서 관리 (유지보수 편의)
   ========================================================================== */

:root{
  /* 브랜드 그라데이션 (인스타그램 아이콘풍 핑크~보라) */
  --c1: #6E1FB8;   /* deep violet */
  --c2: #B62AA0;   /* magenta */
  --c3: #F0186B;   /* hot pink */
  --brand-gradient: linear-gradient(135deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(110,31,184,.10) 0%, rgba(182,42,160,.10) 52%, rgba(240,24,107,.10) 100%);

  /* 중립 톤 */
  --bg: #FBFAFD;
  --bg-alt: #F5F0F8;
  --surface: #FFFFFF;
  --border: #ECE2F2;
  --text: #241A32;
  --text-soft: #5B4E6B;
  --text-faint: #8A7C99;

  /* 타이포 */
  --font-display: 'Baloo 2', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans', sans-serif;
  --font-body: 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 레이아웃 */
  --max-w: 1080px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(110,31,184,.08);
  --shadow-md: 0 10px 30px rgba(110,31,184,.14);
  --header-h: 68px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: var(--c2); text-decoration: none; }
a:hover{ text-decoration: underline; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .5em;
  color: var(--text);
}

p{ margin: 0 0 1em; color: var(--text-soft); }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; margin:-1px;
}

/* Focus visibility (접근성) */
a:focus-visible, button:focus-visible, input:focus-visible, .lang-btn:focus-visible{
  outline: 3px solid var(--c2);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  height: var(--header-h);
  display:flex; align-items:center;
  background: var(--brand-gradient);
  box-shadow: 0 2px 16px rgba(110,31,184,.25);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  width:100%;
}
.brand{
  display:flex; align-items:center; gap:10px;
  color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.35rem;
  letter-spacing:.2px;
}
.brand:hover{ text-decoration:none; opacity:.92; }
.brand-badge{
  width:34px; height:34px; border-radius:10px;
  background: rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem;
}
.brand-sub{
  display:none;
  font-family: var(--font-body); font-weight:500; font-size:.72rem;
  color: rgba(255,255,255,.85);
}

.main-nav{
  display:flex; align-items:center; gap: 20px;
}
.main-nav a{
  color: rgba(255,255,255,.92);
  font-weight:600; font-size:.94rem;
}
.main-nav a:hover{ color:#fff; text-decoration: underline; }

.lang-switch{
  display:flex; gap:4px;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  padding:4px;
}
.lang-btn{
  border:0; background:transparent; cursor:pointer;
  color: rgba(255,255,255,.85);
  font-family: var(--font-body); font-weight:700; font-size:.76rem;
  padding: 6px 10px; border-radius:999px;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover{ background: rgba(255,255,255,.18); }
.lang-btn.active{ background:#fff; color: var(--c2); }

.nav-toggle{
  display:none;
  background: rgba(255,255,255,.16); border:0; border-radius:8px;
  width:38px; height:38px; color:#fff; font-size:1.1rem; cursor:pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  padding: 56px 0 40px;
  background: var(--brand-gradient-soft);
  overflow:hidden;
}
.hero .container{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--surface); border:1px solid var(--border);
  color: var(--c2); font-weight:700; font-size:.78rem;
  padding:6px 14px; border-radius:999px; margin-bottom:16px;
  box-shadow: var(--shadow-sm);
}
.hero h1{
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom:.4em;
}
.hero h1 .grad{
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip:text; color:transparent;
}
.hero p.lead{
  font-size:1.05rem; color: var(--text-soft); max-width: 46ch;
}
.hero-badges{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:18px;
}
.hero-badges span{
  font-size:.78rem; font-weight:600; color: var(--c1);
  background:#fff; border:1px solid var(--border);
  padding:5px 11px; border-radius:999px;
}

/* Signature visual: 카드 한 장이 여러 포맷으로 퍼지는 모습 */
.hero-visual{
  position:relative; display:flex; align-items:center; justify-content:center;
  min-height: 260px;
}
.vcard-chip{
  position:relative; z-index:2;
  width: 180px; padding:20px 18px; border-radius: var(--radius-md);
  background:#fff; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.vcard-chip .dot{
  width:44px; height:44px; border-radius:50%;
  background: var(--brand-gradient); margin-bottom:12px;
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800;
}
.vcard-chip .line{ height:8px; border-radius:4px; background: var(--bg-alt); margin-bottom:8px; }
.vcard-chip .line.short{ width:60%; }

.format-orbit{ position:absolute; inset:0; }
.format-orbit span{
  position:absolute;
  display:flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:14px;
  background:#fff; border:1px solid var(--border); box-shadow: var(--shadow-sm);
  font-family: var(--font-mono); font-weight:700; font-size:.68rem; color: var(--c2);
  animation: float 5s ease-in-out infinite;
}
.format-orbit span:nth-child(1){ top:2%; left:6%; animation-delay:.1s; }
.format-orbit span:nth-child(2){ top:8%; right:2%; animation-delay:.6s; }
.format-orbit span:nth-child(3){ bottom:14%; left:0%; animation-delay:1.1s; }
.format-orbit span:nth-child(4){ bottom:4%; right:10%; animation-delay:1.6s; }
.format-orbit span:nth-child(5){ top:44%; left:-4%; animation-delay:2.1s; }
.format-orbit span:nth-child(6){ top:50%; right:-6%; animation-delay:2.6s; }

@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce){
  .format-orbit span{ animation: none; }
  html{ scroll-behavior:auto; }
}

/* ==========================================================================
   Converter (업로드 / 변환 도구)
   ========================================================================== */
.converter{
  padding: 8px 0 56px;
}
.tool-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 4vw, 40px);
  margin-top: -46px;
  position: relative; z-index: 5;
}
.drop-zone{
  border: 2px dashed #D9B9E8;
  border-radius: var(--radius-md);
  padding: clamp(28px, 6vw, 48px) 20px;
  text-align:center;
  cursor:pointer;
  background: var(--bg-alt);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.drop-zone:hover, .drop-zone.drag{
  border-color: var(--c2);
  background: #FBF1FA;
}
.drop-zone .icon{
  width:56px; height:56px; margin: 0 auto 14px;
  border-radius:50%; background: var(--brand-gradient);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.5rem;
}
.drop-zone strong{ display:block; font-size:1.05rem; color: var(--text); margin-bottom:4px; }
.drop-zone .hint{ font-size:.85rem; color: var(--text-faint); }
.browse-btn{
  display:inline-block; margin-top:14px;
  background: var(--brand-gradient); color:#fff; font-weight:700;
  border:0; padding:10px 22px; border-radius:999px; cursor:pointer; font-size:.92rem;
  box-shadow: var(--shadow-sm);
}
.browse-btn:hover{ filter:brightness(1.05); }

.error-msg{
  margin-top:14px; padding:12px 16px; border-radius:10px;
  background:#FFF0F3; color:#C21955; border:1px solid #FBC7D5;
  font-size:.9rem; font-weight:600;
}
.error-msg[hidden]{ display:none; }

.result-section{ margin-top: 30px; }
.result-section[hidden]{ display:none; }

.summary-bar{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  background: var(--brand-gradient-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 18px;
  font-weight:700; color: var(--c1); font-size:.94rem;
}

.preview-wrap{ overflow-x:auto; margin-bottom: 24px; border:1px solid var(--border); border-radius: var(--radius-sm); }
table.preview-table{ width:100%; border-collapse:collapse; font-size:.88rem; }
table.preview-table th, table.preview-table td{
  padding:10px 14px; text-align:left; border-bottom:1px solid var(--border); white-space:nowrap;
}
table.preview-table th{ background: var(--bg-alt); color: var(--text-soft); font-weight:700; }
table.preview-table tr:last-child td{ border-bottom:0; }

.format-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 14px;
}
.format-card{
  border:1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; background:#fff;
  display:flex; flex-direction:column; gap:10px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.format-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.format-card .fmt-icon{
  width:40px; height:40px; border-radius:11px;
  background: var(--brand-gradient); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.format-card .fmt-icon svg{
  width:22px; height:22px;
  fill:none; stroke:#fff; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}
.format-card h4{ margin:0; font-size:1rem; }
.format-card p{ margin:0; font-size:.8rem; color: var(--text-faint); flex:1; }
.format-card .btn-row{ display:flex; gap:8px; }
.btn{
  flex:1; text-align:center; cursor:pointer; border-radius:999px;
  font-weight:700; font-size:.82rem; padding:8px 10px; border:0;
}
.btn-primary{ background: var(--brand-gradient); color:#fff; }
.btn-primary:hover{ filter:brightness(1.06); }
.btn-outline{ background:#fff; color: var(--c2); border:1.5px solid #E7C7EE; }
.btn-outline:hover{ background: var(--bg-alt); }

/* ==========================================================================
   Sections (features / how it works / trust)
   ========================================================================== */
section.block{ padding: 56px 0; }
section.block.alt{ background: var(--bg-alt); }
.section-head{ text-align:center; max-width:640px; margin: 0 auto 36px; }
.section-head h2{ font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p{ color: var(--text-soft); }

.feature-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 20px;
}
.feature-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.feature-card .fi{
  width:42px; height:42px; border-radius:12px; margin-bottom:12px;
  background: var(--brand-gradient-soft); color: var(--c2);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
}
.feature-card h3{ font-size:1.02rem; margin-bottom:6px; }
.feature-card p{ font-size:.88rem; margin:0; }

.steps{
  display:grid; grid-template-columns: repeat(3,1fr); gap:20px;
}
.step{ text-align:center; padding: 0 8px; }
.step .num{
  width:40px; height:40px; margin:0 auto 12px; border-radius:50%;
  background: var(--brand-gradient); color:#fff; font-family: var(--font-display);
  display:flex; align-items:center; justify-content:center; font-weight:800;
}
.step h3{ font-size: .98rem; margin-bottom:4px; }
.step p{ font-size:.85rem; }

.trust-strip{
  display:flex; flex-wrap:wrap; justify-content:center; gap: 28px;
  text-align:center;
}
.trust-item{ max-width:220px; }
.trust-item .ti-icon{ font-size:1.5rem; margin-bottom:8px; }
.trust-item h4{ font-size:.92rem; margin-bottom:4px; }
.trust-item p{ font-size:.8rem; margin:0; }

/* ==========================================================================
   Content pages (about / privacy)
   ========================================================================== */
.page-hero{
  background: var(--brand-gradient); color:#fff; padding: 44px 0 34px;
}
.page-hero h1{ color:#fff; font-size: clamp(1.6rem,3.4vw,2.2rem); }
.page-hero p{ color: rgba(255,255,255,.9); max-width:60ch; }

.content-wrap{ padding: 40px 0 64px; }
.content-wrap .container{ max-width: 800px; }
.content-wrap h2{ margin-top:1.6em; font-size:1.3rem; }
.content-wrap h2:first-of-type{ margin-top:0; }
.content-wrap p, .content-wrap li{ color: var(--text-soft); }
.content-wrap ul{ padding-left:1.2em; }
.updated-badge{
  display:inline-block; font-size:.78rem; color: var(--text-faint);
  background: var(--bg-alt); padding:5px 12px; border-radius:999px; margin-bottom: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: #1F1330; color: rgba(255,255,255,.75);
  padding: 40px 0 26px; margin-top: 40px;
}
.site-footer .container{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px;
}
.footer-brand{ color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.1rem; margin-bottom:8px; }
.footer-tagline{ font-size:.85rem; max-width:34ch; color: rgba(255,255,255,.6); }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-links a{ color: rgba(255,255,255,.8); font-size:.88rem; }
.footer-links a:hover{ color:#fff; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 26px; padding-top: 18px;
  font-size:.78rem; color: rgba(255,255,255,.5);
  text-align:center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; min-height: 200px; }
  .steps{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .main-nav{
    position: absolute; top: var(--header-h); left:0; right:0;
    background: var(--c1);
    flex-direction:column; align-items:flex-start;
    padding: 14px 20px 20px; gap:14px;
    display:none;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
  }
  .main-nav.open{ display:flex; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .brand-sub{ display:none; }
}

@media (max-width: 480px){
  .format-grid{ grid-template-columns: 1fr 1fr; }
  .tool-card{ margin-top:-30px; padding:18px; }
  .hero{ padding-top: 40px; }
}

@media (min-width: 720px){
  .brand-sub{ display:block; }
}
