/* ===== 기본 설정 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #1a2332;
  --secondary-dark: #24313e;
  --accent-mint: #7ad9c5;
  --accent-coral: #e17055;
  --light-bg: #f5fcfb;
  --white: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --text-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 버튼 스타일 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-mint);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: #5fc9b3;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-coral);
  color: var(--white);
}

.btn-accent:hover {
  background: #d45a43;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== 네비게이션 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary-dark);
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.logo i {
  color: var(--accent-mint);
  font-size: 28px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--accent-mint);
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ===== 히어로 섹션 ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--accent-mint);
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-mint);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.dashboard-preview {
  background: var(--white);
  border-radius: 16px;
  padding: 0;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-header {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.preview-content {
  padding: 24px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--light-bg);
  color: var(--text-dark);
}

.preview-item i {
  color: var(--accent-mint);
  font-size: 20px;
}

.preview-item.highlight-item {
  background: linear-gradient(135deg, var(--accent-mint), #5fc9b3);
  color: var(--white);
}

.preview-item.highlight-item i {
  color: var(--white);
}

/* ===== 신뢰 배지 ===== */
.trust-badges {
  background: var(--light-bg);
  padding: 40px 0;
}

.trust-title {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
}

.badges-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.badge-item {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.badge-item:hover {
  opacity: 1;
}

/* ===== 섹션 공통 ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(122, 217, 197, 0.15);
  color: var(--accent-mint);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ===== 서비스 섹션 ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-mint);
}

.service-card.featured {
  border-color: var(--accent-coral);
  background: linear-gradient(135deg, rgba(225, 112, 85, 0.05), rgba(225, 112, 85, 0.02));
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-mint), #5fc9b3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon i {
  font-size: 28px;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.service-tag.free {
  background: rgba(122, 217, 197, 0.15);
  color: #0d9488;
}

.service-tag.premium {
  background: rgba(225, 112, 85, 0.15);
  color: var(--accent-coral);
}

/* ===== 기능 섹션 ===== */
.features {
  padding: 100px 0;
  background: var(--light-bg);
}

.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.features-text .section-tag {
  margin-bottom: 16px;
}

.features-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 40px;
  line-height: 1.3;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-item .feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.feature-item .feature-icon i {
  font-size: 20px;
  color: var(--accent-mint);
}

.feature-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.features-visual {
  display: flex;
  justify-content: center;
}

.analysis-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}

.analysis-header {
  background: var(--primary-dark);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analysis-header h4 {
  color: var(--white);
  font-size: 16px;
}

.analysis-header .badge {
  background: var(--accent-mint);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.analysis-body {
  padding: 24px;
}

.analysis-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.analysis-row:last-of-type {
  border-bottom: none;
}

.analysis-row span:first-child {
  color: var(--text-light);
  font-size: 14px;
}

.analysis-row span:last-child {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
}

.analysis-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.recommended-price {
  background: linear-gradient(135deg, rgba(122, 217, 197, 0.1), rgba(122, 217, 197, 0.05));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.recommended-price > span {
  display: block;
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 8px;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.percentage {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-mint);
}

.confidence {
  font-size: 13px;
  color: var(--text-light);
  background: var(--white);
  padding: 4px 8px;
  border-radius: 8px;
}

.price-range {
  padding: 0 8px;
}

.range-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  position: relative;
}

.range-fill {
  position: absolute;
  left: 20%;
  right: 30%;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent-mint), #5fc9b3);
  border-radius: 4px;
}

.range-marker {
  position: absolute;
  left: 48%;
  top: -4px;
  width: 16px;
  height: 16px;
  background: var(--accent-coral);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 요금제 섹션 ===== */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--accent-mint);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-mint);
  color: var(--primary-dark);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.price .period {
  font-size: 15px;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-dark);
}

.pricing-features li i {
  color: var(--accent-mint);
  font-size: 14px;
}

.pricing-features li.disabled {
  color: var(--text-light);
}

.pricing-features li.disabled i {
  color: #cbd5e1;
}

/* ===== CTA 섹션 ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.cta-content {
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* ===== 푸터 ===== */
.footer {
  background: var(--primary-dark);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent-mint);
  color: var(--primary-dark);
}

.footer-links h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-mint);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-bottom: 8px;
}

/* ===== 챗봇 위젯 ===== */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-coral), #d45a43);
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(225, 112, 85, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--accent-mint);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: var(--primary-dark);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
}

.chatbot-title i {
  color: var(--accent-mint);
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s;
}

.chatbot-close:hover {
  color: var(--white);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
}

.message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
}

.message.user .message-avatar {
  background: var(--accent-coral);
}

.message-content {
  background: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 75%;
}

.message.user .message-content {
  background: var(--accent-coral);
  color: var(--white);
  border-radius: 12px;
  border-top-right-radius: 4px;
}

.message-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-reply {
  background: var(--white);
  border: 1px solid var(--accent-mint);
  color: var(--accent-mint);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-reply:hover {
  background: var(--accent-mint);
  color: var(--white);
}

.chatbot-input {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  background: var(--white);
}

.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.chatbot-input input:focus {
  border-color: var(--accent-mint);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-mint);
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.send-btn:hover {
  background: #5fc9b3;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 60px;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .features-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .features-text {
    text-align: center;
  }

  .feature-list {
    text-align: left;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-header h2,
  .features-text h2,
  .cta h2 {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .badges-slider {
    gap: 24px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .chatbot-window {
    width: calc(100vw - 48px);
    right: -12px;
    height: 450px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
  }

  .dashboard-preview {
    max-width: 100%;
  }

  .analysis-card {
    max-width: 100%;
  }
}

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-visual {
  animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
  animation-delay: 0.2s;
}
