/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #5B8DEE;
  --primary-dark: #4A7DD9;
  --primary-light: #6BA0F5;
  --secondary-color: #10B981;
  --dark-green: #065F46;
  --text-dark: #111827;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --bg-white: #FFFFFF;
  --bg-gray: #F8FAFC;
  --bg-gray-dark: #F1F5F9;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  position: relative;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-green);
  letter-spacing: -0.8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--text-dark);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

.header-actions a:hover {
  color: var(--dark-green);
}

.divider {
  color: var(--text-gray);
  font-weight: 400;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  background: var(--bg-white);
  background-image: url('images/main-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero > .container {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* 높이별 반응형 조정 */
@media (max-height: 800px) {
  .hero-wrapper {
    padding: 0;
    gap: 40px;
  }

  .hero-title {
    font-size: 48px;
    margin-bottom: 10px;
  }

  .hero-brand {
    margin-bottom: 6px;
  }

  .hero-description {
    font-size: 18px;
    line-height: 1.5;
  }
}

@media (max-height: 700px) {
  .hero-wrapper {
    padding: 0;
    gap: 30px;
  }

  .hero-title {
    font-size: 42px;
    margin-bottom: 8px;
  }

  .hero-brand {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.4;
  }

  .hero-bottom {
    padding: 22.5px 0;
  }
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;

}

.hero-left {
  padding-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  height: 100%;
}

.hero-brand {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -1.5px;
  color: var(--text-dark);
}

.hero-description {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-gray);
  font-weight: 400;
  margin: 0;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 20px 0;
}

.hero-image-box {
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 200px);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bottom {
  background: linear-gradient(135deg, var(--dark-green) 0%, #047857 100%);
  padding: 30px 0;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.hero-bottom p {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Section Styles */
.section {
  padding: 120px 0;
}

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

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

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.section-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.section-subdescription {
  font-size: 16px;
  color: var(--text-light);
}

/* AI Engine Section */
#ai-engine {
  padding-top: 100px;

}

.ai-engine-header {
  margin-bottom: 60px;
}

.ai-engine-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: left;
  letter-spacing: -1px;
}

.ai-engine-description {
  list-style: none;
  padding-left: 0;
}

.ai-engine-description li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}

.ai-engine-description li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  background: rgba(91, 141, 238, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.semi-bold {
  font-weight: 600;
}

/* Features Grid New */
.features-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card-new {
  display: flex;
  flex-direction: column;
}

.feature-image-box {
  width: 100%;
  aspect-ratio: 1 / 0.75;
  background: #f8f8fc;
  border: 1px solid #E5E7EB;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.feature-image-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.feature-icon {
  width: 60%;
  height: 60%;
  max-width: none;
  max-height: none;
  opacity: 1;
  object-fit: contain;
}

.feature-card-new .feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.feature-card-new .feature-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* How It Works Detailed */
.how-it-works-detailed {
  margin-top: 80px;
  padding: 48px 0;
}

.section-sub-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
  width: fit-content;
  text-transform: uppercase;
}

.how-title-detailed {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 40px 0;
  color: var(--text-dark);
  text-align: left;
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 20px;
}

.how-title-detailed::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  min-width: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 0;
}

.step-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.6;
  letter-spacing: -0.3px;
}

.step-image-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px;
}

