@font-face {
  font-family: 'NanumSquareNeo';
  src: url('/assets/webfonts/woff2/NanumSquareNeo-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #4F46E5;
  --primary-dark: #4338ca;
  --secondary: #8B5CF6;
  --accent: #06b6d4;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-light: #f8fafc;
  --text-dim: #94a3b8;
  --gradient-main: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(79, 70, 229, 0.4) 0%, transparent 70%);

  --font-main: 'NanumSquareNeo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-kr: 'NanumSquareNeo', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ko"] body {
  font-family: 'NanumSquareNeo', 'Noto Sans KR', sans-serif;
  word-break: keep-all;
}

html[lang="en"] body {
  font-family: 'Noto Sans', 'Inter', sans-serif;
}

html[lang="ja"] body {
  font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
  word-break: keep-all;
}

html[lang="zh"] body {
  font-family: 'Noto Sans SC', 'Noto Sans', sans-serif;
}

html[lang="vi"] body {
  font-family: 'Noto Sans', 'Inter', sans-serif;
}

html[lang="ru"] body {
  font-family: 'Noto Sans', 'Inter', sans-serif;
}

html[lang="th"] body {
  font-family: 'Noto Sans Thai', 'Noto Sans', sans-serif;
}

html[lang="id"] body {
  font-family: 'Noto Sans', 'Inter', sans-serif;
}

html[lang="mn"] body {
  font-family: 'Noto Sans Mongolian', 'Noto Sans', sans-serif;
}

html[lang="es"] body {
  font-family: 'Noto Sans', 'Inter', sans-serif;
}

/* Utility Classes */
.lang-hidden {
  display: none !important;
}

.no-break {
  display: inline-block;
}

.hero-no-bottom-padding {
  padding-bottom: 0;
}

.features-no-top-padding {
  padding-top: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-weight: 900;
  font-size: 2.7rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.2s ease;
  /* 한글/영문 동일한 크기 보장 */
  font-family: var(--font-main);
}

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

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-arrow {
  transition: transform 0.2s ease;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 0.4rem;
  min-width: 160px;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.hidden {
  display: none;
}

.lang-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  font-family: var(--font-main);
}

.lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.lang-dropdown-item.active {
  background: rgba(79, 70, 229, 0.3);
  color: var(--text-light);
  font-weight: 600;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--gradient-glow);
  filter: blur(60px);
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.7rem; /* 버튼 위쪽 간격 줄임 */
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-top: 1.05rem; /* 버튼과 같은 간격 */
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-primary {
  background: var(--gradient-main);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 3rem;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.6);
}

.hero-visual {
  flex: 1;
  max-width: 400px;
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #000;
  border-radius: 40px;
  border: 8px solid #333;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: rotate(-5deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Features Generic */
section {
  padding: 6rem 10%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.2rem;
}

.feature-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
}

.visual-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
}

.feature-grid h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-desc {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dim);
  line-height: 1.7;
}

