/* ==================== GOKO Landing Page — Custom Styles ==================== */

/* Font: Inter (EN) + Pretendard (KO) */
body {
  font-family: 'Inter', 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01'; /* Inter stylistic sets */
  letter-spacing: -0.011em;
}

/* Korean mode: tighter line height for Pretendard */
html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

/* ---- Animations ---- */

/* Fade-in on scroll (triggered by IntersectionObserver in main.js) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hero entrance animations */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ---- Navbar scroll effect ---- */
#navbar.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---- Comparison table ---- */
table th,
table td {
  min-width: 100px;
}

/* Highlight GOKO column */
table th:nth-child(2),
table td:nth-child(2) {
  background-color: rgba(37, 99, 235, 0.04);
}

/* ---- Mobile menu animation ---- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 400px;
}

/* ---- Language toggle active state ---- */
#lang-toggle.active,
#lang-toggle-mobile.active {
  border-color: #2563EB;
  color: #2563EB;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  table {
    font-size: 0.8rem;
  }

  table th,
  table td {
    min-width: 70px;
    padding: 0.5rem;
  }
}

/* ---- Phone mockup subtle float ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

#hero .bg-gray-900 {
  animation: float 4s ease-in-out infinite;
}
