/* Biblox Web Landing Page Styles */

/* 1. Design System Variables */
:root {
  /* Brand Colors */
  --color-main: #4CD964; /* Faith Green */
  --color-bg: #FFFFFF; /* Snow White */
  
  /* Secondary Colors */
  --color-accent: #FFCC00; /* Crown Yellow */
  --color-sub: #5AC8FA; /* Sky Blue */
  
  /* Semantic Colors */
  --color-success: #4CD964;
  --color-error: #FF3B30;
  --color-locked: #C7C7CC;
  
  /* Text Colors */
  --color-text-primary: #4a4a4a;
  --color-text-secondary: #8E8E93;
  --color-text-ghost: #D1D1D6;
  
  /* Typography */
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  
  /* Spacing */
  --spacing-unit: 8px;
  --container-width: 1200px;
  
  /* Effects */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px; /* Super Rounded */
  --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-btn: 0 4px 0 #3AB54A;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--color-text-secondary);
}

/* 3. Typography Utility Classes */
.text-hero { font-size: 56px; line-height: 1.2; }
.text-section { font-size: 40px; }
.text-sub { font-size: 24px; font-weight: 600; }
.text-lead { font-size: 20px; font-weight: 500; }
.text-body { font-size: 16px; }

/* Mobile Typography */
@media (max-width: 768px) {
  .text-hero { font-size: 36px; }
  .text-section { font-size: 28px; }
  .text-sub { font-size: 20px; }
  .text-lead { font-size: 18px; }
}

/* 4. Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.grid-cols-2 > div {
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .grid-cols-2 > div {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* 모바일에서 글 → 사진 순서 유지를 위한 order 제어 */
  .feature-text-first {
    order: 1 !important;
  }
  
  .feature-image-second {
    order: 2 !important;
  }
}

/* 5. Component Styles */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 18px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  min-width: 280px;
}

.btn-primary {
  background-color: var(--color-main);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #3AB54A;
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-ios {
  background-color: #000000;
  color: white;
  box-shadow: 0 4px 0 #333333;
}

.btn-ios:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #333333;
}

.btn-ios:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 6. Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
