/* ===== CSS Variables ===== */
:root {
  /* Primary Colors */
  --coral-primary: #FF6B4A;
  --coral-light: #FF8E75;
  --coral-dark: #E5533A;
  
  /* Background Colors */
  --bg-cream: #FFF4F0;
  --bg-white: #FFFFFF;
  --bg-light-peach: #FFE8E2;
  
  /* Text Colors */
  --text-primary: #2C2C2C;
  --text-secondary: #666666;
  --text-light: #999999;
  
  /* Accent Colors */
  --accent-mint: #4ECDC4;
  --accent-yellow: #FFD93D;
  --accent-purple: #A78BFA;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Pretendard', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-white);
}

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

ul {
  list-style: none;
}

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

/* ===== Typography ===== */
h1 { font-size: 48px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 36px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 28px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 24px; font-weight: 500; line-height: 1.4; }

.body-large { font-size: 18px; font-weight: 400; line-height: 1.6; }
.body-regular { font-size: 16px; font-weight: 400; line-height: 1.6; }
.body-small { font-size: 14px; font-weight: 400; line-height: 1.5; }

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

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

.navbar.scrolled .logo-svg {
  height: 35px;
  transition: height 0.3s ease;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-svg {
  height: 40px;
  width: auto;
  display: block;
}

.logo-group {
  transition: all 0.3s ease;
}

.logo-shape {
  transition: all 0.3s ease;
  transform-origin: center;
}

.logo:hover .logo-shape {
  transform: scale(1.05);
  filter: url(#logoShadow) brightness(1.1);
}

.logo-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.5s ease-in-out;
}

/* Logo smoothness improvements */
.logo {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.logo-loaded .logo-check {
  stroke-dashoffset: 0;
}

@keyframes checkmark {
  to {
    stroke-dashoffset: 0;
  }
}

/* Logo initial state */
.logo-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

/* Logo loaded state */
.logo-loaded .logo-check {
  animation: checkmark 0.5s ease-in-out forwards;
  animation-delay: 0.5s;
}

/* Logo bounce animation on hover */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.logo:hover .logo-shape {
  animation: bounce 0.5s ease-in-out;
}

/* Smooth logo text color transition */
.logo-svg text {
  transition: all 0.3s ease;
  font-feature-settings: 'kern' 1;
}

.logo-svg text {
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}

.logo:hover .logo-svg text {
  fill: var(--coral-primary);
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Selector */
.language-selector {
  background: transparent;
  border: 1px solid var(--text-light);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-base);
  outline: none;
  font-family: 'Pretendard', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.language-selector:hover {
  border-color: var(--coral-primary);
  background: var(--bg-cream);
}

.language-selector:focus {
  border-color: var(--coral-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

.language-selector option {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 8px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light-peach) 100%);
  padding: 120px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.cta-button {
  background: var(--coral-primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.cta-button:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 74, 0.3);
}

.secondary-button {
  background: transparent;
  color: var(--coral-primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  border: 2px solid var(--coral-primary);
  transition: var(--transition-base);
}

.secondary-button:hover {
  background: var(--coral-primary);
  color: white;
}

/* ===== Products Section ===== */
.products {
  padding: 100px 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--bg-light-peach);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--coral-primary);
  overflow: hidden;
  padding: 0;
}

.product-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.coming-soon .product-icon {
  background: #F3F4F6;
  color: #9CA3AF;
}

.coming-soon-icon {
  position: relative;
}

.coming-soon-icon::after {
  content: '?';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
}

.product-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-light-peach);
  color: var(--text-primary);
}

.badge-success {
  background: #10B981;
  color: white;
  font-weight: 600;
}

.badge-upcoming {
  background: var(--coral-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.product-link {
  color: var(--coral-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-link:hover {
  gap: 8px;
}

.notify-button {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px dashed #D1D5DB;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.notify-button:hover {
  border-color: var(--coral-primary);
  color: var(--coral-primary);
}

/* ===== Philosophy Section ===== */
.philosophy {
  padding: 100px 0;
  background: var(--bg-cream);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.philosophy-card {
  text-align: center;
  padding: 40px;
}

.philosophy-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--coral-primary);
  box-shadow: var(--shadow-sm);
}

.philosophy-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.impact-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.impact-section h3 {
  margin-bottom: 20px;
  color: var(--coral-primary);
}

.impact-section p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background: white;
  text-align: center;
}

.contact-content h2 {
  margin-bottom: 20px;
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--coral-primary);
  font-weight: 500;
}

.contact-link:hover {
  color: var(--coral-dark);
}

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

.social-links a {
  width: 48px;
  height: 48px;
  background: var(--bg-light-peach);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-primary);
  font-size: 20px;
  transition: var(--transition-base);
}

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

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  background: var(--text-primary);
  color: white;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer p {
  font-size: 14px;
}

.heart {
  color: var(--coral-primary);
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===== Accessibility ===== */
.focusable:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral-primary);
  outline-offset: 2px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  
  /* Navigation */
  .nav-menu {
    display: none;
  }
  
  .nav-right {
    gap: 10px;
  }
  
  .language-selector {
    padding: 4px 12px;
    font-size: 13px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Logo responsive */
  .logo-svg {
    height: 35px;
    width: 140px;
  }
  
  .logo-svg text {
    font-size: 18px;
  }
  
  .navbar {
    padding: 12px 0;
  }
  
  /* Hero */
  .hero {
    padding: 80px 0;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .cta-button,
  .secondary-button {
    text-align: center;
  }
  
  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Philosophy */
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  .impact-section {
    padding: 40px 24px;
  }
  
  /* General spacing */
  .products,
  .philosophy,
  .contact {
    padding: 60px 0;
  }
  
  /* Contact section mobile */
  .contact-content h2 {
    font-size: 32px;
  }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-white: #1A1A1A;
    --bg-cream: #1F1F1F;
    --bg-light-peach: #2A2A2A;
    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --text-light: #808080;
    --coral-primary: #FF8E75;
  }
  
  .navbar {
    background: rgba(26, 26, 26, 0.95);
  }
  
  .product-card,
  .impact-section {
    background: #2C2C2C;
  }
  
  .philosophy-icon {
    background: #3A3A3A;
  }
  
  .badge {
    background: #3A3A3A;
  }
  
  .badge-upcoming {
    background: var(--coral-light);
    color: white;
  }
  
  .footer {
    background: #0A0A0A;
  }
  
  .logo-svg text {
    fill: var(--text-primary);
  }
  
  .logo-shape {
    fill: var(--coral-primary);
  }
  
  .contact {
    background: var(--bg-white);
  }
  
  .contact-content h2 {
    color: var(--coral-primary);
    text-shadow: 0 2px 8px rgba(255, 142, 117, 0.2);
  }
  
  .language-selector {
    border-color: #666;
  }
  
  .language-selector:hover {
    border-color: var(--coral-primary);
    background: rgba(255, 142, 117, 0.1);
  }
  
  .language-selector option {
    background: #2C2C2C;
    color: var(--text-primary);
  }
}
