/* ==========================================================================
   Dental Implant DB Landing Page - Design System & Custom Styles
   Key Color: Medical Trust Blue (#0B5ED7 / #1E40AF)
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --primary: #0b5ed7;
  --primary-dark: #0947a5;
  --primary-light: #e8f2ff;
  --primary-gradient: linear-gradient(135deg, #0b5ed7 0%, #1e40af 100%);
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --accent-emerald: #10b981;
  --dark-navy: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --bg-light: #f8fafc;
  --white: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(11, 94, 215, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.2);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--dark-navy);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  padding-bottom: 0;
  /* 모바일 및 모든 해상도 한글 자동 단어 단위 줄맞춤 설정 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 모든 텍스트 요소 자동 단어 단위 줄바꿈 적용 */
h1, h2, h3, h4, h5, h6, p, span, label, button, a, div {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Typography Helpers */
.highlight-bold {
  font-weight: 800;
  color: var(--primary-dark);
  display: inline-block;
}

.text-accent-blue {
  color: #2563eb;
  font-weight: 800;
}

.text-gold {
  color: var(--accent-gold);
  font-weight: 800;
}

.text-white {
  color: var(--white);
}

/* Floating Real-time Rolling Toast Notification (3초 롤링) */
.rolling-toast-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 2000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: white;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4), 0 0 20px rgba(37, 99, 235, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: max-content;
  max-width: 92vw;
}

.rolling-toast-popup.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rolling-toast-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.rolling-toast-info {
  display: flex;
  flex-direction: column;
}

.rolling-toast-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rolling-toast-msg {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #edf4ff 0%, #ffffff 100%);
  padding: 40px 20px 60px;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-header {
  text-align: center;
  margin-bottom: 36px;
}

.hero-sub-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  word-break: keep-all;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--dark-navy);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  word-break: keep-all;
}

.hero-title .price-highlight-massive {
  color: #0b5ed7;
  font-size: 5.5rem;
  font-weight: 900;
  background: linear-gradient(120deg, #0b5ed7 0%, #2563eb 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-top: 6px;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--slate-700);
  font-weight: 600;
  max-width: 780px;
  margin: 0 auto 30px;
  word-break: keep-all;
  line-height: 1.6;
}

/* Hero Comparison Visual (Side by Side) */
.comparison-wrapper {
  margin: 30px 0 10px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.comparison-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.card-before {
  border-color: #fca5a5;
}

.card-after {
  border-color: #93c5fd;
}

.comparison-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.comparison-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 900;
  border-radius: var(--radius-sm);
  color: white;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tag-before {
  background: #dc2626;
}

.tag-after {
  background: #059669;
}

.vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #0f172a;
  color: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

/* Section Title Styling */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-navy);
  line-height: 1.35;
  word-break: keep-all;
}

/* Body Section - Core Pillars */
.features-section {
  padding: 70px 20px;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card.center-aligned {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border-color: #bfdbfe;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #3b82f6;
  opacity: 0.25;
  margin-bottom: 8px;
  line-height: 1;
}

/* Enlarged High-Visibility Icon Badge (Centered) */
.prominent-icon {
  width: 84px;
  height: 84px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 2px solid #93c5fd;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  transition: transform 0.3s ease;
}

.feature-card:hover .prominent-icon {
  transform: scale(1.1) rotate(4deg);
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark-navy);
  margin-bottom: 12px;
  line-height: 1.3;
  word-break: keep-all;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--slate-700);
  line-height: 1.5;
  font-weight: 600;
  word-break: keep-all;
}

.feature-tag-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag-list.center-tags {
  justify-content: center;
}

.feature-tag {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  word-break: keep-all;
}

/* Pure Clean Image Container (No Text) */
.clean-image-container {
  margin-top: 50px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clean-image-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.clean-image-container img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* DB Form Section */
.form-section {
  padding: 70px 20px;
  background: #0f172a;
  color: white;
  position: relative;
}

.form-container {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  word-break: keep-all;
}

.form-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 500;
  word-break: keep-all;
}

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

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 2px solid #334155;
  background: #0f172a;
  color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.form-input::placeholder {
  color: #64748b;
}

/* Agreement Checkbox */
.agreement-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  word-break: keep-all;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-terms-view {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.btn-submit-form {
  width: 100%;
  background: var(--primary-gradient);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  padding: 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
  word-break: keep-all;
}

.btn-submit-form:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  transform: translateY(-2px);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.btn-close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark-navy);
  margin-bottom: 12px;
  word-break: keep-all;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.6;
  max-height: 350px;
  overflow-y: auto;
  word-break: keep-all;
}

/* Success Modal Details */
.success-icon {
  width: 64px;
  height: 64px;
  background: #d1fae5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

/* Responsive Mobile Typography & Layout */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.35;
  }
  .hero-title .price-highlight-massive {
    font-size: 3.3rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .comparison-card img {
    height: 260px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 22px 18px;
  }
  .rolling-toast-popup {
    font-size: 0.85rem;
    padding: 8px 16px;
    top: 12px;
  }
  .rolling-toast-msg {
    font-size: 0.85rem;
  }
}
