/* ================================================
   RELLA Landing Page Styles
   랜딩 페이지 전용 스타일
   ================================================ */

/* ================================================
   HERO SECTION
   ================================================ */

.hero-section {
  width: 100%;
  padding: 80px 0 100px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Hero Left (Text Content) */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.hero-title .highlight {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(185, 126, 245, 0.3);
}

.hero-description {
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
  max-width: 540px;
}

.hero-cta {
  padding: 18px 40px;
  background: var(--button-gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: var(--transition-normal);
  align-self: flex-start;
  white-space: nowrap;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 25px rgba(185, 126, 245, 0.5);
}

.hero-cta:active {
  transform: translateY(-1px);
}

/* Hero Right (Image) */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg-gradient);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container.placeholder {
  background: var(--card-bg-gradient);
  border: 2px dashed var(--border-light);
}

.hero-image-container.placeholder::after {
  content: '이미지 준비중';
  color: var(--text-muted);
  font-size: 18px;
}

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

/* Responsive Hero */
@media (max-width: 1024px) {
  .hero-content {
    gap: 50px;
  }

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

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

@media (max-width: 768px) {
  .hero-section {
    padding: 50px 0;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    order: 1;
    text-align: center;
    align-items: center;
  }

  .hero-right {
    order: 2;
  }

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

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

  .hero-cta {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
  }

  .hero-image-container {
    max-width: 100%;
  }
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

.how-it-works-section {
  width: 100%;
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.6);
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step-card {
  background: var(--card-bg-gradient);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 4px 8px 100px var(--shadow-yellow), inset -4px 5px 15px rgba(255, 255, 255, 0.5);
}

.step-icon {
  font-size: 60px;
  margin-bottom: var(--spacing-md);
  display: block;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.step-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Steps Grid */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .how-it-works-section {
    padding: 60px 0;
  }

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

  .section-subtitle {
    font-size: 16px;
  }

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

  .step-card {
    padding: 30px 20px;
  }

  .step-icon {
    font-size: 50px;
  }

  .step-title {
    font-size: 18px;
  }

  .step-description {
    font-size: 14px;
  }
}

/* ================================================
   TEMPLATES SECTION
   ================================================ */

.templates-section {
  width: 100%;
  padding: 100px 0;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.template-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(185, 126, 245, 0.2);
}

.template-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--card-bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-placeholder {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 20px 10px;
}

.template-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 20px 20px;
}

/* Responsive Template Grid */
@media (max-width: 1024px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .templates-section {
    padding: 60px 0;
  }

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

  .template-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ================================================
   SCROLL BEHAVIOR
   ================================================ */

html {
  scroll-behavior: smooth;
}

/* Scroll padding for anchor links (to account for fixed nav) */
section[id] {
  scroll-margin-top: 80px;
}

/* ================================================
   LOADING ANIMATION (Optional)
   ================================================ */

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

.hero-section,
.how-it-works-section,
.templates-section {
  animation: fadeIn 0.6s ease-out;
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

/* Focus styles */
a:focus,
button:focus {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