.step-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Step Detail Card */
.step-detail-card {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.step-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.step-detail-image:hover {
  transform: scale(1.02);
}

.step-image-box:empty::after {
  content: '이미지로 표시';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* Step Input Card */
.step-input-card {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 300px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.step-input-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-width: 0;
  box-sizing: border-box;
}

.step-input-wrapper {
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-width: 0;
  box-sizing: border-box;
}

.step-input-field {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #374151;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  line-height: 1.5;
  min-width: 0;
  width: 100%;
}

.step-input-card .step-input-field {
  color: #1F2937;
  font-weight: 500;
}

.step-input-field::placeholder {
  color: #9CA3AF;
}

.step-input-send {
  background: #F3F4F6;
  border: none;
  cursor: pointer;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.step-input-send:hover {
  background: #E5E7EB;
  color: #374151;
}

.step-input-send svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Step AI Analysis Card */
.step-ai-analysis-card {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 300px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 24px;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.step-ai-scroll-card {
  padding-bottom: 0;
  gap: 20px 0;
}

.step-ai-input-area {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
}

.step-ai-input-area .step-input-wrapper {
  max-width: 100%;
  width: 100%;
  padding: 8px 14px;
  min-width: 0;
  box-sizing: border-box;
}

.step-ai-input-area .step-input-field {
  font-size: 13px;
}

.step-ai-input-area .step-input-send {
  width: 32px;
  height: 32px;
  padding: 6px;
}

.step-ai-input-area .step-input-send svg {
  width: 16px;
  height: 16px;
}

.step-input-wrapper-question {
  border-color: #E5E7EB;
}

.input-prefix {
  color: #EF4444;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: -8px;
}

.ai-response-list {
  margin-top: 16px;
}

.ai-response-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ai-response-list-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  flex-shrink: 0;
  min-width: 24px;
}

.ai-response-list-content {
  flex: 1;
  min-width: 0;
}

.ai-response-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.6;
}

.ai-response-list-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
}

.step-ai-response-area {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.ai-response-box {
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  box-sizing: border-box;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-avatar span {
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ai-response-content {
  flex: 1;
  background: #F3F4F6;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ai-response-scrollable {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

/* Step 4 scroll card specific styles */
.step-ai-scroll-card {
  padding-bottom: 0;
  overflow: hidden;
}

.step-ai-scroll-card .step-ai-response-area {
  margin-bottom: 0;
  align-items: stretch;
  padding-bottom: 0;
  margin-top: 0;
}

.step-ai-scroll-card .ai-response-box {
  align-items: stretch;
  height: 100%;
}

.step-ai-scroll-card .ai-response-content {
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.ai-response-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
}

.ai-response-title-line {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.6;
}

.ai-response-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
}

.typing-cursor {
  display: inline-block;
  color: var(--text-dark);
  font-weight: 700;
  animation: blink 0.8s infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Advanced Search */
.advanced-search-header {
  margin-bottom: 40px;
}

.advanced-search-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: left;
}

.advanced-search-description {
  list-style: none;
  padding-left: 0;
}

.advanced-search-description li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}

.advanced-search-description li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  background: rgba(91, 141, 238, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Advanced Search Image */
.advanced-search-image-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 300px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

.advanced-search-header-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  padding: 18px 24px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.advanced-search-header-text {
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.advanced-search-image-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.advanced-search-image {
  width: 100%;
  flex: 1;
  object-fit: contain;
  display: block;
  padding: 60px 80px;
}

.search-form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: left;
}

.advanced-search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-form-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
}

.search-form-row-inline {
  display: grid;
  grid-template-columns: 140px 1fr 1fr auto;
  gap: 20px;
  align-items: start;
}

.search-form-row-inline > .search-form-field-inline {
  align-self: start;
}

.search-form-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
}

.search-form-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  background: white;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.search-form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.1);
}

.search-form-input::placeholder {
  color: var(--text-light);
}

.search-form-operators {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.operator-btn {
  padding: 8px 14px;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
  white-space: nowrap;
}

.operator-btn:hover {
  background: var(--bg-gray-dark);
  border-color: var(--text-gray);
  color: var(--text-dark);
}

.operator-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.search-form-field-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-form-field-inline .search-form-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.search-form-description-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
}

.description-arrow {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.description-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
}

.search-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 8px;
}

.btn-detailed-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-detailed-search:hover {
  background: var(--bg-gray);
  border-color: var(--text-gray);
}

.btn-detailed-search svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px -2px rgba(91, 141, 238, 0.3);
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(91, 141, 238, 0.4);
}

.btn-search svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

@media (max-width: 1024px) {
  .search-form-row {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }

  .search-form-row-inline {
    grid-template-columns: 120px 1fr 1fr;
    gap: 16px;
  }

  .search-form-description-box {
    grid-column: 1 / -1;
    max-width: 100%;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .advanced-search-form-container {
    padding: 24px;
  }

  .search-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-form-row-inline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .search-form-description-box {
    grid-column: 1;
    max-width: 100%;
    min-width: auto;
  }

  .search-form-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form-operators {
    align-self: flex-end;
  }

  .search-form-actions {
    flex-direction: column;
  }

  .btn-detailed-search,
  .btn-search {
    width: 100%;
    justify-content: center;
  }
}

/* AI Analysis Info */
.ai-analysis-info {
  margin-top: 60px;
}

.ai-analysis-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 40px 0;
  color: var(--text-dark);
  text-align: left;
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 20px;
}

.ai-analysis-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.analysis-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .analysis-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

