/* ===================================================================
   korea.jptaxteam.com - White Clean Modern 테마 프리미엄 스타일시트
   - 바탕 색상 순백(White) & 쿨그레이 미니멀 테크 디자인
   - 22대 업종별 특화 UI / 인터랙티브 위젯 2종 / 58px 모바일 최적화
   - WCAG 2.1 AAA 고대비 가독성 및 반응형 모바일 완벽 대응
   =================================================================== */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* White Clean Modern Color Palette */
  --bg-white: #ffffff;
  --bg-page: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.92);

  /* Primary Brand Colors (Trust Blue & Tech Indigo) */
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-light: #eff6ff;
  --brand-indigo: #4f46e5;
  --brand-indigo-light: #eef2ff;
  --brand-cyan: #0284c7;
  --brand-emerald: #059669;
  --brand-emerald-light: #ecfdf5;
  --brand-amber: #d97706;
  --brand-amber-light: #fffbeb;

  /* Typography Colors */
  --text-title: #0f172a;
  --text-main: #1e293b;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: #3b82f6;
  --border-highlight: #bfdbfe;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-floating: 0 20px 40px -8px rgba(15, 23, 42, 0.16);

  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Crucial Fallbacks */
.hidden {
  display: none !important;
}


html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-white);
  color: var(--text-main);
  font-family: var(--font-base);
}

body {
  overflow-x: hidden;
  line-height: 1.65;
  background-color: var(--bg-white);
  color: var(--text-main);
  padding-top: 80px; /* Header Offset */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Common */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-page);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid var(--border-highlight);
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-badge-amber {
  background-color: var(--brand-amber-light);
  color: var(--brand-amber);
  border-color: #fde68a;
}

.section-badge-emerald {
  background-color: var(--brand-emerald-light);
  color: var(--brand-emerald);
  border-color: #a7f3d0;
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 16px;
  word-break: keep-all;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: keep-all;
}

@media (min-width: 768px) {
  .section-desc {
    font-size: 17.5px;
  }
}

/* Hero Section */
.hero-section {
  padding: 60px 0 90px;
  background: radial-gradient(circle at 50% 10%, #eff6ff 0%, #ffffff 60%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 24px;
  word-break: keep-all;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 50px;
  }
}

.hero-lead {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 32px;
  word-break: keep-all;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 19px;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 52px;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-indigo) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-title);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-page);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-kakao {
  background-color: #FEE500;
  color: #3c1e1e;
  border: 1px solid #ebd000;
  box-shadow: var(--shadow-sm);
}

.btn-kakao:hover {
  background-color: #ebd000;
  transform: translateY(-2px);
}

/* Cards & Grid */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-highlight);
}

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

.card-icon-blue { background-color: var(--brand-blue-light); color: var(--brand-blue); }
.card-icon-indigo { background-color: var(--brand-indigo-light); color: var(--brand-indigo); }
.card-icon-emerald { background-color: var(--brand-emerald-light); color: var(--brand-emerald); }
.card-icon-amber { background-color: var(--brand-amber-light); color: var(--brand-amber); }

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  word-break: keep-all;
  flex-grow: 1;
}

/* Cost Comparison Table */
.compare-table-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 32px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14.5px;
}

.compare-table th {
  background-color: var(--bg-page);
  font-weight: 800;
  color: var(--text-title);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .highlight-col {
  background-color: #eff6ff/50;
  font-weight: bold;
}

/* 22 Industry Cluster Tabs */
.industry-tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.industry-tab-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.industry-tab-btn.active, .industry-tab-btn:hover {
  background-color: var(--brand-blue);
  color: var(--text-white);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.industry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.industry-badge-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.industry-badge-card:hover {
  border-color: var(--brand-blue);
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Interactive Calculator Widget */
.calc-box {
  background-color: var(--bg-white);
  border: 2px solid var(--border-highlight);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: var(--shadow-floating);
  max-width: 720px;
  margin: 0 auto;
}

.calc-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-title);
  text-align: center;
  margin-bottom: 8px;
}

.calc-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 10px;
}

.form-select, .form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-page);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-title);
  transition: border-color 0.2s;
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.calc-result-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--text-white);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  margin-top: 28px;
}

.calc-price {
  font-size: 38px;
  font-weight: 900;
  color: #38bdf8;
  margin: 10px 0;
  letter-spacing: -0.02em;
}

/* Mobile Floating CTA Bar (58px 터치 영역) */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  z-index: 999;
  padding: 8px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1023px) {
  .mobile-floating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.floating-btn-kakao {
  flex: 1;
  height: 48px;
  background-color: #FEE500;
  color: #3c1e1e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 900;
  gap: 6px;
  border: 1px solid #ebd000;
}

.floating-btn-quote {
  flex: 1.2;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-indigo) 100%);
  color: var(--text-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 900;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}
