/* =============================================
   샤오통 XiaoTong — index.css
   메인 페이지 전용 스타일
   ============================================= */

   :root {
    --red:        #E8192C;
    --red-dark:   #B8101F;
    --red-light:  #FF4757;
    --black:      #0a0a0a;
    --white:      #FAFAFA;
    --gray:       #888888;
    --gray-light: #F2F2F2;
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 48px;
  }
  
  /* ══════════════════════════════════════
     HERO
  ══════════════════════════════════════ */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    background: var(--black);
    overflow: hidden;
  }
  .hero::before {
    content: '小通';
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(200px, 30vw, 420px); font-weight: 900;
    color: rgba(232,25,44,0.07); line-height: 1;
    pointer-events: none; user-select: none; z-index: 0;
  }
  .hero .container { position: relative; z-index: 1; }
  
  .hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; color: rgba(255,255,255,0.5);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px;
  }
  .hero-tag::before { content: ''; width: 24px; height: 1px; background: var(--red); }
  
  .hero-zh {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(36px, 6vw, 80px); font-weight: 900;
    color: var(--red); line-height: 1.1; margin-bottom: 16px;
    animation: fadeUp 0.8s ease both;
    text-shadow: 0 2px 24px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.6);
  }
  .hero-kr {
    font-size: clamp(22px, 3.5vw, 44px); font-weight: 700;
    color: var(--white); line-height: 1.3; margin-bottom: 48px;
    animation: fadeUp 0.8s 0.15s ease both;
    text-shadow: 0 2px 24px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.6);
  }
  
  /* 1 Source Multi-Use */
  .hero-multiuse {
    margin-top: 36px;
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0;
    animation: fadeUp 0.8s 0.38s ease both;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 6px;
  }
  .multiuse-item {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 28px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .multiuse-item:first-child { border-radius: 8px 0 0 8px; }
  .multiuse-item:last-child  { border-radius: 0 8px 8px 0; }
  .multiuse-item .mi-icon { font-size: 24px; }
  .multiuse-item .mi-text { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; }
  .multiuse-item .mi-text strong { display: block; color: white; font-size: 16px; font-weight: 700; }
  .multiuse-arrow {
    padding: 18px 14px; background: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: white; font-weight: 700;
  }
  .multiuse-arrow.plain { background: transparent; color: rgba(255,255,255,0.4); padding: 18px 8px; }
  .multiuse-badge {
    margin-left: 14px; padding: 8px 16px;
    background: rgba(232,25,44,0.2); border: 1px solid rgba(232,25,44,0.5);
    border-radius: 20px; font-size: 12px; color: var(--red-light); font-weight: 700;
    letter-spacing: 0.5px; white-space: nowrap;
  }
  
  /* hero divider */
  .hero-divider {
    width: 40px; height: 2px; background: var(--red);
    margin-bottom: 32px; margin-top: 48px;
    animation: fadeUp 0.8s 0.25s ease both;
  }
  
  /* hero sub */
  .hero-sub {
    max-width: 600px;
    animation: fadeUp 0.8s 0.3s ease both;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border-left: 3px solid var(--red);
    padding: 20px 28px;
    border-radius: 0 8px 8px 0;
  }
  .hero-sub p {
    font-size: 17px; line-height: 2;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.9);
  }
  .hero-sub p:last-child { margin-bottom: 0; }
  .hero-sub .accent { color: var(--white); font-weight: 700; }
  .hero-sub .red    { color: var(--red-light); font-weight: 700; }
  
  /* hero facts */
  .hero-facts {
    margin-top: 48px;
    animation: fadeUp 0.8s 0.45s ease both;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    display: inline-flex;
    flex-wrap: wrap;
  }
  .hero-fact {
    padding: 24px 40px;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .hero-fact:last-child { border-right: none; }
  .hero-fact strong {
    display: block;
    font-size: 36px; font-weight: 900; color: var(--white);
    letter-spacing: -1.5px;
    text-shadow: 0 0 30px rgba(232,25,44,0.4);
  }
  .hero-fact span {
    font-size: 13px; color: rgba(255,255,255,0.5);
    margin-top: 4px; display: block;
  }
  
  /* ── Hero 배경 롤링 ── */
  .hero-bg-roll {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    gap: 16px; overflow: hidden;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
  }
  .hero-bg-roll::before,
  .hero-bg-roll::after {
    content: '';
    position: absolute; left: 0; right: 0; height: 200px; z-index: 1;
    pointer-events: none;
  }
  .hero-bg-roll::before {
    top: 0;
    background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
  }
  .hero-bg-roll::after {
    bottom: 0;
    background: linear-gradient(to top, var(--black) 0%, transparent 100%);
  }
  .hero-roll-row { overflow: hidden; flex-shrink: 0; }
  .hero-roll-track { display: flex; gap: 10px; width: max-content; }
  .roll-ltr .hero-roll-track { animation: hero-roll-left var(--spd, 40s) linear infinite; }
  .roll-rtl .hero-roll-track { animation: hero-roll-right var(--spd, 40s) linear infinite; }
  .roll-spd1 { --spd: 38s; }
  .roll-spd2 { --spd: 52s; }
  .roll-spd3 { --spd: 44s; }
  @keyframes hero-roll-left  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes hero-roll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
  .hero-roll-img {
    width: 200px; height: 200px;
    border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: rgba(255,255,255,0.05);
  }
  .hero-roll-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  
  
  /* ══════════════════════════════════════
     섹션 공통
  ══════════════════════════════════════ */
  section { padding: 100px 0; }
  .section-label {
    font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--red); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
  }
  .section-label::after { content: ''; flex: 0 0 32px; height: 1px; background: var(--red); }
  .section-title {
    font-size: clamp(26px, 4vw, 44px); font-weight: 900;
    line-height: 1.25; margin-bottom: 20px; color: #fff;
  }
  .section-body {
    font-size: 16px; line-height: 1.9;
    color: rgba(255,255,255,0.6);   /* #555 → 밝게 */
    max-width: 620px;
  }
  
  
  /* ══════════════════════════════════════
     BLOCK A — 샤오홍슈란
  ══════════════════════════════════════ */
  .block-a { background: #13131a; }
  .block-a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  
  .xhs-mockup {
    background: #1e1e2a; border-radius: 24px; padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .xhs-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .xhs-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--red); display: flex; align-items: center; justify-content: center;
  }
  .xhs-dot span { color: white; font-size: 16px; }
  .xhs-name { font-weight: 700; font-size: 14px; color: #fff; }          /* ← 흰색 */
  .xhs-name small { display: block; font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 400; }  /* ← 흰색 계열 */
  
  .xhs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .xhs-card {
    border-radius: 12px; overflow: hidden; aspect-ratio: 3/4;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  }
  .xhs-card.c1 { background: linear-gradient(160deg, #ffd6d6, #ffaaaa); }
  .xhs-card.c2 { background: linear-gradient(160deg, #d6e8ff, #aaccff); }
  .xhs-card.c3 { background: linear-gradient(160deg, #d6ffd8, #aaffb0); }
  .xhs-card.c4 { background: linear-gradient(160deg, #fff3d6, #ffddaa); }
  .xhs-card-text { font-size: 10px; font-weight: 700; color: #333; }
  .xhs-card-sub  { font-size: 9px; color: #555; margin-top: 2px; }
  
  
  /* ══════════════════════════════════════
     BLOCK A2 — 브랜드 스토리
  ══════════════════════════════════════ */
  .block-a2 { background: var(--black); }
  .name-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
  .name-card { padding: 48px 36px; position: relative; overflow: hidden; }
  .name-card:nth-child(1) { background: var(--red); }
  .name-card:nth-child(2) { background: #1c1c1c; border: 1px solid #2a2a2a; }
  .name-card:nth-child(3) { background: #161616; border: 1px solid #2a2a2a; }
  .name-card-zh {
    font-family: 'Noto Serif SC', serif; font-size: 72px; font-weight: 900;
    line-height: 1; color: rgba(255,255,255,0.15);
    position: absolute; top: 16px; right: 20px;
  }
  .name-card-label { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 12px; }
  .name-card-title { font-size: 28px; font-weight: 900; color: white; margin-bottom: 16px; }
  .name-card-desc  { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.65); }
  
  .brand-statement {
    margin-top: 3px; background: var(--red);
    padding: 40px 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
  }
  .brand-statement p { font-size: clamp(18px, 2.5vw, 26px); font-weight: 700; color: white; line-height: 1.5; }
  .brand-statement p em { font-style: normal; opacity: 0.75; font-weight: 400; }
  
  
  /* ══════════════════════════════════════
     BLOCK B — 통계
  ══════════════════════════════════════ */
  .block-b { background: #0d0d12; }
  .stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: rgba(255,255,255,0.06);
    margin-top: 60px; border: 1px solid rgba(255,255,255,0.06);
  }
  .stat-item { background: #13131a; padding: 48px 32px; }
  .stat-num { font-size: clamp(36px, 4vw, 56px); font-weight: 900; color: var(--red); letter-spacing: -2px; line-height: 1; margin-bottom: 12px; }
  .stat-label { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }
  .stat-label strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
  
  .alert-box {
    margin-top: 3px; background: #111; color: white;
    padding: 40px 48px; display: flex; align-items: center; gap: 24px;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .alert-box .dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
  .alert-box p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.85); }
  .alert-box p strong { color: var(--red-light); }
  
  
  /* ══════════════════════════════════════
     BLOCK C — 프로세스
  ══════════════════════════════════════ */
  .block-c { background: #111118; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
  .step { background: #1a1a24; padding: 48px 36px; position: relative; overflow: hidden; }
  .step::after {
    content: attr(data-num);
    position: absolute; bottom: -10px; right: 12px;
    font-family: 'Noto Serif SC', serif; font-size: 100px; font-weight: 900;
    color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none;
  }
  .step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--red); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; margin-bottom: 28px;
  }
  .step-title { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 14px; }
  .step-desc  { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.6); }
  .step-tag   {
    display: inline-block; margin-top: 20px;
    font-size: 11px; color: var(--red-light);
    background: rgba(232,25,44,0.12);
    padding: 4px 10px; border-radius: 4px;
  }
  
  
  /* ══════════════════════════════════════
     BLOCK D — 신뢰 지표
  ══════════════════════════════════════ */
  .block-d { background: #0d0d12; }
  .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; }
  .trust-item {
    padding: 40px 32px;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 3px solid var(--red);
  }
  .trust-icon  { font-size: 32px; margin-bottom: 20px; }
  .trust-num   { font-size: 40px; font-weight: 900; color: var(--red); letter-spacing: -1px; margin-bottom: 8px; }
  .trust-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; }
  .trust-desc  { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); }
  
  
  /* ══════════════════════════════════════
     BLOCK REF — 레퍼런스
  ══════════════════════════════════════ */
  .block-ref { background: #13131a; }
  
  .ref-live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); color: white;
    padding: 8px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 700; margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .ref-live-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; animation: pulse-dot 1.8s infinite;
  }
  @keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  }
  
  .ref-counter-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
  .ref-counter-num  { font-size: clamp(40px, 6vw, 72px); font-weight: 900; color: var(--red); letter-spacing: -3px; line-height: 1; }
  .ref-counter-unit { font-size: 18px; font-weight: 700; color: #fff; }              /* ← 흰색 */
  .ref-counter-growing {
    font-size: 13px; color: rgba(255,255,255,0.5);
    border-left: 2px solid var(--red); padding-left: 12px; line-height: 1.5;
  }
  .ref-counter-growing strong { display: block; color: #fff; font-weight: 700; }    /* ← 흰색 */
  
  .ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 48px; }
  .ref-item { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #222; }
  .ref-item a { display: block; width: 100%; height: 100%; }
  .ref-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
  .ref-item:hover img { transform: scale(1.05); }
  .ref-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0);
    display: flex; align-items: flex-end; padding: 16px; transition: background 0.3s;
  }
  .ref-item:hover .ref-overlay { background: rgba(0,0,0,0.55); }
  .ref-overlay-label {
    opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s;
    font-size: 11px; font-weight: 700; color: white; letter-spacing: 1.5px; text-transform: uppercase;
  }
  .ref-item:hover .ref-overlay-label { opacity: 1; transform: translateY(0); }
  
  .ref-item.ref-more {
    background: var(--red);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    cursor: default;
  }
  .ref-more-num  { font-size: 44px; font-weight: 900; color: white; letter-spacing: -2px; line-height: 1; }
  .ref-more-text { font-size: 12px; color: rgba(255,255,255,0.85); text-align: center; line-height: 1.7; }
  .ref-more-dots { display: flex; gap: 5px; }
  .ref-more-dots span {
    width: 5px; height: 5px; border-radius: 50%; background: white; opacity: 0.6;
    animation: blink 1.2s ease-in-out infinite;
  }
  .ref-more-dots span:nth-child(2) { animation-delay: 0.2s; }
  .ref-more-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes blink { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.1; } }
  
  .ref-notice {
    margin-top: 20px; display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: rgba(255,255,255,0.35);
  }
  .ref-notice::before { content: ''; display: block; width: 16px; height: 1px; background: rgba(255,255,255,0.35); }
  
  
  /* ══════════════════════════════════════
     BLOCK E — CTA 분기
  ══════════════════════════════════════ */
  .block-e { background: var(--black); padding: 100px 0; }
  .cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 60px; }
  .cta-card {
    padding: 64px 48px; cursor: pointer;
    transition: transform 0.2s; text-decoration: none; display: block;
  }
  .cta-card:hover { transform: translateY(-4px); }
  .cta-card.advertiser { background: var(--red); }
  .cta-card.creator    { background: #1c1c1c; border: 1px solid #2a2a2a; }
  
  .cta-card-icon {
    font-size: 36px; margin-bottom: 24px; display: block;
    /* 레드 배경에서도 잘 보이게 배경 원 추가 */
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
  }
  .cta-card-label {
    font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.65);
    text-transform: uppercase; margin-bottom: 12px; margin-top: 24px;
  }
  .cta-card-title { font-size: 28px; font-weight: 900; color: white; margin-bottom: 16px; line-height: 1.3; }
  .cta-card-desc  { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.8; }
  
  .cta-btn { display: inline-flex; align-items: center; margin-top: 32px; }
  .cta-btn a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700;
    color: white; text-decoration: none; letter-spacing: 0.5px;
  }
  .cta-btn a::after { content: '→'; font-size: 16px; }
  
  
  /* ══════════════════════════════════════
     애니메이션
  ══════════════════════════════════════ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  
  
  /* ══════════════════════════════════════
     반응형
  ══════════════════════════════════════ */
  @media (max-width: 768px) {
    .container { padding: 0 24px; }
    section { padding: 72px 0; }
    .hero   { padding: 100px 0 60px; }
    .block-a-grid  { grid-template-columns: 1fr; gap: 40px; }
    .name-cards    { grid-template-columns: 1fr; }
    .stats-grid    { grid-template-columns: 1fr 1fr; }
    .steps         { grid-template-columns: 1fr; }
    .trust-grid    { grid-template-columns: 1fr; }
    .ref-grid      { grid-template-columns: repeat(2, 1fr); }
    .cta-grid      { grid-template-columns: 1fr; }
    .hero-facts    { gap: 0; }
    .hero-fact     { padding: 16px 24px; }
    .brand-statement { flex-direction: column; padding: 32px 24px; }
    .alert-box       { padding: 32px 24px; }
    .hero-multiuse   { flex-direction: column; border-radius: 12px; }
    .multiuse-item:first-child,
    .multiuse-item:last-child { border-radius: 8px; }
  }