/* ===================================================
   mobile.css — 모바일 / 태블릿 전용 스타일
   PC와 충돌 없이 미디어쿼리로 완전 분리
   =================================================== */

/* =========================================
   태블릿 (max-width: 960px)
   ========================================= */
@media (max-width: 960px) {

  /* --- 모바일: 풀페이지 해제, 자유 스크롤 --- */
  html, body {
    height: auto !important;
    overflow: auto !important;
  }

  #fullpage {
    height: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .fp-section {
    height: auto !important;
    min-height: 100vh;
    scroll-snap-align: none !important;
    overflow: visible !important;
    padding-top: 56px;
  }

  #fpDots { display: none; }

  /* --- 헤더 --- */
  header { position: fixed !important; top: 0; left: 0; right: 0; }
  nav { height: 56px; }

  /* --- 햄버거 --- */
  .hamburger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    padding: 6px; z-index: 310; position: relative;
  }
  .hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: all 0.3s ease; transform-origin: center;
  }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links { display: none !important; }
  .nav-contact { display: none !important; }

  /* --- 모바일 드롭다운 메뉴 --- */
  .mobile-nav-dropdown {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-nav-dropdown.open {
    max-height: 300px;
  }

  .mobile-nav-dropdown a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s, color 0.2s;
  }

  .mobile-nav-dropdown a:last-child {
    border-bottom: none;
  }

  .mobile-nav-dropdown a:hover {
    background: var(--bg-primary);
    color: var(--blue);
  }

  /* --- 히어로 --- */
  .fp-section#hero { padding-top: 56px; }
  .hero-title { font-size: 40px; }

  /* =============================================
     2번째 섹션: 데이터의 기원
     ============================================= */
  .fp-section#mission { padding-top: 56px; }
  .fp-section#mission > .container {
    min-height: calc(100vh - 56px); height: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 24px;
  }

  .origin-slogan { font-size: 28px; margin-bottom: 36px; }
  .origin-flow { gap: 16px; }
  .origin-card { flex: 0 0 180px; }
  .origin-visual { width: 130px; height: 130px; border-radius: 24px; margin-bottom: 14px; }
  .origin-icon-svg { width: 100px; height: 100px; }
  .origin-label { font-size: 17px; }
  .origin-desc { font-size: 13px; }
  .origin-arrow-line span { width: 24px; }

  /* =============================================
     3번째 섹션: 슬로건
     ============================================= */
  .fp-section#slogan { padding-top: 56px; }
  .slogan-title { font-size: 36px; }

  /* =============================================
     4번째 섹션: 서비스
     태블릿: 모니터 숨기고 폰만 크게 표시
     ============================================= */
  .fp-section#products {
    padding-top: 56px;
    overflow-x: hidden !important;
  }

  .fp-section#products > .container {
    min-height: calc(100vh - 56px); height: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 16px 24px 12px;
    overflow: hidden;
    max-width: 100%;
  }

  .fp-section#products .svc-slider {
    flex: none !important;
    min-height: auto !important;
    overflow: hidden !important;
    max-width: 100%;
  }

  .svc-slide {
    grid-template-columns: 1fr !important;
    gap: 20px;
    text-align: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
  }

  /* 모니터 숨김, 폰만 표시 */
  .svc-monitor { display: none !important; }

  .svc-devices {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .svc-slider {
    overflow: hidden !important;
    max-width: 100%;
  }

  .svc-track {
    max-width: 100%;
  }

  .svc-phone-float {
    position: relative;
    right: auto; bottom: auto;
    animation: none;
  }

  .svc-phone-frame {
    width: 200px;
    height: 400px;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15), inset 0 0 0 1.5px rgba(255,255,255,0.08);
  }

  .svc-phone-notch {
    width: 80px; height: 18px;
    border-radius: 0 0 12px 12px;
  }

  .svc-phone-screen {
    border-radius: 22px;
    padding: 28px 12px 12px;
    gap: 8px;
  }

  /* 폰 앱 내부: 태블릿 크기 */
  .svc-app-bar { padding-bottom: 8px; }
  .svc-app-logo { font-size: 14px; }
  .svc-app-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(22,199,132,0.2); }
  .svc-app-card { padding: 12px; border-radius: 12px; }
  .svc-app-card-title { font-size: 10px; margin-bottom: 8px; }
  .svc-app-row { font-size: 12px; padding: 6px 0; }
  .svc-app-row strong { font-size: 13px; }
  .svc-app-row em { font-size: 10px; }
  .svc-app-chart svg { height: 44px; }
  .svc-app-stats { padding: 8px 0 4px; }
  .svc-app-stats strong { font-size: 13px; }
  .svc-app-stats span { font-size: 8px; }

  .svc-info { align-items: center; }
  .svc-badge { align-self: center; }
  .svc-name { font-size: 30px; }
  .svc-desc { font-size: 14px; max-width: 380px; margin-left: auto; margin-right: auto; }
  .svc-buttons { justify-content: center; flex-wrap: wrap; }
  .svc-btn { font-size: 13px; padding: 10px 16px; }

  /* --- 핵심 가치 --- */
  .fp-section#values { padding-top: 56px; }
  .fp-section#values > .container {
    min-height: calc(100vh - 56px); height: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 24px;
  }
  .fp-section#values .section-header { margin-bottom: 24px; }
  .section-title { font-size: 26px; }
  .val-grid { gap: 14px; }
  .val-card { padding: 24px 20px; gap: 18px; }
  .val-card:hover { transform: none; box-shadow: var(--shadow-card); }
  .val-icon-wrap { width: 60px; height: 60px; border-radius: 16px; }
  .val-svg { width: 36px; height: 36px; }
  .val-title { font-size: 17px; }
  .val-desc { font-size: 12px; }

  /* --- 문의 --- */
  .fp-section#contact { padding-top: 56px; }
  .fp-section#contact > .container {
    min-height: calc(100vh - 56px); height: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 24px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .contact-card { text-align: left; }
  .contact-title { font-size: 30px; }
  .contact-desc br { display: none; }

  /* --- 푸터 --- */
  footer {
    padding: 40px 0 24px;
  }
  .fp-footer > .container {
    height: auto;
    display: block;
  }

  /* --- 회사 정보 --- */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-title { font-size: 28px; }
}


