/* 전체 스타일 설정 */
:root {
  --primary: #D73E3E; /* 엘라 대표색상 - 어두운 빨강색 */
  --secondary: #C53030; /* 더 진한 빨강색 */
  --accent: #F8B400; /* 강조 텍스트를 위한 색상 */
  --dark: #222222;
  --light: #FFFFFF;
  --gray: #F5F5F5;
  --gray-dark: #666666;
  --gray-light: #EEEEEE;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* 헤더 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  height: 36px;
  padding: 0;
}

.logo-item {
  margin-right: 20px;
}

.logo-icon {
  height: auto;
  width: 60px;
  display: block;
}

.logo-icon-small {
  height: 35px;
  width: 35px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
}

.logo-icon-small + .logo-text {
  font-size: 18px;
}

.logo-container-footer .logo-text {
  color: white;
}

nav ul li a {
  font-weight: 500;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary);
}

.download-btn {
  background-color: var(--primary) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 30px !important;
  font-weight: 500 !important;
  transition: var(--transition) !important;
  text-decoration: none !important;
}

.download-btn:hover {
  background-color: var(--secondary) !important;
  transform: translateY(-2px) !important;
  color: white !important;
}

/* 히어로 섹션 */
.hero {
  padding: 150px 0 80px;
  background-color: var(--dark);
  color: var(--light);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(to right, var(--primary), #F76C6C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.highlight-text {
  position: relative;
  display: inline-block;
  color: white;
  background: linear-gradient(to right, var(--accent), #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  padding: 0 5px;
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(2px) scale(1.05);
  z-index: 2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-qr {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-qr:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hero-qr p {
  color: white;
  font-size: 14px;
  margin: 10px 0 0 0;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
}

.primary-btn i {
  margin-right: 10px;
}

.primary-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

.primary-btn.disabled,
.download-btn.disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.primary-btn.disabled:hover,
.download-btn.disabled:hover {
  background-color: #999;
  transform: none;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  transform: perspective(800px) rotateY(-15deg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: perspective(800px) rotateY(-5deg) translateY(-10px);
}

/* 특징 섹션 */
.features {
  padding: 100px 0;
  background-color: var(--gray);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--dark);
}

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

.feature-card {
  background-color: var(--light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin-right: 15px;
  background-color: var(--primary);
  border-radius: 50%;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 0;
}

.feature-card p {
  color: var(--gray-dark);
}

/* 커뮤니티 섹션 */
.community {
  padding: 100px 0;
  background-color: var(--light);
}

.community .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.community-content {
  flex: 1;
}

.community h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  line-height: 1.3;
  color: var(--dark);
}

.community p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--gray-dark);
}

.community-features {
  margin-bottom: 30px;
}

.community-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.community-features li i {
  color: var(--primary);
  margin-right: 15px;
  font-size: 1.6rem;
}

.community-image {
  flex: 1;
  text-align: center;
}

.community-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* 앱 미리보기 섹션 */
.app-preview {
  padding: 100px 0;
  background-color: var(--gray);
  text-align: center;
}

.app-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.app-screens {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
  position: relative;
}

.app-screens img {
  max-width: 250px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.app-screens img:hover {
  transform: translateY(-20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 회사 소개 섹션 */
.about {
  padding: 100px 0;
  background-color: var(--light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.about p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--gray-dark);
  line-height: 1.8;
}

.company-info {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
}

.info-item i {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
}

/* 다운로드 섹션 */
.download {
  padding: 100px 0;
  background-color: var(--primary);
  text-align: center;
  color: white;
}

.download h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.download p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.download-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.qr-code img {
  width: 130px;
  height: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 5px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.qr-code p {
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.download-buttons .download-btn {
  background-color: white;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.download-buttons .download-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.download-buttons .download-btn:hover {
  background-color: var(--dark);
  color: white;
  transform: translateY(-5px);
}

.download-buttons .download-btn.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.download-buttons .download-btn.disabled:hover {
  background-color: #ccc;
  color: #666;
  transform: none;
}

/* 푸터 */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 80px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo a {
  display: block;
  margin-bottom: 10px;
}

.footer-logo .logo-icon {
  height: 25px;
  width: 25px;
  margin-right: 10px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-group h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.link-group ul li {
  margin-bottom: 10px;
}

.link-group ul li a {
  color: var(--gray-light);
  transition: var(--transition);
}

.link-group ul li a:hover {
  color: var(--primary);
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: var(--gray-dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.legal-links a:hover {
  color: var(--primary);
}

/* 반응형 디자인 */
@media (max-width: 991px) {
  .hero h1, .hero-title {
    font-size: 3rem;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .community .container {
    flex-direction: column-reverse;
  }
  
  .community-content, .community-image {
    text-align: center;
  }
  
  .community-features li {
    justify-content: center;
  }
  
  .app-screens {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 767px) {
  header {
    padding: 10px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  nav ul {
    gap: 15px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 상단으로 이동 버튼 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

/* 드롭다운 메뉴 스타일 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
  z-index: 999;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 8px;
  top: 100%;
  left: 0;
  margin-top: 5px;
  padding: 10px 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: var(--primary);
}

.dropdown-content a.active {
  color: var(--primary);
  font-weight: 600;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown > a::after {
  content: '\25BC';
  font-size: 0.7em;
  margin-left: 5px;
  opacity: 0.7;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 모바일 드롭다운 */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 80px 20px 20px;
    overflow-y: auto;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    padding: 10px 0;
  }
  
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    margin-top: 0;
    padding-left: 20px;
  }
  
  .dropdown:hover .dropdown-content {
    display: none;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
}


/* 모바일 글자 줄바꿈 방지 */
@media (max-width: 480px){
  .footer-menu a{white-space: nowrap;}  /* 링크 한 줄 유지 */
  .footer-menu {word-break: normal;}    /* 글자 단위 줄바꿈 금지 */
}
