@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette based on SPEP CNS Logo (Blue Tone) */
  --color-primary: #00447c;
  /* Trustworthy Corporate Blue */
  --color-primary-light: #0062a8;
  /* Lighter Blue */
  --color-secondary: #002244;
  /* Deep Navy */
  --color-text-main: #1f1f1f;
  --color-text-muted: #4a4a4a;
  --color-bg-light: #f4f7f9;
  /* Slightly cool light gray */
  --color-bg-white: #ffffff;
  --color-accent: #0077c8;
  /* Vibrant Blue for accents */

  --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-serif: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.2;
}

/* BCG Style Use Case Cards */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.bcg-card {
  position: relative;
  display: block;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  color: white !important;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bcg-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bcg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 34, 68, 0.95) 0%, rgba(0, 34, 68, 0.1) 70%);
  z-index: 1;
  transition: background 0.6s ease;
}

.bcg-card:hover .bcg-card-bg {
  transform: scale(1.08);
}

.bcg-card:hover::before {
  background: linear-gradient(to top, rgba(0, 34, 68, 1) 0%, rgba(0, 34, 68, 0.3) 70%);
}

.bcg-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bcg-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: white;
  background-color: var(--color-primary);
  padding: 0.4rem 0.8rem;
  display: inline-block;
  align-self: flex-start;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.bcg-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: white;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

/* Typography Utilities */
.text-center {
  text-align: center;
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--color-bg-white);
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  max-width: 700px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 28px;
  /* 로고 이미지 높이 축소 */
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--color-primary);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background-color: var(--color-primary-light);
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--color-secondary);
  color: white;
  padding-top: 80px;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 34, 68, 0.7), rgba(0, 34, 68, 0.9)); /* Palantir-style dark blue overlay */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  animation: fadeUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  animation: fadeUp 1s ease-out 0.2s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

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

.btn-primary:hover {
  background-color: #008a49;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: white;
  color: var(--color-primary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeUp 1s ease-out 0.4s both;
}

/* Features Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: white;
  padding: 3rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

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

.card-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-text-muted);
}

/* Footer */
.footer {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-img {
  max-height: 35px;
  /* 푸터 로고도 약간 축소 */
  width: auto;
  object-fit: contain;
  /* 만약 푸터 배경(어두운 색)에서 로고가 잘 안 보인다면, 로고를 흰색 버전으로 따로 지정해야 할 수도 있습니다 */
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: white;
}

.footer-family-select {
  width: 100%;
  max-width: 220px;
  padding: 0.65rem 2rem 0.65rem 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color var(--transition-fast);
}

.footer-family-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer-family-select option {
  color: var(--color-primary);
  background: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: left var(--transition-normal);
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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