.analysis-category {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-header {
  padding: 18px 24px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

.category-header.category-blue {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.category-header.category-indigo {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.category-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.category-item {
  padding: 14px 18px;
  background: white;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.category-item:hover {
  background: var(--bg-gray);
  border-color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* IP Manager */
.ip-manager-header {
  margin-bottom: 60px;
}

.ip-manager-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: left;
}

.ip-manager-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.ip-features-new {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

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

.ip-feature-item > * {
  flex: 1;
}

.ip-feature-item-reverse .ip-feature-content {
  order: 2;
}

.ip-feature-item-reverse .ip-feature-image-box {
  order: 1;
}

.ip-feature-content {
  display: flex;
  flex-direction: column;
}

.ip-feature-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 20px;
}

.ip-feature-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.ip-feature-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.ip-feature-list {
  list-style: none;
  padding-left: 0;
}

.ip-feature-list li {
  font-size: 15px;
  color: var(--text-dark);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.ip-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(91, 141, 238, 0.3);
}

.ip-feature-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 250px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ip-feature-image-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.ip-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ip-feature-image:hover {
  transform: scale(1.02);
}

.ip-feature-image-box::after {
  content: '이미지로 표시';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 500;
  z-index: 1;
}

.ip-feature-image-box img[src]:not([src=""]) {
  position: relative;
  z-index: 2;
}

.ip-feature-image-box:has(img[src]:not([src=""]))::after {
  display: none;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-modal-close:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.image-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.image-modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .image-modal-content {
    padding: 20px;
    max-width: 95%;
    max-height: 95%;
  }

  .image-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .image-modal-close svg {
    width: 20px;
    height: 20px;
  }
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  font-size: 19px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.3);
  letter-spacing: -0.3px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(79, 70, 229, 0.4);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: white;
  padding: 64px 0 32px;
}

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

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  letter-spacing: -0.8px;
}

.footer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero {
    min-height: auto;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: clamp(20px, 4vh, 40px) 0 clamp(10px, 1.5vh, 20px) 0;
  }

  .hero-left {
    padding-right: 0;
  }

  .hero-image-box {
    max-width: 600px;
    margin: 0 auto;
    max-height: 50vh;
  }

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

  .patent-info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
  }

  .nav {
    gap: 24px;
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    font-size: 15px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-wrapper {
    padding: clamp(15px, 3vh, 30px) 0 clamp(10px, 1vh, 15px) 0;
    gap: 20px;
  }

  .hero-title {
    font-size: 38px;
    margin-bottom: 16px;
  }

  .hero-brand {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 18px;
    line-height: 1.6;
  }

  .hero-image-box {
    max-height: 40vh;
  }

  .hero-bottom p {
    font-size: 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 36px;
  }

  .ai-engine-title,
  .advanced-search-title,
  .ip-manager-title {
    font-size: 36px;
  }

  .how-title-detailed {
    font-size: 22px;
  }

  .ai-analysis-title {
    font-size: 22px;
  }

  .section-badge {
    font-size: 12px;
    padding: 5px 14px;
  }

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

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

  .feature-image-box {
    padding: 20px;
    aspect-ratio: 1 / 1;
    max-width: 200px;
    margin: 0 auto 10px;
  }

  .feature-icon {
    width: 60%;
    height: 60%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-item {
    padding: 20px;
    overflow: hidden;
  }

  .step-input-card,
  .step-ai-analysis-card {
    padding: 16px;
  }

  .step-input-area,
  .step-ai-analysis-card {
    padding: 16px;
  }

  .step-item-title {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .analysis-categories {
    grid-template-columns: 1fr;
  }

  .patent-tabs {
    flex-wrap: wrap;
    padding: 0 12px;
  }

  .patent-tab {
    font-size: 13px;
    padding: 12px 16px;
  }

  .ip-feature-item {
    flex-direction: column;
    gap: 32px;
  }

  .ip-feature-item-reverse {
    flex-direction: column;
  }

  .ip-feature-item-reverse .ip-feature-content {
    order: 1;
  }

  .ip-feature-item-reverse .ip-feature-image-box {
    order: 2;
  }

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

  .how-it-works {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .logo {
    font-size: 24px;
  }

  .nav {
    order: 2;
    width: 100%;
    gap: 16px;
  }

  .nav a {
    font-size: 14px;
  }

  .header-actions {
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }

  .hero-wrapper {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-brand {
    font-size: 24px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-bottom p {
    font-size: 18px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .ai-engine-title,
  .advanced-search-title,
  .ip-manager-title {
    font-size: 28px;
  }

  .btn-primary {
    padding: 16px 36px;
    font-size: 16px;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.feature-card-new {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card-new:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-card-new:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card-new:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card-new:nth-child(4) {
  animation-delay: 0.4s;
}

.ip-feature-item {
  animation: fadeInUp 0.8s ease-out;
}

.step-item {
  animation: fadeInUp 0.6s ease-out;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}

.step-item:nth-child(2) {
  animation-delay: 0.2s;
}

.step-item:nth-child(3) {
  animation-delay: 0.3s;
}

.step-item:nth-child(4) {
  animation-delay: 0.4s;
}

.analysis-category {
  animation: fadeInUp 0.6s ease-out;
}

.analysis-category:nth-child(1) {
  animation-delay: 0.1s;
}

.analysis-category:nth-child(2) {
  animation-delay: 0.2s;
}

.analysis-category:nth-child(3) {
  animation-delay: 0.3s;
}

.analysis-category:nth-child(4) {
  animation-delay: 0.4s;
}

/* 초기 상태 설정 */
.feature-card-new,
.step-item,
.analysis-category,
.ip-feature-item {
  opacity: 0;
  animation-fill-mode: forwards;
}