.feature-list li::before {
  content: '•';
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.feature-list strong {
  color: var(--text-light);
}

.floating-img {
  max-width: 100%;
  width: 360px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 2s;
}

/* Quick Start */
.quick-start {
  background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-start h2 {
  margin-bottom: 1.5rem;
}

.quick-start p {
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.highlight-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 1rem;
  display: inline-block;
}

/* CTA Final */
.cta-final {
  text-align: center;
  padding: 8rem 10%;
  background: radial-gradient(circle at center, #1e1b4b 0%, var(--bg-dark) 70%);
}

.cta-final-custom-background {
  background: radial-gradient(circle at center, #1e1b4b 0%, var(--bg-dark) 70%);
}

.cta-final h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.cta-final p {
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.cta-large {
  margin-top: 3rem;
  background: white;
  color: var(--primary);
  border: none;
  padding: 1.2rem 3.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-large:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
  padding: 3rem 10%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    /* 마우스 인터랙션 변수와 결합 */
    transform: translate(var(--mouse-x, 0), calc(var(--mouse-y, 0) + 0px)) rotate(var(--mouse-rotate, 0deg));
  }

  50% {
    /* 마우스 인터랙션 변수와 결합 + float 효과 */
    transform: translate(var(--mouse-x, 0), calc(var(--mouse-y, 0) - 20px)) rotate(var(--mouse-rotate, 0deg));
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  section {
    padding: 4rem 6%;
  }

  .hero {
    padding: 6rem 6% 3rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .feature-grid {
    gap: 3rem;
  }

  .feature-grid h3 {
    font-size: 1.8rem;
  }

  .phone-mockup {
    width: 270px;
    height: 540px;
  }

  .floating-img {
    width: 300px;
  }

  .intro-character-img,
  .cta-character-img {
    max-height: 700px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  section {
    padding: 3rem 5%;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 2.34rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 5rem 5% 2rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.7rem; /* 버튼 위쪽 간격 줄임 */
  }

  .hero-content {
    max-width: 100%;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-visual {
    margin-top: 2.5rem;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .section-header p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .feature-grid {
    flex-direction: column !important;
    gap: 2rem;
    text-align: center;
    margin-bottom: 3rem;
  }

  .text-content,
  .visual-content {
    width: 100%;
  }

  .visual-content {
    padding: 0.5rem;
  }

  .icon-box {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .feature-grid h3 {
    font-size: 1.6rem;
  }

  .feature-desc {
    font-size: 1rem;
  }

  .feature-list {
    text-align: left;
    display: inline-block;
    max-width: 90%;
  }

  .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .floating-img {
    width: 200px;
  }

  .intro-character-img,
  .cta-character-img {
    max-height: 500px;
  }

  .intro-character-custom-padding {
    margin-top: -4rem !important;
    margin-bottom: -2rem !important;
  }

  .cta-character-custom-padding {
    margin-top: -3rem !important;
    margin-bottom: -3rem !important;
  }

  .quick-start h2 {
    font-size: 1.8rem;
  }

  .quick-start p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .highlight-text {
    font-size: 1rem;
  }

  .highlight-box {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .cta-final {
    padding: 4rem 5%;
  }

  .cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .cta-final p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  footer {
    padding: 2rem 5%;
    font-size: 0.9rem;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .highlight-text {
    font-size: 0.9rem;
  }

  .phone-mockup {
    width: 180px;
    height: 360px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .feature-grid h3 {
    font-size: 1.4rem;
  }

  .floating-img {
    width: 160px;
  }

  .intro-character-img,
  .cta-character-img {
    max-height: 400px;
  }

  .intro-character-custom-padding {
    margin-top: -3rem !important;
    margin-bottom: -1rem !important;
  }

  .cta-character-custom-padding {
    margin-top: -2rem !important;
    margin-bottom: -2rem !important;
  }

  .cta-final h2 {
    font-size: 1.6rem;
  }

  .store-btn {
    max-width: 240px;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
}

.intro-character-img {
  max-height: 900px;
  max-width: 100%;
  width: auto;
  display: block;
  margin: -8rem auto 1.5rem auto;
  filter: drop-shadow(0 10px 20px rgba(79, 70, 229, 0.3));
  position: relative;
  z-index: 2;
  /* CSS 변수를 이용한 인터랙티브 움직임 + 기존 float 애니메이션 */
  --mouse-x: 0px;
  --mouse-y: 0px;
  --mouse-rotate: 0deg;
  transform: translate(var(--mouse-x), var(--mouse-y)) rotate(var(--mouse-rotate));
  transition: transform 0.1s ease-out;
  animation: float 4s ease-in-out infinite;
}

.intro-character-custom-padding {
  margin-top: -9rem;
  margin-bottom: -7rem;
}

.intro-character-custom-shadow {
  filter: drop-shadow(0 10px 20px rgba(79, 70, 229, 0.3));
}

.feature-highlight {
  text-align: center;
  padding: 0 1rem;
  margin-top: 2rem;
}

.highlight-text {
  font-size: 1.2rem;
  line-height: 1.8;
}

.cta-character-img {
  max-height: 900px;
  max-width: 100%;
  width: auto;
  display: block;
  margin: 1rem auto 2rem auto;
  filter: drop-shadow(0 10px 20px rgba(79, 70, 229, 0.3));
  /* CSS 변수 초기화 */
  --mouse-x: 0px;
  --mouse-y: 0px;
  --mouse-rotate: 0deg;
  transform: translate(var(--mouse-x), var(--mouse-y)) rotate(var(--mouse-rotate));
  transition: transform 0.1s ease-out;
  animation: float 4s ease-in-out infinite;
  animation-delay: 1s;
}

.cta-character-custom-padding {
  margin-top: -9rem;
  margin-bottom: -9rem;
}

.cta-character-custom-shadow {
  filter: drop-shadow(0 10px 20px rgba(79, 70, 229, 0.3));
}

.section-separator {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  width: 80%;
  margin: 3rem auto;
}