/* ===========================
   사업영역 페이지
   =========================== */

/* ===== BUSINESS OVERVIEW ===== */
.biz-overview {
  background: var(--white);
}

.biz-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.biz-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.biz-nav-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.biz-nav-card:hover .biz-nav-icon,
.biz-nav-card:hover h4 {
  color: var(--white);
}

.biz-nav-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
}

.biz-nav-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.biz-nav-card h4 {
  font-size: 15px;
  color: var(--primary);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  line-height: 1.4;
  transition: var(--transition);
}

/* ===== BUSINESS SECTION ===== */
.biz-section {
  background: var(--white);
  padding: 100px 0;
  scroll-margin-top: 72px;
}

.biz-section.alt-bg {
  background: var(--bg);
}

.biz-header {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 64px;
}

.biz-number {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  min-width: 100px;
  padding-top: 4px;
  user-select: none;
}

.biz-header-text {
  flex: 1;
}

.biz-header-text p {
  color: var(--text-light);
  line-height: 1.9;
  max-width: 600px;
}

.biz-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.main-tag {
  background: var(--accent);
  color: var(--primary);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.biz-section.alt-bg .product-card {
  background: var(--white);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4dc, #d4cfc4);
}

/* 사업영역별 placeholder 색상 */
.sw-placeholder {
  background: linear-gradient(135deg, #1a1a2e 0%, #2a3a5e 100%);
}

.pt-placeholder {
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5e 100%);
}

.ct-placeholder {
  background: linear-gradient(135deg, #1a2e1a 0%, #2a5e3a 100%);
}

.ed-placeholder {
  background: linear-gradient(135deg, #2e1a0d 0%, #5e3a1a 100%);
}

.cn-placeholder {
  background: linear-gradient(135deg, #2e0d1a 0%, #5e1a3a 100%);
}

.product-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26, 26, 46, 0.85);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 24px;
}

.product-name {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
}

.product-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg);
  color: var(--text-light);
  border-radius: 2px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.product-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  display: inline-block;
  transition: var(--transition);
}

.product-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== PHONE FRAME (Floating Cabin) ===== */
.phone-frame-wrap {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.phone-frame {
  background: #1a1a2e;
  border-radius: 36px;
  padding: 14px 10px 20px;
  box-shadow:
    0 0 0 2px #2a2a4a,
    0 0 0 4px rgba(201,168,76,0.25),
    0 28px 60px rgba(26,26,46,0.45);
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 8px;
  background: #0d0d1a;
  border-radius: 10px;
  margin: 0 auto 10px;
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #f2f4f8;
  height: 520px;
}

.phone-screen iframe {
  width: 390px;
  height: 640px;
  border: none;
  transform: scale(0.667);
  transform-origin: top left;
  display: block;
  pointer-events: none;
}

.phone-home-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 12px auto 0;
}

/* ===== BROWSER FRAME (K-Mountain) ===== */
.browser-frame-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.browser-frame {
  background: #1e1e2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 28px 60px rgba(26,26,46,0.45);
}

.browser-toolbar {
  background: #2a2a3e;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.b-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.b-dot.red    { background: #ff5f57; }
.b-dot.yellow { background: #febc2e; }
.b-dot.green  { background: #28c840; }

.browser-url-bar {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-screen {
  overflow: hidden;
  height: 340px;
  background: #f0ede6;
  position: relative;
}

.browser-screen iframe {
  width: 1200px;
  height: 780px;
  border: none;
  transform: scale(0.433);
  transform-origin: top left;
  display: block;
  pointer-events: none;
}

.browser-screen.knowme-screen {
  height: 380px;
}

.browser-screen.knowme-screen iframe {
  height: 900px;
}

/* ===== APP SHOWCASE CARD ===== */
.app-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 56px 56px 56px 48px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.app-showcase-card:last-of-type {
  margin-bottom: 0;
}

.app-showcase-card:hover {
  box-shadow: var(--shadow-hover);
}

.app-showcase-card.reverse {
  grid-template-columns: 1.4fr 1fr;
}

.app-showcase-card.reverse .app-showcase-visual {
  order: 2;
}

.app-showcase-card.reverse .app-showcase-info {
  order: 1;
}

/* --- 모바일 목업 --- */
.app-showcase-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.app-mockup-wrap {
  width: 100%;
  max-width: 300px;
  perspective: 1000px;
}

.app-mockup-screen {
  background: var(--primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,26,46,0.3), 0 0 0 2px rgba(201,168,76,0.3);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.app-showcase-card.reverse .app-mockup-screen {
  transform: rotateY(4deg) rotateX(2deg);
}

.app-showcase-card:hover .app-mockup-screen {
  transform: rotateY(0deg) rotateX(0deg);
}

.mockup-status-bar {
  height: 10px;
  background: rgba(255,255,255,0.06);
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
}

.mockup-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.mockup-logo-dot.km-dot {
  background: #4caf82;
}

.mockup-title-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

.mockup-hero-img {
  height: 130px;
  margin: 0 12px 12px;
  border-radius: 8px;
}

.fc-hero {
  background: linear-gradient(135deg, #0d4f7a 0%, #1a7fbf 50%, #0d6b8f 100%);
  position: relative;
  overflow: hidden;
}

.fc-hero::after {
  content: '🛖';
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 32px;
  opacity: 0.6;
}

.km-hero {
  background: linear-gradient(135deg, #1a3a1a 0%, #2d6a2d 50%, #1a4a2a 100%);
  position: relative;
  overflow: hidden;
}

.km-hero::after {
  content: '🏔';
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 32px;
  opacity: 0.6;
}

.mockup-card-row {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.mockup-mini-card {
  flex: 1;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
}

.mockup-btn-bar {
  height: 36px;
  margin: 0 12px 16px;
  border-radius: 6px;
}

.fc-btn {
  background: linear-gradient(90deg, #1a7fbf, #0d4f7a);
}

.km-btn {
  background: linear-gradient(90deg, #2d6a2d, #1a3a1a);
}

.app-badge-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.app-live-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2d9e5f;
  background: rgba(45,158,95,0.12);
  border: 1px solid rgba(45,158,95,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* --- 앱 정보 --- */
.app-platform-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.app-name {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 4px;
  font-family: 'Playfair Display', 'Noto Sans KR', serif;
  font-weight: 700;
  line-height: 1.2;
}

.app-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 0;
  font-weight: 400;
}

.app-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 24px;
}

.app-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.feature-icon {
  font-size: 16px;
  min-width: 22px;
}

.app-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.app-url-chip {
  display: inline-block;
  font-size: 12px;
  color: var(--gray);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: monospace;
  letter-spacing: 0.02em;
}

/* ===== CTA BANNER (재사용) ===== */
.cta-banner {
  background: var(--primary);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-inner h2 {
  font-size: 28px;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-inner p {
  color: rgba(255,255,255,0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .biz-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-showcase-card,
  .app-showcase-card.reverse {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 40px;
  }

  .app-showcase-card.reverse .app-showcase-visual {
    order: 1;
  }

  .app-showcase-card.reverse .app-showcase-info {
    order: 2;
  }

  .browser-frame-wrap {
    max-width: 420px;
  }

  .browser-screen {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .biz-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .app-showcase-card,
  .app-showcase-card.reverse {
    padding: 28px 20px;
  }

  .app-name {
    font-size: 22px;
  }

  .app-cta-row {
    flex-direction: column;
  }

  .app-cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .biz-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }

  .biz-number {
    font-size: 48px;
    min-width: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .biz-nav-grid {
    grid-template-columns: 1fr;
  }
}