/* =========================================
   모바일 (max-width: 640px)
   ========================================= */
@media (max-width: 640px) {

  .fp-section { padding-top: 52px; }
  .container { padding: 0 16px; }
  nav { height: 52px; }

  .mobile-nav-dropdown { top: 52px; }

  /* --- 히어로 --- */
  .fp-section#hero { padding-top: 52px; }
  .hero-title { font-size: 32px; letter-spacing: -1.2px; }

  /* =============================================
     2번째 섹션: 세로 3행, 카드형, SVG 크게
     ============================================= */
  .fp-section#mission > .container {
    min-height: calc(100vh - 52px); height: auto;
    padding: 20px 16px;
  }

  .origin-slogan {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: -1px;
  }

  /* 가로 → 세로 */
  .origin-flow {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  /* 화살표 숨김 (세로 공간 확보) */
  .origin-arrow { display: none; }

  /* 카드: 가로형 (큰 아이콘 좌 + 텍스트 우) */
  .origin-card {
    flex: none;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 12px auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .origin-card:last-child { margin-bottom: 0; }

  /* 비주얼: 크게 유지 */
  .origin-visual {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin: 0;
    flex-shrink: 0;
    box-shadow: none;
    border: none;
    background: var(--bg-primary);
  }

  .origin-icon-svg {
    width: 76px;
    height: 76px;
  }

  .origin-card:hover .origin-visual {
    transform: none;
    box-shadow: none;
  }

  .origin-label {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .origin-desc {
    font-size: 14px;
    color: var(--text-secondary);
  }

  /* =============================================
     3번째: 슬로건
     ============================================= */
  .slogan-title { font-size: 26px; letter-spacing: -1px; }

  /* =============================================
     4번째: 서비스
     모바일: 폰 목업만 깔끔하게 중앙 표시
     ============================================= */
  .fp-section#products { padding-top: 52px; }
  .fp-section#products > .container {
    min-height: calc(100vh - 52px); height: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 10px 16px 8px;
  }

  .fp-section#products .svc-slider {
    flex: none !important;
    min-height: auto !important;
    overflow: hidden;
  }

  .svc-slide {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    padding: 0;
  }

  .svc-phone-frame {
    width: 170px;
    height: 340px;
    border-radius: 26px;
    padding: 8px;
  }

  .svc-phone-notch {
    width: 70px; height: 16px;
    border-radius: 0 0 10px 10px;
  }

  .svc-phone-screen {
    border-radius: 20px;
    padding: 24px 10px 10px;
    gap: 7px;
  }

  /* 폰 앱 내부: 선명하게 보이는 크기 */
  .svc-app-bar { padding-bottom: 6px; }
  .svc-app-logo { font-size: 12px; }
  .svc-app-dot { width: 6px; height: 6px; box-shadow: 0 0 0 2px rgba(22,199,132,0.2); }
  .svc-app-card { padding: 10px; border-radius: 10px; }
  .svc-app-card-title { font-size: 9px; margin-bottom: 6px; }
  .svc-app-row { font-size: 10px; padding: 5px 0; }
  .svc-app-row strong { font-size: 11px; }
  .svc-app-row em { font-size: 9px; }
  .svc-app-chart svg { height: 36px; }
  .svc-app-stats { padding: 6px 0 2px; }
  .svc-app-stats strong { font-size: 11px; }
  .svc-app-stats span { font-size: 7px; }

  /* 서비스 정보 */
  .svc-info { align-items: center; }
  .svc-badge { align-self: center; font-size: 11px; padding: 4px 12px; margin-bottom: 8px; }
  .svc-name { font-size: 24px; margin-bottom: 6px; }
  .svc-desc { font-size: 13px; margin-bottom: 12px; max-width: 320px; margin-left: auto; margin-right: auto; }
  .svc-buttons { justify-content: center; flex-wrap: wrap; gap: 6px; }
  .svc-btn { font-size: 11px; padding: 8px 14px; border-radius: 10px; gap: 5px; }
  .svc-btn svg { width: 13px; height: 13px; }

  /* 네비게이션 */
  .svc-nav { margin-top: 10px; gap: 12px; }
  .svc-arrow { width: 32px; height: 32px; }
  .svc-arrow svg { width: 16px; height: 16px; }
  .svc-dot { width: 6px; height: 6px; }
  .svc-dot.active { width: 22px; }

  /* --- 핵심 가치 --- */
  .fp-section#values { padding-top: 52px; }
  .fp-section#values > .container {
    min-height: calc(100vh - 52px); height: auto;
    padding: 16px;
  }
  .fp-section#values .section-header { margin-bottom: 16px; }
  .section-title { font-size: 22px; }
  .section-desc { font-size: 13px; }
  .val-grid { grid-template-columns: 1fr; gap: 10px; }
  .val-card { padding: 16px 16px; gap: 14px; border-radius: 16px; }
  .val-icon-wrap { width: 52px; height: 52px; border-radius: 14px; }
  .val-svg { width: 32px; height: 32px; }
  .val-title { font-size: 15px; margin-bottom: 2px; }
  .val-desc { font-size: 12px; }

  /* --- 문의 --- */
  .fp-section#contact { padding-top: 52px; }
  .fp-section#contact > .container {
    min-height: calc(100vh - 52px); height: auto;
    padding: 20px 16px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .contact-title { font-size: 24px; margin-bottom: 10px; }
  .contact-title br { display: none; }
  .contact-desc { font-size: 14px; }
  .contact-desc br { display: none; }
  .contact-cards { gap: 10px; }
  .contact-card { padding: 16px; gap: 14px; border-radius: 14px; }
  .contact-card-icon { width: 36px; height: 36px; border-radius: 10px; }
  .contact-card-icon svg { width: 18px; height: 18px; }
  .contact-card-label { font-size: 11px; }
  .contact-card-value { font-size: 13px; }

  /* --- 푸터 --- */
  .fp-footer > .container { height: auto; padding: 16px; display: block; }
  footer { padding: 32px 0 20px; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-info { font-size: 11px; line-height: 1.9; }
  .footer-copyright { font-size: 11px; }
}


