/* 공통 스타일 */
:root {
  --primary-color: #3c9b70;
  --primary-color-dark: #347a59;
  --primary-color-light: #e6f3ee;
  --text-color: #333333;
  --text-color-light: #555555;
  --background-color: #ffffff;
  --background-alt: #f8f9fa;
  --shadow: 0 10px 25px rgba(60, 155, 112, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 네비게이션 바 */
.navbar {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--primary-color-light);
  color: var(--primary-color);
}

/* 히어로 섹션 */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  word-break: keep-all;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(60, 155, 112, 0.04),
      rgba(60, 155, 112, 0.02)
    ),
    url("../res/orm_trace.svg");
  background-size: 250%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--background-alt);
  z-index: 1;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 24px;
  color: var(--text-color);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 36px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.8;
  color: var(--text-color-light);
}

.app-store-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.app-store-button:hover {
  transform: translateY(-5px);
  filter: brightness(1.03);
}

.app-store-button img {
  width: 100%;
  height: 84px;
  vertical-align: middle;
}

/* 피처 섹션 */
.feature-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-container:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.feature-image img {
  max-width: 320px;
  border-radius: 36px;
  box-shadow: var(--shadow);
  transition: transform 0.5s ease;
}

.feature-image img:hover {
  transform: scale(1.02) translateY(-5px);
}

.feature-text {
  flex: 1;
  padding: 0 50px;
  max-width: 600px;
}

.feature-text h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: var(--primary-color);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-text p {
  font-size: 1.18rem;
  color: var(--text-color-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.7;
}

/* CTA 섹션 */
.cta-section {
  text-align: center;
  padding: 100px 20px;
  background-color: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--primary-color-light),
    var(--primary-color),
    var(--primary-color-light)
  );
  opacity: 0.5;
}

.cta-section h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin: 0 auto 24px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.25rem;
  color: var(--text-color-light);
  margin-bottom: 10px;
}

/* 푸터 */
footer {
  text-align: center;
  padding: 40px 20px;
  color: #777;
  font-size: 0.95rem;
  background-color: var(--background-color);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.orm {
  color: var(--primary-color);
  font-weight: 700;
}

/* 공지사항 페이지 스타일 */
.notice-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notice-header h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.home-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.home-link:hover {
  background-color: var(--primary-color-dark);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notice-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.notice-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.notice-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.notice-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.notice-summary {
  color: var(--text-color-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.notice-date {
  font-size: 0.9rem;
  color: #888;
  text-align: right;
}

/* 공지사항 상세 페이지 스타일 */
.notice-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.notice-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.notice-detail-header h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin: 0;
}

.notice-actions {
  display: flex;
  gap: 10px;
}

.back-link, .home-link {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.back-link {
  background-color: #f0f0f0;
  color: var(--text-color);
}

.back-link:hover {
  background-color: #e0e0e0;
}

.notice-meta {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.notice-content {
  line-height: 1.8;
  color: var(--text-color);
}

.notice-content h1 {
  font-size: 1.8rem;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: var(--primary-color);
}

.notice-content h2 {
  font-size: 1.5rem;
  margin-top: 1.3em;
  margin-bottom: 0.7em;
  color: var(--primary-color);
}

.notice-content p {
  margin-bottom: 1em;
}

.notice-content ul, .notice-content ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.notice-content li {
  margin-bottom: 0.5em;
}

.notice-content strong {
  font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .feature-container,
  .feature-container:nth-child(even) {
    flex-direction: column;
  }

  .feature-text {
    padding: 35px 20px !important;
    max-width: 100%;
  }

  .feature-image {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1.05rem;
    max-width: 100%;
    padding: 0 15px;
  }

  .feature-section {
    padding: 70px 20px;
  }

  .feature-text h2 {
    font-size: 1.9rem;
  }

  .feature-text p {
    font-size: 1.05rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.05rem;
  }
  
  .notice-container, .notice-detail {
    padding: 20px 15px;
  }
  
  .notice-header h1, .notice-detail-header h1 {
    font-size: 1.8rem;
  }
  
  .notice-title {
    font-size: 1.2rem;
  }
  
  .notice-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-text {
    padding: 0 30px;
  }

  .feature-image img {
    max-width: 280px;
  }
}
