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

:root {
  --primary-color: #490eea;
  --secondary-color: #020265;
  --cta-color: #ff4757;
  /* Contrasting color for CTA */
  --text-dark: #131314;
  --text-gray: #666;
  --bg-light: #f8f9fa;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

/* Urgency Bar */
.urgency-bar {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 10;
  /* Lower than site-navigation (15) but visible */
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.urgency-bar a {
  color: #ffeb3b;
  text-decoration: underline;
  margin-left: 10px;
}

/* Navbar Adjustment for Urgency Bar to prevent overlap */
.navbar {
  top: 45px !important;
  transition: top 0.3s ease;
}

@media (max-width: 991px) {
  .navbar {
    top: 66px !important;
    /* Adjust for potential text wrapping on smaller screens */
  }
}

@media (max-width: 575px) {
  .navbar {
    top: 86px !important;
    /* Adjust for more wrapping on mobile */
  }
}

/* Hero Section Enhancements */
.main-banner .text-box h6 {
  color: #7ee6f8;
  /* Light blue accent */
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.main-banner .text-box h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-banner .text-box p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 800px;
}

.btn-cta {
  background-color: var(--cta-color);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-cta:hover {
  background-color: #ff6b81;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
  color: white;
  text-decoration: none;
}

/* Card Enhancements & White Space */
.content-block {
  padding: 100px 0;
  /* Increase white space */
}

/* Core Services Grid Layout (Cards) */
#gallery .card {
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Softer shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

#gallery .card-img-top {
  height: 220px;
  object-fit: cover;
}

#gallery .card-body {
  padding: 2rem;
}

#gallery .card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

#gallery .card-text {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  min-height: 48px;
  /* Alignment */
}

/* Trust/Proof Section */
.performance-grid .performance-card {
  /* Ensure these look good (existing styles might be okay, but checking spacing) */
  margin-bottom: 15px;
}

/* Section Title 중앙 정렬 */
.section-title {
  text-align: center;
}

/* Performance Grid Container: 풀 화면 */
.performance-grid-container {
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0 40px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent;
}

.performance-grid-container .performance-grid {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

.performance-grid-container .performance-card:not(.hidden) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.performance-grid-container .performance-card.hidden {
  display: none !important;
}

/* 기본적으로 모든 카드가 보이도록 */
.performance-card {
  display: block !important;
}

.performance-card.hidden {
  display: none !important;
}

/* 필터 버튼이 활성화되지 않았을 때 애니메이션 중지 */
.performance-grid-wrapper.paused .performance-grid {
  animation-play-state: paused;
}

/* 복제된 카드 스타일 */
.performance-card-clone {
  pointer-events: none;
}

/* HW Optimization Report Section (Custom Block Replacement) */
.custom-block.bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Remove the geometric triangle from style.css */
.content-block.custom-block:before {
  display: none !important;
}

.custom-block.bg-image:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Brand-tinted gradient overlay for a more natural, premium look */
  background: linear-gradient(135deg, rgba(2, 2, 101, 0.9) 0%, rgba(73, 14, 234, 0.85) 100%);
  z-index: 1;
}

.custom-block .container {
  position: relative;
  z-index: 2;
  text-align: center;
  /* Ensure text is centered */
}

.custom-block h6 {
  color: #7ee6f8 !important;
  /* Light blue accent */
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-block h3 {
  color: #ffffff !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.custom-block p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* High-contrast White Button for this section */
.custom-block .btn-cta {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  /* Brand purple text */
  font-weight: 800;
  padding: 18px 40px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.custom-block .btn-cta:hover {
  background-color: #f8f9fa !important;
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Pricing / Startup Package */
.price-box.startup-package {
  border: 2px solid var(--primary-color);
  position: relative;
}

.price-box.startup-package:after {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* Partners Logos Spacing */
.hardware-products {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  /* Ample white space */
  padding: 40px 0;
}

.hardware-products li {
  display: flex;
  /* Ensure images are centered if they are in lis */
  align-items: center;
  margin: 0 !important;
  /* Reset any margins if conflict */
}