/* =========================================
   초소형 모바일 (max-width: 380px)
   ========================================= */
@media (max-width: 380px) {

  .container { padding: 0 12px; }
  .hero-title { font-size: 26px; }

  /* 2번째 섹션 */
  .origin-slogan { font-size: 17px; margin-bottom: 14px; }

  .origin-card {
    padding: 14px 16px; gap: 14px;
    max-width: 320px; border-radius: 16px;
    margin-bottom: 10px;
  }

  .origin-visual { width: 80px; height: 80px; border-radius: 18px; margin: 0; }
  .origin-icon-svg { width: 60px; height: 60px; }
  .origin-label { font-size: 16px; }
  .origin-desc { font-size: 13px; }

  /* 3번째: 슬로건 */
  .slogan-title { font-size: 22px; }

  /* 4번째: 서비스 */
  .svc-phone-frame { width: 150px; height: 300px; border-radius: 22px; padding: 7px; }
  .svc-phone-notch { width: 60px; height: 14px; }
  .svc-phone-screen { border-radius: 17px; padding: 20px 8px 8px; gap: 5px; }
  .svc-app-logo { font-size: 10px; }
  .svc-app-card { padding: 7px; border-radius: 8px; }
  .svc-app-card-title { font-size: 7px; }
  .svc-app-row { font-size: 8px; padding: 3px 0; }
  .svc-app-row strong { font-size: 9px; }
  .svc-app-chart svg { height: 28px; }
  .svc-app-stats strong { font-size: 9px; }
  .svc-app-stats span { font-size: 6px; }

  .svc-name { font-size: 20px; }
  .svc-desc { font-size: 12px; margin-bottom: 10px; }
  .svc-btn { font-size: 10px; padding: 7px 10px; }
  .svc-btn svg { width: 11px; height: 11px; }

  /* 나머지 */
  .section-title { font-size: 20px; }
  .val-grid { gap: 8px; }
  .val-card { padding: 12px 14px; gap: 12px; }
  .val-icon-wrap { width: 44px; height: 44px; }
  .val-svg { width: 28px; height: 28px; }
  .val-title { font-size: 14px; }
  .val-desc { font-size: 11px; }

  .contact-title { font-size: 20px; }
  .contact-inner { gap: 16px; }
  .contact-card { padding: 14px; gap: 12px; }
  .contact-card-value { font-size: 12px; }

  .mobile-nav-dropdown a { font-size: 14px; padding: 14px 20px; }
  .footer-sep { display: none; }
  .footer-info span { display: block; }
}
